From 58a811b7cf338f83f74605bc0bbaa838131e6c96 Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Mon, 25 May 2020 16:19:07 -0500 Subject: [PATCH 1/7] Renamed the Bird Seed to Folly Feed --- Items/Mounts/BirdSeed.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Mounts/BirdSeed.cs b/Items/Mounts/BirdSeed.cs index c2e8e1957d..190403f60f 100644 --- a/Items/Mounts/BirdSeed.cs +++ b/Items/Mounts/BirdSeed.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Items.Mounts { public override void SetStaticDefaults() { - DisplayName.SetDefault("Bird Seed"); + DisplayName.SetDefault("Folly Feed"); Tooltip.SetDefault("Summons a monstrosity"); } From 5a21ffc03f61fd035530e84af03cceb8f7bbcae5 Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Mon, 25 May 2020 16:20:16 -0500 Subject: [PATCH 2/7] Revert "Renamed the Bird Seed to Folly Feed" This reverts commit 58a811b7cf338f83f74605bc0bbaa838131e6c96. --- Items/Mounts/BirdSeed.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Mounts/BirdSeed.cs b/Items/Mounts/BirdSeed.cs index 190403f60f..c2e8e1957d 100644 --- a/Items/Mounts/BirdSeed.cs +++ b/Items/Mounts/BirdSeed.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Items.Mounts { public override void SetStaticDefaults() { - DisplayName.SetDefault("Folly Feed"); + DisplayName.SetDefault("Bird Seed"); Tooltip.SetDefault("Summons a monstrosity"); } From 4380a532a27518926e50be5941e58597a1a23dce Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Mon, 25 May 2020 16:24:51 -0500 Subject: [PATCH 3/7] Renamed Bird Seed to Folly Feed --- Items/Mounts/BirdSeed.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Mounts/BirdSeed.cs b/Items/Mounts/BirdSeed.cs index c2e8e1957d..190403f60f 100644 --- a/Items/Mounts/BirdSeed.cs +++ b/Items/Mounts/BirdSeed.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Items.Mounts { public override void SetStaticDefaults() { - DisplayName.SetDefault("Bird Seed"); + DisplayName.SetDefault("Folly Feed"); Tooltip.SetDefault("Summons a monstrosity"); } From 55e89c9b98d53bcf4daacc1342ca7c07fbaf9fac Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Fri, 22 May 2020 00:28:32 -0500 Subject: [PATCH 4/7] Replaced (hopefully) every magic number with a constant Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however. --- Backgrounds/AstralDesertSurfaceBGStyle.cs | 2 +- Backgrounds/AstralSnowSurfaceBGStyle.cs | 2 +- Backgrounds/AstralSurfaceBGStyle.cs | 2 +- Backgrounds/AstralUndergroundBGStyle.cs | 2 +- Backgrounds/SulphurSeaSurfaceBGStyle.cs | 2 +- Buffs/Alcohol/AlcoholPoisoning.cs | 2 +- Buffs/Alcohol/BloodyMaryBuff.cs | 2 +- Buffs/Alcohol/CaribbeanRumBuff.cs | 2 +- Buffs/Alcohol/CinnamonRollBuff.cs | 2 +- Buffs/Alcohol/EverclearBuff.cs | 2 +- Buffs/Alcohol/EvergreenGinBuff.cs | 2 +- Buffs/Alcohol/FabsolVodkaBuff.cs | 2 +- Buffs/Alcohol/FireballBuff.cs | 2 +- Buffs/Alcohol/GrapeBeerBuff.cs | 2 +- Buffs/Alcohol/MargaritaBuff.cs | 2 +- Buffs/Alcohol/MoonshineBuff.cs | 2 +- Buffs/Alcohol/MoscowMuleBuff.cs | 2 +- Buffs/Alcohol/RedWineBuff.cs | 2 +- Buffs/Alcohol/RumBuff.cs | 2 +- Buffs/Alcohol/ScrewdriverBuff.cs | 2 +- Buffs/Alcohol/StarBeamRyeBuff.cs | 2 +- Buffs/Alcohol/TequilaBuff.cs | 2 +- Buffs/Alcohol/TequilaSunriseBuff.cs | 2 +- Buffs/Alcohol/Trippy.cs | 2 +- Buffs/Alcohol/VodkaBuff.cs | 2 +- Buffs/Alcohol/WhiskeyBuff.cs | 2 +- Buffs/Alcohol/WhiteWineBuff.cs | 2 +- .../AbyssalDivingSuitPlatesBroken.cs | 2 +- Buffs/Cooldowns/AbyssalMirrorCooldown.cs | 2 +- .../BloodflareBloodFrenzyCooldown.cs | 2 +- Buffs/Cooldowns/BloodflareSoulCooldown.cs | 2 +- Buffs/Cooldowns/BrimflameFrenzyCooldown.cs | 2 +- Buffs/Cooldowns/EclipseMirrorCooldown.cs | 2 +- Buffs/Cooldowns/GodSlayerCooldown.cs | 2 +- Buffs/Cooldowns/IceShieldBrokenBuff.cs | 2 +- Buffs/Cooldowns/InkBombCooldown.cs | 2 +- Buffs/Cooldowns/ResilienceCooldown.cs | 2 +- Buffs/Cooldowns/ScarfCooldown.cs | 2 +- Buffs/Cooldowns/TarragonCloakCooldown.cs | 2 +- Buffs/Cooldowns/TarragonImmunityCooldown.cs | 2 +- Buffs/DamageOverTime/AbyssalFlames.cs | 2 +- Buffs/DamageOverTime/AstralInfectionDebuff.cs | 2 +- Buffs/DamageOverTime/BrimstoneFlames.cs | 2 +- Buffs/DamageOverTime/BurningBlood.cs | 2 +- Buffs/DamageOverTime/CrushDepth.cs | 2 +- Buffs/DamageOverTime/DemonFlames.cs | 2 +- Buffs/DamageOverTime/GodSlayerInferno.cs | 2 +- Buffs/DamageOverTime/HolyFlames.cs | 2 +- Buffs/DamageOverTime/HolyInferno.cs | 2 +- Buffs/DamageOverTime/LethalLavaBurn.cs | 2 +- Buffs/DamageOverTime/Nightwither.cs | 2 +- Buffs/DamageOverTime/Plague.cs | 2 +- Buffs/DamageOverTime/Shadowflame.cs | 2 +- Buffs/DamageOverTime/ShellfishEating.cs | 2 +- Buffs/DamageOverTime/Shred.cs | 2 +- Buffs/DamageOverTime/SnapClamDebuff.cs | 2 +- Buffs/DamageOverTime/Vaporfied.cs | 2 +- Buffs/DamageOverTime/VulnerabilityHex.cs | 2 +- Buffs/Mounts/AlicornBuff.cs | 2 +- Buffs/Mounts/AndromedaBuff.cs | 2 +- Buffs/Mounts/AndromedaSmallBuff.cs | 2 +- Buffs/Mounts/BrimstoneMount.cs | 2 +- Buffs/Mounts/GazeOfCrysthamyrBuff.cs | 2 +- Buffs/Mounts/OnyxExcavatorBuff.cs | 2 +- Buffs/Mounts/SquishyBeanBuff.cs | 2 +- Buffs/Mounts/TundraLeashBuff.cs | 2 +- Buffs/Pets/AkatoYharonBuff.cs | 2 +- Buffs/Pets/BloodBound.cs | 2 +- Buffs/Pets/Fox.cs | 2 +- Buffs/Pets/FurtasticDuoBuff.cs | 2 +- Buffs/Pets/LeviBuff.cs | 2 +- Buffs/Pets/SirenLightPetBuff.cs | 2 +- Buffs/Pets/ThirdSageBuff.cs | 2 +- Buffs/Placeables/BlueSpeedCandle.cs | 2 +- Buffs/Placeables/ChaosCandleBuff.cs | 2 +- Buffs/Placeables/CorruptionEffigyBuff.cs | 2 +- Buffs/Placeables/CrimsonEffigyBuff.cs | 2 +- Buffs/Placeables/EffigyOfDecayBuff.cs | 2 +- Buffs/Placeables/PinkHealthCandle.cs | 2 +- Buffs/Placeables/PurpleDefenseCandle.cs | 2 +- Buffs/Placeables/TranquilityCandleBuff.cs | 2 +- Buffs/Placeables/YellowDamageCandle.cs | 2 +- Buffs/PopoBuff.cs | 2 +- Buffs/PopoNoselessBuff.cs | 2 +- Buffs/Potions/AbyssalWeapon.cs | 2 +- Buffs/Potions/AnechoicCoatingBuff.cs | 2 +- Buffs/Potions/ArmorCrumbling.cs | 2 +- Buffs/Potions/ArmorShattering.cs | 2 +- Buffs/Potions/AstralInjectionBuff.cs | 2 +- Buffs/Potions/BaguetteBuff.cs | 2 +- Buffs/Potions/BoundingBuff.cs | 2 +- Buffs/Potions/Cadence.cs | 2 +- Buffs/Potions/CalciumBuff.cs | 2 +- Buffs/Potions/CeaselessHunger.cs | 2 +- Buffs/Potions/DraconicSurgeBuff.cs | 2 +- Buffs/Potions/GravityNormalizerBuff.cs | 2 +- Buffs/Potions/HolyWrathBuff.cs | 2 +- Buffs/Potions/Invincible.cs | 2 +- Buffs/Potions/Omniscience.cs | 2 +- Buffs/Potions/PenumbraBuff.cs | 2 +- Buffs/Potions/PhotosynthesisBuff.cs | 2 +- Buffs/Potions/ProfanedRageBuff.cs | 2 +- Buffs/Potions/Revivify.cs | 2 +- Buffs/Potions/Soaring.cs | 2 +- Buffs/Potions/TitanScale.cs | 2 +- Buffs/Potions/TriumphBuff.cs | 2 +- Buffs/Potions/YharimPower.cs | 2 +- Buffs/Potions/Zen.cs | 2 +- Buffs/Potions/Zerg.cs | 2 +- Buffs/StatBuffs/AbsoluteRage.cs | 2 +- Buffs/StatBuffs/AbyssalDivingSuitBuff.cs | 2 +- Buffs/StatBuffs/AbyssalDivingSuitPlates.cs | 2 +- Buffs/StatBuffs/AdrenalineMode.cs | 2 +- Buffs/StatBuffs/Afflicted.cs | 2 +- Buffs/StatBuffs/AmidiasBlessing.cs | 2 +- Buffs/StatBuffs/BloodflareBloodFrenzy.cs | 2 +- Buffs/StatBuffs/BossZen.cs | 2 +- Buffs/StatBuffs/BrimflameFrenzyBuff.cs | 2 +- Buffs/StatBuffs/ChiBuff.cs | 2 +- Buffs/StatBuffs/CosmicFreeze.cs | 2 +- Buffs/StatBuffs/ElysianGuard.cs | 2 +- Buffs/StatBuffs/GraxDefense.cs | 2 +- Buffs/StatBuffs/HallowedRuneAtkBuff.cs | 2 +- Buffs/StatBuffs/HallowedRuneDefBuff.cs | 2 +- Buffs/StatBuffs/HallowedRuneRegenBuff.cs | 2 +- Buffs/StatBuffs/IceShieldBuff.cs | 2 +- Buffs/StatBuffs/Molten.cs | 2 +- Buffs/StatBuffs/Mushy.cs | 2 +- Buffs/StatBuffs/ProfanedCrystalBuff.cs | 2 +- Buffs/StatBuffs/RageMode.cs | 2 +- Buffs/StatBuffs/ReaverRage.cs | 2 +- Buffs/StatBuffs/ScarfMeleeBoost.cs | 2 +- Buffs/StatBuffs/ShellBoost.cs | 2 +- Buffs/StatBuffs/SilvaRevival.cs | 2 +- Buffs/StatBuffs/SirenBobs.cs | 2 +- Buffs/StatBuffs/SirenBobsAlt.cs | 2 +- Buffs/StatBuffs/SirenWaterSpeed.cs | 2 +- Buffs/StatBuffs/SpiritGeneratorAtkBuff.cs | 2 +- Buffs/StatBuffs/SpiritGeneratorDefBuff.cs | 2 +- Buffs/StatBuffs/SpiritGeneratorRegenBuff.cs | 2 +- Buffs/StatBuffs/TarraLifeRegen.cs | 2 +- Buffs/StatBuffs/TarragonCloak.cs | 2 +- Buffs/StatBuffs/TarragonImmunity.cs | 2 +- Buffs/StatBuffs/TyrantsFury.cs | 2 +- Buffs/StatBuffs/XerocRage.cs | 2 +- Buffs/StatBuffs/XerocWrath.cs | 2 +- Buffs/StatDebuffs/AndromedaCripple.cs | 2 +- Buffs/StatDebuffs/ArmorCrunch.cs | 2 +- Buffs/StatDebuffs/BurntOut.cs | 2 +- Buffs/StatDebuffs/Clamity.cs | 2 +- Buffs/StatDebuffs/Enraged.cs | 2 +- Buffs/StatDebuffs/ExoFreeze.cs | 2 +- Buffs/StatDebuffs/ExtremeGrav.cs | 2 +- Buffs/StatDebuffs/ExtremeGravity.cs | 2 +- Buffs/StatDebuffs/FishAlert.cs | 2 +- Buffs/StatDebuffs/GlacialState.cs | 2 +- Buffs/StatDebuffs/Horror.cs | 2 +- Buffs/StatDebuffs/Irradiated.cs | 2 +- Buffs/StatDebuffs/MarkedforDeath.cs | 2 +- Buffs/StatDebuffs/PearlAura.cs | 2 +- Buffs/StatDebuffs/ProfanedWeakness.cs | 2 +- Buffs/StatDebuffs/SilvaStun.cs | 2 +- Buffs/StatDebuffs/TemporalSadness.cs | 2 +- Buffs/StatDebuffs/TimeSlow.cs | 2 +- Buffs/StatDebuffs/WarCleave.cs | 2 +- Buffs/StatDebuffs/Warped.cs | 2 +- Buffs/StatDebuffs/WeakPetrification.cs | 2 +- Buffs/StatDebuffs/WhisperingDeath.cs | 2 +- Buffs/Summon/AerospecSummonSetBuff.cs | 2 +- Buffs/Summon/ApexSharkBuff.cs | 2 +- Buffs/Summon/AquaticStar.cs | 2 +- Buffs/Summon/AstrageldonBuff.cs | 2 +- Buffs/Summon/AtaxiaSummonSetBuff.cs | 2 +- Buffs/Summon/BloodClot.cs | 2 +- Buffs/Summon/BrimstoneWaifu.cs | 2 +- Buffs/Summon/BrittleStar.cs | 2 +- Buffs/Summon/Calamari.cs | 2 +- Buffs/Summon/CalamitasEyes.cs | 2 +- Buffs/Summon/CloudyWaifu.cs | 2 +- Buffs/Summon/ColdDivinityBuff.cs | 2 +- Buffs/Summon/Corroslime.cs | 2 +- Buffs/Summon/CorvidHarbringerBuff.cs | 2 +- Buffs/Summon/CosmicEnergy.cs | 2 +- Buffs/Summon/CosmilampBuff.cs | 2 +- Buffs/Summon/Crimslime.cs | 2 +- Buffs/Summon/DaedalusSummonSetBuff.cs | 2 +- Buffs/Summon/DankCreeperBuff.cs | 2 +- Buffs/Summon/DemonshadeSetDevilBuff.cs | 2 +- Buffs/Summon/DormantBrimseekerBuff.cs | 2 +- Buffs/Summon/ElementalAxeBuff.cs | 2 +- Buffs/Summon/EndoCooperBuff.cs | 2 +- Buffs/Summon/EndoHydraBuff.cs | 2 +- Buffs/Summon/FungalClumpBuff.cs | 2 +- Buffs/Summon/GladiatorSwords.cs | 2 +- Buffs/Summon/HermitCrab.cs | 2 +- Buffs/Summon/Herring.cs | 2 +- Buffs/Summon/HotE.cs | 2 +- Buffs/Summon/IceClasper.cs | 2 +- Buffs/Summon/Mechworm.cs | 2 +- Buffs/Summon/MidnightSunBuff.cs | 2 +- Buffs/Summon/Phantom.cs | 2 +- Buffs/Summon/ProfanedBabs.cs | 2 +- Buffs/Summon/ReaverSummonSetBuff.cs | 2 +- Buffs/Summon/ResurrectionButterflyBuff.cs | 2 +- Buffs/Summon/RustyDroneBuff.cs | 2 +- Buffs/Summon/Sandnado.cs | 2 +- Buffs/Summon/SandyHealingWaifu.cs | 2 +- Buffs/Summon/SandyWaifu.cs | 2 +- Buffs/Summon/ShellfishBuff.cs | 2 +- Buffs/Summon/SilvaSummonSetBuff.cs | 2 +- Buffs/Summon/SolarSpirit.cs | 2 +- Buffs/Summon/SolarSpiritGod.cs | 2 +- Buffs/Summon/StatigelSummonSetBuff.cs | 2 +- Buffs/Summon/TundraFlameBlossomsBuff.cs | 2 +- Buffs/Summon/VictideSummonSetBuff.cs | 2 +- Buffs/Summon/WaterWaifu.cs | 2 +- Buffs/Summon/YharonKindleBuff.cs | 2 +- CalPlayer/CalamityPlayer.cs | 573 +++++++++--------- CalPlayer/CalamityPlayerFishing.cs | 2 +- CalPlayer/CalamityPlayerLifeRegen.cs | 2 +- CalPlayer/CalamityPlayerMiscEffects.cs | 16 +- CalamityMod.cs | 4 +- Configs.cs | 2 +- Dusts/AstralBasic.cs | 2 +- Dusts/AstralBlue.cs | 2 +- Dusts/AstralChunkDust.cs | 2 +- Dusts/AstralEnemy.cs | 2 +- Dusts/AstralOrange.cs | 2 +- Dusts/BrimstoneFlame.cs | 2 +- Dusts/CalamityDusts.cs | 2 +- Dusts/HBSparkle.cs | 2 +- Dusts/HolyFireDust.cs | 2 +- Dusts/OMGWTHSparkle.cs | 2 +- Events/AcidRainEvent.cs | 2 +- Gores/AstralWaterDroplet.cs | 7 +- ILEditing/ILChanges.cs | 2 +- Items/Accessories/Abaddon.cs | 5 +- Items/Accessories/AbyssalAmulet.cs | 2 +- Items/Accessories/AbyssalDivingGear.cs | 2 +- Items/Accessories/AbyssalDivingSuit.cs | 2 +- Items/Accessories/AbyssalMirror.cs | 2 +- Items/Accessories/AeroStone.cs | 2 +- Items/Accessories/Affliction.cs | 2 +- Items/Accessories/AlchemicalFlask.cs | 2 +- Items/Accessories/AlluringBait.cs | 2 +- Items/Accessories/AmalgamatedBrain.cs | 2 +- Items/Accessories/AmbrosialAmpoule.cs | 2 +- Items/Accessories/AmidiasPendant.cs | 2 +- Items/Accessories/AmidiasSpark.cs | 2 +- Items/Accessories/AncientFossil.cs | 2 +- Items/Accessories/AnechoicPlating.cs | 2 +- Items/Accessories/AngelTreads.cs | 2 +- Items/Accessories/AquaticEmblem.cs | 2 +- Items/Accessories/ArcanumoftheVoid.cs | 2 +- Items/Accessories/ArchaicPowder.cs | 2 +- Items/Accessories/AsgardianAegis.cs | 2 +- Items/Accessories/AsgardsValor.cs | 2 +- Items/Accessories/AstralArcanum.cs | 2 +- Items/Accessories/AstralBulwark.cs | 2 +- Items/Accessories/BadgeofBravery.cs | 2 +- Items/Accessories/BlazingCore.cs | 2 +- Items/Accessories/BloodPact.cs | 2 +- Items/Accessories/BloodflareCore.cs | 2 +- Items/Accessories/BloodyWormScarf.cs | 2 +- Items/Accessories/BloodyWormTooth.cs | 2 +- Items/Accessories/BloomStone.cs | 2 +- Items/Accessories/BurdenBreaker.cs | 2 +- Items/Accessories/CalamityRing.cs | 2 +- Items/Accessories/CelestialJewel.cs | 2 +- Items/Accessories/ChaosAmulet.cs | 2 +- Items/Accessories/ChaosStone.cs | 2 +- Items/Accessories/CheatTestThing.cs | 2 +- Items/Accessories/CoreOfTheBloodGod.cs | 2 +- Items/Accessories/CorrosiveSpine.cs | 2 +- Items/Accessories/CorruptFlask.cs | 2 +- Items/Accessories/CounterScarf.cs | 2 +- Items/Accessories/CrawCarapace.cs | 2 +- Items/Accessories/CrimsonFlask.cs | 2 +- Items/Accessories/CrownJewel.cs | 2 +- Items/Accessories/CryoStone.cs | 2 +- Items/Accessories/DaedalusEmblem.cs | 2 +- Items/Accessories/DarkGodsSheath.cs | 2 +- Items/Accessories/DarkSunRing.cs | 2 +- Items/Accessories/DeepDiver.cs | 2 +- Items/Accessories/DeificAmulet.cs | 2 +- Items/Accessories/DepthCharm.cs | 2 +- Items/Accessories/DimensionalSoulArtifact.cs | 2 +- Items/Accessories/DraedonsHeart.cs | 2 +- Items/Accessories/DragonScales.cs | 2 +- Items/Accessories/EclipseMirror.cs | 2 +- Items/Accessories/EldritchSoulArtifact.cs | 2 +- Items/Accessories/ElementalGauntlet.cs | 2 +- Items/Accessories/ElementalQuiver.cs | 2 +- Items/Accessories/ElysianAegis.cs | 2 +- Items/Accessories/EnchantedPearl.cs | 2 +- Items/Accessories/EtherealTalisman.cs | 2 +- Items/Accessories/FabledTortoiseShell.cs | 2 +- Items/Accessories/FeatherCrown.cs | 2 +- Items/Accessories/FleshTotem.cs | 2 +- Items/Accessories/FrigidBulwark.cs | 2 +- Items/Accessories/FrostBarrier.cs | 2 +- Items/Accessories/FrostFlare.cs | 2 +- Items/Accessories/FungalCarapace.cs | 2 +- Items/Accessories/FungalSymbiote.cs | 2 +- Items/Accessories/Gehenna.cs | 2 +- Items/Accessories/GiantPearl.cs | 2 +- Items/Accessories/GiantShell.cs | 2 +- Items/Accessories/GiantTortoiseShell.cs | 2 +- Items/Accessories/GloveOfRecklessness.cs | 2 +- Items/Accessories/GloveofPrecision.cs | 2 +- Items/Accessories/GodlySoulArtifact.cs | 2 +- Items/Accessories/GoldBurdenBreaker.cs | 2 +- Items/Accessories/GrandGelatin.cs | 2 +- Items/Accessories/HallowedRune.cs | 2 +- Items/Accessories/HarpyRing.cs | 2 +- Items/Accessories/HeartofDarkness.cs | 2 +- Items/Accessories/HeartoftheElements.cs | 2 +- Items/Accessories/HideofAstrumDeus.cs | 2 +- Items/Accessories/HoneyDew.cs | 2 +- Items/Accessories/InkBomb.cs | 2 +- Items/Accessories/IronBoots.cs | 2 +- Items/Accessories/Laudanum.cs | 2 +- Items/Accessories/LeadCore.cs | 2 +- Items/Accessories/LeviathanAmbergris.cs | 2 +- Items/Accessories/LifeJelly.cs | 2 +- Items/Accessories/LivingDew.cs | 2 +- Items/Accessories/LumenousAmulet.cs | 2 +- Items/Accessories/LuxorsGift.cs | 2 +- Items/Accessories/MagicLevelMeter.cs | 2 +- Items/Accessories/ManaJelly.cs | 2 +- Items/Accessories/ManaOverloader.cs | 2 +- Items/Accessories/MeleeLevelMeter.cs | 2 +- Items/Accessories/MirageMirror.cs | 2 +- Items/Accessories/MomentumCapacitor.cs | 2 +- Items/Accessories/MoonstoneCrown.cs | 2 +- Items/Accessories/Nanotech.cs | 2 +- Items/Accessories/NebulousCore.cs | 2 +- Items/Accessories/NecklaceofVexation.cs | 2 +- Items/Accessories/OceanCrest.cs | 2 +- Items/Accessories/OldDie.cs | 2 +- Items/Accessories/OrnateShield.cs | 2 +- Items/Accessories/PlagueHive.cs | 2 +- Items/Accessories/PlaguedFuelPack.cs | 2 +- Items/Accessories/ProfanedSoulArtifact.cs | 2 +- Items/Accessories/ProfanedSoulCrystal.cs | 2 +- Items/Accessories/PsychoticAmulet.cs | 2 +- Items/Accessories/RadiantOoze.cs | 2 +- Items/Accessories/RaidersTalisman.cs | 2 +- Items/Accessories/RampartofDeities.cs | 2 +- Items/Accessories/RangedLevelMeter.cs | 2 +- Items/Accessories/ReaperToothNecklace.cs | 2 +- Items/Accessories/Regenator.cs | 2 +- Items/Accessories/RogueEmblem.cs | 2 +- Items/Accessories/RogueLevelMeter.cs | 2 +- Items/Accessories/RoseStone.cs | 2 +- Items/Accessories/RottenBrain.cs | 2 +- Items/Accessories/RuinMedallion.cs | 2 +- Items/Accessories/RustyMedallion.cs | 2 +- Items/Accessories/SamuraiBadge.cs | 2 +- Items/Accessories/SandCloak.cs | 2 +- Items/Accessories/SeaShell.cs | 2 +- Items/Accessories/ShieldoftheOcean.cs | 2 +- Items/Accessories/SigilofCalamitas.cs | 2 +- Items/Accessories/SilencingSheath.cs | 2 +- Items/Accessories/SirensHeart.cs | 2 +- Items/Accessories/SirensHeartAlt.cs | 2 +- Items/Accessories/SpectralVeil.cs | 2 +- Items/Accessories/SpiritGenerator.cs | 2 +- Items/Accessories/Sponge.cs | 2 +- Items/Accessories/StarbusterCore.cs | 2 +- Items/Accessories/StatMeter.cs | 2 +- Items/Accessories/StatisBeltOfCurses.cs | 2 +- Items/Accessories/StatisBlessing.cs | 2 +- Items/Accessories/StatisCurse.cs | 2 +- Items/Accessories/StatisNinjaBelt.cs | 2 +- Items/Accessories/StressPills.cs | 2 +- Items/Accessories/SummonLevelMeter.cs | 2 +- .../SupremeBaitTackleBoxFishingStation.cs | 2 +- Items/Accessories/TheAbsorber.cs | 2 +- Items/Accessories/TheAmalgam.cs | 2 +- Items/Accessories/TheBee.cs | 2 +- Items/Accessories/TheCamper.cs | 2 +- Items/Accessories/TheCommunity.cs | 2 +- Items/Accessories/TheEvolution.cs | 2 +- Items/Accessories/TheFirstShadowflame.cs | 2 +- Items/Accessories/TheTransformer.cs | 2 +- Items/Accessories/ToxicHeart.cs | 2 +- Items/Accessories/TrinketofChi.cs | 2 +- Items/Accessories/UnstablePrism.cs | 2 +- Items/Accessories/Vanity/Popo.cs | 2 +- Items/Accessories/VeneratedLocket.cs | 2 +- Items/Accessories/VitalJelly.cs | 2 +- Items/Accessories/VoidofExtinction.cs | 2 +- Items/Accessories/Wings/CelestialTracers.cs | 2 +- Items/Accessories/Wings/ElysianTracers.cs | 2 +- Items/Accessories/Wings/ElysianWings.cs | 2 +- Items/Accessories/Wings/InfinityBoots.cs | 2 +- Items/Accessories/Wings/MOAB.cs | 2 +- Items/Accessories/Wings/SoulofCryogen.cs | 2 +- Items/Accessories/YharimsGift.cs | 2 +- Items/Accessories/YharimsInsignia.cs | 2 +- Items/Ammo/AstralSolution.cs | 2 +- Items/Ammo/BloodRune.cs | 2 +- Items/Armor/AerospecBreastplate.cs | 2 +- Items/Armor/AerospecHat.cs | 2 +- Items/Armor/AerospecHeadgear.cs | 2 +- Items/Armor/AerospecHelm.cs | 2 +- Items/Armor/AerospecHelmet.cs | 2 +- Items/Armor/AerospecHood.cs | 2 +- Items/Armor/AerospecLeggings.cs | 2 +- Items/Armor/AstralBreastplate.cs | 2 +- Items/Armor/AstralHelm.cs | 2 +- Items/Armor/AstralLeggings.cs | 2 +- Items/Armor/AtaxiaArmor.cs | 2 +- Items/Armor/AtaxiaHeadgear.cs | 2 +- Items/Armor/AtaxiaHelm.cs | 2 +- Items/Armor/AtaxiaHelmet.cs | 2 +- Items/Armor/AtaxiaHood.cs | 2 +- Items/Armor/AtaxiaMask.cs | 2 +- Items/Armor/AtaxiaSubligar.cs | 2 +- Items/Armor/AuricTeslaBodyArmor.cs | 2 +- Items/Armor/AuricTeslaCuisses.cs | 2 +- Items/Armor/AuricTeslaHelm.cs | 2 +- Items/Armor/AuricTeslaHoodedFacemask.cs | 2 +- Items/Armor/AuricTeslaPlumedHelm.cs | 2 +- Items/Armor/AuricTeslaSpaceHelmet.cs | 2 +- Items/Armor/AuricTeslaWireHemmedVisage.cs | 2 +- Items/Armor/BloodflareBodyArmor.cs | 2 +- Items/Armor/BloodflareCuisses.cs | 2 +- Items/Armor/BloodflareHelm.cs | 2 +- Items/Armor/BloodflareHelmet.cs | 2 +- Items/Armor/BloodflareHornedHelm.cs | 2 +- Items/Armor/BloodflareHornedMask.cs | 2 +- Items/Armor/BloodflareMask.cs | 2 +- Items/Armor/BrimflameBoots.cs | 2 +- Items/Armor/BrimflameRobes.cs | 2 +- Items/Armor/BrimflameScowl.cs | 2 +- Items/Armor/DaedalusBreastplate.cs | 2 +- Items/Armor/DaedalusHat.cs | 2 +- Items/Armor/DaedalusHeadgear.cs | 2 +- Items/Armor/DaedalusHelm.cs | 2 +- Items/Armor/DaedalusHelmet.cs | 2 +- Items/Armor/DaedalusLeggings.cs | 2 +- Items/Armor/DaedalusVisor.cs | 2 +- Items/Armor/DemonshadeBreastplate.cs | 2 +- Items/Armor/DemonshadeGreaves.cs | 2 +- Items/Armor/DemonshadeHelm.cs | 2 +- Items/Armor/FathomSwarmerBoots.cs | 2 +- Items/Armor/FathomSwarmerBreastplate.cs | 2 +- Items/Armor/FathomSwarmerVisage.cs | 2 +- Items/Armor/GodSlayerChestplate.cs | 2 +- Items/Armor/GodSlayerHelm.cs | 2 +- Items/Armor/GodSlayerHelmet.cs | 2 +- Items/Armor/GodSlayerHornedHelm.cs | 2 +- Items/Armor/GodSlayerLeggings.cs | 2 +- Items/Armor/GodSlayerMask.cs | 2 +- Items/Armor/GodSlayerVisage.cs | 2 +- Items/Armor/ReaverCap.cs | 2 +- Items/Armor/ReaverCuisses.cs | 2 +- Items/Armor/ReaverHelm.cs | 2 +- Items/Armor/ReaverHelmet.cs | 2 +- Items/Armor/ReaverMask.cs | 2 +- Items/Armor/ReaverScaleMail.cs | 2 +- Items/Armor/ReaverVisage.cs | 2 +- Items/Armor/ShroomiteVisage.cs | 2 +- Items/Armor/SilvaArmor.cs | 2 +- Items/Armor/SilvaHelm.cs | 2 +- Items/Armor/SilvaHelmet.cs | 2 +- Items/Armor/SilvaHornedHelm.cs | 2 +- Items/Armor/SilvaLeggings.cs | 2 +- Items/Armor/SilvaMask.cs | 2 +- Items/Armor/SilvaMaskedCap.cs | 2 +- Items/Armor/SnowRuffianChestplate.cs | 2 +- Items/Armor/SnowRuffianGreaves.cs | 2 +- Items/Armor/SnowRuffianMask.cs | 2 +- Items/Armor/StatigelArmor.cs | 2 +- Items/Armor/StatigelCap.cs | 2 +- Items/Armor/StatigelGreaves.cs | 2 +- Items/Armor/StatigelHeadgear.cs | 2 +- Items/Armor/StatigelHelm.cs | 2 +- Items/Armor/StatigelHood.cs | 2 +- Items/Armor/StatigelMask.cs | 2 +- Items/Armor/SulfurBreastplate.cs | 2 +- Items/Armor/SulfurHelmet.cs | 2 +- Items/Armor/SulfurLeggings.cs | 2 +- Items/Armor/TarragonBreastplate.cs | 2 +- Items/Armor/TarragonHelm.cs | 2 +- Items/Armor/TarragonHelmet.cs | 2 +- Items/Armor/TarragonHornedHelm.cs | 2 +- Items/Armor/TarragonLeggings.cs | 2 +- Items/Armor/TarragonMask.cs | 2 +- Items/Armor/TarragonVisage.cs | 2 +- Items/Armor/Vanity/ApronOfAffection.cs | 2 +- Items/Armor/Vanity/CeaselessVoidMask.cs | 2 +- Items/Armor/Vanity/RavagerMask.cs | 2 +- Items/Armor/Vanity/SignusMask.cs | 2 +- Items/Armor/Vanity/StormWeaverMask.cs | 2 +- Items/Armor/VictideBreastplate.cs | 2 +- Items/Armor/VictideHeadgear.cs | 2 +- Items/Armor/VictideHelm.cs | 2 +- Items/Armor/VictideHelmet.cs | 2 +- Items/Armor/VictideLeggings.cs | 2 +- Items/Armor/VictideMask.cs | 2 +- Items/Armor/VictideVisage.cs | 2 +- Items/Armor/WulfrumArmor.cs | 2 +- Items/Armor/WulfrumHeadgear.cs | 2 +- Items/Armor/WulfrumHelm.cs | 2 +- Items/Armor/WulfrumHelmet.cs | 2 +- Items/Armor/WulfrumHood.cs | 2 +- Items/Armor/WulfrumLeggings.cs | 2 +- Items/Armor/WulfrumMask.cs | 2 +- Items/Armor/XerocCuisses.cs | 2 +- Items/Armor/XerocMask.cs | 2 +- Items/Armor/XerocPlateMail.cs | 2 +- Items/CalamityGlobalItem.cs | 2 +- Items/Critters/BabyFlakHermit.cs | 3 +- Items/Critters/BabyGhostBellItem.cs | 3 +- Items/Critters/PiggyItem.cs | 3 +- Items/Critters/SeaMinnowItem.cs | 3 +- Items/Critters/TwinklerItem.cs | 5 +- Items/DifficultyItems/Armageddon.cs | 4 +- Items/DifficultyItems/Death.cs | 4 +- Items/DifficultyItems/DefiledRune.cs | 4 +- Items/DifficultyItems/IronHeart.cs | 4 +- Items/DifficultyItems/MLGRune.cs | 4 +- Items/DifficultyItems/Revenge.cs | 4 +- Items/Dyes/HairDye/AdrenalineHairDye.cs | 2 +- Items/Dyes/HairDye/RageHairDye.cs | 2 +- Items/Dyes/HairDye/StealthHairDye.cs | 2 +- Items/Dyes/HairDye/WingTimeHairDye.cs | 2 +- Items/Fishing/AstralCatches/AstralCrate.cs | 2 +- .../Fishing/AstralCatches/GacruxianMollusk.cs | 2 +- .../AstralCatches/PolarisParrotfish.cs | 3 +- .../Fishing/BrimstoneCragCatches/Bloodfin.cs | 2 +- .../BrimstoneCragCatches/BrimstoneCrate.cs | 2 +- .../DragoonDrizzlefish.cs | 2 +- Items/Fishing/EnchantedStarfish.cs | 2 +- Items/Fishing/FishingRods/ChaoticSpreadRod.cs | 2 +- Items/Fishing/FishingRods/EarlyBloomRod.cs | 2 +- Items/Fishing/FishingRods/FeralDoubleRod.cs | 4 +- Items/Fishing/FishingRods/HeronRod.cs | 2 +- Items/Fishing/FishingRods/NavyFishingRod.cs | 2 +- Items/Fishing/FishingRods/SlurperPole.cs | 2 +- .../Fishing/FishingRods/TheDevourerofCods.cs | 2 +- .../FishingRods/VerstaltiteFishingRod.cs | 2 +- Items/Fishing/FishingRods/WulfrumRod.cs | 2 +- Items/Fishing/Spadefish.cs | 2 +- Items/Fishing/SulphurCatches/AbyssalCrate.cs | 2 +- .../SunkenSeaCatches/SparklingEmpress.cs | 2 +- Items/Fishing/SunkenSeaCatches/SunkenCrate.cs | 2 +- Items/LoreItems/KnowledgeAquaticScourge.cs | 2 +- Items/LoreItems/KnowledgeAstralInfection.cs | 2 +- Items/LoreItems/KnowledgeAstrumAureus.cs | 2 +- Items/LoreItems/KnowledgeAstrumDeus.cs | 2 +- Items/LoreItems/KnowledgeBloodMoon.cs | 2 +- Items/LoreItems/KnowledgeBrainofCthulhu.cs | 6 +- Items/LoreItems/KnowledgeBrimstoneCrag.cs | 2 +- .../LoreItems/KnowledgeBrimstoneElemental.cs | 2 +- Items/LoreItems/KnowledgeBumblebirb.cs | 2 +- Items/LoreItems/KnowledgeCalamitas.cs | 2 +- Items/LoreItems/KnowledgeCalamitasClone.cs | 2 +- Items/LoreItems/KnowledgeCorruption.cs | 2 +- Items/LoreItems/KnowledgeCrabulon.cs | 2 +- Items/LoreItems/KnowledgeCrimson.cs | 2 +- Items/LoreItems/KnowledgeCryogen.cs | 2 +- Items/LoreItems/KnowledgeDesertScourge.cs | 2 +- Items/LoreItems/KnowledgeDestroyer.cs | 2 +- Items/LoreItems/KnowledgeDevourerofGods.cs | 2 +- Items/LoreItems/KnowledgeDukeFishron.cs | 2 +- Items/LoreItems/KnowledgeEaterofWorlds.cs | 2 +- Items/LoreItems/KnowledgeEyeofCthulhu.cs | 2 +- Items/LoreItems/KnowledgeGolem.cs | 2 +- Items/LoreItems/KnowledgeHiveMind.cs | 2 +- Items/LoreItems/KnowledgeKingSlime.cs | 2 +- Items/LoreItems/KnowledgeLeviathanandSiren.cs | 2 +- Items/LoreItems/KnowledgeLunaticCultist.cs | 2 +- Items/LoreItems/KnowledgeMechs.cs | 2 +- Items/LoreItems/KnowledgeMoonLord.cs | 2 +- Items/LoreItems/KnowledgeOcean.cs | 2 +- Items/LoreItems/KnowledgePerforators.cs | 2 +- .../KnowledgePlaguebringerGoliath.cs | 2 +- Items/LoreItems/KnowledgePlantera.cs | 2 +- Items/LoreItems/KnowledgePolterghast.cs | 2 +- Items/LoreItems/KnowledgeProfanedGuardians.cs | 2 +- Items/LoreItems/KnowledgeProvidence.cs | 2 +- Items/LoreItems/KnowledgeQueenBee.cs | 2 +- Items/LoreItems/KnowledgeRavager.cs | 2 +- Items/LoreItems/KnowledgeSentinels.cs | 2 +- Items/LoreItems/KnowledgeSkeletron.cs | 2 +- Items/LoreItems/KnowledgeSkeletronPrime.cs | 2 +- Items/LoreItems/KnowledgeSlimeGod.cs | 2 +- Items/LoreItems/KnowledgeSulphurSea.cs | 2 +- Items/LoreItems/KnowledgeTwins.cs | 2 +- Items/LoreItems/KnowledgeUnderworld.cs | 2 +- Items/LoreItems/KnowledgeWallofFlesh.cs | 2 +- Items/LoreItems/KnowledgeYharon.cs | 2 +- Items/LoreItems/LoreItem.cs | 2 +- Items/Materials/Acidwood.cs | 2 +- Items/Materials/AerialiteBar.cs | 2 +- Items/Materials/AncientBoneDust.cs | 2 +- Items/Materials/ArmoredShell.cs | 2 +- Items/Materials/AuricBar.cs | 2 +- Items/Materials/BarofLife.cs | 2 +- Items/Materials/BeetleJuice.cs | 2 +- Items/Materials/BlightedLens.cs | 2 +- Items/Materials/BloodOrb.cs | 2 +- Items/Materials/BloodSample.cs | 2 +- Items/Materials/BloodlettingEssence.cs | 2 +- Items/Materials/Bloodstone.cs | 2 +- Items/Materials/BloodstoneCore.cs | 2 +- Items/Materials/CalamitousEssence.cs | 2 +- Items/Materials/CalamityDust.cs | 2 +- Items/Materials/CloakingGland.cs | 2 +- Items/Materials/CoreofCalamity.cs | 2 +- Items/Materials/CoreofChaos.cs | 2 +- Items/Materials/CoreofCinder.cs | 2 +- Items/Materials/CoreofEleum.cs | 2 +- Items/Materials/CorrodedFossil.cs | 2 +- Items/Materials/CosmiliteBar.cs | 2 +- Items/Materials/CruptixBar.cs | 4 +- Items/Materials/CryoBar.cs | 2 +- Items/Materials/DarkPlasma.cs | 2 +- Items/Materials/DarksunFragment.cs | 2 +- Items/Materials/DemonicBoneAsh.cs | 2 +- Items/Materials/DepthCells.cs | 2 +- Items/Materials/DesertFeather.cs | 2 +- Items/Materials/DivineGeode.cs | 2 +- Items/Materials/DraedonBar.cs | 4 +- Items/Materials/EbonianGel.cs | 2 +- Items/Materials/Ectoblood.cs | 2 +- Items/Materials/EffulgentFeather.cs | 2 +- Items/Materials/EndothermicEnergy.cs | 2 +- Items/Materials/EssenceofChaos.cs | 2 +- Items/Materials/EssenceofCinder.cs | 2 +- Items/Materials/EssenceofEleum.cs | 2 +- Items/Materials/FetidEssence.cs | 2 +- Items/Materials/GalacticaSingularity.cs | 2 +- Items/Materials/GrandScale.cs | 2 +- Items/Materials/GypsyPowder.cs | 2 +- Items/Materials/HadarianMembrane.cs | 2 +- Items/Materials/HellcasterFragment.cs | 2 +- Items/Materials/LivingShard.cs | 2 +- Items/Materials/Lumenite.cs | 5 +- Items/Materials/ManeaterBulb.cs | 2 +- Items/Materials/MeldBlob.cs | 2 +- Items/Materials/MeldiateBar.cs | 2 +- Items/Materials/MolluskHusk.cs | 2 +- Items/Materials/MurkyPaste.cs | 2 +- Items/Materials/MurkySludge.cs | 2 +- Items/Materials/NightmareFuel.cs | 2 +- Items/Materials/Phantoplasm.cs | 2 +- Items/Materials/PlagueCellCluster.cs | 2 +- Items/Materials/PurifiedGel.cs | 2 +- Items/Materials/ReaperTooth.cs | 2 +- Items/Materials/RuinousSoul.cs | 2 +- Items/Materials/ShadowspecBar.cs | 2 +- Items/Materials/Stardust.cs | 2 +- Items/Materials/StormlionMandible.cs | 2 +- Items/Materials/SulfuricScale.cs | 2 +- Items/Materials/TrapperBulb.cs | 2 +- Items/Materials/TrueShadowScale.cs | 2 +- Items/Materials/TwistingNether.cs | 2 +- Items/Materials/UeliaceBar.cs | 2 +- Items/Materials/UnholyCore.cs | 2 +- Items/Materials/UnholyEssence.cs | 2 +- Items/Materials/VerstaltiteBar.cs | 4 +- Items/Materials/VictideBar.cs | 2 +- Items/Materials/VictoryShard.cs | 2 +- Items/Materials/WulfrumShard.cs | 2 +- Items/Mounts/AlicornMount.cs | 2 +- Items/Mounts/AngryDogMount.cs | 2 +- Items/Mounts/Brimrose.cs | 4 +- Items/Mounts/Crysthamyr.cs | 2 +- Items/Mounts/Fabsol.cs | 4 +- Items/Mounts/GazeOfCrysthamyr.cs | 4 +- Items/Mounts/OnyxExcavator.cs | 4 +- Items/Mounts/OnyxExcavatorKey.cs | 4 +- Items/Mounts/PhuppersChair.cs | 2 +- Items/Mounts/SquishyBean.cs | 2 +- Items/Mounts/SquishyBeanMount.cs | 4 +- Items/Mounts/TundraLeash.cs | 4 +- Items/NormalityRelocator.cs | 2 +- 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 | 2 +- Items/Pets/BloodyVein.cs | 4 +- Items/Pets/CosmicPlushie.cs | 2 +- Items/Pets/ForgottenDragonEgg.cs | 2 +- Items/Pets/FoxDrive.cs | 2 +- Items/Pets/GeyserShell.cs | 2 +- Items/Pets/IbarakiBox.cs | 4 +- Items/Pets/JoyfulHeart.cs | 2 +- Items/Pets/Levi.cs | 2 +- Items/Pets/PrimroseKeepsake.cs | 6 +- Items/Pets/RomajedaOrchid.cs | 2 +- Items/Pets/RotomRemote.cs | 2 +- Items/Pets/StrangeOrb.cs | 2 +- Items/Pets/TrashmanTrashcan.cs | 2 +- Items/Placeables/AbyssGravel.cs | 6 +- Items/Placeables/AerialiteBrick.cs | 4 +- Items/Placeables/AstralBar.cs | 4 +- Items/Placeables/AstralBrick.cs | 4 +- Items/Placeables/AstralClay.cs | 4 +- Items/Placeables/AstralDirt.cs | 8 +- Items/Placeables/AstralFossil.cs | 6 +- Items/Placeables/AstralIce.cs | 8 +- Items/Placeables/AstralMonolith.cs | 4 +- Items/Placeables/AstralSand.cs | 4 +- Items/Placeables/AstralSandstone.cs | 8 +- Items/Placeables/AstralSilt.cs | 4 +- Items/Placeables/AstralSnow.cs | 8 +- Items/Placeables/AstralStone.cs | 8 +- Items/Placeables/Banners/AcidEelBanner.cs | 4 +- Items/Placeables/Banners/AeroSlimeBanner.cs | 4 +- .../Placeables/Banners/AmberCrawlerBanner.cs | 4 +- .../Banners/AmethystCrawlerBanner.cs | 4 +- Items/Placeables/Banners/AngryDogBanner.cs | 4 +- .../Placeables/Banners/AnthozoanCrabBanner.cs | 4 +- .../Banners/AquaticAberrationBanner.cs | 4 +- .../Banners/AquaticParasiteBanner.cs | 4 +- .../Placeables/Banners/AquaticSeekerBanner.cs | 4 +- .../Placeables/Banners/AquaticUrchinBanner.cs | 4 +- Items/Placeables/Banners/AriesBanner.cs | 4 +- .../Placeables/Banners/ArmoredDiggerBanner.cs | 4 +- Items/Placeables/Banners/AstralProbeBanner.cs | 4 +- Items/Placeables/Banners/AstralSlimeBanner.cs | 4 +- .../Placeables/Banners/AstralachneaBanner.cs | 4 +- Items/Placeables/Banners/AtlasBanner.cs | 4 +- Items/Placeables/Banners/BOHLDOHRBanner.cs | 4 +- .../Placeables/Banners/BelchingCoralBanner.cs | 4 +- .../Placeables/Banners/BigSightseerBanner.cs | 4 +- Items/Placeables/Banners/BlightedEyeBanner.cs | 4 +- .../Placeables/Banners/BlindedAnglerBanner.cs | 4 +- Items/Placeables/Banners/BloatfishBanner.cs | 4 +- Items/Placeables/Banners/BloomSlimeBanner.cs | 4 +- Items/Placeables/Banners/BobbitWormBanner.cs | 4 +- .../Placeables/Banners/BoxJellyfishBanner.cs | 4 +- Items/Placeables/Banners/CalamityEyeBanner.cs | 4 +- Items/Placeables/Banners/CatfishBanner.cs | 4 +- .../Placeables/Banners/ChaoticPufferBanner.cs | 4 +- .../Placeables/Banners/CharredSlimeBanner.cs | 4 +- Items/Placeables/Banners/ClamBanner.cs | 4 +- .../Banners/CloudElementalBanner.cs | 4 +- Items/Placeables/Banners/CnidrionBanner.cs | 4 +- .../Placeables/Banners/ColossalSquidBanner.cs | 4 +- .../Banners/CosmicElementalBanner.cs | 4 +- .../Banners/CrimulanBlightSlimeBanner.cs | 4 +- Items/Placeables/Banners/CryoSlimeBanner.cs | 4 +- Items/Placeables/Banners/CryonBanner.cs | 4 +- .../Banners/CrystalCrawlerBanner.cs | 4 +- .../Banners/CultistAssassinBanner.cs | 4 +- Items/Placeables/Banners/CuttlefishBanner.cs | 4 +- .../Placeables/Banners/DespairStoneBanner.cs | 4 +- Items/Placeables/Banners/DevilFishBanner.cs | 4 +- .../Banners/DiamondCrawlerBanner.cs | 4 +- .../Banners/EarthElementalBanner.cs | 4 +- .../Banners/EbonianBlightSlimeBanner.cs | 4 +- Items/Placeables/Banners/EidolistBanner.cs | 4 +- .../Banners/EidolonWyrmJuvenileBanner.cs | 4 +- .../Banners/EmeraldCrawlerBanner.cs | 4 +- .../Placeables/Banners/EutrophicRayBanner.cs | 4 +- .../Banners/FearlessGoldfishWarriorBanner.cs | 4 +- Items/Placeables/Banners/FlakBabyBanner.cs | 4 +- Items/Placeables/Banners/FlakCrabBanner.cs | 4 +- Items/Placeables/Banners/FlounderBanner.cs | 4 +- Items/Placeables/Banners/FrogfishBanner.cs | 4 +- .../Placeables/Banners/FusionFeederBanner.cs | 4 +- Items/Placeables/Banners/GammaSlimeBanner.cs | 4 +- Items/Placeables/Banners/GhostBellBanner.cs | 4 +- .../Banners/GhostBellSmallBanner.cs | 4 +- Items/Placeables/Banners/GiantClamBanner.cs | 4 +- Items/Placeables/Banners/GiantSquidBanner.cs | 4 +- Items/Placeables/Banners/GnasherBanner.cs | 4 +- .../Banners/GreatSandSharkBanner.cs | 4 +- Items/Placeables/Banners/GulperEelBanner.cs | 3 +- Items/Placeables/Banners/HadarianBanner.cs | 3 +- Items/Placeables/Banners/HeatSpiritBanner.cs | 3 +- Items/Placeables/Banners/HiveBanner.cs | 3 +- Items/Placeables/Banners/IceClasperBanner.cs | 3 +- .../Banners/ImpiousImmolatorBanner.cs | 3 +- .../Banners/IrradiatedSlimeBanner.cs | 3 +- Items/Placeables/Banners/LaserfishBanner.cs | 3 +- .../Banners/LuminousCorvinaBanner.cs | 3 +- Items/Placeables/Banners/MantisBanner.cs | 3 +- .../Placeables/Banners/MantisShrimpBanner.cs | 3 +- Items/Placeables/Banners/MaulerBanner.cs | 3 +- Items/Placeables/Banners/MelterBanner.cs | 3 +- Items/Placeables/Banners/MirageJellyBanner.cs | 3 +- Items/Placeables/Banners/MorayEelBanner.cs | 3 +- Items/Placeables/Banners/NovaBanner.cs | 3 +- Items/Placeables/Banners/NuclearToadBanner.cs | 3 +- Items/Placeables/Banners/OarfishBanner.cs | 3 +- Items/Placeables/Banners/OrthoceraBanner.cs | 3 +- .../Banners/OverloadedSoldierBanner.cs | 3 +- Items/Placeables/Banners/ParaseaBanner.cs | 3 +- .../Banners/PerennialSlimeBanner.cs | 3 +- .../Banners/PestilentSlimeBanner.cs | 3 +- .../Placeables/Banners/PhantomDebrisBanner.cs | 3 +- .../Placeables/Banners/PhantomSpiritBanner.cs | 3 +- Items/Placeables/Banners/PiggyBanner.cs | 3 +- Items/Placeables/Banners/PitbullBanner.cs | 3 +- .../Placeables/Banners/PlagueChargerBanner.cs | 3 +- .../Placeables/Banners/PlaguebringerBanner.cs | 3 +- Items/Placeables/Banners/PlagueshellBanner.cs | 3 +- Items/Placeables/Banners/PrismTurtleBanner.cs | 3 +- .../Banners/ProfanedEnergyBanner.cs | 3 +- Items/Placeables/Banners/RadiatorBanner.cs | 3 +- Items/Placeables/Banners/ReaperSharkBanner.cs | 3 +- Items/Placeables/Banners/RubyCrawlerBanner.cs | 3 +- .../Placeables/Banners/SandTortoiseBanner.cs | 3 +- .../Banners/SapphireCrawlerBanner.cs | 3 +- Items/Placeables/Banners/ScornEaterBanner.cs | 3 +- Items/Placeables/Banners/ScryllarBanner.cs | 3 +- Items/Placeables/Banners/SeaFloatyBanner.cs | 3 +- Items/Placeables/Banners/SeaMinnowBanner.cs | 3 +- Items/Placeables/Banners/SeaSerpentBanner.cs | 3 +- Items/Placeables/Banners/SeaUrchinBanner.cs | 3 +- .../Banners/ShockstormShuttleBanner.cs | 3 +- Items/Placeables/Banners/SkyfinBanner.cs | 3 +- .../Banners/SmallSightseerBanner.cs | 3 +- Items/Placeables/Banners/SoulSluperBanner.cs | 3 +- .../Placeables/Banners/StellarCulexBanner.cs | 3 +- Items/Placeables/Banners/StormlionBanner.cs | 3 +- .../Banners/SulfurousSkaterBanner.cs | 3 +- Items/Placeables/Banners/SunBatBanner.cs | 3 +- Items/Placeables/Banners/SunskaterBanner.cs | 3 +- .../Placeables/Banners/TopazCrawlerBanner.cs | 3 +- Items/Placeables/Banners/ToxicMinnowBanner.cs | 3 +- Items/Placeables/Banners/TrasherBanner.cs | 3 +- Items/Placeables/Banners/TrilobiteBanner.cs | 3 +- Items/Placeables/Banners/ViperfishBanner.cs | 3 +- Items/Placeables/Banners/VirulingBanner.cs | 3 +- Items/Placeables/Banners/WaterLeechBanner.cs | 3 +- .../Placeables/Banners/WulfrumDroneBanner.cs | 3 +- .../Placeables/Banners/WulfrumSlimeBanner.cs | 3 +- Items/Placeables/BrimstoneSlag.cs | 5 +- Items/Placeables/ChaoticBrick.cs | 6 +- Items/Placeables/Cinderplate.cs | 4 +- Items/Placeables/CryonicBrick.cs | 4 +- Items/Placeables/EutrophicSand.cs | 8 +- Items/Placeables/Furniture/AstralChest.cs | 4 +- .../Furniture/BabyFlakHermitCage.cs | 2 +- .../Placeables/Furniture/BabyGhostBellJar.cs | 2 +- Items/Placeables/Furniture/BlueCandle.cs | 3 +- Items/Placeables/Furniture/ChaosCandle.cs | 4 +- .../Placeables/Furniture/CorruptionEffigy.cs | 3 +- .../CraftingStations/AncientAltar.cs | 2 +- .../Furniture/CraftingStations/AshenAltar.cs | 2 +- .../CraftingStations/BotanicPlanter.cs | 4 +- .../CraftingStations/DraedonsForge.cs | 2 +- .../CraftingStations/EutrophicCrafting.cs | 2 +- .../CraftingStations/MonolithCrafting.cs | 2 +- .../CraftingStations/PlagueInfuser.cs | 2 +- .../CraftingStations/ProfanedBasin.cs | 5 +- .../Furniture/CraftingStations/SilvaBasin.cs | 2 +- .../CraftingStations/StaticRefiner.cs | 3 +- .../CraftingStations/VoidCondenser.cs | 2 +- Items/Placeables/Furniture/CrimsonEffigy.cs | 3 +- Items/Placeables/Furniture/EffigyOfDecay.cs | 2 +- .../Furniture/Fountains/AbyssFountainItem.cs | 3 +- .../Furniture/Fountains/AstralFountainItem.cs | 3 +- .../Fountains/SulphurousFountainItem.cs | 3 +- .../Furniture/Fountains/SunkenSeaFountain.cs | 3 +- Items/Placeables/Furniture/PiggyCage.cs | 2 +- Items/Placeables/Furniture/PinkCandle.cs | 3 +- Items/Placeables/Furniture/PurpleCandle.cs | 3 +- Items/Placeables/Furniture/RustyChest.cs | 2 +- Items/Placeables/Furniture/SeaMinnowJar.cs | 2 +- .../Placeables/Furniture/TranquilityCandle.cs | 4 +- .../Trophies/AquaticScourgeTrophy.cs | 4 +- .../Furniture/Trophies/AstrageldonTrophy.cs | 4 +- .../Furniture/Trophies/AstrumDeusTrophy.cs | 4 +- .../Trophies/BrimstoneElementalTrophy.cs | 4 +- .../Furniture/Trophies/BumblebirbTrophy.cs | 4 +- .../Furniture/Trophies/CalamitasTrophy.cs | 4 +- .../Furniture/Trophies/CataclysmTrophy.cs | 4 +- .../Furniture/Trophies/CatastropheTrophy.cs | 4 +- .../Furniture/Trophies/CeaselessVoidTrophy.cs | 4 +- .../Furniture/Trophies/CrabulonTrophy.cs | 4 +- .../Furniture/Trophies/CryogenTrophy.cs | 4 +- .../Furniture/Trophies/DesertScourgeTrophy.cs | 4 +- .../Trophies/DevourerofGodsTrophy.cs | 4 +- .../Furniture/Trophies/HiveMindTrophy.cs | 3 +- .../Furniture/Trophies/LeviathanTrophy.cs | 3 +- .../Furniture/Trophies/OldDukeTrophy.cs | 3 +- .../Furniture/Trophies/PerforatorTrophy.cs | 3 +- .../Trophies/PlaguebringerGoliathTrophy.cs | 3 +- .../Furniture/Trophies/PolterghastTrophy.cs | 3 +- .../Trophies/ProfanedGuardianTrophy.cs | 3 +- .../Furniture/Trophies/ProvidenceTrophy.cs | 3 +- .../Furniture/Trophies/RavagerTrophy.cs | 3 +- .../Furniture/Trophies/SignusTrophy.cs | 3 +- .../Furniture/Trophies/SlimeGodTrophy.cs | 3 +- .../Trophies/SupremeCalamitasTrophy.cs | 3 +- .../Furniture/Trophies/WeaverTrophy.cs | 3 +- .../Furniture/Trophies/YharonTrophy.cs | 3 +- .../Placeables/Furniture/TwinklerInABottle.cs | 2 +- Items/Placeables/Furniture/YellowCandle.cs | 3 +- Items/Placeables/FurnitureAbyss/AbyssBath.cs | 4 +- Items/Placeables/FurnitureAbyss/AbyssBed.cs | 2 +- .../FurnitureAbyss/AbyssBookcase.cs | 2 +- .../FurnitureAbyss/AbyssCandelabra.cs | 4 +- .../Placeables/FurnitureAbyss/AbyssCandle.cs | 4 +- Items/Placeables/FurnitureAbyss/AbyssChair.cs | 4 +- .../FurnitureAbyss/AbyssChandelier.cs | 2 +- Items/Placeables/FurnitureAbyss/AbyssChest.cs | 2 +- Items/Placeables/FurnitureAbyss/AbyssClock.cs | 2 +- Items/Placeables/FurnitureAbyss/AbyssDoor.cs | 4 +- .../Placeables/FurnitureAbyss/AbyssDresser.cs | 4 +- Items/Placeables/FurnitureAbyss/AbyssLamp.cs | 4 +- .../Placeables/FurnitureAbyss/AbyssLantern.cs | 4 +- Items/Placeables/FurnitureAbyss/AbyssPiano.cs | 2 +- Items/Placeables/FurnitureAbyss/AbyssSink.cs | 2 +- Items/Placeables/FurnitureAbyss/AbyssSofa.cs | 2 +- Items/Placeables/FurnitureAbyss/AbyssTable.cs | 4 +- Items/Placeables/FurnitureAbyss/AbyssTorch.cs | 2 +- .../FurnitureAbyss/AbyssWorkbench.cs | 4 +- .../FurnitureAbyss/SmoothAbyssGravel.cs | 4 +- .../SmoothAbyssGravelPlatform.cs | 3 +- .../FurnitureAncient/AncientBasin.cs | 4 +- .../FurnitureAncient/AncientBath.cs | 4 +- .../Placeables/FurnitureAncient/AncientBed.cs | 2 +- .../FurnitureAncient/AncientBookcase.cs | 2 +- .../FurnitureAncient/AncientChair.cs | 4 +- .../FurnitureAncient/AncientChandelier.cs | 2 +- .../FurnitureAncient/AncientDoor.cs | 4 +- .../FurnitureAncient/AncientDresser.cs | 4 +- .../FurnitureAncient/AncientLamp.cs | 4 +- .../FurnitureAncient/AncientLantern.cs | 2 +- .../FurnitureAncient/AncientMonolith.cs | 4 +- .../FurnitureAncient/AncientPiano.cs | 2 +- .../FurnitureAncient/AncientSink.cs | 2 +- .../FurnitureAncient/AncientSofa.cs | 2 +- .../FurnitureAncient/AncientTable.cs | 4 +- .../FurnitureAncient/AncientWorkbench.cs | 4 +- Items/Placeables/FurnitureAshen/AshenBasin.cs | 4 +- Items/Placeables/FurnitureAshen/AshenBath.cs | 4 +- Items/Placeables/FurnitureAshen/AshenBed.cs | 2 +- .../FurnitureAshen/AshenBookcase.cs | 2 +- .../FurnitureAshen/AshenCandelabra.cs | 4 +- .../Placeables/FurnitureAshen/AshenCandle.cs | 4 +- Items/Placeables/FurnitureAshen/AshenChair.cs | 4 +- .../FurnitureAshen/AshenChandelier.cs | 2 +- Items/Placeables/FurnitureAshen/AshenChest.cs | 2 +- Items/Placeables/FurnitureAshen/AshenDoor.cs | 4 +- .../Placeables/FurnitureAshen/AshenDresser.cs | 4 +- Items/Placeables/FurnitureAshen/AshenLamp.cs | 4 +- .../Placeables/FurnitureAshen/AshenLantern.cs | 4 +- .../FurnitureAshen/AshenMonolith.cs | 4 +- Items/Placeables/FurnitureAshen/AshenPiano.cs | 2 +- .../FurnitureAshen/AshenPlatform.cs | 4 +- Items/Placeables/FurnitureAshen/AshenSink.cs | 2 +- Items/Placeables/FurnitureAshen/AshenSlab.cs | 4 +- Items/Placeables/FurnitureAshen/AshenSofa.cs | 2 +- Items/Placeables/FurnitureAshen/AshenTable.cs | 4 +- .../FurnitureAshen/AshenWorkbench.cs | 4 +- .../FurnitureAshen/SmoothBrimstoneSlag.cs | 4 +- .../FurnitureAstral/MonolithBathtub.cs | 3 +- .../Placeables/FurnitureAstral/MonolithBed.cs | 2 +- .../FurnitureAstral/MonolithBench.cs | 2 +- .../FurnitureAstral/MonolithBookcase.cs | 2 +- .../FurnitureAstral/MonolithCandelabra.cs | 3 +- .../FurnitureAstral/MonolithCandle.cs | 3 +- .../FurnitureAstral/MonolithChair.cs | 3 +- .../FurnitureAstral/MonolithChandelier.cs | 3 +- .../FurnitureAstral/MonolithChest.cs | 2 +- .../FurnitureAstral/MonolithClock.cs | 2 +- .../FurnitureAstral/MonolithDoor.cs | 3 +- .../FurnitureAstral/MonolithDresser.cs | 3 +- .../FurnitureAstral/MonolithLamp.cs | 3 +- .../FurnitureAstral/MonolithLantern.cs | 3 +- .../FurnitureAstral/MonolithPiano.cs | 2 +- .../FurnitureAstral/MonolithPlatform.cs | 3 +- .../FurnitureAstral/MonolithSink.cs | 2 +- .../FurnitureAstral/MonolithTable.cs | 3 +- .../FurnitureAstral/MonolithWorkBench.cs | 3 +- .../FurnitureBotanic/BotanicBathtub.cs | 4 +- .../Placeables/FurnitureBotanic/BotanicBed.cs | 2 +- .../FurnitureBotanic/BotanicBench.cs | 2 +- .../FurnitureBotanic/BotanicBookcase.cs | 2 +- .../FurnitureBotanic/BotanicCandelabra.cs | 2 +- .../FurnitureBotanic/BotanicCandle.cs | 2 +- .../FurnitureBotanic/BotanicChair.cs | 4 +- .../FurnitureBotanic/BotanicChandelier.cs | 2 +- .../FurnitureBotanic/BotanicChest.cs | 2 +- .../FurnitureBotanic/BotanicClock.cs | 2 +- .../FurnitureBotanic/BotanicDoor.cs | 4 +- .../FurnitureBotanic/BotanicDresser.cs | 4 +- .../FurnitureBotanic/BotanicLamp.cs | 2 +- .../FurnitureBotanic/BotanicLantern.cs | 2 +- .../FurnitureBotanic/BotanicPiano.cs | 2 +- .../FurnitureBotanic/BotanicPlatform.cs | 4 +- .../FurnitureBotanic/BotanicSink.cs | 2 +- .../FurnitureBotanic/BotanicTable.cs | 4 +- .../FurnitureBotanic/BotanicWorkBench.cs | 4 +- .../FurnitureCosmilite/CosmiliteBasin.cs | 2 +- .../FurnitureCosmilite/CosmiliteBath.cs | 4 +- .../FurnitureCosmilite/CosmiliteBed.cs | 2 +- .../FurnitureCosmilite/CosmiliteBookcase.cs | 2 +- .../FurnitureCosmilite/CosmiliteBrick.cs | 6 +- .../FurnitureCosmilite/CosmiliteCandelabra.cs | 2 +- .../FurnitureCosmilite/CosmiliteCandle.cs | 2 +- .../FurnitureCosmilite/CosmiliteChair.cs | 4 +- .../FurnitureCosmilite/CosmiliteChandelier.cs | 2 +- .../FurnitureCosmilite/CosmiliteChest.cs | 2 +- .../FurnitureCosmilite/CosmiliteClock.cs | 2 +- .../FurnitureCosmilite/CosmiliteDoor.cs | 4 +- .../FurnitureCosmilite/CosmiliteDresser.cs | 4 +- .../FurnitureCosmilite/CosmiliteLamp.cs | 2 +- .../FurnitureCosmilite/CosmiliteLantern.cs | 2 +- .../FurnitureCosmilite/CosmilitePiano.cs | 2 +- .../FurnitureCosmilite/CosmilitePlatform.cs | 4 +- .../FurnitureCosmilite/CosmiliteSconce.cs | 2 +- .../FurnitureCosmilite/CosmiliteSink.cs | 2 +- .../FurnitureCosmilite/CosmiliteSofa.cs | 2 +- .../FurnitureCosmilite/CosmiliteTable.cs | 3 +- .../FurnitureCosmilite/CosmiliteWorkbench.cs | 4 +- .../FurnitureEutrophic/EutrophicBathtub.cs | 4 +- .../FurnitureEutrophic/EutrophicBed.cs | 2 +- .../FurnitureEutrophic/EutrophicBench.cs | 4 +- .../FurnitureEutrophic/EutrophicBookcase.cs | 2 +- .../FurnitureEutrophic/EutrophicCandelabra.cs | 4 +- .../FurnitureEutrophic/EutrophicCandle.cs | 4 +- .../FurnitureEutrophic/EutrophicChair.cs | 4 +- .../FurnitureEutrophic/EutrophicChandelier.cs | 4 +- .../FurnitureEutrophic/EutrophicChest.cs | 4 +- .../FurnitureEutrophic/EutrophicClock.cs | 4 +- .../FurnitureEutrophic/EutrophicDoor.cs | 4 +- .../FurnitureEutrophic/EutrophicDresser.cs | 4 +- .../FurnitureEutrophic/EutrophicLamp.cs | 4 +- .../FurnitureEutrophic/EutrophicLantern.cs | 4 +- .../FurnitureEutrophic/EutrophicPiano.cs | 2 +- .../FurnitureEutrophic/EutrophicPlatform.cs | 4 +- .../FurnitureEutrophic/EutrophicSink.cs | 2 +- .../FurnitureEutrophic/EutrophicTable.cs | 4 +- .../FurnitureEutrophic/EutrophicWorkBench.cs | 4 +- .../FurnitureEutrophic/SmoothNavystone.cs | 4 +- .../FurnitureOccult/OccultBathtub.cs | 3 +- Items/Placeables/FurnitureOccult/OccultBed.cs | 2 +- .../FurnitureOccult/OccultBookcase.cs | 2 +- .../FurnitureOccult/OccultCandelabra.cs | 3 +- .../FurnitureOccult/OccultCandle.cs | 3 +- .../Placeables/FurnitureOccult/OccultChair.cs | 3 +- .../FurnitureOccult/OccultChandelier.cs | 3 +- .../Placeables/FurnitureOccult/OccultChest.cs | 3 +- .../Placeables/FurnitureOccult/OccultClock.cs | 2 +- .../Placeables/FurnitureOccult/OccultDoor.cs | 3 +- .../FurnitureOccult/OccultDresser.cs | 3 +- .../Placeables/FurnitureOccult/OccultLamp.cs | 3 +- .../FurnitureOccult/OccultLantern.cs | 3 +- .../Placeables/FurnitureOccult/OccultPiano.cs | 2 +- .../FurnitureOccult/OccultPlatform.cs | 3 +- .../Placeables/FurnitureOccult/OccultSink.cs | 2 +- .../Placeables/FurnitureOccult/OccultSofa.cs | 2 +- .../Placeables/FurnitureOccult/OccultStone.cs | 6 +- .../Placeables/FurnitureOccult/OccultTable.cs | 3 +- .../FurnitureOccult/OccultWorkBench.cs | 3 +- .../FurniturePlaguedPlate/PlaguedPlate.cs | 4 +- .../PlaguedPlateBasin.cs | 2 +- .../PlaguedPlateBathtub.cs | 3 +- .../FurniturePlaguedPlate/PlaguedPlateBed.cs | 3 +- .../PlaguedPlateBookcase.cs | 2 +- .../PlaguedPlateCandelabra.cs | 2 +- .../PlaguedPlateCandle.cs | 2 +- .../PlaguedPlateChair.cs | 3 +- .../PlaguedPlateChandelier.cs | 2 +- .../PlaguedPlateChest.cs | 2 +- .../PlaguedPlateClock.cs | 2 +- .../FurniturePlaguedPlate/PlaguedPlateDoor.cs | 3 +- .../PlaguedPlateDresser.cs | 3 +- .../FurniturePlaguedPlate/PlaguedPlateLamp.cs | 2 +- .../PlaguedPlateLantern.cs | 2 +- .../PlaguedPlatePiano.cs | 2 +- .../PlaguedPlatePlatform.cs | 3 +- .../FurniturePlaguedPlate/PlaguedPlateSink.cs | 2 +- .../FurniturePlaguedPlate/PlaguedPlateSofa.cs | 2 +- .../PlaguedPlateTable.cs | 3 +- .../PlaguedPlateWorkbench.cs | 3 +- .../FurnitureProfaned/ProfanedBath.cs | 3 +- .../FurnitureProfaned/ProfanedBed.cs | 2 +- .../FurnitureProfaned/ProfanedBench.cs | 2 +- .../FurnitureProfaned/ProfanedBookcase.cs | 2 +- .../FurnitureProfaned/ProfanedCandelabra.cs | 2 +- .../FurnitureProfaned/ProfanedCandle.cs | 2 +- .../FurnitureProfaned/ProfanedChair.cs | 3 +- .../FurnitureProfaned/ProfanedChandelier.cs | 2 +- .../FurnitureProfaned/ProfanedChest.cs | 2 +- .../FurnitureProfaned/ProfanedClock.cs | 2 +- .../FurnitureProfaned/ProfanedCrystal.cs | 6 +- .../FurnitureProfaned/ProfanedDoor.cs | 3 +- .../FurnitureProfaned/ProfanedDresser.cs | 3 +- .../FurnitureProfaned/ProfanedLamp.cs | 2 +- .../FurnitureProfaned/ProfanedLantern.cs | 2 +- .../FurnitureProfaned/ProfanedPiano.cs | 2 +- .../FurnitureProfaned/ProfanedPlatform.cs | 5 +- .../FurnitureProfaned/ProfanedRock.cs | 10 +- .../FurnitureProfaned/ProfanedSink.cs | 2 +- .../FurnitureProfaned/ProfanedSlab.cs | 6 +- .../FurnitureProfaned/ProfanedTable.cs | 3 +- .../FurnitureProfaned/ProfanedWorkbench.cs | 3 +- .../FurnitureProfaned/RunicProfanedBrick.cs | 6 +- .../Placeables/FurnitureSilva/SilvaBathtub.cs | 3 +- Items/Placeables/FurnitureSilva/SilvaBed.cs | 2 +- Items/Placeables/FurnitureSilva/SilvaBench.cs | 3 +- .../FurnitureSilva/SilvaBookcase.cs | 2 +- .../FurnitureSilva/SilvaCandelabra.cs | 3 +- .../Placeables/FurnitureSilva/SilvaCandle.cs | 3 +- Items/Placeables/FurnitureSilva/SilvaChair.cs | 3 +- .../FurnitureSilva/SilvaChandelier.cs | 2 +- Items/Placeables/FurnitureSilva/SilvaChest.cs | 2 +- Items/Placeables/FurnitureSilva/SilvaClock.cs | 2 +- .../Placeables/FurnitureSilva/SilvaCrystal.cs | 4 +- Items/Placeables/FurnitureSilva/SilvaDoor.cs | 3 +- .../Placeables/FurnitureSilva/SilvaDresser.cs | 3 +- Items/Placeables/FurnitureSilva/SilvaLamp.cs | 3 +- .../Placeables/FurnitureSilva/SilvaLantern.cs | 3 +- Items/Placeables/FurnitureSilva/SilvaPiano.cs | 2 +- .../FurnitureSilva/SilvaPlatform.cs | 3 +- Items/Placeables/FurnitureSilva/SilvaSink.cs | 2 +- Items/Placeables/FurnitureSilva/SilvaTable.cs | 3 +- .../FurnitureSilva/SilvaWorkBench.cs | 3 +- .../FurnitureStatigel/StatigelBath.cs | 3 +- .../FurnitureStatigel/StatigelBed.cs | 2 +- .../FurnitureStatigel/StatigelBlock.cs | 4 +- .../FurnitureStatigel/StatigelBookcase.cs | 2 +- .../FurnitureStatigel/StatigelCandelabra.cs | 2 +- .../FurnitureStatigel/StatigelCandle.cs | 2 +- .../FurnitureStatigel/StatigelChair.cs | 3 +- .../FurnitureStatigel/StatigelChandelier.cs | 2 +- .../FurnitureStatigel/StatigelChest.cs | 2 +- .../FurnitureStatigel/StatigelClock.cs | 2 +- .../FurnitureStatigel/StatigelDoor.cs | 3 +- .../FurnitureStatigel/StatigelDresser.cs | 3 +- .../FurnitureStatigel/StatigelLamp.cs | 2 +- .../FurnitureStatigel/StatigelLantern.cs | 2 +- .../FurnitureStatigel/StatigelPiano.cs | 2 +- .../FurnitureStatigel/StatigelPlatform.cs | 3 +- .../FurnitureStatigel/StatigelSink.cs | 2 +- .../FurnitureStatigel/StatigelSofa.cs | 2 +- .../FurnitureStatigel/StatigelTable.cs | 3 +- .../FurnitureStatigel/StatigelWorkbench.cs | 4 +- .../FurnitureStratus/StratusBathtub.cs | 5 +- .../Placeables/FurnitureStratus/StratusBed.cs | 4 +- .../FurnitureStratus/StratusBookcase.cs | 4 +- .../FurnitureStratus/StratusBricks.cs | 8 +- .../FurnitureStratus/StratusCandelabra.cs | 5 +- .../FurnitureStratus/StratusCandle.cs | 5 +- .../FurnitureStratus/StratusChair.cs | 5 +- .../FurnitureStratus/StratusChandelier.cs | 4 +- .../FurnitureStratus/StratusChest.cs | 4 +- .../FurnitureStratus/StratusClock.cs | 4 +- .../FurnitureStratus/StratusDoor.cs | 5 +- .../FurnitureStratus/StratusDresser.cs | 5 +- .../FurnitureStratus/StratusLamp.cs | 5 +- .../FurnitureStratus/StratusLantern.cs | 5 +- .../FurnitureStratus/StratusPiano.cs | 4 +- .../FurnitureStratus/StratusPlatform.cs | 5 +- .../FurnitureStratus/StratusSink.cs | 4 +- .../FurnitureStratus/StratusSofa.cs | 4 +- .../FurnitureStratus/StratusTable.cs | 5 +- .../FurnitureStratus/StratusWorkbench.cs | 5 +- .../FurnitureVoid/SmoothVoidstone.cs | 4 +- .../FurnitureVoid/SmoothVoidstonePlatform.cs | 3 +- Items/Placeables/FurnitureVoid/VoidBath.cs | 4 +- Items/Placeables/FurnitureVoid/VoidBed.cs | 2 +- .../Placeables/FurnitureVoid/VoidBookcase.cs | 2 +- .../FurnitureVoid/VoidCandelabra.cs | 3 +- Items/Placeables/FurnitureVoid/VoidCandle.cs | 3 +- Items/Placeables/FurnitureVoid/VoidChair.cs | 3 +- .../FurnitureVoid/VoidChandelier.cs | 2 +- Items/Placeables/FurnitureVoid/VoidChest.cs | 2 +- Items/Placeables/FurnitureVoid/VoidClock.cs | 2 +- Items/Placeables/FurnitureVoid/VoidDoor.cs | 3 +- Items/Placeables/FurnitureVoid/VoidDresser.cs | 3 +- Items/Placeables/FurnitureVoid/VoidLamp.cs | 3 +- Items/Placeables/FurnitureVoid/VoidLantern.cs | 3 +- Items/Placeables/FurnitureVoid/VoidPiano.cs | 2 +- Items/Placeables/FurnitureVoid/VoidSink.cs | 2 +- Items/Placeables/FurnitureVoid/VoidSofa.cs | 2 +- Items/Placeables/FurnitureVoid/VoidTable.cs | 3 +- .../Placeables/FurnitureVoid/VoidWorkbench.cs | 3 +- .../Placeables/FurnitureVoid/VoidstoneSlab.cs | 4 +- Items/Placeables/HardenedAstralSand.cs | 7 +- .../Placeables/HardenedSulphurousSandstone.cs | 4 +- .../LivingFire/LivingBrimstoneFireBlock.cs | 2 +- .../LivingFire/LivingGodSlayerFireBlock.cs | 2 +- .../LivingFire/LivingHolyFireBlock.cs | 2 +- Items/Placeables/Navystone.cs | 7 +- Items/Placeables/Ores/AerialiteOre.cs | 5 +- Items/Placeables/Ores/AstralOre.cs | 5 +- Items/Placeables/Ores/AuricOre.cs | 5 +- Items/Placeables/Ores/ChaoticOre.cs | 5 +- Items/Placeables/Ores/CharredOre.cs | 5 +- Items/Placeables/Ores/CryonicOre.cs | 5 +- Items/Placeables/Ores/ExodiumClusterOre.cs | 4 +- Items/Placeables/Ores/PerennialOre.cs | 5 +- Items/Placeables/Ores/UelibloomOre.cs | 5 +- Items/Placeables/PerennialBrick.cs | 4 +- Items/Placeables/PlantyMush.cs | 5 +- Items/Placeables/PrismShard.cs | 5 +- Items/Placeables/SeaPrism.cs | 4 +- Items/Placeables/SulphurousSand.cs | 7 +- Items/Placeables/SulphurousSandstone.cs | 7 +- Items/Placeables/Tenebris.cs | 5 +- Items/Placeables/UelibloomBrick.cs | 4 +- Items/Placeables/Voidstone.cs | 4 +- Items/Placeables/Walls/AbyssGravelWallItem.cs | 4 +- Items/Placeables/Walls/AerialiteBrickWall.cs | 6 +- Items/Placeables/Walls/AshenSlabWall.cs | 6 +- Items/Placeables/Walls/AstralBrickWall.cs | 6 +- Items/Placeables/Walls/AstralDirtWall.cs | 8 +- Items/Placeables/Walls/AstralFossilWall.cs | 8 +- Items/Placeables/Walls/AstralGrassWall.cs | 6 +- Items/Placeables/Walls/AstralIceWall.cs | 8 +- Items/Placeables/Walls/AstralMonolithWall.cs | 4 +- Items/Placeables/Walls/AstralSandstoneWall.cs | 8 +- Items/Placeables/Walls/AstralSnowWall.cs | 8 +- Items/Placeables/Walls/AstralStoneWall.cs | 8 +- Items/Placeables/Walls/BlueBrickWallUnsafe.cs | 4 +- Items/Placeables/Walls/BlueSlabWallUnsafe.cs | 4 +- Items/Placeables/Walls/BlueTiledWallUnsafe.cs | 4 +- Items/Placeables/Walls/BrimstoneSlagWall.cs | 6 +- Items/Placeables/Walls/ChaoticBrickWall.cs | 6 +- Items/Placeables/Walls/CinderplateWall.cs | 4 +- Items/Placeables/Walls/CosmiliteBrickWall.cs | 6 +- Items/Placeables/Walls/CryonicBrickWall.cs | 6 +- Items/Placeables/Walls/EutrophicSandWall.cs | 4 +- .../Placeables/Walls/EutrophicSandWallSafe.cs | 6 +- .../Placeables/Walls/GreenBrickWallUnsafe.cs | 4 +- Items/Placeables/Walls/GreenSlabWallUnsafe.cs | 4 +- .../Placeables/Walls/GreenTiledWallUnsafe.cs | 4 +- .../Walls/HardenedAstralSandWall.cs | 7 +- .../Walls/HardenedSulphurousSandstoneWall.cs | 7 +- Items/Placeables/Walls/NavystoneWall.cs | 5 +- Items/Placeables/Walls/NavystoneWallSafe.cs | 5 +- Items/Placeables/Walls/OccultStoneWall.cs | 5 +- Items/Placeables/Walls/PerennialBrickWall.cs | 5 +- Items/Placeables/Walls/PinkBrickWallUnsafe.cs | 4 +- Items/Placeables/Walls/PinkSlabWallUnsafe.cs | 4 +- Items/Placeables/Walls/PinkTiledWallUnsafe.cs | 4 +- Items/Placeables/Walls/PlaguedPlateWall.cs | 3 +- Items/Placeables/Walls/ProfanedCrystalWall.cs | 5 +- Items/Placeables/Walls/ProfanedRockWall.cs | 5 +- Items/Placeables/Walls/ProfanedSlabWall.cs | 5 +- .../Walls/RunicProfanedBrickWall.cs | 5 +- Items/Placeables/Walls/SilvaWall.cs | 3 +- .../Placeables/Walls/SmoothAbyssGravelWall.cs | 3 +- .../Walls/SmoothBrimstoneSlagWall.cs | 5 +- Items/Placeables/Walls/SmoothNavystoneWall.cs | 5 +- Items/Placeables/Walls/SmoothVoidstoneWall.cs | 2 +- Items/Placeables/Walls/StatigelWall.cs | 3 +- Items/Placeables/Walls/StratusWall.cs | 5 +- Items/Placeables/Walls/SulphurousSandWall.cs | 8 +- .../Walls/SulphurousSandstoneWall.cs | 5 +- Items/Placeables/Walls/UelibloomBrickWall.cs | 3 +- Items/Placeables/Walls/VoidstoneSlabWall.cs | 2 +- Items/Placeables/Walls/VoidstoneWall.cs | 2 +- Items/Potions/Alcohol/BloodyMary.cs | 2 +- Items/Potions/Alcohol/CaribbeanRum.cs | 2 +- Items/Potions/Alcohol/CinnamonRoll.cs | 2 +- Items/Potions/Alcohol/Everclear.cs | 2 +- Items/Potions/Alcohol/EvergreenGin.cs | 2 +- Items/Potions/Alcohol/FabsolsVodka.cs | 4 +- Items/Potions/Alcohol/Fireball.cs | 2 +- Items/Potions/Alcohol/GrapeBeer.cs | 2 +- Items/Potions/Alcohol/Margarita.cs | 2 +- Items/Potions/Alcohol/Moonshine.cs | 2 +- Items/Potions/Alcohol/MoscowMule.cs | 2 +- Items/Potions/Alcohol/OddMushroom.cs | 4 +- Items/Potions/Alcohol/RedWine.cs | 2 +- Items/Potions/Alcohol/Rum.cs | 2 +- Items/Potions/Alcohol/Screwdriver.cs | 2 +- Items/Potions/Alcohol/StarBeamRye.cs | 2 +- Items/Potions/Alcohol/Tequila.cs | 2 +- Items/Potions/Alcohol/TequilaSunrise.cs | 2 +- Items/Potions/Alcohol/Vodka.cs | 2 +- Items/Potions/Alcohol/Whiskey.cs | 2 +- Items/Potions/Alcohol/WhiteWine.cs | 2 +- Items/Potions/AnechoicCoating.cs | 4 +- Items/Potions/AstralInjection.cs | 4 +- Items/Potions/AstralJelly.cs | 4 +- Items/Potions/Baguette.cs | 4 +- Items/Potions/BoundingPotion.cs | 4 +- Items/Potions/CadencePotion.cs | 4 +- Items/Potions/CalamitasBrew.cs | 4 +- Items/Potions/CalciumPotion.cs | 4 +- Items/Potions/CeaselessHungerPotion.cs | 4 +- Items/Potions/CrumblingPotion.cs | 4 +- Items/Potions/DeliciousMeat.cs | 2 +- Items/Potions/DraconicElixir.cs | 4 +- Items/Potions/GravityNormalizerPotion.cs | 4 +- Items/Potions/HolyWrathPotion.cs | 4 +- Items/Potions/OmegaHealingPotion.cs | 4 +- Items/Potions/PenumbraPotion.cs | 4 +- Items/Potions/PhotosynthesisPotion.cs | 4 +- Items/Potions/PotionofOmniscience.cs | 4 +- Items/Potions/ProfanedRagePotion.cs | 4 +- Items/Potions/PurifiedJam.cs | 4 +- Items/Potions/RevivifyPotion.cs | 4 +- Items/Potions/ShatteringPotion.cs | 4 +- Items/Potions/SoaringPotion.cs | 4 +- Items/Potions/SulphurskinPotion.cs | 2 +- Items/Potions/SunkenStew.cs | 4 +- Items/Potions/SupremeHealingPotion.cs | 4 +- Items/Potions/SupremeManaPotion.cs | 4 +- Items/Potions/TeslaPotion.cs | 2 +- Items/Potions/TitanScalePotion.cs | 4 +- Items/Potions/TriumphPotion.cs | 4 +- Items/Potions/YharimsStimulants.cs | 4 +- Items/Potions/ZenPotion.cs | 4 +- Items/Potions/ZergPotion.cs | 4 +- Items/Rock.cs | 2 +- Items/SummonItems/Abomination.cs | 4 +- Items/SummonItems/AncientMedallion.cs | 4 +- Items/SummonItems/AstralChunk.cs | 4 +- Items/SummonItems/BirbPheromones.cs | 4 +- Items/SummonItems/BlightedEyeball.cs | 4 +- Items/SummonItems/BloodwormItem.cs | 5 +- Items/SummonItems/BloodyWormFood.cs | 4 +- Items/SummonItems/BossRush.cs | 4 +- Items/SummonItems/BulbofDoom.cs | 4 +- Items/SummonItems/CharredIdol.cs | 4 +- Items/SummonItems/ChickenEgg.cs | 4 +- Items/SummonItems/CosmicWorm.cs | 4 +- Items/SummonItems/CryoKey.cs | 4 +- Items/SummonItems/DecapoditaSprout.cs | 4 +- Items/SummonItems/DraedonsRemote.cs | 4 +- Items/SummonItems/DriedSeafood.cs | 4 +- Items/SummonItems/EidolonTablet.cs | 4 +- Items/SummonItems/EyeofExtinction.cs | 4 +- Items/SummonItems/Invasion/CausticTear.cs | 4 +- .../Invasion/CausticTearNonConsumable.cs | 4 +- Items/SummonItems/NecroplasmicBeacon.cs | 4 +- Items/SummonItems/OldPowerCell.cs | 4 +- Items/SummonItems/OverloadedSludge.cs | 4 +- Items/SummonItems/ProfanedCore.cs | 4 +- Items/SummonItems/ProfanedCoreUnlimited.cs | 4 +- Items/SummonItems/ProfanedShard.cs | 4 +- Items/SummonItems/RuneofCos.cs | 4 +- Items/SummonItems/SandstormsCore.cs | 4 +- Items/SummonItems/Seafood.cs | 4 +- Items/SummonItems/Starcore.cs | 4 +- Items/SummonItems/Teratoma.cs | 4 +- Items/SuperDummy.cs | 2 +- Items/Tools/AbyssalWarhammer.cs | 4 +- Items/Tools/AerialHamaxe.cs | 4 +- Items/Tools/AstralHamaxe.cs | 4 +- Items/Tools/AstralPickaxe.cs | 2 +- Items/Tools/BeastialPickaxe.cs | 2 +- Items/Tools/BerserkerWaraxe.cs | 4 +- Items/Tools/BlossomPickaxe.cs | 2 +- Items/Tools/ChaoswarpedSlashaxe.cs | 4 +- Items/Tools/ClimateChange/AridArtifact.cs | 4 +- Items/Tools/ClimateChange/BloodIdol.cs | 4 +- Items/Tools/ClimateChange/Cosmolight.cs | 4 +- Items/Tools/ClimateChange/Daylight.cs | 4 +- Items/Tools/ClimateChange/Moonlight.cs | 4 +- Items/Tools/ClimateChange/TorrentialTear.cs | 4 +- Items/Tools/CrystylCrusher.cs | 8 +- Items/Tools/FellerofEvergreens.cs | 2 +- Items/Tools/FlamebeakHampick.cs | 2 +- Items/Tools/GallantPickaxe.cs | 2 +- Items/Tools/Gelpick.cs | 2 +- Items/Tools/Grax.cs | 2 +- Items/Tools/GreatbayPickaxe.cs | 2 +- Items/Tools/InfernaCutter.cs | 2 +- Items/Tools/MarniteObliterator.cs | 2 +- Items/Tools/PurityAxe.cs | 4 +- Items/Tools/ReefclawHamaxe.cs | 4 +- Items/Tools/ShardlightPickaxe.cs | 2 +- Items/Tools/SkyfringePickaxe.cs | 2 +- Items/Tools/WulfrumAxe.cs | 4 +- Items/Tools/WulfrumHammer.cs | 4 +- Items/Tools/WulfrumPickaxe.cs | 2 +- Items/Weapons/DraedonsArsenal/GatlingLaser.cs | 2 +- Items/Weapons/DraedonsArsenal/LaserRifle.cs | 2 +- Items/Weapons/DraedonsArsenal/PlasmaCaster.cs | 2 +- Items/Weapons/DraedonsArsenal/PulseRifle.cs | 2 +- Items/Weapons/DraedonsArsenal/TeslaCannon.cs | 2 +- Items/Weapons/Magic/AbyssShocker.cs | 2 +- Items/Weapons/Magic/AbyssalTome.cs | 2 +- Items/Weapons/Magic/AlphaRay.cs | 2 +- Items/Weapons/Magic/ApoctosisArray.cs | 2 +- Items/Weapons/Magic/Apotheosis.cs | 2 +- Items/Weapons/Magic/AquamarineStaff.cs | 2 +- Items/Weapons/Magic/ArchAmaryllis.cs | 2 +- Items/Weapons/Magic/ArcticBearPaw.cs | 2 +- Items/Weapons/Magic/AsteroidStaff.cs | 2 +- Items/Weapons/Magic/AstralStaff.cs | 2 +- Items/Weapons/Magic/AstralachneaStaff.cs | 2 +- Items/Weapons/Magic/Atlantis.cs | 2 +- Items/Weapons/Magic/AuguroftheElements.cs | 2 +- Items/Weapons/Magic/BelchingSaxophone.cs | 2 +- Items/Weapons/Magic/BittercoldStaff.cs | 2 +- Items/Weapons/Magic/BlackAnurian.cs | 2 +- Items/Weapons/Magic/BloodBath.cs | 2 +- Items/Weapons/Magic/BlushieStaff.cs | 2 +- Items/Weapons/Magic/BrimroseStaff.cs | 2 +- Items/Weapons/Magic/BurningSea.cs | 2 +- Items/Weapons/Magic/CalamitasInferno.cs | 4 +- Items/Weapons/Magic/CarnageRay.cs | 2 +- Items/Weapons/Magic/ClamorNoctus.cs | 2 +- Items/Weapons/Magic/Climax.cs | 2 +- Items/Weapons/Magic/ClothiersWrath.cs | 2 +- Items/Weapons/Magic/CoralSpout.cs | 2 +- Items/Weapons/Magic/CosmicRainbow.cs | 2 +- Items/Weapons/Magic/Cryophobia.cs | 2 +- Items/Weapons/Magic/CrystalFlareStaff.cs | 2 +- Items/Weapons/Magic/DarkSpark.cs | 2 +- Items/Weapons/Magic/DeathValley.cs | 2 +- Items/Weapons/Magic/DeathhailStaff.cs | 2 +- Items/Weapons/Magic/DemonicPitchfork.cs | 2 +- Items/Weapons/Magic/DivineRetribution.cs | 2 +- Items/Weapons/Magic/Downpour.cs | 2 +- Items/Weapons/Magic/Effervescence.cs | 2 +- Items/Weapons/Magic/EidolicWail.cs | 4 +- Items/Weapons/Magic/EldritchTome.cs | 2 +- Items/Weapons/Magic/ElementalRay.cs | 2 +- Items/Weapons/Magic/EventHorizon.cs | 2 +- Items/Weapons/Magic/EvergladeSpray.cs | 2 +- Items/Weapons/Magic/EyeofMagnus.cs | 4 +- Items/Weapons/Magic/Fabstaff.cs | 2 +- Items/Weapons/Magic/FaceMelter.cs | 2 +- Items/Weapons/Magic/FatesReveal.cs | 2 +- Items/Weapons/Magic/FlareBolt.cs | 2 +- Items/Weapons/Magic/ForbiddenSun.cs | 2 +- Items/Weapons/Magic/FrigidflashBolt.cs | 2 +- Items/Weapons/Magic/FrostBolt.cs | 2 +- Items/Weapons/Magic/GammaFusillade.cs | 2 +- Items/Weapons/Magic/Genisis.cs | 2 +- Items/Weapons/Magic/GhastlyVisage.cs | 3 +- Items/Weapons/Magic/GleamingMagnolia.cs | 2 +- Items/Weapons/Magic/HadopelagicEcho.cs | 4 +- Items/Weapons/Magic/HarvestStaff.cs | 2 +- Items/Weapons/Magic/HeliumFlash.cs | 4 +- Items/Weapons/Magic/HellBurst.cs | 2 +- Items/Weapons/Magic/HellwingStaff.cs | 2 +- Items/Weapons/Magic/Hematemesis.cs | 2 +- Items/Weapons/Magic/HyphaeRod.cs | 2 +- Items/Weapons/Magic/IceBarrage.cs | 2 +- Items/Weapons/Magic/IcicleStaff.cs | 2 +- Items/Weapons/Magic/IcicleTrident.cs | 2 +- Items/Weapons/Magic/InfernalRift.cs | 2 +- Items/Weapons/Magic/IonBlaster.cs | 2 +- Items/Weapons/Magic/Keelhaul.cs | 2 +- Items/Weapons/Magic/Lazhar.cs | 2 +- Items/Weapons/Magic/LightGodsBrilliance.cs | 2 +- .../Magic/MadAlchemistsCocktailGlove.cs | 2 +- Items/Weapons/Magic/MagnaCannon.cs | 2 +- Items/Weapons/Magic/MagneticMeltdown.cs | 2 +- Items/Weapons/Magic/ManaRose.cs | 2 +- Items/Weapons/Magic/Mistlestorm.cs | 2 +- Items/Weapons/Magic/NightsRay.cs | 2 +- Items/Weapons/Magic/NuclearFury.cs | 2 +- Items/Weapons/Magic/PhantasmalFury.cs | 2 +- Items/Weapons/Magic/PhoenixFlameBarrage.cs | 2 +- Items/Weapons/Magic/PlagueStaff.cs | 2 +- Items/Weapons/Magic/PlasmaRifle.cs | 2 +- Items/Weapons/Magic/PlasmaRod.cs | 2 +- Items/Weapons/Magic/Poseidon.cs | 2 +- Items/Weapons/Magic/PrimordialAncient.cs | 2 +- Items/Weapons/Magic/PrimordialEarth.cs | 2 +- Items/Weapons/Magic/Purge.cs | 2 +- Items/Weapons/Magic/PurgeGuzzler.cs | 3 +- Items/Weapons/Magic/RecitationoftheBeast.cs | 2 +- Items/Weapons/Magic/RelicofRuin.cs | 2 +- Items/Weapons/Magic/RougeSlash.cs | 2 +- Items/Weapons/Magic/SHPC.cs | 2 +- Items/Weapons/Magic/SanguineFlare.cs | 2 +- Items/Weapons/Magic/SeethingDischarge.cs | 3 +- Items/Weapons/Magic/Serpentine.cs | 2 +- Items/Weapons/Magic/ShadecrystalTome.cs | 2 +- Items/Weapons/Magic/ShaderainStaff.cs | 2 +- Items/Weapons/Magic/ShadowboltStaff.cs | 2 +- Items/Weapons/Magic/ShadowdropStaff.cs | 2 +- Items/Weapons/Magic/ShiftingSands.cs | 2 +- Items/Weapons/Magic/SirensSong.cs | 2 +- Items/Weapons/Magic/SkyGlaze.cs | 2 +- Items/Weapons/Magic/SnowstormStaff.cs | 2 +- Items/Weapons/Magic/SoulPiercer.cs | 2 +- Items/Weapons/Magic/StardustStaff.cs | 2 +- Items/Weapons/Magic/Starfall.cs | 2 +- Items/Weapons/Magic/StormSpray.cs | 2 +- Items/Weapons/Magic/StratusSphere.cs | 2 +- Items/Weapons/Magic/T1000.cs | 3 +- Items/Weapons/Magic/TearsofHeaven.cs | 2 +- Items/Weapons/Magic/TerraRay.cs | 2 +- Items/Weapons/Magic/TheSwarmer.cs | 2 +- Items/Weapons/Magic/TheWand.cs | 2 +- Items/Weapons/Magic/ThornBlossom.cs | 2 +- Items/Weapons/Magic/Thunderstorm.cs | 3 +- Items/Weapons/Magic/TomeofFates.cs | 2 +- Items/Weapons/Magic/Tradewinds.cs | 2 +- Items/Weapons/Magic/UltraLiquidator.cs | 2 +- Items/Weapons/Magic/UndinesRetribution.cs | 2 +- Items/Weapons/Magic/ValkyrieRay.cs | 4 +- Items/Weapons/Magic/Vehemenc.cs | 2 +- Items/Weapons/Magic/VenusianTrident.cs | 2 +- Items/Weapons/Magic/Vesuvius.cs | 2 +- Items/Weapons/Magic/Viscera.cs | 2 +- Items/Weapons/Magic/VividClarity.cs | 2 +- Items/Weapons/Magic/VoidVortex.cs | 2 +- Items/Weapons/Magic/Waywasher.cs | 2 +- Items/Weapons/Magic/Wingman.cs | 2 +- Items/Weapons/Magic/WintersFury.cs | 2 +- Items/Weapons/Magic/WrathoftheAncients.cs | 3 +- Items/Weapons/Magic/WulfrumStaff.cs | 2 +- Items/Weapons/Magic/WyvernsCall.cs | 2 +- Items/Weapons/Magic/YharimsCrystal.cs | 2 +- Items/Weapons/Magic/Zapper.cs | 2 +- Items/Weapons/Melee/AbsoluteZero.cs | 2 +- Items/Weapons/Melee/AbyssBlade.cs | 2 +- Items/Weapons/Melee/AccretionDiskMelee.cs | 2 +- Items/Weapons/Melee/AegisBlade.cs | 4 +- Items/Weapons/Melee/Aftershock.cs | 2 +- Items/Weapons/Melee/AirSpinner.cs | 2 +- Items/Weapons/Melee/AmidiasTrident.cs | 2 +- Items/Weapons/Melee/AnarchyBlade.cs | 2 +- Items/Weapons/Melee/AncientCrusher.cs | 2 +- Items/Weapons/Melee/AncientShiv.cs | 2 +- Items/Weapons/Melee/Animus.cs | 2 +- Items/Weapons/Melee/Aorta.cs | 2 +- Items/Weapons/Melee/AquaticDischarge.cs | 2 +- Items/Weapons/Melee/AquaticDissolution.cs | 2 +- Items/Weapons/Melee/ArkoftheAncients.cs | 2 +- Items/Weapons/Melee/ArkoftheCosmos.cs | 2 +- Items/Weapons/Melee/ArkoftheElements.cs | 2 +- Items/Weapons/Melee/AstralBlade.cs | 4 +- Items/Weapons/Melee/AstralPike.cs | 2 +- Items/Weapons/Melee/AstralScythe.cs | 2 +- Items/Weapons/Melee/Ataraxia.cs | 2 +- Items/Weapons/Melee/Avalanche.cs | 2 +- Items/Weapons/Melee/Azathoth.cs | 2 +- Items/Weapons/Melee/BalefulHarvester.cs | 2 +- Items/Weapons/Melee/BallOFugu.cs | 2 +- Items/Weapons/Melee/BansheeHook.cs | 2 +- Items/Weapons/Melee/BiomeBlade.cs | 2 +- Items/Weapons/Melee/BladecrestOathsword.cs | 2 +- Items/Weapons/Melee/BladeofEnmity.cs | 2 +- Items/Weapons/Melee/BloodyEdge.cs | 2 +- Items/Weapons/Melee/BloodyRupture.cs | 2 +- Items/Weapons/Melee/Bonebreaker.cs | 2 +- Items/Weapons/Melee/Brimlance.cs | 2 +- Items/Weapons/Melee/Brimlash.cs | 2 +- Items/Weapons/Melee/BrimlashBuster.cs | 2 +- Items/Weapons/Melee/BrinyBaron.cs | 6 +- Items/Weapons/Melee/BurntSienna.cs | 2 +- Items/Weapons/Melee/Carnage.cs | 6 +- Items/Weapons/Melee/CatastropheClaymore.cs | 2 +- Items/Weapons/Melee/CausticEdge.cs | 2 +- Items/Weapons/Melee/CelestialClaymore.cs | 2 +- Items/Weapons/Melee/Chaotrix.cs | 2 +- Items/Weapons/Melee/ClamCrusher.cs | 2 +- Items/Weapons/Melee/Cnidarian.cs | 2 +- Items/Weapons/Melee/ColdheartIcicle.cs | 2 +- Items/Weapons/Melee/CometQuasher.cs | 2 +- Items/Weapons/Melee/CorpusAvertorMelee.cs | 4 +- Items/Weapons/Melee/CorruptedCrusherBlade.cs | 2 +- Items/Weapons/Melee/CosmicDischarge.cs | 2 +- Items/Weapons/Melee/CosmicShiv.cs | 2 +- Items/Weapons/Melee/CrescentMoon.cs | 2 +- Items/Weapons/Melee/CrimsonCrusherBlade.cs | 2 +- Items/Weapons/Melee/CrystalBlade.cs | 2 +- Items/Weapons/Melee/DarklightGreatsword.cs | 2 +- Items/Weapons/Melee/DepthBlade.cs | 2 +- Items/Weapons/Melee/Devastation.cs | 2 +- Items/Weapons/Melee/DevilsDevastation.cs | 2 +- Items/Weapons/Melee/DevilsSunrise.cs | 2 +- Items/Weapons/Melee/DiseasedPike.cs | 2 +- Items/Weapons/Melee/DivineHatchet.cs | 2 +- Items/Weapons/Melee/DraconicDestruction.cs | 2 +- Items/Weapons/Melee/DraedonsExoblade.cs | 46 +- Items/Weapons/Melee/DragonPow.cs | 4 +- Items/Weapons/Melee/DragonRage.cs | 2 +- Items/Weapons/Melee/Earth.cs | 2 +- Items/Weapons/Melee/EarthenPike.cs | 2 +- Items/Weapons/Melee/ElementalExcalibur.cs | 4 +- Items/Weapons/Melee/ElementalShortsword.cs | 2 +- Items/Weapons/Melee/EmpyreanKnives.cs | 2 +- Items/Weapons/Melee/EradicatorMelee.cs | 2 +- Items/Weapons/Melee/EssenceFlayer.cs | 2 +- Items/Weapons/Melee/EutrophicScimitar.cs | 2 +- Items/Weapons/Melee/EutrophicShank.cs | 2 +- Items/Weapons/Melee/EvilSmasher.cs | 2 +- Items/Weapons/Melee/ExcaliburShortsword.cs | 2 +- Items/Weapons/Melee/Excelsus.cs | 2 +- Items/Weapons/Melee/ExoGladius.cs | 2 +- Items/Weapons/Melee/ExsanguinationLance.cs | 2 +- Items/Weapons/Melee/FeralthornClaymore.cs | 2 +- Items/Weapons/Melee/FlameScytheMelee.cs | 2 +- Items/Weapons/Melee/FlameburstShortsword.cs | 2 +- Items/Weapons/Melee/FlarefrostBlade.cs | 2 +- Items/Weapons/Melee/Floodtide.cs | 2 +- Items/Weapons/Melee/ForbiddenOathblade.cs | 2 +- Items/Weapons/Melee/ForsakenSaber.cs | 2 +- Items/Weapons/Melee/FourSeasonsGalaxia.cs | 2 +- Items/Weapons/Melee/FulgurationHalberd.cs | 8 +- Items/Weapons/Melee/GalacticaBlade.cs | 2 +- Items/Weapons/Melee/GalaxySmasherMelee.cs | 2 +- Items/Weapons/Melee/GalileoGladius.cs | 2 +- Items/Weapons/Melee/GeliticBlade.cs | 2 +- Items/Weapons/Melee/GildedProboscis.cs | 2 +- Items/Weapons/Melee/GlacialCrusher.cs | 2 +- Items/Weapons/Melee/GoldplumeSpear.cs | 2 +- Items/Weapons/Melee/GrandDad.cs | 2 +- Items/Weapons/Melee/GrandGuardian.cs | 2 +- Items/Weapons/Melee/GreatswordofBlah.cs | 2 +- Items/Weapons/Melee/GreatswordofJudgement.cs | 2 +- Items/Weapons/Melee/Greentide.cs | 2 +- Items/Weapons/Melee/HellfireFlamberge.cs | 4 +- Items/Weapons/Melee/HellionFlowerSpear.cs | 2 +- Items/Weapons/Melee/Hellkite.cs | 2 +- Items/Weapons/Melee/HolidayHalberd.cs | 2 +- Items/Weapons/Melee/HolyCollider.cs | 6 +- Items/Weapons/Melee/InsidiousImpaler.cs | 2 +- Items/Weapons/Melee/KelvinCatalystMelee.cs | 2 +- Items/Weapons/Melee/Lacerator.cs | 2 +- Items/Weapons/Melee/LeechingDagger.cs | 2 +- Items/Weapons/Melee/LifefruitScythe.cs | 2 +- Items/Weapons/Melee/LionHeart.cs | 4 +- Items/Weapons/Melee/Lucrecia.cs | 2 +- Items/Weapons/Melee/MajesticGuard.cs | 2 +- Items/Weapons/Melee/MandibleClaws.cs | 2 +- Items/Weapons/Melee/MangroveChakramMelee.cs | 2 +- Items/Weapons/Melee/MantisClaws.cs | 2 +- Items/Weapons/Melee/Mariana.cs | 2 +- Items/Weapons/Melee/MarniteSpear.cs | 2 +- Items/Weapons/Melee/MirrorBlade.cs | 2 +- Items/Weapons/Melee/Mourningstar.cs | 2 +- Items/Weapons/Melee/Murasama.cs | 3 +- Items/Weapons/Melee/MycelialClaws.cs | 2 +- Items/Weapons/Melee/Nadir.cs | 2 +- Items/Weapons/Melee/NanoblackReaperMelee.cs | 2 +- Items/Weapons/Melee/Nebulash.cs | 2 +- Items/Weapons/Melee/NeptunesBounty.cs | 2 +- Items/Weapons/Melee/NightsStabber.cs | 2 +- Items/Weapons/Melee/OldLordOathsword.cs | 2 +- Items/Weapons/Melee/OmegaBiomeBlade.cs | 2 +- Items/Weapons/Melee/Omniblade.cs | 2 +- Items/Weapons/Melee/Oracle.cs | 4 +- Items/Weapons/Melee/PerfectDark.cs | 2 +- Items/Weapons/Melee/PhoenixBlade.cs | 2 +- Items/Weapons/Melee/PlagueKeeper.cs | 2 +- Items/Weapons/Melee/ProfanedSword.cs | 4 +- Items/Weapons/Melee/PwnagehammerMelee.cs | 2 +- Items/Weapons/Melee/Quagmire.cs | 2 +- Items/Weapons/Melee/RedSun.cs | 2 +- Items/Weapons/Melee/RedtideSword.cs | 2 +- Items/Weapons/Melee/Roxcalibur.cs | 16 +- Items/Weapons/Melee/RoyalKnivesMelee.cs | 2 +- Items/Weapons/Melee/SausageMaker.cs | 2 +- Items/Weapons/Melee/ScourgeoftheCosmos.cs | 2 +- Items/Weapons/Melee/SeashellBoomerangMelee.cs | 2 +- Items/Weapons/Melee/Shimmerspark.cs | 2 +- Items/Weapons/Melee/SolarFlare.cs | 2 +- Items/Weapons/Melee/SolsticeClaymore.cs | 2 +- Items/Weapons/Melee/SoulEdge.cs | 2 +- Items/Weapons/Melee/SoulHarvester.cs | 6 +- Items/Weapons/Melee/SpatialLance.cs | 2 +- Items/Weapons/Melee/SporeKnife.cs | 2 +- Items/Weapons/Melee/StarnightLance.cs | 2 +- Items/Weapons/Melee/StellarContemptMelee.cs | 2 +- Items/Weapons/Melee/StellarStriker.cs | 6 +- Items/Weapons/Melee/StormRuler.cs | 2 +- Items/Weapons/Melee/StormSaber.cs | 2 +- Items/Weapons/Melee/StreamGouge.cs | 2 +- Items/Weapons/Melee/SubmarineShocker.cs | 2 +- Items/Weapons/Melee/SulphurousGrabber.cs | 2 +- Items/Weapons/Melee/Swordsplosion.cs | 2 +- Items/Weapons/Melee/TeardropCleaver.cs | 2 +- Items/Weapons/Melee/TemporalFloeSword.cs | 2 +- Items/Weapons/Melee/TerraDiskMelee.cs | 2 +- Items/Weapons/Melee/TerraEdge.cs | 2 +- Items/Weapons/Melee/TerraLance.cs | 2 +- Items/Weapons/Melee/TerraShiv.cs | 2 +- Items/Weapons/Melee/Terracotta.cs | 2 +- Items/Weapons/Melee/Terratomere.cs | 2 +- Items/Weapons/Melee/TerrorBlade.cs | 2 +- Items/Weapons/Melee/TheBurningSky.cs | 2 +- Items/Weapons/Melee/TheEnforcer.cs | 6 +- Items/Weapons/Melee/TheEyeofCalamitas.cs | 2 +- Items/Weapons/Melee/TheGodsGambit.cs | 2 +- Items/Weapons/Melee/TheLastMourning.cs | 2 +- Items/Weapons/Melee/TheMicrowave.cs | 2 +- Items/Weapons/Melee/TheMutilator.cs | 4 +- Items/Weapons/Melee/TheObliterator.cs | 2 +- Items/Weapons/Melee/ThePlaguebringer.cs | 2 +- Items/Weapons/Melee/TitanArm.cs | 2 +- ...tisTruePaladinianMageHammerofMightMelee.cs | 2 +- Items/Weapons/Melee/Trinity.cs | 2 +- Items/Weapons/Melee/TrueArkoftheAncients.cs | 2 +- Items/Weapons/Melee/TrueBiomeBlade.cs | 2 +- Items/Weapons/Melee/TrueBloodyEdge.cs | 2 +- Items/Weapons/Melee/TrueCausticEdge.cs | 2 +- .../Weapons/Melee/TrueExcaliburShortsword.cs | 2 +- Items/Weapons/Melee/TrueForbiddenOathblade.cs | 2 +- Items/Weapons/Melee/TrueNightsStabber.cs | 2 +- .../Weapons/Melee/TruePaladinsHammerMelee.cs | 2 +- .../Melee/TrueTyrantYharimsUltisword.cs | 2 +- Items/Weapons/Melee/Tumbleweed.cs | 2 +- Items/Weapons/Melee/TyphonsGreed.cs | 2 +- Items/Weapons/Melee/TyrantYharimsUltisword.cs | 2 +- Items/Weapons/Melee/UltimusCleaver.cs | 2 +- Items/Weapons/Melee/UrchinFlail.cs | 2 +- Items/Weapons/Melee/UrchinSpear.cs | 2 +- Items/Weapons/Melee/VeinBurster.cs | 2 +- Items/Weapons/Melee/Verdant.cs | 2 +- Items/Weapons/Melee/VirulentKatana.cs | 2 +- Items/Weapons/Melee/Waraxe.cs | 2 +- Items/Weapons/Melee/Warblade.cs | 2 +- Items/Weapons/Melee/Whirlpool.cs | 2 +- Items/Weapons/Melee/WindBlade.cs | 2 +- Items/Weapons/Melee/WulfrumBlade.cs | 2 +- Items/Weapons/Melee/XerocsGreatsword.cs | 2 +- Items/Weapons/Melee/YateveoBloom.cs | 2 +- Items/Weapons/Melee/YinYo.cs | 2 +- Items/Weapons/Ranged/AMR.cs | 5 +- Items/Weapons/Ranged/AcesHigh.cs | 2 +- Items/Weapons/Ranged/Aeries.cs | 2 +- Items/Weapons/Ranged/Alluvion.cs | 2 +- Items/Weapons/Ranged/AngelicShotgun.cs | 2 +- Items/Weapons/Ranged/Animosity.cs | 4 +- Items/Weapons/Ranged/AquashardShotgun.cs | 2 +- Items/Weapons/Ranged/Arbalest.cs | 4 +- Items/Weapons/Ranged/Archerfish.cs | 2 +- Items/Weapons/Ranged/ArterialAssault.cs | 2 +- Items/Weapons/Ranged/AstralBlaster.cs | 2 +- Items/Weapons/Ranged/AstralRepeater.cs | 4 +- Items/Weapons/Ranged/AstrealDefeat.cs | 2 +- Items/Weapons/Ranged/Barinade.cs | 4 +- Items/Weapons/Ranged/Barinautical.cs | 2 +- Items/Weapons/Ranged/BarracudaGun.cs | 2 +- Items/Weapons/Ranged/BladedgeGreatbow.cs | 4 +- Items/Weapons/Ranged/BlissfulBombardier.cs | 2 +- Items/Weapons/Ranged/BloodBoiler.cs | 2 +- Items/Weapons/Ranged/BlossomFlux.cs | 2 +- Items/Weapons/Ranged/BrimstoneFlameblaster.cs | 2 +- Items/Weapons/Ranged/BrimstoneFlamesprayer.cs | 2 +- Items/Weapons/Ranged/BrimstoneFury.cs | 2 +- Items/Weapons/Ranged/Butcher.cs | 2 +- Items/Weapons/Ranged/ChargedDartRifle.cs | 2 +- Items/Weapons/Ranged/ChickenCannon.cs | 2 +- Items/Weapons/Ranged/ClamorRifle.cs | 4 +- Items/Weapons/Ranged/ClaretCannon.cs | 2 +- Items/Weapons/Ranged/CleansingBlaze.cs | 2 +- Items/Weapons/Ranged/ClockGatlignum.cs | 4 +- Items/Weapons/Ranged/ClockworkBow.cs | 4 +- Items/Weapons/Ranged/ConferenceCall.cs | 4 +- Items/Weapons/Ranged/Contagion.cs | 2 +- Items/Weapons/Ranged/CoralCannon.cs | 2 +- Items/Weapons/Ranged/CorrodedCaustibow.cs | 2 +- Items/Weapons/Ranged/CosmicBolter.cs | 2 +- Items/Weapons/Ranged/CursedCapper.cs | 2 +- Items/Weapons/Ranged/DaemonsFlame.cs | 2 +- Items/Weapons/Ranged/DarkechoGreatbow.cs | 4 +- Items/Weapons/Ranged/Deathwind.cs | 2 +- Items/Weapons/Ranged/DodusHandcannon.cs | 2 +- Items/Weapons/Ranged/DragonsBreath.cs | 4 +- Items/Weapons/Ranged/Drataliornus.cs | 2 +- Items/Weapons/Ranged/Dualpoon.cs | 2 +- Items/Weapons/Ranged/EffluviumBow.cs | 2 +- Items/Weapons/Ranged/ElementalBlaster.cs | 2 +- Items/Weapons/Ranged/ElementalEruption.cs | 2 +- Items/Weapons/Ranged/EternalBlizzard.cs | 2 +- Items/Weapons/Ranged/Eviscerator.cs | 2 +- Items/Weapons/Ranged/FetidEmesis.cs | 2 +- Items/Weapons/Ranged/FirestormCannon.cs | 4 +- Items/Weapons/Ranged/FlakKraken.cs | 2 +- Items/Weapons/Ranged/FlakToxicannon.cs | 2 +- Items/Weapons/Ranged/FlarewingBow.cs | 4 +- Items/Weapons/Ranged/FlurrystormCannon.cs | 2 +- Items/Weapons/Ranged/FrostbiteBlaster.cs | 2 +- Items/Weapons/Ranged/Fungicide.cs | 2 +- Items/Weapons/Ranged/Galeforce.cs | 4 +- Items/Weapons/Ranged/GoldenEagle.cs | 4 +- Items/Weapons/Ranged/Goobow.cs | 4 +- Items/Weapons/Ranged/GreatbowofTurmoil.cs | 4 +- Items/Weapons/Ranged/GunkShot.cs | 4 +- Items/Weapons/Ranged/HalibutCannon.cs | 4 +- Items/Weapons/Ranged/HalleysInferno.cs | 2 +- Items/Weapons/Ranged/HandheldTank.cs | 2 +- Items/Weapons/Ranged/HeavenlyGale.cs | 4 +- Items/Weapons/Ranged/Hellborn.cs | 4 +- Items/Weapons/Ranged/Helstorm.cs | 4 +- Items/Weapons/Ranged/Impaler.cs | 2 +- Items/Weapons/Ranged/Infinity.cs | 4 +- Items/Weapons/Ranged/Interfacer.cs | 4 +- Items/Weapons/Ranged/Karasawa.cs | 2 +- Items/Weapons/Ranged/LeadWizard.cs | 4 +- Items/Weapons/Ranged/Leviatitan.cs | 2 +- Items/Weapons/Ranged/LunarianBow.cs | 2 +- Items/Weapons/Ranged/MagnaStriker.cs | 2 +- Items/Weapons/Ranged/MagnomalyCannon.cs | 2 +- Items/Weapons/Ranged/Malevolence.cs | 2 +- Items/Weapons/Ranged/MandibleBow.cs | 4 +- Items/Weapons/Ranged/MarniteRifleSpear.cs | 4 +- Items/Weapons/Ranged/Megafleet.cs | 4 +- Items/Weapons/Ranged/Megalodon.cs | 4 +- Items/Weapons/Ranged/Meowthrower.cs | 2 +- Items/Weapons/Ranged/MepheticSprayer.cs | 2 +- Items/Weapons/Ranged/MineralMortar.cs | 2 +- Items/Weapons/Ranged/Minigun.cs | 4 +- Items/Weapons/Ranged/MolecularManipulator.cs | 2 +- Items/Weapons/Ranged/Monsoon.cs | 2 +- Items/Weapons/Ranged/Needler.cs | 2 +- Items/Weapons/Ranged/NettlelineGreatbow.cs | 4 +- Items/Weapons/Ranged/Norfleet.cs | 2 +- Items/Weapons/Ranged/NullificationRifle.cs | 2 +- Items/Weapons/Ranged/OnyxChainBlaster.cs | 4 +- Items/Weapons/Ranged/Onyxia.cs | 6 +- Items/Weapons/Ranged/OpalStriker.cs | 2 +- Items/Weapons/Ranged/OverloadedBlaster.cs | 2 +- Items/Weapons/Ranged/P90.cs | 4 +- Items/Weapons/Ranged/PaintballBlaster.cs | 6 +- Items/Weapons/Ranged/PearlGod.cs | 2 +- Items/Weapons/Ranged/PestilentDefiler.cs | 2 +- Items/Weapons/Ranged/Phangasm.cs | 2 +- Items/Weapons/Ranged/PlanetaryAnnihilation.cs | 2 +- .../Ranged/PrideHuntersPlanarRipper.cs | 2 +- Items/Weapons/Ranged/PristineFury.cs | 2 +- Items/Weapons/Ranged/ProporsePistol.cs | 2 +- Items/Weapons/Ranged/Pumpler.cs | 4 +- Items/Weapons/Ranged/RaidersGlory.cs | 4 +- Items/Weapons/Ranged/RealmRavager.cs | 5 +- Items/Weapons/Ranged/SDFMG.cs | 4 +- Items/Weapons/Ranged/SandstormGun.cs | 2 +- Items/Weapons/Ranged/Scorpion.cs | 2 +- Items/Weapons/Ranged/Seabow.cs | 4 +- Items/Weapons/Ranged/Seadragon.cs | 4 +- Items/Weapons/Ranged/SeasSearing.cs | 2 +- Items/Weapons/Ranged/SepticSkewer.cs | 2 +- Items/Weapons/Ranged/Shadethrower.cs | 2 +- Items/Weapons/Ranged/Shellshooter.cs | 2 +- Items/Weapons/Ranged/Shredder.cs | 4 +- Items/Weapons/Ranged/Shroomer.cs | 4 +- Items/Weapons/Ranged/Skullmasher.cs | 5 +- Items/Weapons/Ranged/SlagMagnum.cs | 2 +- Items/Weapons/Ranged/SomaPrime.cs | 2 +- Items/Weapons/Ranged/SparkSpreader.cs | 2 +- Items/Weapons/Ranged/SpectralstormCannon.cs | 2 +- Items/Weapons/Ranged/SpectreRifle.cs | 6 +- Items/Weapons/Ranged/Spyker.cs | 2 +- Items/Weapons/Ranged/StarCannonEX.cs | 2 +- Items/Weapons/Ranged/StarSputter.cs | 2 +- Items/Weapons/Ranged/Starfleet.cs | 2 +- Items/Weapons/Ranged/StarfleetMK2.cs | 2 +- Items/Weapons/Ranged/StellarCannon.cs | 2 +- Items/Weapons/Ranged/StormDragoon.cs | 4 +- Items/Weapons/Ranged/StormSurge.cs | 2 +- Items/Weapons/Ranged/SulphuricAcidCannon.cs | 2 +- Items/Weapons/Ranged/Svantechnical.cs | 4 +- Items/Weapons/Ranged/TelluricGlare.cs | 2 +- Items/Weapons/Ranged/TerraFlameburster.cs | 2 +- Items/Weapons/Ranged/TheBallista.cs | 2 +- Items/Weapons/Ranged/TheEmpyrean.cs | 2 +- Items/Weapons/Ranged/TheHive.cs | 2 +- Items/Weapons/Ranged/ThePack.cs | 2 +- Items/Weapons/Ranged/TheStorm.cs | 2 +- Items/Weapons/Ranged/TitaniumRailgun.cs | 2 +- Items/Weapons/Ranged/Toxibow.cs | 2 +- Items/Weapons/Ranged/Triploon.cs | 2 +- Items/Weapons/Ranged/TrueConferenceCall.cs | 4 +- Items/Weapons/Ranged/Vortexpopper.cs | 2 +- Items/Weapons/Ranged/WulfrumBow.cs | 4 +- Items/Weapons/Rogue/AccretionDisk.cs | 2 +- Items/Weapons/Rogue/AdamantiteThrowingAxe.cs | 2 +- Items/Weapons/Rogue/AlphaVirus.cs | 2 +- Items/Weapons/Rogue/AshenStalactite.cs | 2 +- Items/Weapons/Rogue/BallisticPoisonBomb.cs | 2 +- Items/Weapons/Rogue/BlazingStar.cs | 2 +- Items/Weapons/Rogue/BloodsoakedCrasher.cs | 2 +- Items/Weapons/Rogue/BouncySpikyBall.cs | 2 +- Items/Weapons/Rogue/BrackishFlask.cs | 2 +- Items/Weapons/Rogue/Brimblade.cs | 2 +- Items/Weapons/Rogue/BurningStrife.cs | 2 +- Items/Weapons/Rogue/Celestus.cs | 2 +- Items/Weapons/Rogue/Cinquedea.cs | 4 +- Items/Weapons/Rogue/CobaltKunai.cs | 2 +- Items/Weapons/Rogue/CorpusAvertor.cs | 2 +- Items/Weapons/Rogue/CosmicKunai.cs | 3 +- Items/Weapons/Rogue/CraniumSmasher.cs | 2 +- Items/Weapons/Rogue/CrushsawCrasher.cs | 2 +- Items/Weapons/Rogue/CrystalPiercer.cs | 2 +- Items/Weapons/Rogue/Crystalline.cs | 2 +- Items/Weapons/Rogue/CursedDagger.cs | 2 +- Items/Weapons/Rogue/DeepSeaDumbbell.cs | 6 +- Items/Weapons/Rogue/DeepWounder.cs | 2 +- Items/Weapons/Rogue/DefectiveSphere.cs | 2 +- Items/Weapons/Rogue/DeificThunderbolt.cs | 2 +- Items/Weapons/Rogue/DukesDecapitator.cs | 2 +- Items/Weapons/Rogue/DuneHopper.cs | 2 +- Items/Weapons/Rogue/DuststormInABottle.cs | 2 +- Items/Weapons/Rogue/EclipsesFall.cs | 2 +- Items/Weapons/Rogue/EmpyreanKnivesThrown.cs | 2 +- Items/Weapons/Rogue/EnchantedAxe.cs | 2 +- Items/Weapons/Rogue/Equanimity.cs | 2 +- Items/Weapons/Rogue/Eradicator.cs | 2 +- Items/Weapons/Rogue/ExecutionersBlade.cs | 2 +- Items/Weapons/Rogue/Exorcism.cs | 2 +- Items/Weapons/Rogue/FantasyTalisman.cs | 2 +- Items/Weapons/Rogue/FeatherKnife.cs | 2 +- Items/Weapons/Rogue/FlameScythe.cs | 2 +- Items/Weapons/Rogue/FrostcrushValari.cs | 2 +- Items/Weapons/Rogue/FrostyFlare.cs | 2 +- Items/Weapons/Rogue/GalaxySmasherRogue.cs | 2 +- Items/Weapons/Rogue/GelDart.cs | 2 +- Items/Weapons/Rogue/GhoulishGouger.cs | 2 +- Items/Weapons/Rogue/GildedDagger.cs | 2 +- Items/Weapons/Rogue/Glaive.cs | 2 +- Items/Weapons/Rogue/GleamingDagger.cs | 2 +- Items/Weapons/Rogue/GodsParanoia.cs | 2 +- Items/Weapons/Rogue/HardenedHoneycomb.cs | 2 +- Items/Weapons/Rogue/HeavenfallenStardisk.cs | 2 +- Items/Weapons/Rogue/HellsSun.cs | 2 +- Items/Weapons/Rogue/IceStar.cs | 2 +- Items/Weapons/Rogue/Icebreaker.cs | 2 +- Items/Weapons/Rogue/IchorSpear.cs | 2 +- Items/Weapons/Rogue/InfernalKris.cs | 2 +- Items/Weapons/Rogue/IronFrancisca.cs | 2 +- Items/Weapons/Rogue/JawsOfOblivion.cs | 2 +- Items/Weapons/Rogue/KelvinCatalyst.cs | 2 +- Items/Weapons/Rogue/Kylie.cs | 4 +- Items/Weapons/Rogue/LeadTomahawk.cs | 2 +- Items/Weapons/Rogue/LeviathanTeeth.cs | 2 +- Items/Weapons/Rogue/Lionfish.cs | 2 +- Items/Weapons/Rogue/LuminousStriker.cs | 4 +- Items/Weapons/Rogue/LunarKunai.cs | 2 +- Items/Weapons/Rogue/Malachite.cs | 2 +- Items/Weapons/Rogue/MangroveChakram.cs | 2 +- Items/Weapons/Rogue/MetalMonstrosity.cs | 2 +- Items/Weapons/Rogue/MeteorFist.cs | 2 +- Items/Weapons/Rogue/MoltenAmputator.cs | 2 +- Items/Weapons/Rogue/MonkeyDarts.cs | 4 +- Items/Weapons/Rogue/Mycoroot.cs | 2 +- Items/Weapons/Rogue/MythrilKnife.cs | 2 +- Items/Weapons/Rogue/NanoblackReaperRogue.cs | 2 +- Items/Weapons/Rogue/NastyCholla.cs | 2 +- Items/Weapons/Rogue/NightsGaze.cs | 2 +- Items/Weapons/Rogue/Nychthemeron.cs | 2 +- .../Weapons/Rogue/OrichalcumSpikedGemstone.cs | 4 +- Items/Weapons/Rogue/PalladiumJavelin.cs | 4 +- Items/Weapons/Rogue/Penumbra.cs | 2 +- Items/Weapons/Rogue/PhantasmalRuin.cs | 2 +- Items/Weapons/Rogue/PhantomLance.cs | 2 +- Items/Weapons/Rogue/Plaguenade.cs | 2 +- Items/Weapons/Rogue/PoisonPack.cs | 2 +- Items/Weapons/Rogue/Prismalline.cs | 2 +- Items/Weapons/Rogue/ProfanedPartisan.cs | 4 +- Items/Weapons/Rogue/ProfanedTrident.cs | 2 +- Items/Weapons/Rogue/Pwnagehammer.cs | 2 +- Items/Weapons/Rogue/Quasar.cs | 2 +- Items/Weapons/Rogue/RadiantStar.cs | 2 +- Items/Weapons/Rogue/RegulusRiot.cs | 2 +- Items/Weapons/Rogue/RotBall.cs | 2 +- Items/Weapons/Rogue/RoyalKnives.cs | 2 +- Items/Weapons/Rogue/SandDollar.cs | 2 +- Items/Weapons/Rogue/Sandslasher.cs | 2 +- Items/Weapons/Rogue/ScarletDevil.cs | 2 +- .../Weapons/Rogue/ScourgeoftheCosmosThrown.cs | 2 +- Items/Weapons/Rogue/ScourgeoftheDesert.cs | 2 +- Items/Weapons/Rogue/ScourgeoftheSeas.cs | 2 +- Items/Weapons/Rogue/SeafoamBomb.cs | 2 +- Items/Weapons/Rogue/SeashellBoomerang.cs | 2 +- Items/Weapons/Rogue/ShatteredSun.cs | 2 +- Items/Weapons/Rogue/ShinobiBlade.cs | 2 +- Items/Weapons/Rogue/ShockGrenade.cs | 2 +- Items/Weapons/Rogue/Shroomerang.cs | 2 +- Items/Weapons/Rogue/SkyStabber.cs | 2 +- Items/Weapons/Rogue/SkyfinBombers.cs | 2 +- Items/Weapons/Rogue/SludgeSplotch.cs | 4 +- Items/Weapons/Rogue/SnapClam.cs | 2 +- Items/Weapons/Rogue/SpearofDestiny.cs | 2 +- Items/Weapons/Rogue/SpearofPaleolith.cs | 2 +- Items/Weapons/Rogue/StarofDestruction.cs | 2 +- Items/Weapons/Rogue/StellarContemptRogue.cs | 2 +- Items/Weapons/Rogue/StellarKnife.cs | 2 +- Items/Weapons/Rogue/StickySpikyBall.cs | 2 +- Items/Weapons/Rogue/StormfrontRazor.cs | 4 +- Items/Weapons/Rogue/Supernova.cs | 2 +- Items/Weapons/Rogue/SylvanSlasher.cs | 3 +- Items/Weapons/Rogue/TarragonThrowingDart.cs | 2 +- Items/Weapons/Rogue/TerraDisk.cs | 2 +- Items/Weapons/Rogue/TerrorTalons.cs | 2 +- Items/Weapons/Rogue/TheReaper.cs | 2 +- Items/Weapons/Rogue/TheSyringe.cs | 2 +- Items/Weapons/Rogue/ThrowingBrick.cs | 4 +- Items/Weapons/Rogue/TimeBolt.cs | 2 +- Items/Weapons/Rogue/TitaniumShuriken.cs | 2 +- Items/Weapons/Rogue/ToothBall.cs | 2 +- Items/Weapons/Rogue/TotalityBreakers.cs | 2 +- Items/Weapons/Rogue/ToxicantTwister.cs | 2 +- ...TriactisTruePaladinianMageHammerofMight.cs | 2 +- Items/Weapons/Rogue/TruePaladinsHammer.cs | 2 +- Items/Weapons/Rogue/Turbulance.cs | 2 +- Items/Weapons/Rogue/UrchinStinger.cs | 2 +- Items/Weapons/Rogue/UtensilPoker.cs | 2 +- Items/Weapons/Rogue/Valediction.cs | 2 +- Items/Weapons/Rogue/WebBall.cs | 2 +- Items/Weapons/Rogue/WulfrumKnife.cs | 2 +- Items/Weapons/Rogue/XerocPitchfork.cs | 2 +- Items/Weapons/Summon/AncientIceChunk.cs | 2 +- Items/Weapons/Summon/AngryChickenStaff.cs | 4 +- Items/Weapons/Summon/BensUmbrella.cs | 2 +- Items/Weapons/Summon/BlackHawkRemote.cs | 2 +- Items/Weapons/Summon/BlightedEyeStaff.cs | 2 +- Items/Weapons/Summon/BloodClotStaff.cs | 2 +- Items/Weapons/Summon/BorealisBomber.cs | 2 +- Items/Weapons/Summon/CadaverousCarrion.cs | 2 +- Items/Weapons/Summon/CalamarisLament.cs | 2 +- Items/Weapons/Summon/ColdDivinity.cs | 4 +- Items/Weapons/Summon/CorroslimeStaff.cs | 2 +- Items/Weapons/Summon/CosmicImmaterializer.cs | 2 +- Items/Weapons/Summon/CosmicViperEngine.cs | 2 +- Items/Weapons/Summon/Cosmilamp.cs | 2 +- Items/Weapons/Summon/CrimslimeStaff.cs | 2 +- Items/Weapons/Summon/CryogenicStaff.cs | 2 +- Items/Weapons/Summon/DankStaff.cs | 2 +- Items/Weapons/Summon/DeepseaStaff.cs | 2 +- Items/Weapons/Summon/DreadmineStaff.cs | 2 +- Items/Weapons/Summon/ElementalAxe.cs | 2 +- Items/Weapons/Summon/Endogenesis.cs | 2 +- Items/Weapons/Summon/EnergyStaff.cs | 4 +- Items/Weapons/Summon/EtherealSubjugator.cs | 2 +- Items/Weapons/Summon/ForgottenApexWand.cs | 2 +- Items/Weapons/Summon/GodspawnHelixStaff.cs | 2 +- Items/Weapons/Summon/HauntedScroll.cs | 2 +- Items/Weapons/Summon/HerringStaff.cs | 2 +- Items/Weapons/Summon/HivePod.cs | 2 +- Items/Weapons/Summon/InfectedRemote.cs | 2 +- Items/Weapons/Summon/LanternoftheSoul.cs | 2 +- Items/Weapons/Summon/MagicalConch.cs | 2 +- Items/Weapons/Summon/PlantationStaff.cs | 2 +- Items/Weapons/Summon/ResurrectionButterfly.cs | 2 +- Items/Weapons/Summon/RustyBeaconPrototype.cs | 2 +- Items/Weapons/Summon/SandSharknadoStaff.cs | 2 +- Items/Weapons/Summon/ScabRipper.cs | 2 +- Items/Weapons/Summon/SeaboundStaff.cs | 2 +- Items/Weapons/Summon/ShellfishStaff.cs | 2 +- Items/Weapons/Summon/SpikecragStaff.cs | 2 +- Items/Weapons/Summon/SquirrelSquireStaff.cs | 2 +- Items/Weapons/Summon/StaffoftheMechworm.cs | 2 +- Items/Weapons/Summon/StormjawStaff.cs | 2 +- Items/Weapons/Summon/SunGodStaff.cs | 2 +- Items/Weapons/Summon/SunSpiritStaff.cs | 2 +- Items/Weapons/Summon/TacticalPlagueEngine.cs | 2 +- Items/Weapons/Summon/VileFeeder.cs | 2 +- Items/Weapons/Summon/WulfrumController.cs | 2 +- Items/Weapons/Typeless/Aestheticus.cs | 2 +- Items/Weapons/Typeless/AethersWhisper.cs | 2 +- Items/Weapons/Typeless/FiniteUse/Bazooka.cs | 2 +- .../Typeless/FiniteUse/ElephantKiller.cs | 2 +- Items/Weapons/Typeless/FiniteUse/Hydra.cs | 2 +- .../Typeless/FiniteUse/LightningHawk.cs | 2 +- Items/Weapons/Typeless/FiniteUse/Magnum.cs | 2 +- Items/Weapons/Typeless/GoldenGun.cs | 2 +- Items/Weapons/Typeless/LunicEye.cs | 2 +- Items/Weapons/Typeless/MarkedMagnum.cs | 2 +- Items/Weapons/Typeless/StarStruckWater.cs | 2 +- Localization/CalamityLocalization.cs | 2 +- ModSupport/WeakReferenceSupport.cs | 2 +- NPCs/Abyss/Bloatfish.cs | 2 +- NPCs/Abyss/BobbitWormHead.cs | 2 +- NPCs/Abyss/BobbitWormSegment.cs | 2 +- NPCs/Abyss/BoxJellyfish.cs | 2 +- NPCs/Abyss/ChaoticPuffer.cs | 4 +- NPCs/Abyss/ColossalSquid.cs | 8 +- NPCs/Abyss/Cuttlefish.cs | 2 +- NPCs/Abyss/DevilFish.cs | 2 +- NPCs/Abyss/DevilFishAlt.cs | 2 +- NPCs/Abyss/EidolonWyrmBody.cs | 2 +- NPCs/Abyss/EidolonWyrmBodyAlt.cs | 2 +- NPCs/Abyss/EidolonWyrmBodyAltHuge.cs | 2 +- NPCs/Abyss/EidolonWyrmBodyHuge.cs | 2 +- NPCs/Abyss/EidolonWyrmHead.cs | 10 +- NPCs/Abyss/EidolonWyrmHeadHuge.cs | 14 +- NPCs/Abyss/EidolonWyrmTail.cs | 2 +- NPCs/Abyss/EidolonWyrmTailHuge.cs | 2 +- NPCs/Abyss/GiantSquid.cs | 2 +- NPCs/Abyss/GulperEelBody.cs | 2 +- NPCs/Abyss/GulperEelBodyAlt.cs | 2 +- NPCs/Abyss/GulperEelHead.cs | 6 +- NPCs/Abyss/GulperEelTail.cs | 2 +- NPCs/Abyss/Laserfish.cs | 2 +- NPCs/Abyss/LuminousCorvina.cs | 2 +- NPCs/Abyss/MirageJelly.cs | 2 +- NPCs/Abyss/MorayEel.cs | 2 +- NPCs/Abyss/OarfishBody.cs | 2 +- NPCs/Abyss/OarfishHead.cs | 6 +- NPCs/Abyss/OarfishTail.cs | 2 +- NPCs/Abyss/Reaper.cs | 2 +- NPCs/Abyss/ToxicMinnow.cs | 4 +- NPCs/Abyss/Viperfish.cs | 2 +- NPCs/AcidRain/FlakBaby.cs | 2 +- NPCs/AcidRain/FlakCrab.cs | 2 +- NPCs/AcidRain/GammaSlime.cs | 2 +- NPCs/AcidRain/IrradiatedSlime.cs | 2 +- NPCs/AquaticScourge/AquaticParasite.cs | 2 +- NPCs/AquaticScourge/AquaticScourgeBody.cs | 2 +- NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs | 2 +- NPCs/AquaticScourge/AquaticScourgeHead.cs | 4 +- NPCs/AquaticScourge/AquaticScourgeTail.cs | 2 +- NPCs/AquaticScourge/AquaticSeekerBody.cs | 2 +- NPCs/AquaticScourge/AquaticSeekerHead.cs | 6 +- NPCs/AquaticScourge/AquaticSeekerTail.cs | 2 +- NPCs/AquaticScourge/AquaticUrchin.cs | 2 +- NPCs/Astral/Aries.cs | 2 +- NPCs/Astral/AstralProbe.cs | 2 +- NPCs/Astral/AstralSlime.cs | 2 +- NPCs/Astral/AstralachneaGround.cs | 2 +- NPCs/Astral/AstralachneaWall.cs | 2 +- NPCs/Astral/Atlas.cs | 2 +- NPCs/Astral/BigSightseer.cs | 2 +- NPCs/Astral/FusionFeeder.cs | 2 +- NPCs/Astral/Hadarian.cs | 2 +- NPCs/Astral/Hive.cs | 2 +- NPCs/Astral/Hiveling.cs | 2 +- NPCs/Astral/Mantis.cs | 5 +- NPCs/Astral/Nova.cs | 2 +- NPCs/Astral/SmallSightseer.cs | 2 +- NPCs/Astral/StellarCulex.cs | 2 +- NPCs/AstrumAureus/AstrumAureus.cs | 2 +- NPCs/AstrumAureus/AureusSpawn.cs | 4 +- NPCs/AstrumDeus/AstrumDeusBody.cs | 4 +- NPCs/AstrumDeus/AstrumDeusBodySpectral.cs | 4 +- NPCs/AstrumDeus/AstrumDeusHead.cs | 2 +- NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs | 2 +- NPCs/AstrumDeus/AstrumDeusProbe.cs | 2 +- NPCs/AstrumDeus/AstrumDeusProbe2.cs | 2 +- NPCs/AstrumDeus/AstrumDeusProbe3.cs | 2 +- NPCs/AstrumDeus/AstrumDeusTail.cs | 2 +- NPCs/AstrumDeus/AstrumDeusTailSpectral.cs | 2 +- NPCs/BrimstoneElemental/Brimling.cs | 2 +- NPCs/BrimstoneElemental/BrimstoneElemental.cs | 2 +- NPCs/Bumblebirb/Bumblefuck.cs | 2 +- NPCs/Bumblebirb/Bumblefuck2.cs | 4 +- NPCs/Calamitas/Calamitas.cs | 2 +- NPCs/Calamitas/CalamitasRun.cs | 2 +- NPCs/Calamitas/CalamitasRun2.cs | 2 +- NPCs/Calamitas/CalamitasRun3.cs | 2 +- NPCs/Calamitas/LifeSeeker.cs | 2 +- NPCs/Calamitas/SoulSeeker.cs | 2 +- NPCs/CalamityAI.cs | 48 +- NPCs/CalamityGlobalAI.cs | 368 +++++------ NPCs/CalamityGlobalNPC.cs | 6 +- NPCs/CeaselessVoid/CeaselessVoid.cs | 2 +- NPCs/CeaselessVoid/DarkEnergy.cs | 2 +- NPCs/CeaselessVoid/DarkEnergy2.cs | 2 +- NPCs/CeaselessVoid/DarkEnergy3.cs | 2 +- NPCs/Crabulon/CrabShroom.cs | 2 +- NPCs/Crabulon/CrabulonIdle.cs | 6 +- NPCs/Crags/CalamityEye.cs | 2 +- NPCs/Crags/CharredSlime.cs | 2 +- NPCs/Crags/CultistAssassin.cs | 2 +- NPCs/Crags/DespairStone.cs | 2 +- NPCs/Crags/Scryllar.cs | 2 +- NPCs/Crags/ScryllarRage.cs | 2 +- NPCs/Crags/SoulSlurper.cs | 2 +- NPCs/Cryogen/Cryocore.cs | 2 +- NPCs/Cryogen/Cryocore2.cs | 2 +- NPCs/Cryogen/Cryogen.cs | 6 +- NPCs/Cryogen/CryogenIce.cs | 2 +- NPCs/Cryogen/IceMass.cs | 2 +- NPCs/DesertScourge/DesertScourgeBody.cs | 4 +- NPCs/DesertScourge/DesertScourgeBodySmall.cs | 2 +- NPCs/DesertScourge/DesertScourgeHead.cs | 6 +- NPCs/DesertScourge/DesertScourgeHeadSmall.cs | 6 +- NPCs/DesertScourge/DesertScourgeTail.cs | 2 +- NPCs/DesertScourge/DesertScourgeTailSmall.cs | 2 +- NPCs/DesertScourge/DriedSeekerBody.cs | 2 +- NPCs/DesertScourge/DriedSeekerHead.cs | 4 +- NPCs/DesertScourge/DriedSeekerTail.cs | 2 +- NPCs/DevourerofGods/DevourerofGodsBody.cs | 2 +- NPCs/DevourerofGods/DevourerofGodsBody2.cs | 2 +- NPCs/DevourerofGods/DevourerofGodsBodyS.cs | 2 +- NPCs/DevourerofGods/DevourerofGodsHead.cs | 4 +- NPCs/DevourerofGods/DevourerofGodsHead2.cs | 6 +- NPCs/DevourerofGods/DevourerofGodsHeadS.cs | 10 +- NPCs/DevourerofGods/DevourerofGodsTail.cs | 2 +- NPCs/DevourerofGods/DevourerofGodsTail2.cs | 2 +- NPCs/DevourerofGods/DevourerofGodsTailS.cs | 2 +- NPCs/GreatSandShark/GreatSandShark.cs | 4 +- NPCs/HiveMind/DankCreeper.cs | 2 +- NPCs/HiveMind/DarkHeart.cs | 2 +- NPCs/HiveMind/HiveBlob.cs | 2 +- NPCs/HiveMind/HiveBlob2.cs | 2 +- NPCs/HiveMind/HiveCyst.cs | 2 +- NPCs/HiveMind/HiveMind.cs | 6 +- NPCs/HiveMind/HiveMindP2.cs | 12 +- NPCs/Leviathan/AquaticAberration.cs | 2 +- NPCs/Leviathan/Leviathan.cs | 8 +- NPCs/Leviathan/LeviathanStart.cs | 2 +- NPCs/Leviathan/Parasea.cs | 2 +- NPCs/Leviathan/Siren.cs | 6 +- NPCs/Leviathan/SirenClone.cs | 2 +- NPCs/Leviathan/SirenIce.cs | 2 +- NPCs/NormalNPCs/AeroSlime.cs | 2 +- NPCs/NormalNPCs/AngryDog.cs | 2 +- NPCs/NormalNPCs/ArmoredDiggerBody.cs | 2 +- NPCs/NormalNPCs/ArmoredDiggerHead.cs | 6 +- NPCs/NormalNPCs/ArmoredDiggerTail.cs | 2 +- NPCs/NormalNPCs/BlightedEye.cs | 2 +- NPCs/NormalNPCs/BloomSlime.cs | 2 +- NPCs/NormalNPCs/Bohldohr.cs | 2 +- NPCs/NormalNPCs/Cnidrion.cs | 2 +- NPCs/NormalNPCs/CosmicElemental.cs | 2 +- NPCs/NormalNPCs/CrawlerAmber.cs | 2 +- NPCs/NormalNPCs/CrawlerAmethyst.cs | 2 +- NPCs/NormalNPCs/CrawlerCrystal.cs | 2 +- NPCs/NormalNPCs/CrawlerDiamond.cs | 2 +- NPCs/NormalNPCs/CrawlerEmerald.cs | 2 +- NPCs/NormalNPCs/CrawlerRuby.cs | 2 +- NPCs/NormalNPCs/CrawlerSapphire.cs | 2 +- NPCs/NormalNPCs/CrawlerTopaz.cs | 2 +- NPCs/NormalNPCs/CrimulanBlightSlime.cs | 2 +- NPCs/NormalNPCs/CryoSlime.cs | 2 +- NPCs/NormalNPCs/Cryon.cs | 2 +- NPCs/NormalNPCs/EbonianBlightSlime.cs | 2 +- NPCs/NormalNPCs/Eidolist.cs | 2 +- NPCs/NormalNPCs/FearlessGoldfishWarrior.cs | 6 +- NPCs/NormalNPCs/Frogfish.cs | 2 +- NPCs/NormalNPCs/HeatSpirit.cs | 2 +- NPCs/NormalNPCs/Horse.cs | 6 +- NPCs/NormalNPCs/IceClasper.cs | 2 +- NPCs/NormalNPCs/ImpiousImmolator.cs | 2 +- NPCs/NormalNPCs/KingSlimeJewel.cs | 4 +- NPCs/NormalNPCs/MantisShrimp.cs | 4 +- NPCs/NormalNPCs/OverloadedSoldier.cs | 6 +- NPCs/NormalNPCs/PerennialSlime.cs | 2 +- NPCs/NormalNPCs/PhantomDebris.cs | 6 +- NPCs/NormalNPCs/PhantomSpirit.cs | 2 +- NPCs/NormalNPCs/PhantomSpiritL.cs | 2 +- NPCs/NormalNPCs/PhantomSpiritM.cs | 2 +- NPCs/NormalNPCs/PhantomSpiritS.cs | 2 +- NPCs/NormalNPCs/Piggy.cs | 2 +- NPCs/NormalNPCs/Pitbull.cs | 2 +- NPCs/NormalNPCs/PlagueBee.cs | 2 +- NPCs/NormalNPCs/PlagueBeeLarge.cs | 2 +- NPCs/NormalNPCs/PlaguedDerpling.cs | 2 +- NPCs/NormalNPCs/PlaguedFlyingFox.cs | 2 +- NPCs/NormalNPCs/PlaguedJungleSlime.cs | 6 +- NPCs/NormalNPCs/PlaguedTortoise.cs | 2 +- NPCs/NormalNPCs/ProfanedEnergyBody.cs | 2 +- NPCs/NormalNPCs/ProfanedEnergyLantern.cs | 2 +- NPCs/NormalNPCs/SandTortoise.cs | 2 +- NPCs/NormalNPCs/ScornEater.cs | 2 +- NPCs/NormalNPCs/SeaUrchin.cs | 2 +- NPCs/NormalNPCs/ShockstormShuttle.cs | 4 +- NPCs/NormalNPCs/StormlionCharger.cs | 2 +- NPCs/NormalNPCs/SunBat.cs | 2 +- NPCs/NormalNPCs/Sunskater.cs | 2 +- NPCs/NormalNPCs/ThiccWaifu.cs | 2 +- NPCs/NormalNPCs/WulfrumDrone.cs | 2 +- NPCs/NormalNPCs/WulfrumSlime.cs | 2 +- NPCs/OldDuke/OldDuke.cs | 2 +- NPCs/OldDuke/OldDukeSharkron.cs | 10 +- NPCs/OldDuke/OldDukeToothBall.cs | 4 +- NPCs/Perforator/PerforatorBodyLarge.cs | 2 +- NPCs/Perforator/PerforatorBodyMedium.cs | 2 +- NPCs/Perforator/PerforatorBodySmall.cs | 2 +- NPCs/Perforator/PerforatorCyst.cs | 2 +- NPCs/Perforator/PerforatorHeadLarge.cs | 6 +- NPCs/Perforator/PerforatorHeadMedium.cs | 6 +- NPCs/Perforator/PerforatorHeadSmall.cs | 7 +- NPCs/Perforator/PerforatorHive.cs | 4 +- NPCs/Perforator/PerforatorTailLarge.cs | 2 +- NPCs/Perforator/PerforatorTailMedium.cs | 2 +- NPCs/Perforator/PerforatorTailSmall.cs | 2 +- NPCs/PlaguebringerGoliath/PlagueBeeG.cs | 2 +- NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs | 2 +- .../PlagueHomingMissile.cs | 4 +- NPCs/PlaguebringerGoliath/PlagueMine.cs | 4 +- .../PlaguebringerGoliath.cs | 14 +- .../PlaguebringerShade.cs | 10 +- NPCs/Polterghast/PhantomFuckYou.cs | 2 +- NPCs/Polterghast/PolterPhantom.cs | 2 +- NPCs/Polterghast/Polterghast.cs | 6 +- NPCs/Polterghast/PolterghastHook.cs | 2 +- .../ProfanedGuardians/ProfanedGuardianBoss.cs | 2 +- .../ProfanedGuardianBoss2.cs | 2 +- .../ProfanedGuardianBoss3.cs | 2 +- NPCs/Providence/ProvSpawnDefense.cs | 2 +- NPCs/Providence/ProvSpawnHealer.cs | 2 +- NPCs/Providence/ProvSpawnOffense.cs | 2 +- NPCs/Providence/Providence.cs | 2 +- NPCs/Ravager/FlamePillar.cs | 2 +- NPCs/Ravager/RavagerBody.cs | 6 +- NPCs/Ravager/RavagerClawLeft.cs | 2 +- NPCs/Ravager/RavagerClawRight.cs | 2 +- NPCs/Ravager/RavagerHead.cs | 2 +- NPCs/Ravager/RavagerHead2.cs | 2 +- NPCs/Ravager/RavagerLegLeft.cs | 2 +- NPCs/Ravager/RavagerLegRight.cs | 2 +- NPCs/Ravager/RockPillar.cs | 2 +- NPCs/Signus/CosmicLantern.cs | 2 +- NPCs/Signus/Signus.cs | 12 +- NPCs/Signus/SignusBomb.cs | 2 +- NPCs/SlimeGod/SlimeGod.cs | 6 +- NPCs/SlimeGod/SlimeGodCore.cs | 2 +- NPCs/SlimeGod/SlimeGodRun.cs | 6 +- NPCs/SlimeGod/SlimeGodRunSplit.cs | 4 +- NPCs/SlimeGod/SlimeGodSplit.cs | 4 +- NPCs/SlimeGod/SlimeSpawnCorrupt.cs | 2 +- NPCs/SlimeGod/SlimeSpawnCorrupt2.cs | 2 +- NPCs/SlimeGod/SlimeSpawnCrimson.cs | 2 +- NPCs/SlimeGod/SlimeSpawnCrimson2.cs | 2 +- NPCs/StormWeaver/StasisProbe.cs | 2 +- NPCs/StormWeaver/StasisProbeNaked.cs | 2 +- NPCs/StormWeaver/StormWeaverBody.cs | 4 +- NPCs/StormWeaver/StormWeaverBodyNaked.cs | 4 +- NPCs/StormWeaver/StormWeaverHead.cs | 6 +- NPCs/StormWeaver/StormWeaverHeadNaked.cs | 6 +- NPCs/StormWeaver/StormWeaverTail.cs | 2 +- NPCs/StormWeaver/StormWeaverTailNaked.cs | 2 +- NPCs/SulphurousSea/AnthozoanCrab.cs | 2 +- NPCs/SulphurousSea/BelchingCoral.cs | 2 +- NPCs/SulphurousSea/Catfish.cs | 2 +- NPCs/SulphurousSea/Flounder.cs | 2 +- NPCs/SulphurousSea/Gnasher.cs | 2 +- NPCs/SulphurousSea/Mauler.cs | 4 +- NPCs/SulphurousSea/MicrobialCluster.cs | 2 +- NPCs/SulphurousSea/Trasher.cs | 2 +- NPCs/SunkenSea/BlindedAngler.cs | 2 +- NPCs/SunkenSea/Clam.cs | 2 +- NPCs/SunkenSea/EutrophicRay.cs | 2 +- NPCs/SunkenSea/GhostBell.cs | 2 +- NPCs/SunkenSea/GhostBellSmall.cs | 2 +- NPCs/SunkenSea/GiantClam.cs | 2 +- NPCs/SunkenSea/PrismTurtle.cs | 2 +- NPCs/SunkenSea/SeaFloaty.cs | 2 +- NPCs/SunkenSea/SeaMinnow.cs | 2 +- NPCs/SunkenSea/SeaSerpent1.cs | 6 +- NPCs/SunkenSea/SeaSerpent2.cs | 2 +- NPCs/SunkenSea/SeaSerpent3.cs | 2 +- NPCs/SunkenSea/SeaSerpent4.cs | 2 +- NPCs/SunkenSea/SeaSerpent5.cs | 2 +- NPCs/SupremeCalamitas/SCalWormBody.cs | 2 +- NPCs/SupremeCalamitas/SCalWormBodyWeak.cs | 2 +- NPCs/SupremeCalamitas/SCalWormHead.cs | 4 +- NPCs/SupremeCalamitas/SCalWormHeart.cs | 2 +- NPCs/SupremeCalamitas/SCalWormTail.cs | 2 +- NPCs/SupremeCalamitas/SoulSeekerSupreme.cs | 2 +- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 6 +- NPCs/SupremeCalamitas/SupremeCataclysm.cs | 4 +- NPCs/SupremeCalamitas/SupremeCatastrophe.cs | 4 +- NPCs/TownNPCs/THIEF.cs | 2 +- NPCs/Yharon/DetonatingFlare.cs | 2 +- NPCs/Yharon/DetonatingFlare2.cs | 2 +- NPCs/Yharon/Yharon.cs | 2 +- .../BaseProjectiles/BaseSpearProjectile.cs | 2 +- .../BaseProjectiles/BaseWhipProjectile.cs | 2 +- Projectiles/Boss/AbyssBallVolley.cs | 4 +- Projectiles/Boss/AbyssBallVolley2.cs | 4 +- Projectiles/Boss/AbyssMine.cs | 6 +- Projectiles/Boss/AbyssMine2.cs | 6 +- Projectiles/Boss/AstralFlame.cs | 4 +- Projectiles/Boss/AstralLaser.cs | 2 +- Projectiles/Boss/AstralShot2.cs | 4 +- Projectiles/Boss/BigFlare.cs | 4 +- Projectiles/Boss/BigFlare2.cs | 4 +- Projectiles/Boss/BirbAura.cs | 2 +- Projectiles/Boss/BirbAuraFlare.cs | 2 +- Projectiles/Boss/BloodClot.cs | 2 +- Projectiles/Boss/BloodGeyser.cs | 2 +- Projectiles/Boss/BrimstoneBall.cs | 2 +- Projectiles/Boss/BrimstoneBarrage.cs | 2 +- Projectiles/Boss/BrimstoneFire.cs | 2 +- Projectiles/Boss/BrimstoneFireblast.cs | 8 +- Projectiles/Boss/BrimstoneGigaBlast.cs | 8 +- Projectiles/Boss/BrimstoneHellblast.cs | 6 +- Projectiles/Boss/BrimstoneHellblast2.cs | 2 +- Projectiles/Boss/BrimstoneHellfireball.cs | 4 +- Projectiles/Boss/BrimstoneLaser.cs | 2 +- Projectiles/Boss/BrimstoneLaserSplit.cs | 2 +- Projectiles/Boss/BrimstoneMonster.cs | 2 +- Projectiles/Boss/BrimstoneRay.cs | 2 +- Projectiles/Boss/BrimstoneTargetRay.cs | 2 +- Projectiles/Boss/BrimstoneWave.cs | 2 +- Projectiles/Boss/CosmicFlameBurst.cs | 7 +- Projectiles/Boss/DarkEnergyBall.cs | 2 +- Projectiles/Boss/DarkEnergyBall2.cs | 2 +- Projectiles/Boss/DarkOrb.cs | 2 +- Projectiles/Boss/DestroyerHomingLaser.cs | 5 +- Projectiles/Boss/DeusMine.cs | 5 +- Projectiles/Boss/DoGBeam.cs | 2 +- Projectiles/Boss/DoGBeamPortal.cs | 7 +- Projectiles/Boss/DoGDeath.cs | 2 +- Projectiles/Boss/DoGFire.cs | 4 +- Projectiles/Boss/DoGNebulaShot.cs | 5 +- Projectiles/Boss/EssenceDust.cs | 5 +- Projectiles/Boss/Flare.cs | 4 +- Projectiles/Boss/FlareBomb.cs | 5 +- Projectiles/Boss/FlareDust.cs | 5 +- Projectiles/Boss/FlareDust2.cs | 5 +- Projectiles/Boss/Flarenado.cs | 2 +- Projectiles/Boss/FrostMist.cs | 4 +- Projectiles/Boss/GreatSandBlast.cs | 4 +- Projectiles/Boss/HealOrbProv.cs | 5 +- Projectiles/Boss/HellfireExplosion.cs | 5 +- Projectiles/Boss/HiveBombGoliath.cs | 4 +- Projectiles/Boss/HolyBlast.cs | 11 +- Projectiles/Boss/HolyBomb.cs | 17 +- Projectiles/Boss/HolyBurnOrb.cs | 8 +- Projectiles/Boss/HolyFire.cs | 7 +- Projectiles/Boss/HolyFire2.cs | 5 +- Projectiles/Boss/HolyFlare.cs | 5 +- Projectiles/Boss/HolyLight.cs | 9 +- Projectiles/Boss/HolySpear.cs | 2 +- Projectiles/Boss/IceBlast.cs | 2 +- Projectiles/Boss/IceBomb.cs | 4 +- Projectiles/Boss/IceRain.cs | 4 +- Projectiles/Boss/IchorShot.cs | 2 +- Projectiles/Boss/Infernado.cs | 2 +- Projectiles/Boss/Infernado2.cs | 2 +- Projectiles/Boss/InfernadoRevenge.cs | 2 +- Projectiles/Boss/JewelProjectile.cs | 2 +- Projectiles/Boss/LeviathanBomb.cs | 7 +- Projectiles/Boss/MoltenBlast.cs | 11 +- Projectiles/Boss/MoltenBlob.cs | 5 +- Projectiles/Boss/MushBomb.cs | 4 +- Projectiles/Boss/MushBombFall.cs | 4 +- Projectiles/Boss/Mushmash.cs | 2 +- Projectiles/Boss/OldDukeGore.cs | 8 +- Projectiles/Boss/OldDukeSummonDrop.cs | 2 +- Projectiles/Boss/OldDukeVortex.cs | 2 +- .../Boss/OverlyDramaticDukeSummoner.cs | 2 +- Projectiles/Boss/PhantomBlast.cs | 4 +- Projectiles/Boss/PhantomBlast2.cs | 4 +- Projectiles/Boss/PhantomGhostShot.cs | 2 +- Projectiles/Boss/PhantomHookShot.cs | 2 +- Projectiles/Boss/PhantomMine.cs | 5 +- Projectiles/Boss/PhantomShot.cs | 2 +- Projectiles/Boss/PhantomShot2.cs | 2 +- Projectiles/Boss/PlagueExplosion.cs | 2 +- Projectiles/Boss/PlagueStingerGoliath.cs | 2 +- Projectiles/Boss/PlagueStingerGoliathV2.cs | 5 +- Projectiles/Boss/ProfanedSpear.cs | 2 +- Projectiles/Boss/ProvidenceCrystal.cs | 5 +- Projectiles/Boss/ProvidenceCrystalShard.cs | 5 +- Projectiles/Boss/ProvidenceHolyRay.cs | 2 +- Projectiles/Boss/RavagerFlame.cs | 4 +- Projectiles/Boss/RedLightning.cs | 2 +- Projectiles/Boss/RedLightningFeather.cs | 8 +- Projectiles/Boss/SandBlast.cs | 6 +- Projectiles/Boss/SandPoisonCloud.cs | 2 +- Projectiles/Boss/SandTooth.cs | 2 +- Projectiles/Boss/ScavengerLaser.cs | 4 +- Projectiles/Boss/ScavengerNuke.cs | 5 +- Projectiles/Boss/ShadeNimbusHostile.cs | 2 +- Projectiles/Boss/ShaderainHostile.cs | 2 +- Projectiles/Boss/ShadowflameFireball.cs | 2 +- Projectiles/Boss/Shadowflamethrower.cs | 2 +- Projectiles/Boss/SignusScythe.cs | 4 +- Projectiles/Boss/SirenSong.cs | 2 +- Projectiles/Boss/SkyFlare.cs | 5 +- Projectiles/Boss/SkyFlareRevenge.cs | 5 +- Projectiles/Boss/SporeGasPlantera.cs | 2 +- Projectiles/Boss/VileClot.cs | 2 +- Projectiles/Boss/WaterSpear.cs | 4 +- Projectiles/Boss/YharonFireball.cs | 2 +- Projectiles/Boss/YharonFireball2.cs | 4 +- Projectiles/CalamityGlobalProjectile.cs | 14 +- .../Damageable/ArtifactOfResilienceBulwark.cs | 2 +- .../DraedonsArsenal/GatlingLaserProj.cs | 2 +- .../DraedonsArsenal/GatlingLaserShot.cs | 2 +- Projectiles/DraedonsArsenal/LaserRifleShot.cs | 2 +- .../DraedonsArsenal/PlasmaCasterShot.cs | 2 +- Projectiles/DraedonsArsenal/PulseRifleShot.cs | 2 +- .../DraedonsArsenal/TeslaCannonShot.cs | 2 +- Projectiles/Enemy/AstralShot.cs | 6 +- Projectiles/Enemy/BelchingCoralSpike.cs | 2 +- Projectiles/Enemy/CrabBoulder.cs | 2 +- Projectiles/Enemy/CragmawBeam.cs | 2 +- Projectiles/Enemy/CragmawBubble.cs | 2 +- Projectiles/Enemy/CragmawSpike.cs | 2 +- Projectiles/Enemy/CragmawVibeCheckChain.cs | 2 +- Projectiles/Enemy/CrimsonSpike.cs | 4 +- Projectiles/Enemy/EarthRockBig.cs | 5 +- Projectiles/Enemy/EarthRockSmall.cs | 5 +- Projectiles/Enemy/FlakAcid.cs | 2 +- Projectiles/Enemy/FlameBurstHostile.cs | 5 +- Projectiles/Enemy/GammaAcid.cs | 2 +- Projectiles/Enemy/GammaBeam.cs | 2 +- Projectiles/Enemy/HorsWaterBlast.cs | 6 +- Projectiles/Enemy/InkBomb.cs | 4 +- Projectiles/Enemy/InkPoisonCloud.cs | 2 +- Projectiles/Enemy/InkPoisonCloud2.cs | 2 +- Projectiles/Enemy/InkPoisonCloud3.cs | 2 +- Projectiles/Enemy/MantisRing.cs | 2 +- Projectiles/Enemy/NuclearBulletLarge.cs | 2 +- Projectiles/Enemy/NuclearBulletMedium.cs | 2 +- Projectiles/Enemy/NuclearToadGoo.cs | 2 +- Projectiles/Enemy/OrthoceraStream.cs | 2 +- Projectiles/Enemy/PearlBurst.cs | 2 +- Projectiles/Enemy/PearlRain.cs | 2 +- Projectiles/Enemy/PufferExplosion.cs | 3 +- Projectiles/Enemy/StormMarkHostile.cs | 5 +- Projectiles/Enemy/SulphuricAcidBubble.cs | 2 +- Projectiles/Enemy/SulphuricAcidMist.cs | 4 +- Projectiles/Enemy/TornadoHostile.cs | 5 +- Projectiles/Enemy/ToxicMinnowCloud.cs | 2 +- Projectiles/Enemy/TrilobiteSpike.cs | 2 +- Projectiles/Environment/AcidDrop.cs | 2 +- Projectiles/Environment/GeyserTelegraph.cs | 2 +- Projectiles/Environment/HotSteam.cs | 2 +- Projectiles/Environment/LavaChunk.cs | 2 +- Projectiles/Environment/LightningMark.cs | 2 +- Projectiles/Healing/AtaxiaHealOrb.cs | 2 +- Projectiles/Healing/AuricOrb.cs | 2 +- Projectiles/Healing/BurntSiennaProj.cs | 2 +- Projectiles/Healing/CactusHealOrb.cs | 2 +- Projectiles/Healing/EarthHealOrb.cs | 2 +- Projectiles/Healing/EssenceFlame.cs | 5 +- Projectiles/Healing/Exoheal.cs | 2 +- Projectiles/Healing/FungalHeal.cs | 2 +- Projectiles/Healing/GodSlayerHealOrb.cs | 2 +- Projectiles/Healing/ManaOverloaderHealOrb.cs | 2 +- Projectiles/Healing/PhoenixHeal.cs | 2 +- Projectiles/Healing/RainHeal.cs | 2 +- Projectiles/Healing/RoyalHeal.cs | 2 +- Projectiles/Healing/ShinobiHealOrb.cs | 2 +- Projectiles/Healing/SilvaOrb.cs | 2 +- Projectiles/Healing/TerracottaProj.cs | 2 +- Projectiles/Healing/TransfusionTrail.cs | 2 +- Projectiles/Healing/XerocHealOrb.cs | 2 +- Projectiles/Hybrid/AccretionDisk2.cs | 2 +- Projectiles/Hybrid/AccretionDiskProj.cs | 2 +- Projectiles/Hybrid/AetherBeam.cs | 2 +- Projectiles/Hybrid/CorpusAvertorClone.cs | 2 +- Projectiles/Hybrid/CorpusAvertorProj.cs | 2 +- Projectiles/Hybrid/EmpyreanKnife.cs | 2 +- Projectiles/Hybrid/EradicatorProjectile.cs | 2 +- Projectiles/Hybrid/FlameScytheProjectile.cs | 2 +- Projectiles/Hybrid/GalaxySmasherHammer.cs | 6 +- Projectiles/Hybrid/IllustriousKnife.cs | 2 +- Projectiles/Hybrid/KelvinCatalystBoomerang.cs | 6 +- .../Hybrid/MangroveChakramProjectile.cs | 2 +- Projectiles/Hybrid/NanoblackMain.cs | 2 +- Projectiles/Hybrid/NanoblackSplit.cs | 2 +- Projectiles/Hybrid/OPHammer.cs | 2 +- Projectiles/Hybrid/PwnagehammerProj.cs | 2 +- Projectiles/Hybrid/ScourgeoftheCosmosMini.cs | 2 +- Projectiles/Hybrid/ScourgeoftheCosmosProj.cs | 6 +- .../Hybrid/SeashellBoomerangProjectile.cs | 2 +- Projectiles/Hybrid/StellarContemptHammer.cs | 6 +- Projectiles/Hybrid/TriactisOPHammer.cs | 6 +- Projectiles/Magic/AbyssBall.cs | 6 +- Projectiles/Magic/AcidGunStream.cs | 2 +- Projectiles/Magic/AcidicReed.cs | 2 +- Projectiles/Magic/AcidicSaxBubble.cs | 2 +- Projectiles/Magic/AcidicSaxMist.cs | 4 +- Projectiles/Magic/Ancient.cs | 2 +- Projectiles/Magic/Ancient2.cs | 2 +- Projectiles/Magic/AquamarineBolt.cs | 2 +- Projectiles/Magic/Asteroid.cs | 2 +- Projectiles/Magic/AsteroidMolten.cs | 2 +- Projectiles/Magic/AstralCrystal.cs | 2 +- .../Magic/AstralCrystalInvisibleExplosion.cs | 2 +- Projectiles/Magic/AstralStarMagic.cs | 4 +- Projectiles/Magic/AstralachneaFang.cs | 2 +- Projectiles/Magic/AtlantisSpear.cs | 6 +- Projectiles/Magic/AtlantisSpear2.cs | 2 +- Projectiles/Magic/AuraRain.cs | 2 +- Projectiles/Magic/BeamingBolt.cs | 2 +- Projectiles/Magic/BeamingBolt2.cs | 2 +- Projectiles/Magic/BeastScythe.cs | 2 +- Projectiles/Magic/BigBeamofDeath.cs | 2 +- Projectiles/Magic/BigBeamofDeath2.cs | 2 +- Projectiles/Magic/BlackAnurianBubble.cs | 2 +- Projectiles/Magic/BlackAnurianPlankton.cs | 2 +- Projectiles/Magic/BlindingLight.cs | 2 +- Projectiles/Magic/BloodBeam.cs | 2 +- Projectiles/Magic/BloodBlast.cs | 2 +- Projectiles/Magic/BloodBolt.cs | 2 +- Projectiles/Magic/BloodOrb.cs | 2 +- Projectiles/Magic/BloodRay.cs | 2 +- Projectiles/Magic/BlueBubble.cs | 6 +- Projectiles/Magic/BrimstoneBeam.cs | 2 +- Projectiles/Magic/BrimstoneBeam2.cs | 2 +- Projectiles/Magic/BrimstoneBeam3.cs | 2 +- Projectiles/Magic/BrimstoneBeam4.cs | 2 +- Projectiles/Magic/BrimstoneBeam5.cs | 2 +- Projectiles/Magic/BrimstoneFireball.cs | 6 +- .../Magic/BrimstoneHellfireballFriendly.cs | 4 +- Projectiles/Magic/BrimstoneHomer.cs | 2 +- Projectiles/Magic/BrimstoneTentacle.cs | 2 +- Projectiles/Magic/ClamorNoctusStar.cs | 4 +- Projectiles/Magic/ClamorNoctusWyvern.cs | 2 +- Projectiles/Magic/Climax2.cs | 2 +- Projectiles/Magic/ClimaxBeam.cs | 2 +- Projectiles/Magic/ClimaxProj.cs | 2 +- Projectiles/Magic/CoralSpike.cs | 2 +- Projectiles/Magic/CosmicTentacle.cs | 2 +- Projectiles/Magic/CryoBlast.cs | 2 +- Projectiles/Magic/DarkSparkBeam.cs | 2 +- Projectiles/Magic/DarkSparkPrism.cs | 2 +- Projectiles/Magic/DemonicPitchforkProj.cs | 2 +- Projectiles/Magic/DivineRetributionSpear.cs | 4 +- Projectiles/Magic/DustProjectile.cs | 2 +- Projectiles/Magic/EelDrop.cs | 2 +- Projectiles/Magic/EidolicWailSoundwave.cs | 2 +- Projectiles/Magic/EldritchTentacle.cs | 2 +- Projectiles/Magic/ElementBolt.cs | 2 +- Projectiles/Magic/ElementBolt2.cs | 2 +- Projectiles/Magic/ElementOrb.cs | 2 +- Projectiles/Magic/ElementOrb2.cs | 2 +- Projectiles/Magic/ElementTentacle.cs | 2 +- Projectiles/Magic/ElementalRayBeam.cs | 2 +- Projectiles/Magic/EternityBook.cs | 2 +- Projectiles/Magic/EventHorizonBlackhole.cs | 2 +- Projectiles/Magic/EventHorizonStar.cs | 8 +- Projectiles/Magic/EvergladeSprayProjectile.cs | 2 +- Projectiles/Magic/FabBolt.cs | 2 +- Projectiles/Magic/FabOrb.cs | 2 +- Projectiles/Magic/FabRay.cs | 2 +- Projectiles/Magic/FatesRevealFlame.cs | 2 +- Projectiles/Magic/FlameBeamTip.cs | 4 +- Projectiles/Magic/FlameBeamTip2.cs | 2 +- Projectiles/Magic/FlareBoltProjectile.cs | 6 +- Projectiles/Magic/ForbiddenAxeBlade.cs | 2 +- Projectiles/Magic/ForbiddenSunProjectile.cs | 4 +- Projectiles/Magic/ForbiddenSunburst.cs | 4 +- .../Magic/FrigidflashBoltProjectile.cs | 6 +- Projectiles/Magic/FrostBoltProjectile.cs | 6 +- Projectiles/Magic/GammaLaser.cs | 2 +- Projectiles/Magic/GhastlyBlast.cs | 2 +- Projectiles/Magic/GhastlyExplosion.cs | 2 +- Projectiles/Magic/GhastlyExplosionShard.cs | 2 +- Projectiles/Magic/GhastlySubBlast.cs | 2 +- Projectiles/Magic/GhastlyVisageProj.cs | 2 +- Projectiles/Magic/GleamingBolt.cs | 5 +- Projectiles/Magic/GleamingBolt2.cs | 2 +- Projectiles/Magic/GraniteEnergy.cs | 2 +- Projectiles/Magic/GranitePulse.cs | 7 +- Projectiles/Magic/HadopelagicEcho2.cs | 2 +- Projectiles/Magic/HadopelagicEchoSoundwave.cs | 2 +- Projectiles/Magic/HeliumFlashBlast.cs | 2 +- .../Magic/HellfireExplosionFriendly.cs | 5 +- Projectiles/Magic/HellwingPillar.cs | 2 +- Projectiles/Magic/HolyFlame.cs | 5 +- Projectiles/Magic/HolyLaser.cs | 2 +- Projectiles/Magic/IceBarrageMain.cs | 2 +- Projectiles/Magic/IceBlock.cs | 2 +- Projectiles/Magic/IceBlockIcicle.cs | 2 +- Projectiles/Magic/IceCluster.cs | 4 +- Projectiles/Magic/IceSpike.cs | 4 +- Projectiles/Magic/IcicleStaffProj.cs | 5 +- Projectiles/Magic/InfernadoFriendly.cs | 2 +- Projectiles/Magic/InfernadoMarkFriendly.cs | 5 +- Projectiles/Magic/InfernalBlade.cs | 6 +- Projectiles/Magic/InfernalBlade2.cs | 6 +- Projectiles/Magic/IonBlast.cs | 4 +- Projectiles/Magic/KeelhaulBubble.cs | 2 +- Projectiles/Magic/KeelhaulGeyserBottom.cs | 2 +- Projectiles/Magic/KeelhaulGeyserTop.cs | 2 +- Projectiles/Magic/LightBall.cs | 5 +- Projectiles/Magic/LightBallExplosion.cs | 2 +- Projectiles/Magic/LightBead.cs | 2 +- Projectiles/Magic/LightBeadSplit.cs | 2 +- Projectiles/Magic/LightBlade.cs | 4 +- Projectiles/Magic/LightningArc.cs | 2 +- Projectiles/Magic/LiquidBlade.cs | 6 +- Projectiles/Magic/LiquidBlade2.cs | 6 +- Projectiles/Magic/LuxorsGiftMagic.cs | 2 +- Projectiles/Magic/MadAlchemistsCocktailAlt.cs | 4 +- .../Magic/MadAlchemistsCocktailBlue.cs | 2 +- .../Magic/MadAlchemistsCocktailGasCloud.cs | 2 +- .../Magic/MadAlchemistsCocktailGreen.cs | 2 +- .../Magic/MadAlchemistsCocktailPurple.cs | 2 +- Projectiles/Magic/MadAlchemistsCocktailRed.cs | 4 +- Projectiles/Magic/MagicNebulaShot.cs | 4 +- Projectiles/Magic/MagnaBlast.cs | 2 +- Projectiles/Magic/MagneticBeam.cs | 2 +- Projectiles/Magic/MagneticOrb.cs | 2 +- Projectiles/Magic/MagnusBeam.cs | 2 +- Projectiles/Magic/ManaBolt.cs | 5 +- Projectiles/Magic/ManaBoltSmall.cs | 5 +- Projectiles/Magic/ManaBoltSmall2.cs | 5 +- Projectiles/Magic/MelterAmp.cs | 2 +- Projectiles/Magic/MelterNote1.cs | 2 +- Projectiles/Magic/MelterNote2.cs | 2 +- Projectiles/Magic/MiasmaGas.cs | 2 +- Projectiles/Magic/NightBolt.cs | 2 +- Projectiles/Magic/NightOrb.cs | 2 +- Projectiles/Magic/NightsRayBeam.cs | 2 +- Projectiles/Magic/NuclearFuryProjectile.cs | 2 +- Projectiles/Magic/ParticleBeamofDoom.cs | 2 +- Projectiles/Magic/PhantasmalFuryProj.cs | 4 +- Projectiles/Magic/Phantom.cs | 2 +- Projectiles/Magic/PlagueFang.cs | 6 +- Projectiles/Magic/PlasmaBolt.cs | 2 +- Projectiles/Magic/PlasmaRay.cs | 2 +- Projectiles/Magic/PlasmaRay2.cs | 2 +- Projectiles/Magic/PlasmaShot.cs | 5 +- Projectiles/Magic/PoseidonTyphoon.cs | 3 +- Projectiles/Magic/PurgeLaser.cs | 2 +- Projectiles/Magic/PurgeProj.cs | 5 +- Projectiles/Magic/RougeSlashLarge.cs | 2 +- Projectiles/Magic/RougeSlashMedium.cs | 2 +- Projectiles/Magic/RougeSlashSmall.cs | 2 +- Projectiles/Magic/SHPB.cs | 5 +- Projectiles/Magic/SHPExplosion.cs | 2 +- Projectiles/Magic/SHPL.cs | 2 +- Projectiles/Magic/SanguineFlareProj.cs | 4 +- .../SeethingDischargeBrimstoneBarrage.cs | 2 +- .../SeethingDischargeBrimstoneHellblast.cs | 6 +- Projectiles/Magic/SerpentineBody.cs | 2 +- Projectiles/Magic/SerpentineHead.cs | 2 +- Projectiles/Magic/SerpentineTail.cs | 2 +- Projectiles/Magic/ShadeNimbus.cs | 2 +- Projectiles/Magic/ShadeNimbusCloud.cs | 2 +- Projectiles/Magic/ShadecrystalProjectile.cs | 2 +- Projectiles/Magic/Shaderain.cs | 2 +- Projectiles/Magic/Shadowbolt.cs | 2 +- Projectiles/Magic/ShiftingSandsProj.cs | 4 +- Projectiles/Magic/SirensSongNote.cs | 2 +- Projectiles/Magic/SlitheringEelProjectile.cs | 2 +- Projectiles/Magic/Snowflake.cs | 4 +- Projectiles/Magic/SolarBeam2.cs | 2 +- Projectiles/Magic/SoulPiercerBeam.cs | 2 +- Projectiles/Magic/SoulPiercerBolt.cs | 2 +- Projectiles/Magic/SparkInfernal.cs | 2 +- Projectiles/Magic/SparklingBeam.cs | 3 +- Projectiles/Magic/SpiritFlameCurse.cs | 4 +- Projectiles/Magic/Starblast.cs | 2 +- Projectiles/Magic/StickyFeather.cs | 4 +- .../Magic/SupremeDustFlakProjectile.cs | 2 +- Projectiles/Magic/SupremeDustProjectile.cs | 2 +- Projectiles/Magic/T1000Laser.cs | 2 +- Projectiles/Magic/T1000Proj.cs | 5 +- Projectiles/Magic/TearsofHeavenProjectile.cs | 2 +- Projectiles/Magic/TerraBeam.cs | 2 +- Projectiles/Magic/TerraBolt.cs | 2 +- Projectiles/Magic/TerraBolt2.cs | 2 +- Projectiles/Magic/TerraOrb.cs | 2 +- Projectiles/Magic/TerraOrb2.cs | 2 +- Projectiles/Magic/ThunderstormShot.cs | 5 +- Projectiles/Magic/ThunderstormShotSplit.cs | 5 +- Projectiles/Magic/TradewindsProjectile.cs | 2 +- Projectiles/Magic/UberBubble.cs | 5 +- Projectiles/Magic/UndinesRetributionSpear.cs | 4 +- Projectiles/Magic/ValkyrieRayBeam.cs | 2 +- Projectiles/Magic/ValkyrieRayStaff.cs | 2 +- Projectiles/Magic/Vehemence.cs | 4 +- Projectiles/Magic/VenusianBolt.cs | 4 +- Projectiles/Magic/VenusianExplosion.cs | 4 +- Projectiles/Magic/VenusianFlame.cs | 4 +- Projectiles/Magic/VisceraBeam.cs | 2 +- Projectiles/Magic/VitriolicViperFang.cs | 2 +- Projectiles/Magic/VitriolicViperSpit.cs | 2 +- Projectiles/Magic/VividBeam.cs | 2 +- Projectiles/Magic/VividBolt.cs | 2 +- Projectiles/Magic/VividClarityBeam.cs | 2 +- Projectiles/Magic/VividOrb.cs | 2 +- Projectiles/Magic/VolatileStarcore.cs | 2 +- Projectiles/Magic/WaterStream.cs | 2 +- Projectiles/Magic/WaterStream2.cs | 2 +- Projectiles/Magic/WaywasherProj.cs | 5 +- Projectiles/Magic/WulfrumBolt.cs | 2 +- Projectiles/Magic/WyvernFeatherGreen.cs | 2 +- Projectiles/Magic/WyvernFeatherPink.cs | 2 +- Projectiles/Magic/WyvernFeatherPurple.cs | 2 +- Projectiles/Magic/WyvernProjectile.cs | 2 +- Projectiles/Magic/YharimsCrystalBeam.cs | 2 +- Projectiles/Magic/YharimsCrystalPrism.cs | 2 +- Projectiles/Melee/AegisBeam.cs | 4 +- Projectiles/Melee/AegisBlast.cs | 6 +- Projectiles/Melee/AegisBlast2.cs | 2 +- Projectiles/Melee/AegisFlame.cs | 2 +- Projectiles/Melee/AftershockRock.cs | 2 +- Projectiles/Melee/AmidiasWhirlpool.cs | 4 +- Projectiles/Melee/AquaStream.cs | 2 +- Projectiles/Melee/AstralScytheProjectile.cs | 2 +- Projectiles/Melee/AtaraxiaHoming.cs | 2 +- Projectiles/Melee/AtaraxiaMain.cs | 2 +- Projectiles/Melee/AtaraxiaSide.cs | 2 +- Projectiles/Melee/AtaraxiaSplit.cs | 2 +- .../Melee/BalefulHarvesterProjectile.cs | 4 +- Projectiles/Melee/BallOFuguProj.cs | 4 +- Projectiles/Melee/BansheeHookBoom.cs | 2 +- Projectiles/Melee/BansheeHookScythe.cs | 2 +- Projectiles/Melee/BiomeOrb.cs | 2 +- Projectiles/Melee/BlazingPhantomBlade.cs | 2 +- Projectiles/Melee/Blood.cs | 2 +- Projectiles/Melee/Blood2.cs | 2 +- Projectiles/Melee/BloodBall.cs | 6 +- Projectiles/Melee/BloodScythe.cs | 2 +- Projectiles/Melee/BloodyBlade.cs | 2 +- Projectiles/Melee/BlueAura.cs | 2 +- Projectiles/Melee/Brimblast.cs | 2 +- .../Melee/BrimlanceHellfireExplosion.cs | 6 +- Projectiles/Melee/BrimlanceStandingFire.cs | 6 +- Projectiles/Melee/Brimlash2.cs | 2 +- Projectiles/Melee/BrimlashProj.cs | 2 +- Projectiles/Melee/BrimstoneBoom.cs | 2 +- Projectiles/Melee/BrimstoneLaserFriendly.cs | 2 +- Projectiles/Melee/BrimstoneSwordExplosion.cs | 6 +- Projectiles/Melee/BrinySpout.cs | 2 +- Projectiles/Melee/BrinyTyphoonBubble.cs | 6 +- Projectiles/Melee/BurningMeteor.cs | 6 +- Projectiles/Melee/CalamityAura.cs | 2 +- Projectiles/Melee/CalamityAuraType2.cs | 2 +- Projectiles/Melee/CalamityAuraType3.cs | 2 +- Projectiles/Melee/ChaosFlameLarge.cs | 2 +- Projectiles/Melee/ChaosFlameSmall.cs | 2 +- Projectiles/Melee/ClamCrusherFlail.cs | 2 +- Projectiles/Melee/CosmicBolt.cs | 2 +- Projectiles/Melee/CosmicDischargeFlail.cs | 2 +- Projectiles/Melee/CosmicIceBurst.cs | 2 +- Projectiles/Melee/CosmicOrb.cs | 2 +- Projectiles/Melee/CosmicShivBall.cs | 4 +- Projectiles/Melee/CosmicShivBlade.cs | 2 +- Projectiles/Melee/CosmicSpiritBomb1.cs | 4 +- Projectiles/Melee/CosmicSpiritBomb2.cs | 8 +- Projectiles/Melee/CosmicSpiritBomb3.cs | 8 +- Projectiles/Melee/CrescentMoonProj.cs | 2 +- Projectiles/Melee/CrystalDust.cs | 2 +- Projectiles/Melee/CrystylCrusherRay.cs | 8 +- Projectiles/Melee/Cyclone.cs | 2 +- Projectiles/Melee/DNA.cs | 6 +- Projectiles/Melee/DNA2.cs | 2 +- Projectiles/Melee/Dark.cs | 2 +- Projectiles/Melee/DarkBall.cs | 5 +- Projectiles/Melee/DarkBeam.cs | 2 +- Projectiles/Melee/DemonBlast.cs | 4 +- Projectiles/Melee/DepthOrb.cs | 2 +- Projectiles/Melee/DepthOrb2.cs | 2 +- Projectiles/Melee/DevilsSunriseCyclone.cs | 4 +- Projectiles/Melee/DevilsSunriseProj.cs | 2 +- Projectiles/Melee/DracoBeam.cs | 2 +- Projectiles/Melee/DracoBeam2.cs | 2 +- Projectiles/Melee/DraconicSpark.cs | 2 +- Projectiles/Melee/DragonPowFlail.cs | 2 +- Projectiles/Melee/DragonRageProj.cs | 10 +- Projectiles/Melee/Earth2.cs | 7 +- Projectiles/Melee/Earth3.cs | 7 +- Projectiles/Melee/Earth4.cs | 9 +- Projectiles/Melee/EarthProj.cs | 6 +- Projectiles/Melee/ElementBall.cs | 2 +- Projectiles/Melee/ElementBallShiv.cs | 2 +- Projectiles/Melee/ElementalExcaliburBeam.cs | 2 +- Projectiles/Melee/EonBeam.cs | 2 +- Projectiles/Melee/EonBeamV2.cs | 2 +- Projectiles/Melee/EonBeamV3.cs | 2 +- Projectiles/Melee/EonBeamV4.cs | 2 +- Projectiles/Melee/EssenceBeam.cs | 2 +- Projectiles/Melee/EssenceFireball.cs | 4 +- Projectiles/Melee/EssenceFlame2.cs | 5 +- Projectiles/Melee/EssenceScythe.cs | 2 +- Projectiles/Melee/EutrophicSpark.cs | 2 +- Projectiles/Melee/ExcelsusBlue.cs | 2 +- Projectiles/Melee/ExcelsusMain.cs | 2 +- Projectiles/Melee/ExcelsusPink.cs | 2 +- Projectiles/Melee/ExoGladComet.cs | 4 +- Projectiles/Melee/ExoGladProj.cs | 2 +- Projectiles/Melee/ExoGladSpears.cs | 4 +- Projectiles/Melee/Exobeam.cs | 6 +- Projectiles/Melee/Exoboom.cs | 4 +- Projectiles/Melee/Exocomet.cs | 4 +- Projectiles/Melee/Feather.cs | 2 +- Projectiles/Melee/Flarefrost.cs | 4 +- .../Melee/ForbiddenOathbladeProjectile.cs | 2 +- Projectiles/Melee/FossilSpike.cs | 2 +- Projectiles/Melee/GaelExplosion.cs | 4 +- Projectiles/Melee/GaelSkull.cs | 2 +- Projectiles/Melee/GaelSkull2.cs | 2 +- Projectiles/Melee/GalacticaComet.cs | 6 +- Projectiles/Melee/Galaxia.cs | 4 +- Projectiles/Melee/Galaxia2.cs | 4 +- Projectiles/Melee/GalaxyBlast.cs | 4 +- Projectiles/Melee/GalaxyBlastType2.cs | 4 +- Projectiles/Melee/GalaxyBlastType3.cs | 4 +- Projectiles/Melee/GalaxyStar.cs | 4 +- Projectiles/Melee/GalileosMoon.cs | 2 +- Projectiles/Melee/GalileosPlanet.cs | 2 +- Projectiles/Melee/GelWave.cs | 4 +- Projectiles/Melee/GhastlySoulLarge.cs | 4 +- Projectiles/Melee/GhastlySoulMedium.cs | 4 +- Projectiles/Melee/GhastlySoulSmall.cs | 4 +- Projectiles/Melee/GreenBall.cs | 2 +- Projectiles/Melee/GreenDust.cs | 2 +- Projectiles/Melee/GreenWater.cs | 4 +- Projectiles/Melee/HellionSpike.cs | 2 +- Projectiles/Melee/HolyColliderHolyFire.cs | 5 +- Projectiles/Melee/HyperBlade.cs | 2 +- Projectiles/Melee/IceBombFriendly.cs | 10 +- Projectiles/Melee/Iceberg.cs | 4 +- Projectiles/Melee/InsidiousHarpoon.cs | 2 +- Projectiles/Melee/JudgementBlah.cs | 2 +- Projectiles/Melee/JudgementProj.cs | 5 +- Projectiles/Melee/LaserFountain.cs | 2 +- Projectiles/Melee/Leech.cs | 2 +- Projectiles/Melee/LifeScythe.cs | 2 +- Projectiles/Melee/Light.cs | 2 +- Projectiles/Melee/LightBeam.cs | 2 +- Projectiles/Melee/LightningThing.cs | 2 +- Projectiles/Melee/LuxorsGiftMelee.cs | 2 +- Projectiles/Melee/MarianaProjectile.cs | 2 +- Projectiles/Melee/MirrorBlast.cs | 2 +- Projectiles/Melee/MourningSkull.cs | 2 +- Projectiles/Melee/MourningstarFlail.cs | 4 +- Projectiles/Melee/MurasamaProj.cs | 2 +- Projectiles/Melee/Nebudust.cs | 2 +- Projectiles/Melee/NebulaShot.cs | 4 +- Projectiles/Melee/NebulashFlail.cs | 2 +- Projectiles/Melee/NeptuneOrb.cs | 2 +- Projectiles/Melee/NightStabber.cs | 2 +- Projectiles/Melee/Oathblade.cs | 2 +- Projectiles/Melee/OceanBeam.cs | 6 +- Projectiles/Melee/OmegaBiomeOrb.cs | 2 +- Projectiles/Melee/Orbacle.cs | 2 +- Projectiles/Melee/PlagueBeeDust.cs | 2 +- Projectiles/Melee/PlagueDust.cs | 2 +- Projectiles/Melee/PlagueSeeker.cs | 2 +- Projectiles/Melee/PlasmaBall.cs | 2 +- Projectiles/Melee/ProfanedSwordProj.cs | 2 +- Projectiles/Melee/PwnagehammerMeleeProj.cs | 2 +- Projectiles/Melee/RSSolarFlare.cs | 5 +- Projectiles/Melee/RainBolt.cs | 7 +- Projectiles/Melee/RainbowBoom.cs | 2 +- Projectiles/Melee/RedBall.cs | 2 +- Projectiles/Melee/RedDust.cs | 2 +- Projectiles/Melee/RedtideWhirlpool.cs | 5 +- Projectiles/Melee/Rox1.cs | 6 +- Projectiles/Melee/RoxShockwave.cs | 2 +- Projectiles/Melee/RoxSlam.cs | 8 +- Projectiles/Melee/SHIV.cs | 2 +- Projectiles/Melee/SandBlade.cs | 2 +- Projectiles/Melee/SandFire.cs | 2 +- Projectiles/Melee/ShortBeam.cs | 2 +- Projectiles/Melee/ShortNightBeam.cs | 2 +- Projectiles/Melee/ShortTerraBeam.cs | 2 +- Projectiles/Melee/SolsticeBeam.cs | 2 +- Projectiles/Melee/SoulScythe.cs | 4 +- Projectiles/Melee/Spark.cs | 2 +- Projectiles/Melee/SpatialSpear.cs | 2 +- Projectiles/Melee/SpatialSpear2.cs | 2 +- Projectiles/Melee/SpatialSpear3.cs | 2 +- Projectiles/Melee/SpatialSpear4.cs | 2 +- .../Melee/Spears/AmidiasTridentProj.cs | 2 +- Projectiles/Melee/Spears/AstralPikeProj.cs | 2 +- Projectiles/Melee/Spears/BansheeHookProj.cs | 2 +- Projectiles/Melee/Spears/BrimlanceProj.cs | 2 +- Projectiles/Melee/Spears/DiseasedPikeSpear.cs | 2 +- Projectiles/Melee/Spears/EarthenPikeSpear.cs | 2 +- .../Spears/ExsanguinationLanceProjectile.cs | 2 +- .../Melee/Spears/FulgurationHalberdProj.cs | 2 +- .../Melee/Spears/GildedProboscisProj.cs | 2 +- .../Melee/Spears/GoldplumeSpearProjectile.cs | 2 +- .../Spears/HellionFlowerSpearProjectile.cs | 2 +- .../Melee/Spears/MarniteSpearProjectile.cs | 2 +- Projectiles/Melee/Spears/NadirSpear.cs | 2 +- Projectiles/Melee/Spears/SausageMakerSpear.cs | 2 +- .../Melee/Spears/SpatialLanceProjectile.cs | 2 +- .../Melee/Spears/StarnightLanceProjectile.cs | 2 +- Projectiles/Melee/Spears/StreamGougeProj.cs | 2 +- .../Melee/Spears/TerraLanceProjectile.cs | 2 +- .../Melee/Spears/UrchinSpearProjectile.cs | 2 +- Projectiles/Melee/Spears/YateveoBloomSpear.cs | 2 +- Projectiles/Melee/StarnightBeam.cs | 2 +- Projectiles/Melee/StormBeam.cs | 2 +- Projectiles/Melee/StormMark.cs | 5 +- Projectiles/Melee/StormRulerProj.cs | 2 +- Projectiles/Melee/SulphurousGrabberBubble.cs | 5 +- Projectiles/Melee/SulphurousGrabberBubble2.cs | 3 +- Projectiles/Melee/SunlightBlade.cs | 2 +- Projectiles/Melee/TemporalFloeNumberTwo.cs | 2 +- .../Melee/TemporalFloeSwordProjectile.cs | 2 +- Projectiles/Melee/TerraBall.cs | 4 +- Projectiles/Melee/TerraEdgeBeam.cs | 2 +- Projectiles/Melee/TerraSpear.cs | 2 +- Projectiles/Melee/TerracottaExplosion.cs | 2 +- Projectiles/Melee/TerratomereProjectile.cs | 2 +- Projectiles/Melee/TerrorBeam.cs | 6 +- Projectiles/Melee/TerrorBoom.cs | 5 +- Projectiles/Melee/TinyCrystal.cs | 8 +- Projectiles/Melee/TinyFlare.cs | 2 +- Projectiles/Melee/Tornado.cs | 5 +- Projectiles/Melee/TrueBiomeOrb.cs | 2 +- .../Melee/TrueCausticEdgeProjectile.cs | 4 +- Projectiles/Melee/TumbleweedFlail.cs | 7 +- Projectiles/Melee/TumbleweedRolling.cs | 7 +- Projectiles/Melee/TyphonsGreedBubble.cs | 5 +- Projectiles/Melee/TyphonsGreedStaff.cs | 8 +- Projectiles/Melee/UltimusCleaverDust.cs | 2 +- Projectiles/Melee/UrchinBall.cs | 4 +- Projectiles/Melee/UrchinBallSpike.cs | 4 +- Projectiles/Melee/UrchinSpikeFugu.cs | 2 +- Projectiles/Melee/VoidEssence.cs | 2 +- Projectiles/Melee/VoidTentacle.cs | 2 +- Projectiles/Melee/Waterfall.cs | 4 +- Projectiles/Melee/WhiteBoltAura.cs | 2 +- Projectiles/Melee/WhiteBoltAuraBlah.cs | 2 +- Projectiles/Melee/WhiteOrb.cs | 2 +- Projectiles/Melee/WhiteOrbBlah.cs | 2 +- Projectiles/Melee/Whiterain.cs | 5 +- Projectiles/Melee/WhiterainBlah.cs | 5 +- Projectiles/Melee/YateveoBloomProj.cs | 4 +- Projectiles/Melee/Yoyos/AirSpinnerYoyo.cs | 2 +- Projectiles/Melee/Yoyos/AortaYoyo.cs | 2 +- Projectiles/Melee/Yoyos/AzathothYoyo.cs | 2 +- Projectiles/Melee/Yoyos/ChaotrixYoyo.cs | 2 +- Projectiles/Melee/Yoyos/CnidarianYoyo.cs | 2 +- Projectiles/Melee/Yoyos/GodsGambitYoyo.cs | 2 +- Projectiles/Melee/Yoyos/LaceratorYoyo.cs | 2 +- Projectiles/Melee/Yoyos/ObliteratorYoyo.cs | 2 +- Projectiles/Melee/Yoyos/OblivionYoyo.cs | 2 +- Projectiles/Melee/Yoyos/OracleYoyo.cs | 2 +- Projectiles/Melee/Yoyos/PandemicYoyo.cs | 2 +- Projectiles/Melee/Yoyos/QuagmireYoyo.cs | 2 +- Projectiles/Melee/Yoyos/RiptideYoyo.cs | 2 +- Projectiles/Melee/Yoyos/ShimmersparkYoyo.cs | 2 +- Projectiles/Melee/Yoyos/SolarFlareYoyo.cs | 2 +- Projectiles/Melee/Yoyos/VerdantYoyo.cs | 2 +- Projectiles/Melee/Yoyos/YinYoyo.cs | 2 +- Projectiles/Pets/Akato.cs | 2 +- Projectiles/Pets/Bear.cs | 2 +- Projectiles/Pets/BrimlingPet.cs | 2 +- Projectiles/Pets/ChibiiDoggo.cs | 4 +- Projectiles/Pets/DannyDevitoPet.cs | 2 +- Projectiles/Pets/FoxPet.cs | 2 +- Projectiles/Pets/KendraPet.cs | 2 +- Projectiles/Pets/LadShark.cs | 2 +- Projectiles/Pets/LeviPet.cs | 2 +- Projectiles/Pets/PerforaMini.cs | 2 +- Projectiles/Pets/SirenYoung.cs | 2 +- Projectiles/Pets/Sparks.cs | 12 +- Projectiles/Pets/ThirdSage.cs | 4 +- Projectiles/Ranged/AMR2.cs | 2 +- Projectiles/Ranged/AMRShot.cs | 6 +- Projectiles/Ranged/AccelerationBulletProj.cs | 4 +- Projectiles/Ranged/AcidBulletProj.cs | 2 +- Projectiles/Ranged/AngelicBeam.cs | 2 +- Projectiles/Ranged/AquaBlast.cs | 2 +- Projectiles/Ranged/AquaBlastToxic.cs | 2 +- Projectiles/Ranged/Aquashard.cs | 6 +- Projectiles/Ranged/AquashardSplit.cs | 6 +- Projectiles/Ranged/ArcticArrowProj.cs | 8 +- Projectiles/Ranged/AstralCannonProjectile.cs | 4 +- Projectiles/Ranged/AstralRound.cs | 2 +- Projectiles/Ranged/AstrealArrow.cs | 2 +- Projectiles/Ranged/AstrealFlame.cs | 6 +- Projectiles/Ranged/BallistaGreatArrow.cs | 6 +- Projectiles/Ranged/BeeRPG.cs | 8 +- Projectiles/Ranged/BigCoral.cs | 6 +- Projectiles/Ranged/BigNuke.cs | 8 +- Projectiles/Ranged/BloodBoilerFire.cs | 2 +- Projectiles/Ranged/BloodClotFriendly.cs | 2 +- Projectiles/Ranged/BloodfireArrowProj.cs | 4 +- Projectiles/Ranged/BloodfireBullet.cs | 4 +- Projectiles/Ranged/BloodflareSoul.cs | 4 +- Projectiles/Ranged/BlueExoArrow.cs | 2 +- Projectiles/Ranged/BlueExoArrow2.cs | 2 +- Projectiles/Ranged/Bolt.cs | 2 +- Projectiles/Ranged/BoltArrow.cs | 8 +- Projectiles/Ranged/BrimstoneBallFriendly.cs | 2 +- Projectiles/Ranged/BrimstoneBolt.cs | 6 +- Projectiles/Ranged/BrimstoneFireFriendly.cs | 2 +- Projectiles/Ranged/ButcherGun.cs | 2 +- Projectiles/Ranged/CardClub.cs | 2 +- Projectiles/Ranged/CardClubSplit.cs | 2 +- Projectiles/Ranged/CardDiamond.cs | 4 +- Projectiles/Ranged/CardHeart.cs | 2 +- Projectiles/Ranged/CardSpade.cs | 2 +- Projectiles/Ranged/ChargedBlast.cs | 5 +- Projectiles/Ranged/ChargedBlast2.cs | 5 +- Projectiles/Ranged/ChargedBlast3.cs | 7 +- Projectiles/Ranged/Chicken.cs | 5 +- Projectiles/Ranged/ChickenExplosion.cs | 5 +- Projectiles/Ranged/ClamorRifleProj.cs | 5 +- Projectiles/Ranged/ClamorRifleProjSplit.cs | 2 +- Projectiles/Ranged/ContagionArrow.cs | 4 +- Projectiles/Ranged/ContagionBall.cs | 5 +- Projectiles/Ranged/ContagionBow.cs | 5 +- Projectiles/Ranged/CorossiveFlames.cs | 2 +- Projectiles/Ranged/CorrodedShell.cs | 3 +- Projectiles/Ranged/CosmicFire.cs | 2 +- Projectiles/Ranged/DWArrow.cs | 4 +- Projectiles/Ranged/DaemonsFlameArrow.cs | 5 +- Projectiles/Ranged/DaemonsFlameBow.cs | 2 +- Projectiles/Ranged/DragonBurst.cs | 2 +- Projectiles/Ranged/DrataliornusExoArrow.cs | 2 +- Projectiles/Ranged/DrataliornusFlame.cs | 2 +- Projectiles/Ranged/ElysianArrowProj.cs | 6 +- Projectiles/Ranged/EmesisGore.cs | 2 +- Projectiles/Ranged/EnhancedNanoRoundProj.cs | 2 +- Projectiles/Ranged/EssenceFire.cs | 2 +- Projectiles/Ranged/ExoFire.cs | 2 +- Projectiles/Ranged/ExoMark.cs | 5 +- Projectiles/Ranged/ExoTornado.cs | 5 +- Projectiles/Ranged/ExplodingStake.cs | 4 +- Projectiles/Ranged/FallenStarProj.cs | 2 +- Projectiles/Ranged/FeatherLarge.cs | 4 +- Projectiles/Ranged/FishronRPG.cs | 9 +- Projectiles/Ranged/FlakKrakenGun.cs | 2 +- Projectiles/Ranged/FlakKrakenProj.cs | 2 +- Projectiles/Ranged/FlamingStake.cs | 2 +- Projectiles/Ranged/FlareBat.cs | 2 +- Projectiles/Ranged/Flash.cs | 2 +- Projectiles/Ranged/FlashBulletProj.cs | 2 +- Projectiles/Ranged/FossilShard.cs | 2 +- Projectiles/Ranged/FrostsparkBulletProj.cs | 2 +- Projectiles/Ranged/FungiOrb.cs | 4 +- Projectiles/Ranged/FungiOrb2.cs | 2 +- Projectiles/Ranged/GoliathRocket.cs | 5 +- Projectiles/Ranged/GreenExoArrow.cs | 2 +- Projectiles/Ranged/HandheldTankShell.cs | 2 +- Projectiles/Ranged/HiveBomb.cs | 5 +- Projectiles/Ranged/HiveMissile.cs | 5 +- Projectiles/Ranged/HolyFireBulletProj.cs | 2 +- Projectiles/Ranged/IlluminatedBullet.cs | 2 +- Projectiles/Ranged/KarasawaShot.cs | 2 +- Projectiles/Ranged/LeafArrow.cs | 4 +- Projectiles/Ranged/LunarBolt.cs | 5 +- Projectiles/Ranged/LunarBolt2.cs | 5 +- Projectiles/Ranged/LuxorsGiftRanged.cs | 4 +- Projectiles/Ranged/MagnaStrike.cs | 2 +- Projectiles/Ranged/MagnomalyBeam.cs | 2 +- Projectiles/Ranged/MagnomalyRocket.cs | 2 +- Projectiles/Ranged/MechanicalBarracuda.cs | 2 +- Projectiles/Ranged/MeowFire.cs | 4 +- Projectiles/Ranged/MeowFire2.cs | 4 +- Projectiles/Ranged/MiniRocket.cs | 5 +- Projectiles/Ranged/Minibirb.cs | 4 +- Projectiles/Ranged/MistArrow.cs | 2 +- Projectiles/Ranged/MortarRoundProj.cs | 12 +- Projectiles/Ranged/NapalmArrowProj.cs | 4 +- Projectiles/Ranged/NeedlerProj.cs | 2 +- Projectiles/Ranged/NorfleetCannon.cs | 2 +- Projectiles/Ranged/NorfleetComet.cs | 6 +- Projectiles/Ranged/NorfleetExplosion.cs | 2 +- Projectiles/Ranged/Nuke.cs | 4 +- Projectiles/Ranged/NullShot.cs | 2 +- Projectiles/Ranged/NullShot2.cs | 2 +- Projectiles/Ranged/OnyxSharkBomb.cs | 4 +- Projectiles/Ranged/OpalStrike.cs | 2 +- Projectiles/Ranged/OrangeExoArrow.cs | 4 +- Projectiles/Ranged/PhangasmBow.cs | 2 +- Projectiles/Ranged/PlagueArrow.cs | 4 +- Projectiles/Ranged/PlagueExplosionFriendly.cs | 2 +- Projectiles/Ranged/PlanarRipperBolt.cs | 2 +- Projectiles/Ranged/PlanarRipperExplosion.cs | 2 +- .../Ranged/PlanetaryAnnihilationProj.cs | 2 +- Projectiles/Ranged/PlasmaBlast.cs | 6 +- Projectiles/Ranged/PlasmaExplosion.cs | 5 +- Projectiles/Ranged/PolarStar.cs | 6 +- Projectiles/Ranged/PristineFire.cs | 2 +- Projectiles/Ranged/ProBolt.cs | 2 +- Projectiles/Ranged/RainbowBlast.cs | 2 +- Projectiles/Ranged/RealmRavagerBullet.cs | 4 +- Projectiles/Ranged/RubberMortarRoundProj.cs | 22 +- Projectiles/Ranged/SandWater.cs | 5 +- Projectiles/Ranged/SandstormBullet.cs | 4 +- Projectiles/Ranged/SandyWaifuShark.cs | 2 +- Projectiles/Ranged/SeaDragonRocket.cs | 6 +- Projectiles/Ranged/SeasSearingBubble.cs | 12 +- Projectiles/Ranged/ShadeFire.cs | 2 +- Projectiles/Ranged/Shell.cs | 5 +- Projectiles/Ranged/Shockblast.cs | 2 +- Projectiles/Ranged/Shroom.cs | 2 +- Projectiles/Ranged/Sickness.cs | 2 +- Projectiles/Ranged/SlagRound.cs | 2 +- Projectiles/Ranged/SlashRound.cs | 2 +- Projectiles/Ranged/SlimeBolt.cs | 2 +- Projectiles/Ranged/SmallCoral.cs | 5 +- Projectiles/Ranged/SporeBomb.cs | 4 +- Projectiles/Ranged/SputterComet.cs | 2 +- Projectiles/Ranged/SputterCometBig.cs | 4 +- Projectiles/Ranged/SpykerProj.cs | 2 +- Projectiles/Ranged/StarfleetMK2Gun.cs | 2 +- Projectiles/Ranged/StormSurgeTornado.cs | 2 +- Projectiles/Ranged/SulphuricAcidBubble2.cs | 2 +- Projectiles/Ranged/SulphuricAcidMist2.cs | 4 +- Projectiles/Ranged/SuperballBulletProj.cs | 4 +- Projectiles/Ranged/TealExoArrow.cs | 2 +- Projectiles/Ranged/TelluricGlareProj.cs | 5 +- Projectiles/Ranged/TerraArrowMain.cs | 5 +- Projectiles/Ranged/TerraArrowSplit.cs | 5 +- Projectiles/Ranged/TerraBulletMain.cs | 2 +- Projectiles/Ranged/TerraFireGreen.cs | 2 +- Projectiles/Ranged/TerraFireGreen2.cs | 2 +- Projectiles/Ranged/ThePackMinissile.cs | 5 +- Projectiles/Ranged/ThePackMissile.cs | 4 +- Projectiles/Ranged/TitRail.cs | 2 +- Projectiles/Ranged/TorrentialArrow.cs | 2 +- Projectiles/Ranged/ToxicArrow.cs | 5 +- Projectiles/Ranged/ToxicannonDrop.cs | 2 +- Projectiles/Ranged/ToxicannonShot.cs | 2 +- Projectiles/Ranged/TriploonProj.cs | 2 +- Projectiles/Ranged/TyphoonArrow.cs | 2 +- Projectiles/Ranged/TyphoonBubble.cs | 5 +- Projectiles/Ranged/VanquisherArrowMain.cs | 2 +- Projectiles/Ranged/Voidragon.cs | 6 +- Projectiles/Ranged/WaterSpout.cs | 2 +- Projectiles/Rogue/AbyssalMirrorProjectile.cs | 2 +- Projectiles/Rogue/AcidBarrelDrop.cs | 2 +- Projectiles/Rogue/AcidShrapnel.cs | 2 +- .../Rogue/AdamantiteThrowingAxeProjectile.cs | 2 +- Projectiles/Rogue/AlphaSeeker.cs | 2 +- Projectiles/Rogue/AlphaVirusProjectile.cs | 3 +- Projectiles/Rogue/AshenStalactiteDebris.cs | 3 +- Projectiles/Rogue/AshenStalactiteProj.cs | 3 +- Projectiles/Rogue/AshenStalagmiteProj.cs | 3 +- Projectiles/Rogue/BallisticPoisonBombProj.cs | 4 +- Projectiles/Rogue/BallisticPoisonBombSpike.cs | 2 +- Projectiles/Rogue/BarrelShrapnel.cs | 2 +- Projectiles/Rogue/BettyExplosion.cs | 2 +- Projectiles/Rogue/BileExplosion.cs | 2 +- Projectiles/Rogue/BlastBarrelProjectile.cs | 4 +- Projectiles/Rogue/BlazingStarProj.cs | 2 +- Projectiles/Rogue/BlueFlamePillar.cs | 2 +- Projectiles/Rogue/BouncingBettyProjectile.cs | 6 +- Projectiles/Rogue/BouncingBettyShrapnel.cs | 2 +- .../Rogue/BouncingEyeballProjectile.cs | 6 +- .../BouncingEyeballProjectileStealthStrike.cs | 6 +- Projectiles/Rogue/BrackishFlaskProj.cs | 14 +- Projectiles/Rogue/BrackishWater.cs | 4 +- Projectiles/Rogue/BrackishWaterBlast.cs | 4 +- Projectiles/Rogue/Brick.cs | 6 +- Projectiles/Rogue/BrickFragment.cs | 2 +- Projectiles/Rogue/Brimblade2.cs | 2 +- Projectiles/Rogue/BrimbladeProj.cs | 2 +- Projectiles/Rogue/BurningStrifeProj.cs | 8 +- .../Rogue/CelestialReaperAfterimage.cs | 2 +- .../Rogue/CelestialReaperProjectile.cs | 2 +- Projectiles/Rogue/Celestus2.cs | 2 +- Projectiles/Rogue/CelestusBoomerang.cs | 6 +- Projectiles/Rogue/CinquedeaProj.cs | 2 +- Projectiles/Rogue/CircletMark.cs | 2 +- Projectiles/Rogue/CircletTornado.cs | 2 +- Projectiles/Rogue/CobaltKunaiProjectile.cs | 2 +- .../Rogue/ConsecratedWaterProjectile.cs | 2 +- Projectiles/Rogue/ContaminatedBileFlask.cs | 2 +- Projectiles/Rogue/Corrocloud1.cs | 2 +- Projectiles/Rogue/Corrocloud2.cs | 2 +- Projectiles/Rogue/Corrocloud3.cs | 2 +- Projectiles/Rogue/CosmicKunaiProj.cs | 2 +- Projectiles/Rogue/CosmicScythe.cs | 4 +- Projectiles/Rogue/CraniumSmasherExplosive.cs | 7 +- Projectiles/Rogue/CraniumSmasherProj.cs | 2 +- Projectiles/Rogue/Crushax.cs | 2 +- Projectiles/Rogue/CrystalPiercerProjectile.cs | 2 +- Projectiles/Rogue/Crystalline2.cs | 2 +- Projectiles/Rogue/CrystallineProj.cs | 4 +- Projectiles/Rogue/CursedDaggerProj.cs | 2 +- Projectiles/Rogue/DeepSeaDumbbell1.cs | 10 +- Projectiles/Rogue/DeepSeaDumbbell2.cs | 10 +- Projectiles/Rogue/DeepSeaDumbbell3.cs | 10 +- Projectiles/Rogue/DeepSeaDumbbellWeight.cs | 6 +- Projectiles/Rogue/DeepWounderProjectile.cs | 3 +- Projectiles/Rogue/DesecratedBubble.cs | 2 +- Projectiles/Rogue/DesecratedWaterProj.cs | 2 +- Projectiles/Rogue/DestructionBolt.cs | 4 +- Projectiles/Rogue/DestructionStar.cs | 4 +- Projectiles/Rogue/DragonShit.cs | 5 +- Projectiles/Rogue/DukesDecapitatorBubble.cs | 2 +- Projectiles/Rogue/DukesDecapitatorProj.cs | 2 +- Projectiles/Rogue/DuneHopperProjectile.cs | 2 +- Projectiles/Rogue/DuststormCloud.cs | 2 +- Projectiles/Rogue/DuststormInABottleProj.cs | 4 +- Projectiles/Rogue/EclipseMirrorBurst.cs | 2 +- Projectiles/Rogue/EclipsesSmol.cs | 3 +- Projectiles/Rogue/EnchantedAxeProj.cs | 2 +- .../Rogue/EpidemicShredderProjectile.cs | 2 +- Projectiles/Rogue/EquanimityDarkShard.cs | 6 +- Projectiles/Rogue/EquanimityLightShard.cs | 6 +- Projectiles/Rogue/EquanimityProj.cs | 2 +- Projectiles/Rogue/ExecutionersBladeProj.cs | 4 +- .../Rogue/ExecutionersBladeStealthProj.cs | 4 +- Projectiles/Rogue/ExorcismProj.cs | 8 +- Projectiles/Rogue/ExorcismShockwave.cs | 2 +- Projectiles/Rogue/ExorcismStar.cs | 5 +- Projectiles/Rogue/ExplosiveSun.cs | 2 +- Projectiles/Rogue/FeatherKnifeProjectile.cs | 2 +- Projectiles/Rogue/FossilShardThrown.cs | 2 +- Projectiles/Rogue/GelDartProjectile.cs | 4 +- Projectiles/Rogue/GhoulishGougerBoomerang.cs | 2 +- Projectiles/Rogue/GildedDaggerProj.cs | 3 +- Projectiles/Rogue/GlaiveProj.cs | 2 +- Projectiles/Rogue/GleamingDaggerProj.cs | 3 +- Projectiles/Rogue/GreenDonkeyKongReference.cs | 4 +- Projectiles/Rogue/HeavenfallenEnergy.cs | 2 +- .../Rogue/HeavenfallenStardiskBoomerang.cs | 2 +- Projectiles/Rogue/Honeycomb.cs | 2 +- Projectiles/Rogue/IceStarProjectile.cs | 4 +- Projectiles/Rogue/IcebreakerHammer.cs | 2 +- Projectiles/Rogue/IchorSpearProj.cs | 2 +- Projectiles/Rogue/InfernalFireball.cs | 2 +- Projectiles/Rogue/InfernalFireballEruption.cs | 4 +- Projectiles/Rogue/InfernalKrisCinder.cs | 2 +- Projectiles/Rogue/InfernalKrisExplosion.cs | 2 +- Projectiles/Rogue/InfernalKrisProjectile.cs | 8 +- Projectiles/Rogue/InfernalSpearProjectile.cs | 4 +- Projectiles/Rogue/InkBombProjectile.cs | 5 +- Projectiles/Rogue/InkCloud.cs | 2 +- Projectiles/Rogue/InkCloud2.cs | 2 +- Projectiles/Rogue/InkCloud3.cs | 2 +- Projectiles/Rogue/IronFranciscaProj.cs | 2 +- Projectiles/Rogue/JawsProjectile.cs | 2 +- Projectiles/Rogue/JawsShockwave.cs | 2 +- Projectiles/Rogue/JewelSpike.cs | 2 +- Projectiles/Rogue/KylieBoomerang.cs | 4 +- Projectiles/Rogue/LatcherMineProjectile.cs | 6 +- Projectiles/Rogue/LeadTomahawkProj.cs | 2 +- Projectiles/Rogue/LeviathanTooth.cs | 2 +- Projectiles/Rogue/LionfishProj.cs | 4 +- Projectiles/Rogue/LostSoulFriendly.cs | 2 +- Projectiles/Rogue/LuminousShard.cs | 2 +- Projectiles/Rogue/LuminousStrikerProj.cs | 2 +- Projectiles/Rogue/LunarKunaiProj.cs | 4 +- Projectiles/Rogue/LuxorsGiftRogue.cs | 2 +- Projectiles/Rogue/MalachiteBolt.cs | 2 +- Projectiles/Rogue/MalachiteProj.cs | 2 +- Projectiles/Rogue/MetalChunk.cs | 2 +- Projectiles/Rogue/MetalShard.cs | 2 +- Projectiles/Rogue/MeteorFistProj.cs | 4 +- Projectiles/Rogue/MoltenAmputatorProj.cs | 6 +- Projectiles/Rogue/MoltenBlobThrown.cs | 5 +- Projectiles/Rogue/MonkeyDart.cs | 6 +- Projectiles/Rogue/MoonSigil.cs | 2 +- Projectiles/Rogue/MycorootProj.cs | 2 +- Projectiles/Rogue/MythrilKnifeProjectile.cs | 2 +- Projectiles/Rogue/NightsGazeProjectile.cs | 14 +- Projectiles/Rogue/NightsGazeStar.cs | 2 +- Projectiles/Rogue/NychthemeronProjectile.cs | 3 +- .../OrichalcumSpikedGemstoneProjectile.cs | 4 +- .../Rogue/PalladiumJavelinProjectile.cs | 2 +- Projectiles/Rogue/PartisanExplosion.cs | 2 +- Projectiles/Rogue/PenumbraBomb.cs | 2 +- Projectiles/Rogue/PenumbraSoul.cs | 2 +- Projectiles/Rogue/PhantasmalSoul.cs | 4 +- Projectiles/Rogue/PlaguedFuelPackCloud.cs | 2 +- Projectiles/Rogue/PlaguenadeBee.cs | 2 +- Projectiles/Rogue/PlaguenadeProj.cs | 7 +- Projectiles/Rogue/Prismalline2.cs | 2 +- Projectiles/Rogue/Prismalline3.cs | 2 +- Projectiles/Rogue/PrismallineProj.cs | 8 +- Projectiles/Rogue/ProfanedPartisanproj.cs | 4 +- Projectiles/Rogue/ProfanedPartisanspear.cs | 2 +- Projectiles/Rogue/Quasar2.cs | 2 +- Projectiles/Rogue/QuasarKnife.cs | 6 +- Projectiles/Rogue/RadiantExplosion.cs | 2 +- Projectiles/Rogue/RadiantStar2.cs | 2 +- Projectiles/Rogue/RadiantStarKnife.cs | 6 +- Projectiles/Rogue/ReaperProjectile.cs | 4 +- Projectiles/Rogue/RotBallProjectile.cs | 2 +- Projectiles/Rogue/SandDollarProj.cs | 2 +- Projectiles/Rogue/SandDollarStealth.cs | 2 +- Projectiles/Rogue/SandslasherProj.cs | 2 +- Projectiles/Rogue/ScarletBlast.cs | 3 +- Projectiles/Rogue/ScarletDevilBullet.cs | 2 +- Projectiles/Rogue/ScarletDevilProjectile.cs | 2 +- Projectiles/Rogue/ScourgeoftheDesertProj.cs | 2 +- .../Rogue/ScourgeoftheSeasProjectile.cs | 2 +- Projectiles/Rogue/SeafoamBombProj.cs | 5 +- Projectiles/Rogue/SeafoamBubble.cs | 2 +- Projectiles/Rogue/ShatteredExplosion.cs | 2 +- Projectiles/Rogue/ShatteredSunKnife.cs | 12 +- .../Rogue/ShatteredSunScorchedBlade.cs | 5 +- Projectiles/Rogue/ShinobiBladeProjectile.cs | 2 +- Projectiles/Rogue/ShockGrenadeBolt.cs | 2 +- Projectiles/Rogue/ShockGrenadeExplosion.cs | 2 +- Projectiles/Rogue/ShockGrenadeProjectile.cs | 4 +- Projectiles/Rogue/ShockTeslaAura.cs | 2 +- Projectiles/Rogue/SkyStabberProj.cs | 2 +- Projectiles/Rogue/SlickCaneProjectile.cs | 2 +- Projectiles/Rogue/SludgeSplotchProj1.cs | 8 +- Projectiles/Rogue/SludgeSplotchProj2.cs | 4 +- Projectiles/Rogue/SnapClamProj.cs | 5 +- Projectiles/Rogue/SnapClamStealth.cs | 5 +- Projectiles/Rogue/SpearofDestinyProjectile.cs | 2 +- Projectiles/Rogue/SpearofPaleolithProj.cs | 2 +- .../Rogue/SpentFuelContainerProjectile.cs | 2 +- Projectiles/Rogue/SphereBladed.cs | 2 +- Projectiles/Rogue/SphereBlue.cs | 2 +- Projectiles/Rogue/SphereSpiked.cs | 2 +- Projectiles/Rogue/SphereYellow.cs | 2 +- Projectiles/Rogue/StellarKnifeProj.cs | 2 +- .../Rogue/StormfrontRazorProjectile.cs | 4 +- Projectiles/Rogue/Stormfrontspark.cs | 2 +- Projectiles/Rogue/SulphuricNukesplosion.cs | 2 +- Projectiles/Rogue/SupernovaBomb.cs | 4 +- Projectiles/Rogue/SupernovaBoom.cs | 2 +- Projectiles/Rogue/SupernovaSpike.cs | 2 +- Projectiles/Rogue/SylvanSlash.cs | 2 +- .../Rogue/TarragonThrowingDartProjectile.cs | 2 +- Projectiles/Rogue/TheSyringeProj.cs | 2 +- Projectiles/Rogue/TimeBoltKnife.cs | 2 +- .../Rogue/TitaniumShurikenProjectile.cs | 2 +- Projectiles/Rogue/ToothBallProjectile.cs | 2 +- Projectiles/Rogue/TotalityFlask.cs | 2 +- Projectiles/Rogue/TotalityTar.cs | 4 +- Projectiles/Rogue/ToxicantTwisterDust.cs | 2 +- .../Rogue/ToxicantTwisterProjectile.cs | 6 +- .../Rogue/ToxicantTwisterTwoPointZero.cs | 6 +- Projectiles/Rogue/UmbraphileBoom.cs | 2 +- Projectiles/Rogue/UrchinStingerProj.cs | 2 +- Projectiles/Rogue/ValariBoomerang.cs | 2 +- Projectiles/Rogue/Valaricicle.cs | 2 +- Projectiles/Rogue/Valaricicle2.cs | 2 +- Projectiles/Rogue/ValedictionBoomerang.cs | 12 +- Projectiles/Rogue/WulfrumKnifeProj.cs | 2 +- Projectiles/Rogue/XerocPitchforkProjectile.cs | 2 +- Projectiles/Summon/AndromedaDeathRay.cs | 2 +- Projectiles/Summon/ApexShark.cs | 4 +- Projectiles/Summon/AquaticStarMinion.cs | 2 +- Projectiles/Summon/AstrageldonLaser.cs | 2 +- Projectiles/Summon/AstralProbeRound.cs | 2 +- Projectiles/Summon/AstralProbeSummon.cs | 2 +- Projectiles/Summon/AureusBomber.cs | 2 +- Projectiles/Summon/BelladonnaSpirit.cs | 2 +- Projectiles/Summon/BlackHawkSummon.cs | 2 +- Projectiles/Summon/BloodBreath.cs | 2 +- Projectiles/Summon/BloodClotMinion.cs | 6 +- Projectiles/Summon/BloodRain.cs | 2 +- Projectiles/Summon/BloodSpit.cs | 2 +- Projectiles/Summon/BoneMatter.cs | 2 +- Projectiles/Summon/BoneMatter2.cs | 2 +- Projectiles/Summon/BrimseekerAuraBall.cs | 2 +- .../Summon/BrimstoneElementalMinion.cs | 2 +- .../Summon/BrimstoneExplosionMinion.cs | 4 +- Projectiles/Summon/BrimstoneFireSummon.cs | 2 +- Projectiles/Summon/BrimstoneFireballMinion.cs | 4 +- Projectiles/Summon/BrimstoneLaserSummon.cs | 2 +- Projectiles/Summon/BrittleStarMinion.cs | 2 +- Projectiles/Summon/CalamariInk.cs | 4 +- Projectiles/Summon/CalamariMinion.cs | 8 +- Projectiles/Summon/Calamitamini.cs | 2 +- Projectiles/Summon/Cataclymini.cs | 2 +- Projectiles/Summon/Catastromini.cs | 2 +- Projectiles/Summon/ChaosFlame.cs | 4 +- Projectiles/Summon/ChaosSpirit.cs | 2 +- Projectiles/Summon/Cinder.cs | 2 +- Projectiles/Summon/CinderBlossom.cs | 2 +- Projectiles/Summon/CloudElementalMinion.cs | 2 +- Projectiles/Summon/ColdDivinityPointyThing.cs | 2 +- Projectiles/Summon/CorroslimeMinion.cs | 2 +- .../Summon/CorruptionSlimeGodMinion.cs | 2 +- Projectiles/Summon/CosmicBlast.cs | 4 +- Projectiles/Summon/CosmicBlastBig.cs | 6 +- Projectiles/Summon/CosmicEnergySpiral.cs | 4 +- .../Summon/CosmicViperConcussionMissile.cs | 2 +- Projectiles/Summon/CosmicViperHomingRocket.cs | 2 +- .../Summon/CosmicViperSplittingRocket.cs | 12 +- Projectiles/Summon/CosmicViperSummon.cs | 4 +- Projectiles/Summon/CosmilampMinion.cs | 6 +- Projectiles/Summon/CrimslimeMinion.cs | 2 +- Projectiles/Summon/CrimsonSlimeGodMinion.cs | 2 +- Projectiles/Summon/DaedalusCrystal.cs | 2 +- Projectiles/Summon/DaedalusCrystalShot.cs | 6 +- Projectiles/Summon/DankCreeperMinion.cs | 6 +- Projectiles/Summon/DormantBrimseekerBab.cs | 2 +- Projectiles/Summon/Dreadmine.cs | 4 +- Projectiles/Summon/DreadmineTurret.cs | 2 +- Projectiles/Summon/EXPLODINGFROG.cs | 2 +- Projectiles/Summon/ElementalAxeMinion.cs | 2 +- Projectiles/Summon/EndoBeam.cs | 2 +- Projectiles/Summon/EndoCooperBody.cs | 4 +- Projectiles/Summon/EndoCooperLimbs.cs | 2 +- Projectiles/Summon/EndoFire.cs | 2 +- Projectiles/Summon/EndoIceShard.cs | 2 +- Projectiles/Summon/EndoRay.cs | 2 +- Projectiles/Summon/EnergyOrb.cs | 2 +- Projectiles/Summon/FlameBlast.cs | 4 +- Projectiles/Summon/FlameBurst.cs | 4 +- Projectiles/Summon/FlyingOrthocera.cs | 2 +- Projectiles/Summon/FlyingOrthoceraStream.cs | 2 +- Projectiles/Summon/FrostBeam.cs | 2 +- Projectiles/Summon/FrostBlossom.cs | 2 +- Projectiles/Summon/FrostMistFriendly.cs | 4 +- Projectiles/Summon/FungalClumpMinion.cs | 2 +- Projectiles/Summon/GammaBullet.cs | 2 +- Projectiles/Summon/GammaCanister.cs | 2 +- Projectiles/Summon/GammaDeathray.cs | 2 +- Projectiles/Summon/GhostFire.cs | 2 +- Projectiles/Summon/GhostlyMine.cs | 4 +- Projectiles/Summon/GiantIbanRobotOfDoom.cs | 2 +- Projectiles/Summon/GigaFlareFriendly.cs | 5 +- Projectiles/Summon/HallowedStarSummon.cs | 4 +- Projectiles/Summon/HermitCrabMinion.cs | 2 +- Projectiles/Summon/HerringMinion.cs | 2 +- Projectiles/Summon/Hive.cs | 2 +- Projectiles/Summon/Hiveling.cs | 2 +- Projectiles/Summon/IceClasperMinion.cs | 2 +- Projectiles/Summon/IceSentryFrostBolt.cs | 6 +- Projectiles/Summon/IrradiatedAura.cs | 2 +- Projectiles/Summon/LanternFlame.cs | 8 +- Projectiles/Summon/LanternSoul.cs | 2 +- Projectiles/Summon/LuxorsGiftSummon.cs | 2 +- Projectiles/Summon/MagicBullet.cs | 2 +- Projectiles/Summon/MagicRifle.cs | 2 +- Projectiles/Summon/MechwormBody.cs | 2 +- Projectiles/Summon/MechwormBody2.cs | 2 +- Projectiles/Summon/MechwormHead.cs | 2 +- Projectiles/Summon/MechwormTail.cs | 2 +- Projectiles/Summon/MidnightSunBeam.cs | 2 +- Projectiles/Summon/MidnightSunSkyBeam.cs | 2 +- Projectiles/Summon/MidnightSunUFO.cs | 2 +- Projectiles/Summon/MiniGuardianAttack.cs | 2 +- Projectiles/Summon/MiniGuardianDefense.cs | 2 +- Projectiles/Summon/MiniGuardianHealer.cs | 2 +- Projectiles/Summon/MiniSandShark.cs | 6 +- Projectiles/Summon/OldDukeHeadCorpse.cs | 2 +- Projectiles/Summon/PhantomGuy.cs | 4 +- Projectiles/Summon/PhoenixFireFriendly.cs | 2 +- Projectiles/Summon/PinkButterfly.cs | 4 +- Projectiles/Summon/PlagueBeeSmall.cs | 2 +- Projectiles/Summon/PlantSummon.cs | 2 +- Projectiles/Summon/PlateProjectile.cs | 2 +- Projectiles/Summon/PrincessMissile.cs | 4 +- Projectiles/Summon/ProfanedEnergy.cs | 4 +- .../Summon/ProfanedSoulCrystalProjectiles.cs | 14 +- Projectiles/Summon/PurpleButterfly.cs | 2 +- Projectiles/Summon/RadiantResolutionFire.cs | 4 +- Projectiles/Summon/ReaverOrb.cs | 4 +- Projectiles/Summon/RustShrapnel.cs | 2 +- Projectiles/Summon/SakuraBullet.cs | 4 +- Projectiles/Summon/SandBolt.cs | 2 +- Projectiles/Summon/SandElementalHealer.cs | 4 +- Projectiles/Summon/SandElementalMinion.cs | 2 +- Projectiles/Summon/SandMark.cs | 4 +- Projectiles/Summon/SandTornado.cs | 4 +- Projectiles/Summon/SandnadoMinion.cs | 2 +- Projectiles/Summon/Shellfish.cs | 6 +- Projectiles/Summon/SilvaCrystal.cs | 2 +- Projectiles/Summon/SilvaCrystalExplosion.cs | 2 +- Projectiles/Summon/SirenSongFriendly.cs | 2 +- Projectiles/Summon/SkeletalDragonChild.cs | 2 +- Projectiles/Summon/SkeletalDragonMother.cs | 2 +- Projectiles/Summon/SolarBeam.cs | 2 +- Projectiles/Summon/SolarGod.cs | 2 +- Projectiles/Summon/SolarPixie.cs | 2 +- Projectiles/Summon/SonOfYharon.cs | 2 +- Projectiles/Summon/Spikecrag.cs | 2 +- Projectiles/Summon/SpikecragSpike.cs | 2 +- Projectiles/Summon/StormMarkSummon.cs | 5 +- Projectiles/Summon/SummonAstralExplosion.cs | 2 +- .../Summon/TacticalPlagueEngineSummon.cs | 2 +- Projectiles/Summon/TundraFlameBlossom.cs | 2 +- Projectiles/Summon/Urchin.cs | 4 +- Projectiles/Summon/UrchinSpike.cs | 2 +- Projectiles/Summon/Valkyrie.cs | 2 +- Projectiles/Summon/VileFeederSummon.cs | 4 +- Projectiles/Summon/WaterElementalMinion.cs | 2 +- Projectiles/Summon/WaterSpearFriendly.cs | 4 +- Projectiles/Summon/WulfrumBoltMinion.cs | 2 +- .../Typeless/ArtifactOfResilienceShards.cs | 2 +- Projectiles/Typeless/AstralFallingSand.cs | 2 +- Projectiles/Typeless/AstralSpray.cs | 2 +- Projectiles/Typeless/AstralStar.cs | 4 +- Projectiles/Typeless/AtaxiaOrb.cs | 2 +- Projectiles/Typeless/BallisticPoisonCloud.cs | 2 +- Projectiles/Typeless/BlazingSun.cs | 2 +- Projectiles/Typeless/BlazingSun2.cs | 2 +- Projectiles/Typeless/BloodBomb.cs | 6 +- Projectiles/Typeless/BloodBombExplosion.cs | 6 +- .../BrimstoneHellfireballFriendly2.cs | 6 +- .../Typeless/BrokenWaterFilterSpewer.cs | 2 +- Projectiles/Typeless/ChaosBlaze.cs | 2 +- Projectiles/Typeless/ChaosFlare.cs | 4 +- Projectiles/Typeless/ChaosFlare2.cs | 2 +- Projectiles/Typeless/ChaosGeyser.cs | 4 +- Projectiles/Typeless/CoralBubble.cs | 2 +- Projectiles/Typeless/CoralBubbleSmall.cs | 2 +- Projectiles/Typeless/CursorProj.cs | 2 +- Projectiles/Typeless/CursorProjSplit.cs | 2 +- Projectiles/Typeless/DemonshadeRedDevil.cs | 2 +- Projectiles/Typeless/DirectStrike.cs | 2 +- Projectiles/Typeless/DragonDust.cs | 2 +- Projectiles/Typeless/FabsolDust.cs | 2 +- .../FiniteUse/ExplosiveShotgunShell.cs | 7 +- .../Typeless/FiniteUse/GrenadeRound.cs | 4 +- Projectiles/Typeless/FiniteUse/MagnumRound.cs | 2 +- Projectiles/Typeless/FlareExplosion.cs | 2 +- Projectiles/Typeless/FuckYou.cs | 2 +- Projectiles/Typeless/GhostlyBolt.cs | 2 +- Projectiles/Typeless/GladiatorSword.cs | 2 +- Projectiles/Typeless/GladiatorSword2.cs | 2 +- Projectiles/Typeless/GodKiller.cs | 4 +- Projectiles/Typeless/GodSlayerBlaze.cs | 2 +- Projectiles/Typeless/GodSlayerOrb.cs | 2 +- Projectiles/Typeless/GodSlayerPhantom.cs | 2 +- Projectiles/Typeless/GodSlayerShrapnel.cs | 5 +- .../Typeless/GodSlayerShrapnelRound.cs | 5 +- .../Typeless/HellfireExplosionFriendly2.cs | 5 +- Projectiles/Typeless/HolyEruption.cs | 2 +- Projectiles/Typeless/HolyExplosion.cs | 5 +- Projectiles/Typeless/HolyExplosionSupreme.cs | 5 +- Projectiles/Typeless/HolyFlameBomb.cs | 5 +- Projectiles/Typeless/HydrothermalSmoke.cs | 2 +- Projectiles/Typeless/KelvinCatalystStar.cs | 4 +- Projectiles/Typeless/LunicBeam.cs | 2 +- Projectiles/Typeless/MageHammerBoom.cs | 2 +- Projectiles/Typeless/MarkRound.cs | 2 +- Projectiles/Typeless/MomentumCapacitorOrb.cs | 2 +- Projectiles/Typeless/NanoFlare.cs | 4 +- Projectiles/Typeless/Nanotech.cs | 2 +- Projectiles/Typeless/NebulaDust.cs | 2 +- Projectiles/Typeless/NebulaStar.cs | 2 +- Projectiles/Typeless/NobodyKnows.cs | 2 +- Projectiles/Typeless/PendantProjectile1.cs | 2 +- Projectiles/Typeless/PendantProjectile2.cs | 2 +- Projectiles/Typeless/PendantProjectile3.cs | 2 +- Projectiles/Typeless/PoisonousSeawater.cs | 2 +- Projectiles/Typeless/ReaverBlast.cs | 2 +- .../Typeless/RelicOfConvergenceCrystal.cs | 2 +- .../Typeless/RelicOfDeliveranceSpear.cs | 2 +- Projectiles/Typeless/SabatonSlam.cs | 4 +- Projectiles/Typeless/SandCloakVeil.cs | 2 +- Projectiles/Typeless/SandExplosion.cs | 2 +- Projectiles/Typeless/Seashell.cs | 2 +- Projectiles/Typeless/ShadowflameExplosion.cs | 2 +- .../Typeless/ShadowflameExplosionBig.cs | 2 +- Projectiles/Typeless/SkyFlareFriendly.cs | 4 +- Projectiles/Typeless/StandingFire.cs | 5 +- Projectiles/Typeless/StarStruckWaterBottle.cs | 6 +- Projectiles/Typeless/StickyFeatherAero.cs | 5 +- Projectiles/Typeless/StormBolt.cs | 2 +- .../Typeless/SulphuricAcidBubbleFriendly.cs | 2 +- .../Typeless/TheDeadlyMicrobeProjectile.cs | 2 +- Projectiles/Typeless/UnstableSpark.cs | 2 +- Projectiles/Typeless/VanquisherArrowSplit.cs | 2 +- Projectiles/Typeless/XerocBlast.cs | 2 +- Projectiles/Typeless/XerocBubble.cs | 2 +- Projectiles/Typeless/XerocFire.cs | 2 +- Projectiles/Typeless/XerocOrb.cs | 2 +- Projectiles/Typeless/XerocStar.cs | 2 +- Skies/AstralScreenShaderData.cs | 2 +- Skies/AstralSky.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/Item/IceBarrageCast.cs | 2 +- Sounds/NPCHit/AstralEnemyHit.cs | 2 +- Sounds/NPCHit/AstralEnemyHit2.cs | 2 +- Sounds/NPCHit/AstralEnemyHit3.cs | 2 +- Sounds/NPCHit/AtlasHurt0.cs | 2 +- Sounds/NPCHit/AtlasHurt1.cs | 2 +- Sounds/NPCHit/AtlasHurt2.cs | 2 +- Sounds/NPCHit/OtherworldlyHit.cs | 2 +- Sounds/NPCHit/ProvidenceHurt.cs | 2 +- Sounds/NPCHit/ScornHurt.cs | 2 +- Sounds/NPCKilled/AstralEnemyDeath.cs | 2 +- Sounds/NPCKilled/AtlasDeath.cs | 2 +- Sounds/NPCKilled/EidolistDeath.cs | 2 +- Sounds/NPCKilled/ProvidenceDeath.cs | 2 +- Sounds/NPCKilled/ScornDeath.cs | 2 +- Tiles/Abyss/AbyssGravel.cs | 2 +- Tiles/Abyss/AcidWoodTree.cs | 2 +- Tiles/Abyss/AcidWoodTreeSapling.cs | 2 +- Tiles/Abyss/HardenedSulphurousSandstone.cs | 4 +- Tiles/Abyss/LumenylCrystals.cs | 2 +- Tiles/Abyss/PlantyMush.cs | 4 +- .../Abyss/Stalactite/SulphurousStalacmite1.cs | 2 +- .../Abyss/Stalactite/SulphurousStalacmite2.cs | 2 +- .../Abyss/Stalactite/SulphurousStalacmite3.cs | 2 +- .../Abyss/Stalactite/SulphurousStalacmite4.cs | 2 +- .../Abyss/Stalactite/SulphurousStalacmite5.cs | 2 +- .../Abyss/Stalactite/SulphurousStalacmite6.cs | 2 +- .../Abyss/Stalactite/SulphurousStalactite1.cs | 2 +- .../Abyss/Stalactite/SulphurousStalactite2.cs | 2 +- .../Abyss/Stalactite/SulphurousStalactite3.cs | 2 +- .../Abyss/Stalactite/SulphurousStalactite4.cs | 2 +- .../Abyss/Stalactite/SulphurousStalactite5.cs | 2 +- .../Abyss/Stalactite/SulphurousStalactite6.cs | 2 +- Tiles/Abyss/SteamGeyser.cs | 2 +- Tiles/Abyss/SulphurousColumn.cs | 2 +- Tiles/Abyss/SulphurousRib1.cs | 2 +- Tiles/Abyss/SulphurousRib2.cs | 2 +- Tiles/Abyss/SulphurousRib3.cs | 2 +- Tiles/Abyss/SulphurousRib4.cs | 2 +- Tiles/Abyss/SulphurousRib5.cs | 2 +- Tiles/Abyss/SulphurousSand.cs | 10 +- Tiles/Abyss/SulphurousSandNoWater.cs | 3 +- Tiles/Abyss/SulphurousSandstone.cs | 4 +- Tiles/Abyss/SulphurousVines.cs | 4 +- Tiles/Abyss/Tenebris.cs | 2 +- Tiles/Abyss/ViperVines.cs | 4 +- Tiles/Abyss/Voidstone.cs | 2 +- Tiles/AerialiteBrick.cs | 4 +- Tiles/ArenaTile.cs | 6 +- Tiles/Astral/AstralNormalLargePiles.cs | 2 +- Tiles/Astral/AstralNormalMediumPiles.cs | 2 +- Tiles/Astral/AstralNormalSmallPiles.cs | 2 +- Tiles/Astral/AstralNormalStalactite.cs | 2 +- Tiles/Astral/AstralShortPlants.cs | 5 +- Tiles/Astral/AstralStone.cs | 2 +- Tiles/Astral/AstralTallPlants.cs | 5 +- Tiles/Astral/AstralTree.cs | 2 +- Tiles/Astral/AstralTreeSapling.cs | 2 +- Tiles/Astral/AstralVines.cs | 2 +- Tiles/AstralBar.cs | 2 +- Tiles/AstralBrick.cs | 3 +- Tiles/AstralDesert/AstralDesertLargePiles.cs | 2 +- Tiles/AstralDesert/AstralDesertMediumPiles.cs | 2 +- Tiles/AstralDesert/AstralDesertSmallPiles.cs | 2 +- Tiles/AstralDesert/AstralDesertStalactite.cs | 2 +- Tiles/AstralDesert/AstralPalmSapling.cs | 2 +- Tiles/AstralDesert/AstralPalmTree.cs | 2 +- Tiles/AstralSnow/AstralIce.cs | 2 +- Tiles/AstralSnow/AstralIceLargePiles.cs | 2 +- Tiles/AstralSnow/AstralIceMediumPiles.cs | 2 +- Tiles/AstralSnow/AstralIceSmallPiles.cs | 2 +- Tiles/AstralSnow/AstralIceStalactite.cs | 2 +- Tiles/AstralSnow/AstralSnow.cs | 2 +- Tiles/AstralSnow/AstralSnowTree.cs | 2 +- Tiles/AstralSnow/AstralSnowTreeSapling.cs | 2 +- Tiles/CalamityGlobalTile.cs | 2 +- Tiles/ChaoticBrick.cs | 4 +- Tiles/Cinderplate.cs | 4 +- Tiles/Crags/BrimstoneSlag.cs | 4 +- Tiles/CryonicBrick.cs | 4 +- .../CraftingStations/AncientAltar.cs | 2 +- .../Furniture/CraftingStations/AshenAltar.cs | 2 +- .../CraftingStations/BotanicPlanter.cs | 2 +- .../CraftingStations/EutrophicCrafting.cs | 2 +- .../CraftingStations/PlagueInfuser.cs | 2 +- .../CraftingStations/ProfanedBasin.cs | 2 +- .../Furniture/CraftingStations/SilvaBasin.cs | 2 +- .../CraftingStations/StaticRefiner.cs | 2 +- .../CraftingStations/VoidCondenser.cs | 2 +- Tiles/FurnitureAbyss/SmoothAbyssGravel.cs | 4 +- .../SmoothAbyssGravelPlatform.cs | 2 +- Tiles/FurnitureAncient/AncientBasin.cs | 2 +- Tiles/FurnitureAshen/AshenBasin.cs | 2 +- Tiles/FurnitureAshen/AshenSlab.cs | 4 +- Tiles/FurnitureAshen/SmoothBrimstoneSlag.cs | 4 +- Tiles/FurnitureAstral/MonolithChest.cs | 2 +- Tiles/FurnitureCosmilite/CosmiliteBrick.cs | 4 +- Tiles/FurnitureEutrophic/SmoothNavystone.cs | 2 +- Tiles/FurnitureOccult/OccultStone.cs | 6 +- Tiles/FurniturePlaguedPlate/PlaguedPlate.cs | 4 +- .../PlaguedPlateBasin.cs | 2 +- Tiles/FurnitureProfaned/ProfanedCrystal.cs | 4 +- Tiles/FurnitureProfaned/ProfanedRock.cs | 3 +- Tiles/FurnitureProfaned/ProfanedSlab.cs | 3 +- Tiles/FurnitureProfaned/RunicProfanedBrick.cs | 3 +- Tiles/FurnitureSilva/SilvaCrystal.cs | 3 +- Tiles/FurnitureStratus/StratusBricks.cs | 2 +- Tiles/FurnitureVoid/SmoothVoidstone.cs | 4 +- Tiles/FurnitureVoid/VoidstoneSlab.cs | 4 +- Tiles/Ores/AerialiteOre.cs | 4 +- Tiles/Ores/AstralOre.cs | 2 +- Tiles/Ores/AuricOre.cs | 4 +- Tiles/Ores/ChaoticOre.cs | 2 +- Tiles/Ores/CharredOre.cs | 4 +- Tiles/Ores/CryonicOre.cs | 2 +- Tiles/Ores/ExodiumOre.cs | 6 +- Tiles/Ores/PerennialOre.cs | 4 +- Tiles/Ores/UelibloomOre.cs | 2 +- Tiles/PerennialBrick.cs | 4 +- Tiles/RoxTile.cs | 2 +- Tiles/SunkenSea/BrainCoral.cs | 2 +- Tiles/SunkenSea/FanCoral.cs | 2 +- Tiles/SunkenSea/Navystone.cs | 2 +- Tiles/SunkenSea/SeaAnemone.cs | 2 +- Tiles/SunkenSea/SeaPrism.cs | 3 +- Tiles/SunkenSea/SeaPrismCrystals.cs | 2 +- Tiles/SunkenSea/SmallBrainCoral.cs | 2 +- Tiles/SunkenSea/SmallTubeCoral.cs | 2 +- Tiles/SunkenSea/SunkenSeaStalactite.cs | 2 +- Tiles/SunkenSea/TableCoral.cs | 2 +- Tiles/SunkenSea/TubeCoral.cs | 2 +- Tiles/UelibloomBrick.cs | 6 +- UI/AcidRainUI.cs | 2 +- UI/AstralArcanumUI.cs | 8 +- UI/BossHealthBarManager.cs | 2 +- UI/RipperUI.cs | 2 +- UI/StealthUI.cs | 2 +- Utilities/BezierCurve.cs | 2 +- Utilities/CalamityRecipes.cs | 2 +- Utilities/CalamityUtils.cs | 16 +- Utilities/Circle.cs | 2 +- Utilities/Downed.cs | 2 +- Utilities/Enums.cs | 2 +- Utilities/TileFraming.cs | 2 +- Walls/AstralDirtWall.cs | 2 +- Walls/AstralDirtWallSafe.cs | 2 +- Walls/AstralFossilWall.cs | 2 +- Walls/AstralGrassWall.cs | 2 +- Walls/AstralIceWall.cs | 2 +- Walls/AstralIceWallSafe.cs | 2 +- Walls/AstralSandstoneWall.cs | 2 +- Walls/AstralSandstoneWallSafe.cs | 2 +- Walls/AstralSnowWall.cs | 2 +- Walls/AstralSnowWallSafe.cs | 2 +- Walls/AstralStoneWall.cs | 2 +- Walls/AstralStoneWallSafe.cs | 2 +- Walls/HardenedAstralSandWall.cs | 2 +- Walls/HardenedAstralSandWallSafe.cs | 2 +- World/CalamityWorld.cs | 5 +- World/CustomActions.cs | 2 +- World/CustomConditions.cs | 2 +- World/Planets/GrassPlanet.cs | 2 +- World/Planets/HeartPlanet.cs | 2 +- World/Planets/MainPlanet.cs | 2 +- World/Planets/MudPlanet.cs | 2 +- World/Planets/Planetoid.cs | 2 +- World/WorldGenerationMethods.cs | 6 +- 3812 files changed, 6302 insertions(+), 5466 deletions(-) diff --git a/Backgrounds/AstralDesertSurfaceBGStyle.cs b/Backgrounds/AstralDesertSurfaceBGStyle.cs index 014a06e5ac..d47afe4f29 100644 --- a/Backgrounds/AstralDesertSurfaceBGStyle.cs +++ b/Backgrounds/AstralDesertSurfaceBGStyle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Backgrounds diff --git a/Backgrounds/AstralSnowSurfaceBGStyle.cs b/Backgrounds/AstralSnowSurfaceBGStyle.cs index 386ce9e4b7..e6277edd5a 100644 --- a/Backgrounds/AstralSnowSurfaceBGStyle.cs +++ b/Backgrounds/AstralSnowSurfaceBGStyle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Backgrounds diff --git a/Backgrounds/AstralSurfaceBGStyle.cs b/Backgrounds/AstralSurfaceBGStyle.cs index c0d83b6c83..338b92d53f 100644 --- a/Backgrounds/AstralSurfaceBGStyle.cs +++ b/Backgrounds/AstralSurfaceBGStyle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Backgrounds diff --git a/Backgrounds/AstralUndergroundBGStyle.cs b/Backgrounds/AstralUndergroundBGStyle.cs index dbbb650181..23f177f5c4 100644 --- a/Backgrounds/AstralUndergroundBGStyle.cs +++ b/Backgrounds/AstralUndergroundBGStyle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Backgrounds diff --git a/Backgrounds/SulphurSeaSurfaceBGStyle.cs b/Backgrounds/SulphurSeaSurfaceBGStyle.cs index 4cb0f2d013..43c07e7b1a 100644 --- a/Backgrounds/SulphurSeaSurfaceBGStyle.cs +++ b/Backgrounds/SulphurSeaSurfaceBGStyle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Backgrounds diff --git a/Buffs/Alcohol/AlcoholPoisoning.cs b/Buffs/Alcohol/AlcoholPoisoning.cs index d66d052a76..68b049c383 100644 --- a/Buffs/Alcohol/AlcoholPoisoning.cs +++ b/Buffs/Alcohol/AlcoholPoisoning.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/BloodyMaryBuff.cs b/Buffs/Alcohol/BloodyMaryBuff.cs index d0afa1fd86..3b24a8627d 100644 --- a/Buffs/Alcohol/BloodyMaryBuff.cs +++ b/Buffs/Alcohol/BloodyMaryBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/CaribbeanRumBuff.cs b/Buffs/Alcohol/CaribbeanRumBuff.cs index 36f38562c9..e9146ba1a2 100644 --- a/Buffs/Alcohol/CaribbeanRumBuff.cs +++ b/Buffs/Alcohol/CaribbeanRumBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/CinnamonRollBuff.cs b/Buffs/Alcohol/CinnamonRollBuff.cs index 5c0b971a59..feab7cda1e 100644 --- a/Buffs/Alcohol/CinnamonRollBuff.cs +++ b/Buffs/Alcohol/CinnamonRollBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/EverclearBuff.cs b/Buffs/Alcohol/EverclearBuff.cs index 2c149361e9..cc2e191393 100644 --- a/Buffs/Alcohol/EverclearBuff.cs +++ b/Buffs/Alcohol/EverclearBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/EvergreenGinBuff.cs b/Buffs/Alcohol/EvergreenGinBuff.cs index 4517b2a9d9..ba5f17f12b 100644 --- a/Buffs/Alcohol/EvergreenGinBuff.cs +++ b/Buffs/Alcohol/EvergreenGinBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/FabsolVodkaBuff.cs b/Buffs/Alcohol/FabsolVodkaBuff.cs index 21bdc8fd79..afd6016e98 100644 --- a/Buffs/Alcohol/FabsolVodkaBuff.cs +++ b/Buffs/Alcohol/FabsolVodkaBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/FireballBuff.cs b/Buffs/Alcohol/FireballBuff.cs index 09b4565a90..54c7c0aa0b 100644 --- a/Buffs/Alcohol/FireballBuff.cs +++ b/Buffs/Alcohol/FireballBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/GrapeBeerBuff.cs b/Buffs/Alcohol/GrapeBeerBuff.cs index 5096134d15..d0e6f64c81 100644 --- a/Buffs/Alcohol/GrapeBeerBuff.cs +++ b/Buffs/Alcohol/GrapeBeerBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/MargaritaBuff.cs b/Buffs/Alcohol/MargaritaBuff.cs index b8c139558d..16490e0b55 100644 --- a/Buffs/Alcohol/MargaritaBuff.cs +++ b/Buffs/Alcohol/MargaritaBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/MoonshineBuff.cs b/Buffs/Alcohol/MoonshineBuff.cs index 2e79c06fd8..9fe7a24fcd 100644 --- a/Buffs/Alcohol/MoonshineBuff.cs +++ b/Buffs/Alcohol/MoonshineBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/MoscowMuleBuff.cs b/Buffs/Alcohol/MoscowMuleBuff.cs index 3c25b9beb3..f9d0c793fe 100644 --- a/Buffs/Alcohol/MoscowMuleBuff.cs +++ b/Buffs/Alcohol/MoscowMuleBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/RedWineBuff.cs b/Buffs/Alcohol/RedWineBuff.cs index e427207cac..7c88708840 100644 --- a/Buffs/Alcohol/RedWineBuff.cs +++ b/Buffs/Alcohol/RedWineBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/RumBuff.cs b/Buffs/Alcohol/RumBuff.cs index e5c206b0f8..2757bb9681 100644 --- a/Buffs/Alcohol/RumBuff.cs +++ b/Buffs/Alcohol/RumBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/ScrewdriverBuff.cs b/Buffs/Alcohol/ScrewdriverBuff.cs index 764ea263fa..d625aa2584 100644 --- a/Buffs/Alcohol/ScrewdriverBuff.cs +++ b/Buffs/Alcohol/ScrewdriverBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/StarBeamRyeBuff.cs b/Buffs/Alcohol/StarBeamRyeBuff.cs index 075390a8dc..f1dd542182 100644 --- a/Buffs/Alcohol/StarBeamRyeBuff.cs +++ b/Buffs/Alcohol/StarBeamRyeBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/TequilaBuff.cs b/Buffs/Alcohol/TequilaBuff.cs index 9a7e1c40a2..15355206bd 100644 --- a/Buffs/Alcohol/TequilaBuff.cs +++ b/Buffs/Alcohol/TequilaBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/TequilaSunriseBuff.cs b/Buffs/Alcohol/TequilaSunriseBuff.cs index 9f30e1cdcf..325f40f1b1 100644 --- a/Buffs/Alcohol/TequilaSunriseBuff.cs +++ b/Buffs/Alcohol/TequilaSunriseBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/Trippy.cs b/Buffs/Alcohol/Trippy.cs index 97db91c6ef..a8b9cacc85 100644 --- a/Buffs/Alcohol/Trippy.cs +++ b/Buffs/Alcohol/Trippy.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/VodkaBuff.cs b/Buffs/Alcohol/VodkaBuff.cs index 037a66ba39..89b12cf0e8 100644 --- a/Buffs/Alcohol/VodkaBuff.cs +++ b/Buffs/Alcohol/VodkaBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/WhiskeyBuff.cs b/Buffs/Alcohol/WhiskeyBuff.cs index 238b1ad66d..3b673d0f92 100644 --- a/Buffs/Alcohol/WhiskeyBuff.cs +++ b/Buffs/Alcohol/WhiskeyBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Alcohol/WhiteWineBuff.cs b/Buffs/Alcohol/WhiteWineBuff.cs index 8d5323fba7..f1b72fcbed 100644 --- a/Buffs/Alcohol/WhiteWineBuff.cs +++ b/Buffs/Alcohol/WhiteWineBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol diff --git a/Buffs/Cooldowns/AbyssalDivingSuitPlatesBroken.cs b/Buffs/Cooldowns/AbyssalDivingSuitPlatesBroken.cs index 999541d5f4..ec07a49c18 100644 --- a/Buffs/Cooldowns/AbyssalDivingSuitPlatesBroken.cs +++ b/Buffs/Cooldowns/AbyssalDivingSuitPlatesBroken.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/AbyssalMirrorCooldown.cs b/Buffs/Cooldowns/AbyssalMirrorCooldown.cs index 9c59353058..94acb27e64 100644 --- a/Buffs/Cooldowns/AbyssalMirrorCooldown.cs +++ b/Buffs/Cooldowns/AbyssalMirrorCooldown.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/BloodflareBloodFrenzyCooldown.cs b/Buffs/Cooldowns/BloodflareBloodFrenzyCooldown.cs index 5b82ac39d4..4426ed9486 100644 --- a/Buffs/Cooldowns/BloodflareBloodFrenzyCooldown.cs +++ b/Buffs/Cooldowns/BloodflareBloodFrenzyCooldown.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/BloodflareSoulCooldown.cs b/Buffs/Cooldowns/BloodflareSoulCooldown.cs index 656fee4f41..f859c25feb 100644 --- a/Buffs/Cooldowns/BloodflareSoulCooldown.cs +++ b/Buffs/Cooldowns/BloodflareSoulCooldown.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/BrimflameFrenzyCooldown.cs b/Buffs/Cooldowns/BrimflameFrenzyCooldown.cs index b59ec13e63..824561c866 100644 --- a/Buffs/Cooldowns/BrimflameFrenzyCooldown.cs +++ b/Buffs/Cooldowns/BrimflameFrenzyCooldown.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/EclipseMirrorCooldown.cs b/Buffs/Cooldowns/EclipseMirrorCooldown.cs index c96708afc9..b9936c1f46 100644 --- a/Buffs/Cooldowns/EclipseMirrorCooldown.cs +++ b/Buffs/Cooldowns/EclipseMirrorCooldown.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/GodSlayerCooldown.cs b/Buffs/Cooldowns/GodSlayerCooldown.cs index 1c42957b76..304c33027d 100644 --- a/Buffs/Cooldowns/GodSlayerCooldown.cs +++ b/Buffs/Cooldowns/GodSlayerCooldown.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/IceShieldBrokenBuff.cs b/Buffs/Cooldowns/IceShieldBrokenBuff.cs index a5395b11aa..b17e45f395 100644 --- a/Buffs/Cooldowns/IceShieldBrokenBuff.cs +++ b/Buffs/Cooldowns/IceShieldBrokenBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/InkBombCooldown.cs b/Buffs/Cooldowns/InkBombCooldown.cs index c3bd0fceef..60718ae735 100644 --- a/Buffs/Cooldowns/InkBombCooldown.cs +++ b/Buffs/Cooldowns/InkBombCooldown.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/ResilienceCooldown.cs b/Buffs/Cooldowns/ResilienceCooldown.cs index 66a4975223..76e2810b05 100644 --- a/Buffs/Cooldowns/ResilienceCooldown.cs +++ b/Buffs/Cooldowns/ResilienceCooldown.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/ScarfCooldown.cs b/Buffs/Cooldowns/ScarfCooldown.cs index 778f1660ef..edb0553a71 100644 --- a/Buffs/Cooldowns/ScarfCooldown.cs +++ b/Buffs/Cooldowns/ScarfCooldown.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/TarragonCloakCooldown.cs b/Buffs/Cooldowns/TarragonCloakCooldown.cs index f28dc1fef5..59e1633c28 100644 --- a/Buffs/Cooldowns/TarragonCloakCooldown.cs +++ b/Buffs/Cooldowns/TarragonCloakCooldown.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/Cooldowns/TarragonImmunityCooldown.cs b/Buffs/Cooldowns/TarragonImmunityCooldown.cs index 5e78f4ed75..b5ec547260 100644 --- a/Buffs/Cooldowns/TarragonImmunityCooldown.cs +++ b/Buffs/Cooldowns/TarragonImmunityCooldown.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Cooldowns diff --git a/Buffs/DamageOverTime/AbyssalFlames.cs b/Buffs/DamageOverTime/AbyssalFlames.cs index da5d6845bb..1b4ce689ca 100644 --- a/Buffs/DamageOverTime/AbyssalFlames.cs +++ b/Buffs/DamageOverTime/AbyssalFlames.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/AstralInfectionDebuff.cs b/Buffs/DamageOverTime/AstralInfectionDebuff.cs index 02ad5d3229..4cbf341553 100644 --- a/Buffs/DamageOverTime/AstralInfectionDebuff.cs +++ b/Buffs/DamageOverTime/AstralInfectionDebuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/BrimstoneFlames.cs b/Buffs/DamageOverTime/BrimstoneFlames.cs index 4096ddfa7a..f25b100141 100644 --- a/Buffs/DamageOverTime/BrimstoneFlames.cs +++ b/Buffs/DamageOverTime/BrimstoneFlames.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/BurningBlood.cs b/Buffs/DamageOverTime/BurningBlood.cs index fc7a19fc7a..17aa0a8437 100644 --- a/Buffs/DamageOverTime/BurningBlood.cs +++ b/Buffs/DamageOverTime/BurningBlood.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/CrushDepth.cs b/Buffs/DamageOverTime/CrushDepth.cs index d287d9ee27..0b63b68f55 100644 --- a/Buffs/DamageOverTime/CrushDepth.cs +++ b/Buffs/DamageOverTime/CrushDepth.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/DemonFlames.cs b/Buffs/DamageOverTime/DemonFlames.cs index 0abff5d32e..2a370bbc21 100644 --- a/Buffs/DamageOverTime/DemonFlames.cs +++ b/Buffs/DamageOverTime/DemonFlames.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/GodSlayerInferno.cs b/Buffs/DamageOverTime/GodSlayerInferno.cs index 2798de3dd4..4782500a2f 100644 --- a/Buffs/DamageOverTime/GodSlayerInferno.cs +++ b/Buffs/DamageOverTime/GodSlayerInferno.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/HolyFlames.cs b/Buffs/DamageOverTime/HolyFlames.cs index ae7bd17b1e..9c08d139f3 100644 --- a/Buffs/DamageOverTime/HolyFlames.cs +++ b/Buffs/DamageOverTime/HolyFlames.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/HolyInferno.cs b/Buffs/DamageOverTime/HolyInferno.cs index 5a324320ea..6581fa159d 100644 --- a/Buffs/DamageOverTime/HolyInferno.cs +++ b/Buffs/DamageOverTime/HolyInferno.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/LethalLavaBurn.cs b/Buffs/DamageOverTime/LethalLavaBurn.cs index 964277b993..9ed4184336 100644 --- a/Buffs/DamageOverTime/LethalLavaBurn.cs +++ b/Buffs/DamageOverTime/LethalLavaBurn.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/Nightwither.cs b/Buffs/DamageOverTime/Nightwither.cs index 059f55de47..931cc9b8de 100644 --- a/Buffs/DamageOverTime/Nightwither.cs +++ b/Buffs/DamageOverTime/Nightwither.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/Plague.cs b/Buffs/DamageOverTime/Plague.cs index e0f08c339e..6faa2312f4 100644 --- a/Buffs/DamageOverTime/Plague.cs +++ b/Buffs/DamageOverTime/Plague.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/Shadowflame.cs b/Buffs/DamageOverTime/Shadowflame.cs index 9274e0e671..c752b86b3b 100644 --- a/Buffs/DamageOverTime/Shadowflame.cs +++ b/Buffs/DamageOverTime/Shadowflame.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/ShellfishEating.cs b/Buffs/DamageOverTime/ShellfishEating.cs index 7d933e2606..47540279c0 100644 --- a/Buffs/DamageOverTime/ShellfishEating.cs +++ b/Buffs/DamageOverTime/ShellfishEating.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/Shred.cs b/Buffs/DamageOverTime/Shred.cs index b6d1fef7c1..eab185a1f2 100644 --- a/Buffs/DamageOverTime/Shred.cs +++ b/Buffs/DamageOverTime/Shred.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/SnapClamDebuff.cs b/Buffs/DamageOverTime/SnapClamDebuff.cs index bb3b39d842..34ac6157ec 100644 --- a/Buffs/DamageOverTime/SnapClamDebuff.cs +++ b/Buffs/DamageOverTime/SnapClamDebuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/Vaporfied.cs b/Buffs/DamageOverTime/Vaporfied.cs index c429efc8be..cdcb28b518 100644 --- a/Buffs/DamageOverTime/Vaporfied.cs +++ b/Buffs/DamageOverTime/Vaporfied.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/DamageOverTime/VulnerabilityHex.cs b/Buffs/DamageOverTime/VulnerabilityHex.cs index c64f88ac73..17b1addd7e 100644 --- a/Buffs/DamageOverTime/VulnerabilityHex.cs +++ b/Buffs/DamageOverTime/VulnerabilityHex.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime diff --git a/Buffs/Mounts/AlicornBuff.cs b/Buffs/Mounts/AlicornBuff.cs index 40fe164d8f..ccd207a64c 100644 --- a/Buffs/Mounts/AlicornBuff.cs +++ b/Buffs/Mounts/AlicornBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items.Mounts; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Mounts diff --git a/Buffs/Mounts/AndromedaBuff.cs b/Buffs/Mounts/AndromedaBuff.cs index 27244854ec..5da3c54206 100644 --- a/Buffs/Mounts/AndromedaBuff.cs +++ b/Buffs/Mounts/AndromedaBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items.Mounts; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Mounts/AndromedaSmallBuff.cs b/Buffs/Mounts/AndromedaSmallBuff.cs index b74a088387..0e9c4030e4 100644 --- a/Buffs/Mounts/AndromedaSmallBuff.cs +++ b/Buffs/Mounts/AndromedaSmallBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items.Mounts; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Mounts/BrimstoneMount.cs b/Buffs/Mounts/BrimstoneMount.cs index 762ecb8387..0bf69688ab 100644 --- a/Buffs/Mounts/BrimstoneMount.cs +++ b/Buffs/Mounts/BrimstoneMount.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items.Mounts; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Mounts/GazeOfCrysthamyrBuff.cs b/Buffs/Mounts/GazeOfCrysthamyrBuff.cs index b55d333bf8..da5e3fd2b3 100644 --- a/Buffs/Mounts/GazeOfCrysthamyrBuff.cs +++ b/Buffs/Mounts/GazeOfCrysthamyrBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items.Mounts; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Mounts/OnyxExcavatorBuff.cs b/Buffs/Mounts/OnyxExcavatorBuff.cs index e80fe4ac84..f5ce5a53ce 100644 --- a/Buffs/Mounts/OnyxExcavatorBuff.cs +++ b/Buffs/Mounts/OnyxExcavatorBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items.Mounts; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Mounts/SquishyBeanBuff.cs b/Buffs/Mounts/SquishyBeanBuff.cs index 0ac7be1658..b912fcdd38 100644 --- a/Buffs/Mounts/SquishyBeanBuff.cs +++ b/Buffs/Mounts/SquishyBeanBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items.Mounts; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Mounts/TundraLeashBuff.cs b/Buffs/Mounts/TundraLeashBuff.cs index 9e5a4a16b9..90fd6205dc 100644 --- a/Buffs/Mounts/TundraLeashBuff.cs +++ b/Buffs/Mounts/TundraLeashBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Mounts; +using CalamityMod.Items.Mounts; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Pets/AkatoYharonBuff.cs b/Buffs/Pets/AkatoYharonBuff.cs index 38b0fbe89b..123369a3d2 100644 --- a/Buffs/Pets/AkatoYharonBuff.cs +++ b/Buffs/Pets/AkatoYharonBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Pets; +using CalamityMod.Projectiles.Pets; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Pets/BloodBound.cs b/Buffs/Pets/BloodBound.cs index d27219ca5c..adef2fd525 100644 --- a/Buffs/Pets/BloodBound.cs +++ b/Buffs/Pets/BloodBound.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Pets; +using CalamityMod.Projectiles.Pets; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Pets/Fox.cs b/Buffs/Pets/Fox.cs index 1ad555f668..ebe4e31caa 100644 --- a/Buffs/Pets/Fox.cs +++ b/Buffs/Pets/Fox.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Pets; +using CalamityMod.Projectiles.Pets; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Pets/FurtasticDuoBuff.cs b/Buffs/Pets/FurtasticDuoBuff.cs index a6c5a18083..262b042712 100644 --- a/Buffs/Pets/FurtasticDuoBuff.cs +++ b/Buffs/Pets/FurtasticDuoBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Pets; +using CalamityMod.Projectiles.Pets; using Microsoft.Xna.Framework; using System.Collections.Generic; using Terraria; diff --git a/Buffs/Pets/LeviBuff.cs b/Buffs/Pets/LeviBuff.cs index 4f00ade48e..3081f8dfc3 100644 --- a/Buffs/Pets/LeviBuff.cs +++ b/Buffs/Pets/LeviBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Pets; +using CalamityMod.Projectiles.Pets; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Pets/SirenLightPetBuff.cs b/Buffs/Pets/SirenLightPetBuff.cs index ba3a3cac39..a51ffaffb0 100644 --- a/Buffs/Pets/SirenLightPetBuff.cs +++ b/Buffs/Pets/SirenLightPetBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Pets; +using CalamityMod.Projectiles.Pets; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Pets/ThirdSageBuff.cs b/Buffs/Pets/ThirdSageBuff.cs index ac3cb8543a..c879217262 100644 --- a/Buffs/Pets/ThirdSageBuff.cs +++ b/Buffs/Pets/ThirdSageBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Pets; +using CalamityMod.Projectiles.Pets; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Placeables/BlueSpeedCandle.cs b/Buffs/Placeables/BlueSpeedCandle.cs index 3c066828e0..f0233ffbcf 100644 --- a/Buffs/Placeables/BlueSpeedCandle.cs +++ b/Buffs/Placeables/BlueSpeedCandle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables diff --git a/Buffs/Placeables/ChaosCandleBuff.cs b/Buffs/Placeables/ChaosCandleBuff.cs index 2b21702305..b395b3f889 100644 --- a/Buffs/Placeables/ChaosCandleBuff.cs +++ b/Buffs/Placeables/ChaosCandleBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables diff --git a/Buffs/Placeables/CorruptionEffigyBuff.cs b/Buffs/Placeables/CorruptionEffigyBuff.cs index b5f231f959..b1fa642529 100644 --- a/Buffs/Placeables/CorruptionEffigyBuff.cs +++ b/Buffs/Placeables/CorruptionEffigyBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables diff --git a/Buffs/Placeables/CrimsonEffigyBuff.cs b/Buffs/Placeables/CrimsonEffigyBuff.cs index a54c57aad8..8898a5038a 100644 --- a/Buffs/Placeables/CrimsonEffigyBuff.cs +++ b/Buffs/Placeables/CrimsonEffigyBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables diff --git a/Buffs/Placeables/EffigyOfDecayBuff.cs b/Buffs/Placeables/EffigyOfDecayBuff.cs index 0965076425..500c66aabd 100644 --- a/Buffs/Placeables/EffigyOfDecayBuff.cs +++ b/Buffs/Placeables/EffigyOfDecayBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables diff --git a/Buffs/Placeables/PinkHealthCandle.cs b/Buffs/Placeables/PinkHealthCandle.cs index 4cb81beb9a..6603da177f 100644 --- a/Buffs/Placeables/PinkHealthCandle.cs +++ b/Buffs/Placeables/PinkHealthCandle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables diff --git a/Buffs/Placeables/PurpleDefenseCandle.cs b/Buffs/Placeables/PurpleDefenseCandle.cs index 544bbaf306..d6daf5f8f8 100644 --- a/Buffs/Placeables/PurpleDefenseCandle.cs +++ b/Buffs/Placeables/PurpleDefenseCandle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables diff --git a/Buffs/Placeables/TranquilityCandleBuff.cs b/Buffs/Placeables/TranquilityCandleBuff.cs index 779941fac6..3ccdc99e70 100644 --- a/Buffs/Placeables/TranquilityCandleBuff.cs +++ b/Buffs/Placeables/TranquilityCandleBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables diff --git a/Buffs/Placeables/YellowDamageCandle.cs b/Buffs/Placeables/YellowDamageCandle.cs index eaf9e2ec55..64a99338f2 100644 --- a/Buffs/Placeables/YellowDamageCandle.cs +++ b/Buffs/Placeables/YellowDamageCandle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables diff --git a/Buffs/PopoBuff.cs b/Buffs/PopoBuff.cs index a86343f420..c24ce48df9 100644 --- a/Buffs/PopoBuff.cs +++ b/Buffs/PopoBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/PopoNoselessBuff.cs b/Buffs/PopoNoselessBuff.cs index 588b79f89a..244249e5b9 100644 --- a/Buffs/PopoNoselessBuff.cs +++ b/Buffs/PopoNoselessBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Potions/AbyssalWeapon.cs b/Buffs/Potions/AbyssalWeapon.cs index fab27a4913..9b7ee491ef 100644 --- a/Buffs/Potions/AbyssalWeapon.cs +++ b/Buffs/Potions/AbyssalWeapon.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/AnechoicCoatingBuff.cs b/Buffs/Potions/AnechoicCoatingBuff.cs index d93775584a..1fb8082021 100644 --- a/Buffs/Potions/AnechoicCoatingBuff.cs +++ b/Buffs/Potions/AnechoicCoatingBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/ArmorCrumbling.cs b/Buffs/Potions/ArmorCrumbling.cs index 94271b22be..e6cb425ab6 100644 --- a/Buffs/Potions/ArmorCrumbling.cs +++ b/Buffs/Potions/ArmorCrumbling.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/ArmorShattering.cs b/Buffs/Potions/ArmorShattering.cs index e3f7ebf089..79cfe6a4bf 100644 --- a/Buffs/Potions/ArmorShattering.cs +++ b/Buffs/Potions/ArmorShattering.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/AstralInjectionBuff.cs b/Buffs/Potions/AstralInjectionBuff.cs index bd10f7dbfa..9d252305e8 100644 --- a/Buffs/Potions/AstralInjectionBuff.cs +++ b/Buffs/Potions/AstralInjectionBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/BaguetteBuff.cs b/Buffs/Potions/BaguetteBuff.cs index e798ca216e..b37c916aa0 100644 --- a/Buffs/Potions/BaguetteBuff.cs +++ b/Buffs/Potions/BaguetteBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/BoundingBuff.cs b/Buffs/Potions/BoundingBuff.cs index 407282fc29..b5cd8cc4b0 100644 --- a/Buffs/Potions/BoundingBuff.cs +++ b/Buffs/Potions/BoundingBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/Cadence.cs b/Buffs/Potions/Cadence.cs index 696ff89931..7999b55a89 100644 --- a/Buffs/Potions/Cadence.cs +++ b/Buffs/Potions/Cadence.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/CalciumBuff.cs b/Buffs/Potions/CalciumBuff.cs index 303cd1f375..b43ebb1e15 100644 --- a/Buffs/Potions/CalciumBuff.cs +++ b/Buffs/Potions/CalciumBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/CeaselessHunger.cs b/Buffs/Potions/CeaselessHunger.cs index 12d2ca909f..2b443d9c9e 100644 --- a/Buffs/Potions/CeaselessHunger.cs +++ b/Buffs/Potions/CeaselessHunger.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/DraconicSurgeBuff.cs b/Buffs/Potions/DraconicSurgeBuff.cs index 65417887d0..13b29873a4 100644 --- a/Buffs/Potions/DraconicSurgeBuff.cs +++ b/Buffs/Potions/DraconicSurgeBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/GravityNormalizerBuff.cs b/Buffs/Potions/GravityNormalizerBuff.cs index aa781ff219..c62b862983 100644 --- a/Buffs/Potions/GravityNormalizerBuff.cs +++ b/Buffs/Potions/GravityNormalizerBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/HolyWrathBuff.cs b/Buffs/Potions/HolyWrathBuff.cs index 8553173bd9..83b9e43fa8 100644 --- a/Buffs/Potions/HolyWrathBuff.cs +++ b/Buffs/Potions/HolyWrathBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/Invincible.cs b/Buffs/Potions/Invincible.cs index 89db6eaa6f..e6c9a0bbe8 100644 --- a/Buffs/Potions/Invincible.cs +++ b/Buffs/Potions/Invincible.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/Omniscience.cs b/Buffs/Potions/Omniscience.cs index 56aacaa317..a984c8580c 100644 --- a/Buffs/Potions/Omniscience.cs +++ b/Buffs/Potions/Omniscience.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/PenumbraBuff.cs b/Buffs/Potions/PenumbraBuff.cs index d01b300df6..9aa3385d32 100644 --- a/Buffs/Potions/PenumbraBuff.cs +++ b/Buffs/Potions/PenumbraBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/PhotosynthesisBuff.cs b/Buffs/Potions/PhotosynthesisBuff.cs index 0a1278ab60..005a94af14 100644 --- a/Buffs/Potions/PhotosynthesisBuff.cs +++ b/Buffs/Potions/PhotosynthesisBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/ProfanedRageBuff.cs b/Buffs/Potions/ProfanedRageBuff.cs index e4fdd75e65..883e131a87 100644 --- a/Buffs/Potions/ProfanedRageBuff.cs +++ b/Buffs/Potions/ProfanedRageBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/Revivify.cs b/Buffs/Potions/Revivify.cs index 74fa3b07f3..92394b9465 100644 --- a/Buffs/Potions/Revivify.cs +++ b/Buffs/Potions/Revivify.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/Soaring.cs b/Buffs/Potions/Soaring.cs index c3ff71b531..c881cf16a9 100644 --- a/Buffs/Potions/Soaring.cs +++ b/Buffs/Potions/Soaring.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/TitanScale.cs b/Buffs/Potions/TitanScale.cs index 8f72ad20ef..e01f18adea 100644 --- a/Buffs/Potions/TitanScale.cs +++ b/Buffs/Potions/TitanScale.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/TriumphBuff.cs b/Buffs/Potions/TriumphBuff.cs index cbf40f5a7b..b52031dcb9 100644 --- a/Buffs/Potions/TriumphBuff.cs +++ b/Buffs/Potions/TriumphBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/YharimPower.cs b/Buffs/Potions/YharimPower.cs index d2fcae9330..0db7a5081a 100644 --- a/Buffs/Potions/YharimPower.cs +++ b/Buffs/Potions/YharimPower.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/Zen.cs b/Buffs/Potions/Zen.cs index 0f398fc3ca..fa5d033f71 100644 --- a/Buffs/Potions/Zen.cs +++ b/Buffs/Potions/Zen.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/Potions/Zerg.cs b/Buffs/Potions/Zerg.cs index 25fd14e83a..e6ae303758 100644 --- a/Buffs/Potions/Zerg.cs +++ b/Buffs/Potions/Zerg.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions diff --git a/Buffs/StatBuffs/AbsoluteRage.cs b/Buffs/StatBuffs/AbsoluteRage.cs index b41d3c49b5..6ccc912945 100644 --- a/Buffs/StatBuffs/AbsoluteRage.cs +++ b/Buffs/StatBuffs/AbsoluteRage.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/AbyssalDivingSuitBuff.cs b/Buffs/StatBuffs/AbyssalDivingSuitBuff.cs index 74020ab73b..77c85358ab 100644 --- a/Buffs/StatBuffs/AbyssalDivingSuitBuff.cs +++ b/Buffs/StatBuffs/AbyssalDivingSuitBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/StatBuffs/AbyssalDivingSuitPlates.cs b/Buffs/StatBuffs/AbyssalDivingSuitPlates.cs index c7f51f46a2..bf4737cdbf 100644 --- a/Buffs/StatBuffs/AbyssalDivingSuitPlates.cs +++ b/Buffs/StatBuffs/AbyssalDivingSuitPlates.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/AdrenalineMode.cs b/Buffs/StatBuffs/AdrenalineMode.cs index bd00baec9d..ecb092abcf 100644 --- a/Buffs/StatBuffs/AdrenalineMode.cs +++ b/Buffs/StatBuffs/AdrenalineMode.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/StatBuffs/Afflicted.cs b/Buffs/StatBuffs/Afflicted.cs index 6ea97370ef..368e6a2f37 100644 --- a/Buffs/StatBuffs/Afflicted.cs +++ b/Buffs/StatBuffs/Afflicted.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/AmidiasBlessing.cs b/Buffs/StatBuffs/AmidiasBlessing.cs index 96a93a4afd..6c16af5f2f 100644 --- a/Buffs/StatBuffs/AmidiasBlessing.cs +++ b/Buffs/StatBuffs/AmidiasBlessing.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/BloodflareBloodFrenzy.cs b/Buffs/StatBuffs/BloodflareBloodFrenzy.cs index 8c9ad3837d..a8d4390850 100644 --- a/Buffs/StatBuffs/BloodflareBloodFrenzy.cs +++ b/Buffs/StatBuffs/BloodflareBloodFrenzy.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/BossZen.cs b/Buffs/StatBuffs/BossZen.cs index 626b051abc..17f3500cc4 100644 --- a/Buffs/StatBuffs/BossZen.cs +++ b/Buffs/StatBuffs/BossZen.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/BrimflameFrenzyBuff.cs b/Buffs/StatBuffs/BrimflameFrenzyBuff.cs index 3d6bbeb9cf..6e622cbaa8 100644 --- a/Buffs/StatBuffs/BrimflameFrenzyBuff.cs +++ b/Buffs/StatBuffs/BrimflameFrenzyBuff.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Buffs.Cooldowns; using CalamityMod.CalPlayer; using Terraria; diff --git a/Buffs/StatBuffs/ChiBuff.cs b/Buffs/StatBuffs/ChiBuff.cs index 59bee34bcd..920a2358b6 100644 --- a/Buffs/StatBuffs/ChiBuff.cs +++ b/Buffs/StatBuffs/ChiBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/CosmicFreeze.cs b/Buffs/StatBuffs/CosmicFreeze.cs index 9e49557b03..12dd1ca5b0 100644 --- a/Buffs/StatBuffs/CosmicFreeze.cs +++ b/Buffs/StatBuffs/CosmicFreeze.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/ElysianGuard.cs b/Buffs/StatBuffs/ElysianGuard.cs index 018030bcc3..b10c1883bd 100644 --- a/Buffs/StatBuffs/ElysianGuard.cs +++ b/Buffs/StatBuffs/ElysianGuard.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/GraxDefense.cs b/Buffs/StatBuffs/GraxDefense.cs index 7e8c832b84..aadc44a528 100644 --- a/Buffs/StatBuffs/GraxDefense.cs +++ b/Buffs/StatBuffs/GraxDefense.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/HallowedRuneAtkBuff.cs b/Buffs/StatBuffs/HallowedRuneAtkBuff.cs index b8ddd85f42..7299addb51 100644 --- a/Buffs/StatBuffs/HallowedRuneAtkBuff.cs +++ b/Buffs/StatBuffs/HallowedRuneAtkBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/HallowedRuneDefBuff.cs b/Buffs/StatBuffs/HallowedRuneDefBuff.cs index 912fac2635..3e581e9d36 100644 --- a/Buffs/StatBuffs/HallowedRuneDefBuff.cs +++ b/Buffs/StatBuffs/HallowedRuneDefBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/HallowedRuneRegenBuff.cs b/Buffs/StatBuffs/HallowedRuneRegenBuff.cs index 970e4c1bec..c85e46f920 100644 --- a/Buffs/StatBuffs/HallowedRuneRegenBuff.cs +++ b/Buffs/StatBuffs/HallowedRuneRegenBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/IceShieldBuff.cs b/Buffs/StatBuffs/IceShieldBuff.cs index 8ddcc2408f..493771a2f5 100644 --- a/Buffs/StatBuffs/IceShieldBuff.cs +++ b/Buffs/StatBuffs/IceShieldBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/Molten.cs b/Buffs/StatBuffs/Molten.cs index 21a176a5e2..a49e73b451 100644 --- a/Buffs/StatBuffs/Molten.cs +++ b/Buffs/StatBuffs/Molten.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/StatBuffs/Mushy.cs b/Buffs/StatBuffs/Mushy.cs index c33fee1b9c..eea140a50b 100644 --- a/Buffs/StatBuffs/Mushy.cs +++ b/Buffs/StatBuffs/Mushy.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/ProfanedCrystalBuff.cs b/Buffs/StatBuffs/ProfanedCrystalBuff.cs index e5b54b12a4..a8918d9379 100644 --- a/Buffs/StatBuffs/ProfanedCrystalBuff.cs +++ b/Buffs/StatBuffs/ProfanedCrystalBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/StatBuffs/RageMode.cs b/Buffs/StatBuffs/RageMode.cs index 4bf2402bab..a560487512 100644 --- a/Buffs/StatBuffs/RageMode.cs +++ b/Buffs/StatBuffs/RageMode.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/StatBuffs/ReaverRage.cs b/Buffs/StatBuffs/ReaverRage.cs index 02471e7e62..8e35172d22 100644 --- a/Buffs/StatBuffs/ReaverRage.cs +++ b/Buffs/StatBuffs/ReaverRage.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/ScarfMeleeBoost.cs b/Buffs/StatBuffs/ScarfMeleeBoost.cs index 4733a30f6b..2a769c3254 100644 --- a/Buffs/StatBuffs/ScarfMeleeBoost.cs +++ b/Buffs/StatBuffs/ScarfMeleeBoost.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/ShellBoost.cs b/Buffs/StatBuffs/ShellBoost.cs index 1e146bc8fb..ae1276eec9 100644 --- a/Buffs/StatBuffs/ShellBoost.cs +++ b/Buffs/StatBuffs/ShellBoost.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/SilvaRevival.cs b/Buffs/StatBuffs/SilvaRevival.cs index d7bc1578e8..d8a6574a55 100644 --- a/Buffs/StatBuffs/SilvaRevival.cs +++ b/Buffs/StatBuffs/SilvaRevival.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/SirenBobs.cs b/Buffs/StatBuffs/SirenBobs.cs index dc3e068573..a9980878e3 100644 --- a/Buffs/StatBuffs/SirenBobs.cs +++ b/Buffs/StatBuffs/SirenBobs.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/StatBuffs/SirenBobsAlt.cs b/Buffs/StatBuffs/SirenBobsAlt.cs index f3b774f22f..69acb9cb03 100644 --- a/Buffs/StatBuffs/SirenBobsAlt.cs +++ b/Buffs/StatBuffs/SirenBobsAlt.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/StatBuffs/SirenWaterSpeed.cs b/Buffs/StatBuffs/SirenWaterSpeed.cs index d26aa2fbc2..d8fb876ff5 100644 --- a/Buffs/StatBuffs/SirenWaterSpeed.cs +++ b/Buffs/StatBuffs/SirenWaterSpeed.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/SpiritGeneratorAtkBuff.cs b/Buffs/StatBuffs/SpiritGeneratorAtkBuff.cs index c0feaf6629..0a4ebc1aa8 100644 --- a/Buffs/StatBuffs/SpiritGeneratorAtkBuff.cs +++ b/Buffs/StatBuffs/SpiritGeneratorAtkBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/SpiritGeneratorDefBuff.cs b/Buffs/StatBuffs/SpiritGeneratorDefBuff.cs index b6f97b4e67..3dcf4b7f7c 100644 --- a/Buffs/StatBuffs/SpiritGeneratorDefBuff.cs +++ b/Buffs/StatBuffs/SpiritGeneratorDefBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/SpiritGeneratorRegenBuff.cs b/Buffs/StatBuffs/SpiritGeneratorRegenBuff.cs index 65a3e88a9c..738fca831e 100644 --- a/Buffs/StatBuffs/SpiritGeneratorRegenBuff.cs +++ b/Buffs/StatBuffs/SpiritGeneratorRegenBuff.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/TarraLifeRegen.cs b/Buffs/StatBuffs/TarraLifeRegen.cs index 08d5c7872d..8faa4969e0 100644 --- a/Buffs/StatBuffs/TarraLifeRegen.cs +++ b/Buffs/StatBuffs/TarraLifeRegen.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/TarragonCloak.cs b/Buffs/StatBuffs/TarragonCloak.cs index d6c7e218a2..7dceada438 100644 --- a/Buffs/StatBuffs/TarragonCloak.cs +++ b/Buffs/StatBuffs/TarragonCloak.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/TarragonImmunity.cs b/Buffs/StatBuffs/TarragonImmunity.cs index 9645bd17cf..2d6cd18ce4 100644 --- a/Buffs/StatBuffs/TarragonImmunity.cs +++ b/Buffs/StatBuffs/TarragonImmunity.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/TyrantsFury.cs b/Buffs/StatBuffs/TyrantsFury.cs index 488b5e5a65..2358138430 100644 --- a/Buffs/StatBuffs/TyrantsFury.cs +++ b/Buffs/StatBuffs/TyrantsFury.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/XerocRage.cs b/Buffs/StatBuffs/XerocRage.cs index 746b5e931a..1f71408fb0 100644 --- a/Buffs/StatBuffs/XerocRage.cs +++ b/Buffs/StatBuffs/XerocRage.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatBuffs/XerocWrath.cs b/Buffs/StatBuffs/XerocWrath.cs index 12e00dedc4..92a8b6e2a7 100644 --- a/Buffs/StatBuffs/XerocWrath.cs +++ b/Buffs/StatBuffs/XerocWrath.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatBuffs diff --git a/Buffs/StatDebuffs/AndromedaCripple.cs b/Buffs/StatDebuffs/AndromedaCripple.cs index 14b103e42b..9488fe4641 100644 --- a/Buffs/StatDebuffs/AndromedaCripple.cs +++ b/Buffs/StatDebuffs/AndromedaCripple.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/ArmorCrunch.cs b/Buffs/StatDebuffs/ArmorCrunch.cs index 16532d0d40..1e5461009b 100644 --- a/Buffs/StatDebuffs/ArmorCrunch.cs +++ b/Buffs/StatDebuffs/ArmorCrunch.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/BurntOut.cs b/Buffs/StatDebuffs/BurntOut.cs index 18d3ce634e..ef7498d4f0 100644 --- a/Buffs/StatDebuffs/BurntOut.cs +++ b/Buffs/StatDebuffs/BurntOut.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/Clamity.cs b/Buffs/StatDebuffs/Clamity.cs index f49cc8748b..439655ea95 100644 --- a/Buffs/StatDebuffs/Clamity.cs +++ b/Buffs/StatDebuffs/Clamity.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/Enraged.cs b/Buffs/StatDebuffs/Enraged.cs index 581d8a3de9..db53b710b4 100644 --- a/Buffs/StatDebuffs/Enraged.cs +++ b/Buffs/StatDebuffs/Enraged.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/ExoFreeze.cs b/Buffs/StatDebuffs/ExoFreeze.cs index f6749e3410..157c74ec41 100644 --- a/Buffs/StatDebuffs/ExoFreeze.cs +++ b/Buffs/StatDebuffs/ExoFreeze.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/ExtremeGrav.cs b/Buffs/StatDebuffs/ExtremeGrav.cs index 08ef77d077..6109c1b548 100644 --- a/Buffs/StatDebuffs/ExtremeGrav.cs +++ b/Buffs/StatDebuffs/ExtremeGrav.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/ExtremeGravity.cs b/Buffs/StatDebuffs/ExtremeGravity.cs index 2bfb98fd8b..90ea126bbf 100644 --- a/Buffs/StatDebuffs/ExtremeGravity.cs +++ b/Buffs/StatDebuffs/ExtremeGravity.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/FishAlert.cs b/Buffs/StatDebuffs/FishAlert.cs index 1fc6e14abe..8f5d741026 100644 --- a/Buffs/StatDebuffs/FishAlert.cs +++ b/Buffs/StatDebuffs/FishAlert.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/GlacialState.cs b/Buffs/StatDebuffs/GlacialState.cs index fb417edbc4..fd6d0e04bd 100644 --- a/Buffs/StatDebuffs/GlacialState.cs +++ b/Buffs/StatDebuffs/GlacialState.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/Horror.cs b/Buffs/StatDebuffs/Horror.cs index 3b944dedbc..7c50ba4797 100644 --- a/Buffs/StatDebuffs/Horror.cs +++ b/Buffs/StatDebuffs/Horror.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/Irradiated.cs b/Buffs/StatDebuffs/Irradiated.cs index c56852b016..1a2df34e2b 100644 --- a/Buffs/StatDebuffs/Irradiated.cs +++ b/Buffs/StatDebuffs/Irradiated.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/MarkedforDeath.cs b/Buffs/StatDebuffs/MarkedforDeath.cs index 235e32d65d..be18d5d313 100644 --- a/Buffs/StatDebuffs/MarkedforDeath.cs +++ b/Buffs/StatDebuffs/MarkedforDeath.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/PearlAura.cs b/Buffs/StatDebuffs/PearlAura.cs index 815b50b3f2..176563792e 100644 --- a/Buffs/StatDebuffs/PearlAura.cs +++ b/Buffs/StatDebuffs/PearlAura.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/ProfanedWeakness.cs b/Buffs/StatDebuffs/ProfanedWeakness.cs index 6b75ba3d2e..b62b658707 100644 --- a/Buffs/StatDebuffs/ProfanedWeakness.cs +++ b/Buffs/StatDebuffs/ProfanedWeakness.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/SilvaStun.cs b/Buffs/StatDebuffs/SilvaStun.cs index e220ebdfce..e186e72022 100644 --- a/Buffs/StatDebuffs/SilvaStun.cs +++ b/Buffs/StatDebuffs/SilvaStun.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/TemporalSadness.cs b/Buffs/StatDebuffs/TemporalSadness.cs index e9cbdf284a..fb7bc94f0d 100644 --- a/Buffs/StatDebuffs/TemporalSadness.cs +++ b/Buffs/StatDebuffs/TemporalSadness.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/TimeSlow.cs b/Buffs/StatDebuffs/TimeSlow.cs index 6eed8ac8a9..1e0607b3b1 100644 --- a/Buffs/StatDebuffs/TimeSlow.cs +++ b/Buffs/StatDebuffs/TimeSlow.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/WarCleave.cs b/Buffs/StatDebuffs/WarCleave.cs index 1b3b0a59fa..4ff463e10d 100644 --- a/Buffs/StatDebuffs/WarCleave.cs +++ b/Buffs/StatDebuffs/WarCleave.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/Warped.cs b/Buffs/StatDebuffs/Warped.cs index 8a46d0ff91..c700b2df34 100644 --- a/Buffs/StatDebuffs/Warped.cs +++ b/Buffs/StatDebuffs/Warped.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/WeakPetrification.cs b/Buffs/StatDebuffs/WeakPetrification.cs index afb0e2fdf0..6db6abf11a 100644 --- a/Buffs/StatDebuffs/WeakPetrification.cs +++ b/Buffs/StatDebuffs/WeakPetrification.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/StatDebuffs/WhisperingDeath.cs b/Buffs/StatDebuffs/WhisperingDeath.cs index f3e27198fd..5a27e7c6b0 100644 --- a/Buffs/StatDebuffs/WhisperingDeath.cs +++ b/Buffs/StatDebuffs/WhisperingDeath.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.StatDebuffs diff --git a/Buffs/Summon/AerospecSummonSetBuff.cs b/Buffs/Summon/AerospecSummonSetBuff.cs index 18bfbd70ef..37d8bef107 100644 --- a/Buffs/Summon/AerospecSummonSetBuff.cs +++ b/Buffs/Summon/AerospecSummonSetBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/ApexSharkBuff.cs b/Buffs/Summon/ApexSharkBuff.cs index f6ec84e5e6..a0fc7aae8f 100644 --- a/Buffs/Summon/ApexSharkBuff.cs +++ b/Buffs/Summon/ApexSharkBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/AquaticStar.cs b/Buffs/Summon/AquaticStar.cs index d1841e9841..b39e07eb93 100644 --- a/Buffs/Summon/AquaticStar.cs +++ b/Buffs/Summon/AquaticStar.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/AstrageldonBuff.cs b/Buffs/Summon/AstrageldonBuff.cs index a482975266..c5e3899221 100644 --- a/Buffs/Summon/AstrageldonBuff.cs +++ b/Buffs/Summon/AstrageldonBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/AtaxiaSummonSetBuff.cs b/Buffs/Summon/AtaxiaSummonSetBuff.cs index 36bbb63fd6..74410d174b 100644 --- a/Buffs/Summon/AtaxiaSummonSetBuff.cs +++ b/Buffs/Summon/AtaxiaSummonSetBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/BloodClot.cs b/Buffs/Summon/BloodClot.cs index 695c821ea5..548da363c2 100644 --- a/Buffs/Summon/BloodClot.cs +++ b/Buffs/Summon/BloodClot.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/BrimstoneWaifu.cs b/Buffs/Summon/BrimstoneWaifu.cs index 6fcf2b7323..f76f1420e5 100644 --- a/Buffs/Summon/BrimstoneWaifu.cs +++ b/Buffs/Summon/BrimstoneWaifu.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/BrittleStar.cs b/Buffs/Summon/BrittleStar.cs index d41c9c70c1..d5b1d85040 100644 --- a/Buffs/Summon/BrittleStar.cs +++ b/Buffs/Summon/BrittleStar.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/Calamari.cs b/Buffs/Summon/Calamari.cs index 21301cd335..91b3f2726d 100644 --- a/Buffs/Summon/Calamari.cs +++ b/Buffs/Summon/Calamari.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/CalamitasEyes.cs b/Buffs/Summon/CalamitasEyes.cs index d5125e9d45..a2c9c3b9c5 100644 --- a/Buffs/Summon/CalamitasEyes.cs +++ b/Buffs/Summon/CalamitasEyes.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/CloudyWaifu.cs b/Buffs/Summon/CloudyWaifu.cs index 6c4b12a739..9a2cb48fae 100644 --- a/Buffs/Summon/CloudyWaifu.cs +++ b/Buffs/Summon/CloudyWaifu.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/ColdDivinityBuff.cs b/Buffs/Summon/ColdDivinityBuff.cs index 6df8c2e884..575c32ce60 100644 --- a/Buffs/Summon/ColdDivinityBuff.cs +++ b/Buffs/Summon/ColdDivinityBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/Corroslime.cs b/Buffs/Summon/Corroslime.cs index d5eae00600..4ffd7714e1 100644 --- a/Buffs/Summon/Corroslime.cs +++ b/Buffs/Summon/Corroslime.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/CorvidHarbringerBuff.cs b/Buffs/Summon/CorvidHarbringerBuff.cs index e8dd25c59f..4a591c6455 100644 --- a/Buffs/Summon/CorvidHarbringerBuff.cs +++ b/Buffs/Summon/CorvidHarbringerBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/CosmicEnergy.cs b/Buffs/Summon/CosmicEnergy.cs index d215a7f8d7..efc871a22f 100644 --- a/Buffs/Summon/CosmicEnergy.cs +++ b/Buffs/Summon/CosmicEnergy.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/CosmilampBuff.cs b/Buffs/Summon/CosmilampBuff.cs index a6f6158ffa..8cefa9079e 100644 --- a/Buffs/Summon/CosmilampBuff.cs +++ b/Buffs/Summon/CosmilampBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/Crimslime.cs b/Buffs/Summon/Crimslime.cs index b5ef2f5972..d34856484c 100644 --- a/Buffs/Summon/Crimslime.cs +++ b/Buffs/Summon/Crimslime.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/DaedalusSummonSetBuff.cs b/Buffs/Summon/DaedalusSummonSetBuff.cs index 96d1fe255f..e7e9d0d86f 100644 --- a/Buffs/Summon/DaedalusSummonSetBuff.cs +++ b/Buffs/Summon/DaedalusSummonSetBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/DankCreeperBuff.cs b/Buffs/Summon/DankCreeperBuff.cs index aa25da8c48..e28fa746b0 100644 --- a/Buffs/Summon/DankCreeperBuff.cs +++ b/Buffs/Summon/DankCreeperBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/DemonshadeSetDevilBuff.cs b/Buffs/Summon/DemonshadeSetDevilBuff.cs index 273319524f..7e80a547c2 100644 --- a/Buffs/Summon/DemonshadeSetDevilBuff.cs +++ b/Buffs/Summon/DemonshadeSetDevilBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/DormantBrimseekerBuff.cs b/Buffs/Summon/DormantBrimseekerBuff.cs index 6efdc58412..ad5a137102 100644 --- a/Buffs/Summon/DormantBrimseekerBuff.cs +++ b/Buffs/Summon/DormantBrimseekerBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/ElementalAxeBuff.cs b/Buffs/Summon/ElementalAxeBuff.cs index 287c05c589..a9385b935c 100644 --- a/Buffs/Summon/ElementalAxeBuff.cs +++ b/Buffs/Summon/ElementalAxeBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/EndoCooperBuff.cs b/Buffs/Summon/EndoCooperBuff.cs index 965bd795e1..92b0cf846a 100644 --- a/Buffs/Summon/EndoCooperBuff.cs +++ b/Buffs/Summon/EndoCooperBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/EndoHydraBuff.cs b/Buffs/Summon/EndoHydraBuff.cs index 36745f20d3..4881c756db 100644 --- a/Buffs/Summon/EndoHydraBuff.cs +++ b/Buffs/Summon/EndoHydraBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/FungalClumpBuff.cs b/Buffs/Summon/FungalClumpBuff.cs index e4e0d74e82..94cd8cde15 100644 --- a/Buffs/Summon/FungalClumpBuff.cs +++ b/Buffs/Summon/FungalClumpBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/GladiatorSwords.cs b/Buffs/Summon/GladiatorSwords.cs index f4d9bc893d..41c70bcd19 100644 --- a/Buffs/Summon/GladiatorSwords.cs +++ b/Buffs/Summon/GladiatorSwords.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/HermitCrab.cs b/Buffs/Summon/HermitCrab.cs index 8890f8f983..993e4c790d 100644 --- a/Buffs/Summon/HermitCrab.cs +++ b/Buffs/Summon/HermitCrab.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/Herring.cs b/Buffs/Summon/Herring.cs index ead453d25c..8d43413354 100644 --- a/Buffs/Summon/Herring.cs +++ b/Buffs/Summon/Herring.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/HotE.cs b/Buffs/Summon/HotE.cs index 262e179bf2..cd1317c2df 100644 --- a/Buffs/Summon/HotE.cs +++ b/Buffs/Summon/HotE.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Summon diff --git a/Buffs/Summon/IceClasper.cs b/Buffs/Summon/IceClasper.cs index f0e7cefd5d..8386cb470e 100644 --- a/Buffs/Summon/IceClasper.cs +++ b/Buffs/Summon/IceClasper.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/Mechworm.cs b/Buffs/Summon/Mechworm.cs index 2e9e6bf16d..f659c0ae82 100644 --- a/Buffs/Summon/Mechworm.cs +++ b/Buffs/Summon/Mechworm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/MidnightSunBuff.cs b/Buffs/Summon/MidnightSunBuff.cs index 30b0cc66e6..1170e9ec53 100644 --- a/Buffs/Summon/MidnightSunBuff.cs +++ b/Buffs/Summon/MidnightSunBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/Phantom.cs b/Buffs/Summon/Phantom.cs index 003e5530f1..f1816c2448 100644 --- a/Buffs/Summon/Phantom.cs +++ b/Buffs/Summon/Phantom.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/ProfanedBabs.cs b/Buffs/Summon/ProfanedBabs.cs index e9ebee0667..9ed93066e0 100644 --- a/Buffs/Summon/ProfanedBabs.cs +++ b/Buffs/Summon/ProfanedBabs.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using CalamityMod.World; using Terraria; diff --git a/Buffs/Summon/ReaverSummonSetBuff.cs b/Buffs/Summon/ReaverSummonSetBuff.cs index b962f337f8..381bbfdada 100644 --- a/Buffs/Summon/ReaverSummonSetBuff.cs +++ b/Buffs/Summon/ReaverSummonSetBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/ResurrectionButterflyBuff.cs b/Buffs/Summon/ResurrectionButterflyBuff.cs index 1710fb0543..f72ddf19d1 100644 --- a/Buffs/Summon/ResurrectionButterflyBuff.cs +++ b/Buffs/Summon/ResurrectionButterflyBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/RustyDroneBuff.cs b/Buffs/Summon/RustyDroneBuff.cs index d9d8b6c342..c2186b33dc 100644 --- a/Buffs/Summon/RustyDroneBuff.cs +++ b/Buffs/Summon/RustyDroneBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/Sandnado.cs b/Buffs/Summon/Sandnado.cs index 4ae6662863..5dc6c30805 100644 --- a/Buffs/Summon/Sandnado.cs +++ b/Buffs/Summon/Sandnado.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/SandyHealingWaifu.cs b/Buffs/Summon/SandyHealingWaifu.cs index cdca81edfa..e733a62a75 100644 --- a/Buffs/Summon/SandyHealingWaifu.cs +++ b/Buffs/Summon/SandyHealingWaifu.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/SandyWaifu.cs b/Buffs/Summon/SandyWaifu.cs index c6cbc0cecf..7abdd05fd2 100644 --- a/Buffs/Summon/SandyWaifu.cs +++ b/Buffs/Summon/SandyWaifu.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/ShellfishBuff.cs b/Buffs/Summon/ShellfishBuff.cs index 9d34d45122..bda0345ae6 100644 --- a/Buffs/Summon/ShellfishBuff.cs +++ b/Buffs/Summon/ShellfishBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/SilvaSummonSetBuff.cs b/Buffs/Summon/SilvaSummonSetBuff.cs index b9cb0c4959..28fdad2904 100644 --- a/Buffs/Summon/SilvaSummonSetBuff.cs +++ b/Buffs/Summon/SilvaSummonSetBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/SolarSpirit.cs b/Buffs/Summon/SolarSpirit.cs index 6fed57ac21..2216a3c3ed 100644 --- a/Buffs/Summon/SolarSpirit.cs +++ b/Buffs/Summon/SolarSpirit.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/SolarSpiritGod.cs b/Buffs/Summon/SolarSpiritGod.cs index 7681eab2b9..fa9c842496 100644 --- a/Buffs/Summon/SolarSpiritGod.cs +++ b/Buffs/Summon/SolarSpiritGod.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/StatigelSummonSetBuff.cs b/Buffs/Summon/StatigelSummonSetBuff.cs index 8647289a90..b319cf7328 100644 --- a/Buffs/Summon/StatigelSummonSetBuff.cs +++ b/Buffs/Summon/StatigelSummonSetBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/TundraFlameBlossomsBuff.cs b/Buffs/Summon/TundraFlameBlossomsBuff.cs index c981ea7083..dfa6c4eefa 100644 --- a/Buffs/Summon/TundraFlameBlossomsBuff.cs +++ b/Buffs/Summon/TundraFlameBlossomsBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/VictideSummonSetBuff.cs b/Buffs/Summon/VictideSummonSetBuff.cs index 10011f54f5..1e8cf040cb 100644 --- a/Buffs/Summon/VictideSummonSetBuff.cs +++ b/Buffs/Summon/VictideSummonSetBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/WaterWaifu.cs b/Buffs/Summon/WaterWaifu.cs index cc2cb45a7c..839c4b88b3 100644 --- a/Buffs/Summon/WaterWaifu.cs +++ b/Buffs/Summon/WaterWaifu.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/Buffs/Summon/YharonKindleBuff.cs b/Buffs/Summon/YharonKindleBuff.cs index 9c7b86e42a..4a74b567ea 100644 --- a/Buffs/Summon/YharonKindleBuff.cs +++ b/Buffs/Summon/YharonKindleBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index dfd865b68b..80615b051b 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -522,13 +522,13 @@ namespace CalamityMod.CalPlayer public bool spectralVeil = false; public int spectralVeilImmunity = 0; public bool hasJetpack = false; - public bool blunderBooster = false; - public bool plaguedFuelPack = false; public int jetPackCooldown = 0; - public int blunderBoosterDash = 0; - public int blunderBoosterDirection = 0; + public bool plaguedFuelPack = false; public int plaguedFuelPackDash = 0; public int plaguedFuelPackDirection = 0; + public bool blunderBooster = false; + public int blunderBoosterDash = 0; + public int blunderBoosterDirection = 0; public bool veneratedLocket = false; public bool camper = false; public bool corrosiveSpine = false; @@ -2521,7 +2521,7 @@ namespace CalamityMod.CalPlayer if (!Collision.SolidCollision(teleportLocation, player.width, player.height)) { player.Teleport(teleportLocation, 4, 0); - NetMessage.SendData(65, -1, -1, null, 0, (float)player.whoAmI, teleportLocation.X, teleportLocation.Y, 1, 0, 0); + NetMessage.SendData(MessageID.Teleport, -1, -1, null, 0, (float)player.whoAmI, teleportLocation.X, teleportLocation.Y, 1, 0, 0); int duration = chaosStateDuration; if (areThereAnyDamnBosses || areThereAnyDamnEvents) @@ -2541,7 +2541,7 @@ namespace CalamityMod.CalPlayer player.AddBuff(ModContent.BuffType(), 1800, false); //30 seconds rogueStealth -= rogueStealthMax * 0.25f; Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType(), 7, 8, player.whoAmI, 0, 0); - Main.PlaySound(2, player.position, 45); + Main.PlaySound(SoundID.Item, player.position, 45); } if (CalamityMod.SpectralVeilHotKey.JustPressed && spectralVeil && Main.myPlayer == player.whoAmI && rogueStealth >= rogueStealthMax * 0.25f && wearingRogueArmor && rogueStealthMax > 0) @@ -2576,7 +2576,7 @@ namespace CalamityMod.CalPlayer rogueStealth -= rogueStealthMax * 0.25f; player.Teleport(teleportLocation, 1, 0); - NetMessage.SendData(65, -1, -1, null, 0, (float)player.whoAmI, teleportLocation.X, teleportLocation.Y, 1, 0, 0); + NetMessage.SendData(MessageID.Teleport, -1, -1, null, 0, (float)player.whoAmI, teleportLocation.X, teleportLocation.Y, 1, 0, 0); int duration = chaosStateDuration; if (areThereAnyDamnBosses || areThereAnyDamnEvents) @@ -2625,8 +2625,8 @@ namespace CalamityMod.CalPlayer plaguedFuelPackDash = 10; plaguedFuelPackDirection = player.direction; rogueStealth -= rogueStealthMax * 0.25f; - Main.PlaySound(2, player.position, 66); - Main.PlaySound(2, player.position, 34); + Main.PlaySound(SoundID.Item, player.position, 66); + Main.PlaySound(SoundID.Item, player.position, 34); } } if (CalamityMod.TarraHotKey.JustPressed) @@ -2644,7 +2644,7 @@ namespace CalamityMod.CalPlayer { brimflameFrenzy = true; player.AddBuff(ModContent.BuffType(), 10 * 60, true); - Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); + Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104); for (int num502 = 0; num502 < 36; num502++) { int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 235, 0f, 0f, 0, default, 1f); @@ -2678,7 +2678,7 @@ namespace CalamityMod.CalPlayer { player.AddBuff(ModContent.BuffType(), 1800, false); } - Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); + Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104); for (int num502 = 0; num502 < 64; num502++) { int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 60, 0f, 0f, 0, default, 1f); @@ -2721,7 +2721,7 @@ namespace CalamityMod.CalPlayer player.AddBuff(ModContent.BuffType(), 300, false); } omegaBlueCooldown = 1800; - Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); + Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104); for (int i = 0; i < 66; i++) { int d = Dust.NewDust(player.position, player.width, player.height, 20, 0, 0, 100, Color.Transparent, 2.6f); @@ -2733,7 +2733,7 @@ namespace CalamityMod.CalPlayer } if (dsSetBonus) { - Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); + Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104); for (int num502 = 0; num502 < 36; num502++) { int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 235, 0f, 0f, 0, default, 1f); @@ -2812,11 +2812,11 @@ namespace CalamityMod.CalPlayer if (Main.netMode == NetmodeID.SinglePlayer) { player.TeleportationPotion(); - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 6); + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 6); } else if (Main.netMode == NetmodeID.MultiplayerClient && player.whoAmI == Main.myPlayer) { - NetMessage.SendData(73, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TeleportationPotion, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); } } } @@ -2881,7 +2881,7 @@ namespace CalamityMod.CalPlayer } if (rage == rageMax && CalamityMod.CalamityConfig.AdrenalineAndRage && !rageModeActive) { - Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); + Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104); for (int num502 = 0; num502 < 64; num502++) { int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 235, 0f, 0f, 0, default, 1f); @@ -2906,7 +2906,7 @@ namespace CalamityMod.CalPlayer { if (adrenaline == adrenalineMax && !adrenalineModeActive) { - Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); + Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104); for (int num502 = 0; num502 < 64; num502++) { int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 206, 0f, 0f, 0, default, 1f); @@ -3192,7 +3192,7 @@ namespace CalamityMod.CalPlayer } Main.TeleportEffect(player.getRect(), 1); Main.TeleportEffect(player.getRect(), 3); - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 6); + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 6); if (Main.netMode != NetmodeID.Server) { return; @@ -3200,7 +3200,7 @@ namespace CalamityMod.CalPlayer if (syncData) { RemoteClient.CheckSection(player.whoAmI, player.position, 1); - NetMessage.SendData(65, -1, -1, null, 0, (float)player.whoAmI, pos.X, pos.Y, 3, 0, 0); + NetMessage.SendData(MessageID.Teleport, -1, -1, null, 0, (float)player.whoAmI, pos.X, pos.Y, 3, 0, 0); } } #endregion @@ -3682,7 +3682,7 @@ namespace CalamityMod.CalPlayer player.hurtCooldowns[k] = player.immuneTime; } - Main.PlaySound(2, (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y, 68); + Main.PlaySound(SoundID.Item, (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, ModContent.ProjectileType(), (int)(7000 * player.RogueDamage()), 0, player.whoAmI); } } @@ -3728,7 +3728,7 @@ namespace CalamityMod.CalPlayer } if (nCore && Main.rand.NextBool(10)) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 67); + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 67); for (int j = 0; j < 25; j++) { int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 173, 0f, 0f, 100, default, 2f); @@ -3753,7 +3753,7 @@ namespace CalamityMod.CalPlayer } if (godSlayer && !godSlayerCooldown) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 67); + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 67); for (int j = 0; j < 50; j++) { int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 173, 0f, 0f, 100, default, 2f); @@ -5188,7 +5188,7 @@ namespace CalamityMod.CalPlayer double damageMult = 1.0; if (isSummon) { - if (heldItem.type > 0) + if (heldItem.type > ItemID.None) { if (heldItem.summon && !heldItem.melee && !heldItem.ranged && !heldItem.magic && !heldItem.Calamity().rogue) { @@ -5431,7 +5431,7 @@ namespace CalamityMod.CalPlayer if (isSummon && !fearmongerSet && !profanedCrystalBuffs && (!forbidden || !heldItem.magic) && (!forbiddenCirclet || !heldItem.Calamity().rogue)) { - if (heldItem.type > 0) + if (heldItem.type > ItemID.None) { if (!heldItem.summon && (heldItem.melee || heldItem.ranged || heldItem.magic || heldItem.Calamity().rogue) && @@ -5479,7 +5479,7 @@ namespace CalamityMod.CalPlayer { if (theBee && player.statLife >= player.statLifeMax2) { - Main.PlaySound(2, (int)proj.position.X, (int)proj.position.Y, 110); + Main.PlaySound(SoundID.Item, (int)proj.position.X, (int)proj.position.Y, 110); } if (unstablePrism && crit) { @@ -6390,13 +6390,13 @@ namespace CalamityMod.CalPlayer else if ((abyssalDivingSuitPower || abyssalDivingSuitForce) && !abyssalDivingSuitHide) { playSound = false; - Main.PlaySound(3, (int)player.position.X, (int)player.position.Y, 4, 1f, 0f); //metal hit noise + Main.PlaySound(SoundID.NPCHit, (int)player.position.X, (int)player.position.Y, 4, 1f, 0f); //metal hit noise hurtSoundTimer = 10; } else if (((sirenBoobsPower || sirenBoobsForce) && !sirenBoobsHide) || ((sirenBoobsAltPower || sirenBoobsAltForce) && !sirenBoobsAltHide)) { playSound = false; - Main.PlaySound(20, (int)player.position.X, (int)player.position.Y, 1, 1f, 0f); //female hit noise + Main.PlaySound(SoundID.FemaleHit, (int)player.position.X, (int)player.position.Y, 1, 1f, 0f); //female hit noise hurtSoundTimer = 10; } } @@ -6538,7 +6538,7 @@ namespace CalamityMod.CalPlayer if (amidiasBlessing) { player.ClearBuff(ModContent.BuffType()); - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 96); + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 96); } if ((gShell || fabledTortoise) && !player.panic) { @@ -6549,7 +6549,7 @@ namespace CalamityMod.CalPlayer abyssalDivingSuitPlateHits++; if (abyssalDivingSuitPlateHits >= 3) { - Main.PlaySound(4, (int)player.position.X, (int)player.position.Y, 14); + Main.PlaySound(SoundID.NPCKilled, (int)player.position.X, (int)player.position.Y, 14); player.AddBuff(ModContent.BuffType(), 10830); for (int num621 = 0; num621 < 20; num621++) { @@ -6602,7 +6602,7 @@ namespace CalamityMod.CalPlayer } if (sirenIce) { - Main.PlaySound(4, (int)player.position.X, (int)player.position.Y, 7); + Main.PlaySound(SoundID.NPCKilled, (int)player.position.X, (int)player.position.Y, 7); player.AddBuff(ModContent.BuffType(), 1800); for (int num621 = 0; num621 < 10; num621++) { @@ -6641,7 +6641,7 @@ namespace CalamityMod.CalPlayer } if (fBarrier || ((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3)) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 27); + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 27); for (int m = 0; m < Main.maxNPCs; m++) { if (Main.npc[m].active && !Main.npc[m].friendly) @@ -6805,7 +6805,7 @@ namespace CalamityMod.CalPlayer { if (aBulwarkRare) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 74); + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 74); Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)(25 * player.AverageDamage()), 5f, player.whoAmI, 0f, 1f); } int starAmt = aBulwarkRare ? 12 : 5; @@ -6894,255 +6894,256 @@ namespace CalamityMod.CalPlayer Main.projectile[bee].localNPCHitCooldown = 5; } } - if (fCarapace) - { - if (damage > 0) - { - Main.PlaySound(3, (int)player.position.X, (int)player.position.Y, 45); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - int fDamage = (int)(56 * player.AverageDamage()); - if (player.whoAmI == Main.myPlayer) - { - for (i = 0; i < 4; i++) - { - float xPos = Main.rand.NextBool(2) ? player.Center.X + 100 : player.Center.X - 100; - Vector2 vector2 = new Vector2(xPos, player.Center.Y + Main.rand.Next(-100, 101)); - offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - int spore1 = Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), 590, fDamage, 1.25f, player.whoAmI, 0f, 0f); - int spore2 = Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), 590, fDamage, 1.25f, player.whoAmI, 0f, 0f); - Main.projectile[spore1].timeLeft = 120; - Main.projectile[spore2].timeLeft = 120; - } - } - } - } - if (aSpark) - { - if (damage > 0) - { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 93); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - int sDamage = hardMode ? 36 : 6; - if (aSparkRare) - sDamage += hardMode ? 12 : 2; - if (player.whoAmI == Main.myPlayer) - { - 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), ModContent.ProjectileType(), (int)(sDamage * player.AverageDamage()), 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(), (int)(sDamage * player.AverageDamage()), 1.25f, player.whoAmI, 0f, 0f); - Main.projectile[spark1].timeLeft = 120; - Main.projectile[spark2].timeLeft = 120; - Main.projectile[spark1].Calamity().forceTypeless = true; - Main.projectile[spark2].Calamity().forceTypeless = true; - } - } - } - } - if (inkBomb) - { - if (player.whoAmI == Main.myPlayer && !inkBombCooldown) - { - 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), ModContent.ProjectileType(), 0, 0, player.whoAmI); - } - } - } - if (blazingCore) - { - if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1 && player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) - { - for (int i = 0; i < 360; i += 3) - { - Vector2 BCDSpeed = new Vector2(5f, 5f).RotatedBy(MathHelper.ToRadians(i)); - Dust.NewDust(player.Center, 1, 1, 244, BCDSpeed.X, BCDSpeed.Y, 0, default, 1.1f); - } - Main.PlaySound(SoundID.Item14, player.Center); - int blazingSun = Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(1690 * player.AverageDamage()), 0f, player.whoAmI, 0f, 0f); - Main.projectile[blazingSun].Center = player.Center; - int blazingSun2 = Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); - Main.projectile[blazingSun2].Center = player.Center; - } - } - if (ataxiaBlaze && Main.rand.NextBool(5)) - { - if (damage > 0) - { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 74); - int eDamage = (int)(100 * player.AverageDamage()); - if (player.whoAmI == Main.myPlayer) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), eDamage, 1f, player.whoAmI, 0f, 0f); - } - } - } - else if (daedalusShard) - { - if (damage > 0) - { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 27); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - int sDamage = (int)(27 * player.RangedDamage()); //daedalus ranged helm - if (player.whoAmI == Main.myPlayer) - { - for (i = 0; i < 8; i++) - { - 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; - int shard = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, 90, sDamage, 1f, player.whoAmI, 0f, 0f); - int shard2 = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, 90, sDamage, 1f, player.whoAmI, 0f, 0f); - Main.projectile[shard].Calamity().forceTypeless = true; - Main.projectile[shard2].Calamity().forceTypeless = true; - } - } - } - } - else if (reaverSpore) - { - if (damage > 0) - { - Main.PlaySound(3, (int)player.position.X, (int)player.position.Y, 1); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - int rDamage = (int)(58 * player.RogueDamage()); //Reaver rogue helm - if (player.whoAmI == Main.myPlayer) - { - for (i = 0; i < 4; i++) - { - float xPos = Main.rand.NextBool(2) ? player.Center.X + 100 : player.Center.X - 100; - Vector2 vector2 = new Vector2(xPos, player.Center.Y + Main.rand.Next(-100, 101)); - offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - int rspore1 = Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), 567, rDamage, 2f, player.whoAmI, 0f, 0f); - Main.projectile[rspore1].usesLocalNPCImmunity = true; - Main.projectile[rspore1].localNPCHitCooldown = 60; - int rspore2 = Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), 568, rDamage, 2f, player.whoAmI, 0f, 0f); - Main.projectile[rspore2].usesLocalNPCImmunity = true; - Main.projectile[rspore2].localNPCHitCooldown = 60; - } - } - } - } - else if (godSlayerDamage) //god slayer melee helm - { - if (damage > 80) - { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 73); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - if (player.whoAmI == Main.myPlayer) - { - 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), ModContent.ProjectileType(), (int)(900 * player.MeleeDamage()), 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(), (int)(900 * player.MeleeDamage()), 5f, player.whoAmI, 0f, 0f); - } - } - } - } - else if (godSlayerMage) - { - if (damage > 0) - { - 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, ModContent.ProjectileType(), (int)((auricSet ? 2400 : 1200) * player.MagicDamage()), 1f, player.whoAmI, 0f, 0f); - } - } - } - else if (dsSetBonus) - { - if (player.whoAmI == Main.myPlayer) - { - for (int l = 0; l < 2; l++) - { - float x = player.position.X + (float)Main.rand.Next(-400, 400); - float y = player.position.Y - (float)Main.rand.Next(500, 800); - Vector2 vector = new Vector2(x, y); - float num15 = player.position.X + (float)(player.width / 2) - vector.X; - float num16 = player.position.Y + (float)(player.height / 2) - vector.Y; - num15 += (float)Main.rand.Next(-100, 101); - int num17 = 22; - float num18 = (float)Math.Sqrt((double)(num15 * num15 + num16 * num16)); - num18 = (float)num17 / num18; - num15 *= num18; - num16 *= num18; - int num19 = Projectile.NewProjectile(x, y, num15, num16, ProjectileID.ShadowBeamFriendly, (int)(3000 * player.AverageDamage()), 7f, player.whoAmI, 0f, 0f); - Main.projectile[num19].ai[1] = player.position.Y; - Main.projectile[num19].usesLocalNPCImmunity = true; - Main.projectile[num19].localNPCHitCooldown = 10; - Main.projectile[num19].Calamity().forceTypeless = true; - } - for (int l = 0; l < 5; l++) - { - float x = player.position.X + (float)Main.rand.Next(-400, 400); - float y = player.position.Y - (float)Main.rand.Next(500, 800); - Vector2 vector = new Vector2(x, y); - float num15 = player.position.X + (float)(player.width / 2) - vector.X; - float num16 = player.position.Y + (float)(player.height / 2) - vector.Y; - num15 += (float)Main.rand.Next(-100, 101); - int num17 = 22; - float num18 = (float)Math.Sqrt((double)(num15 * num15 + num16 * num16)); - num18 = (float)num17 / num18; - num15 *= num18; - num16 *= num18; - int num19 = Projectile.NewProjectile(x, y, num15, num16, ProjectileID.DemonScythe, (int)(5000 * player.AverageDamage()), 7f, player.whoAmI, 0f, 0f); - Main.projectile[num19].ai[1] = player.position.Y; - Main.projectile[num19].usesLocalNPCImmunity = true; - Main.projectile[num19].localNPCHitCooldown = 10; - Main.projectile[num19].Calamity().forceTypeless = true; - } - } - } - if (lastProjectileHit != null) - { - switch (lastProjectileHit.modProjectile.cooldownSlot) - { - case 0: - case 1: - player.hurtCooldowns[lastProjectileHit.modProjectile.cooldownSlot] += iFramesToAdd; - break; - case -1: - default: - player.immuneTime += iFramesToAdd; - break; - } - } - else - { - player.immuneTime += iFramesToAdd; - } - } + } + if (fCarapace) + { + if (damage > 0) + { + Main.PlaySound(SoundID.NPCHit, (int)player.position.X, (int)player.position.Y, 45); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + int fDamage = (int)(56 * player.AverageDamage()); + if (player.whoAmI == Main.myPlayer) + { + for (i = 0; i < 4; i++) + { + float xPos = Main.rand.NextBool(2) ? player.Center.X + 100 : player.Center.X - 100; + Vector2 vector2 = new Vector2(xPos, player.Center.Y + Main.rand.Next(-100, 101)); + offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; + int spore1 = Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), 590, fDamage, 1.25f, player.whoAmI, 0f, 0f); + int spore2 = Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), 590, fDamage, 1.25f, player.whoAmI, 0f, 0f); + Main.projectile[spore1].timeLeft = 120; + Main.projectile[spore2].timeLeft = 120; + } + } + } + } + if (aSpark) + { + if (damage > 0) + { + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 93); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + int sDamage = hardMode ? 36 : 6; + if (aSparkRare) + sDamage += hardMode ? 12 : 2; + if (player.whoAmI == Main.myPlayer) + { + 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), ModContent.ProjectileType(), (int)(sDamage * player.AverageDamage()), 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(), (int)(sDamage * player.AverageDamage()), 1.25f, player.whoAmI, 0f, 0f); + Main.projectile[spark1].timeLeft = 120; + Main.projectile[spark2].timeLeft = 120; + Main.projectile[spark1].Calamity().forceTypeless = true; + Main.projectile[spark2].Calamity().forceTypeless = true; + } + } + } + } + if (inkBomb) + { + if (player.whoAmI == Main.myPlayer && !inkBombCooldown) + { + player.AddBuff(ModContent.BuffType(), 1200); + rogueStealth += 0.5f; + for (int i = 0; i < 5; i++) + { + Main.PlaySound(SoundID.Item, (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), ModContent.ProjectileType(), 0, 0, player.whoAmI); + } + } + } + if (blazingCore) + { + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1 && player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) + { + for (int i = 0; i < 360; i += 3) + { + Vector2 BCDSpeed = new Vector2(5f, 5f).RotatedBy(MathHelper.ToRadians(i)); + Dust.NewDust(player.Center, 1, 1, 244, BCDSpeed.X, BCDSpeed.Y, 0, default, 1.1f); + } + Main.PlaySound(SoundID.Item14, player.Center); + int blazingSun = Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(1690 * player.AverageDamage()), 0f, player.whoAmI, 0f, 0f); + Main.projectile[blazingSun].Center = player.Center; + int blazingSun2 = Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType(), 0, 0f, player.whoAmI, 0f, 0f); + Main.projectile[blazingSun2].Center = player.Center; + } + } + if (ataxiaBlaze && Main.rand.NextBool(5)) + { + if (damage > 0) + { + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 74); + int eDamage = (int)(100 * player.AverageDamage()); + if (player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), eDamage, 1f, player.whoAmI, 0f, 0f); + } + } + } + else if (daedalusShard) + { + if (damage > 0) + { + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 27); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + int sDamage = (int)(27 * player.RangedDamage()); //daedalus ranged helm + if (player.whoAmI == Main.myPlayer) + { + for (i = 0; i < 8; i++) + { + 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; + int shard = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, 90, sDamage, 1f, player.whoAmI, 0f, 0f); + int shard2 = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, 90, sDamage, 1f, player.whoAmI, 0f, 0f); + Main.projectile[shard].Calamity().forceTypeless = true; + Main.projectile[shard2].Calamity().forceTypeless = true; + } + } + } + } + else if (reaverSpore) + { + if (damage > 0) + { + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 1); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + int rDamage = (int)(58 * player.RogueDamage()); //Reaver rogue helm + if (player.whoAmI == Main.myPlayer) + { + for (i = 0; i < 4; i++) + { + float xPos = Main.rand.NextBool(2) ? player.Center.X + 100 : player.Center.X - 100; + Vector2 vector2 = new Vector2(xPos, player.Center.Y + Main.rand.Next(-100, 101)); + offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; + int rspore1 = Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), 567, rDamage, 2f, player.whoAmI, 0f, 0f); + Main.projectile[rspore1].usesLocalNPCImmunity = true; + Main.projectile[rspore1].localNPCHitCooldown = 60; + int rspore2 = Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), 568, rDamage, 2f, player.whoAmI, 0f, 0f); + Main.projectile[rspore2].usesLocalNPCImmunity = true; + Main.projectile[rspore2].localNPCHitCooldown = 60; + } + } + } + } + else if (godSlayerDamage) //god slayer melee helm + { + if (damage > 80) + { + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 73); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + if (player.whoAmI == Main.myPlayer) + { + 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), ModContent.ProjectileType(), (int)(900 * player.MeleeDamage()), 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(), (int)(900 * player.MeleeDamage()), 5f, player.whoAmI, 0f, 0f); + } + } + } + } + else if (godSlayerMage) + { + if (damage > 0) + { + Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 74); + if (player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((auricSet ? 2400 : 1200) * player.MagicDamage()), 1f, player.whoAmI, 0f, 0f); + } + } + } + else if (dsSetBonus) + { + if (player.whoAmI == Main.myPlayer) + { + for (int l = 0; l < 2; l++) + { + float x = player.position.X + (float)Main.rand.Next(-400, 400); + float y = player.position.Y - (float)Main.rand.Next(500, 800); + Vector2 vector = new Vector2(x, y); + float num15 = player.position.X + (float)(player.width / 2) - vector.X; + float num16 = player.position.Y + (float)(player.height / 2) - vector.Y; + num15 += (float)Main.rand.Next(-100, 101); + int num17 = 22; + float num18 = (float)Math.Sqrt((double)(num15 * num15 + num16 * num16)); + num18 = (float)num17 / num18; + num15 *= num18; + num16 *= num18; + int num19 = Projectile.NewProjectile(x, y, num15, num16, ProjectileID.ShadowBeamFriendly, (int)(3000 * player.AverageDamage()), 7f, player.whoAmI, 0f, 0f); + Main.projectile[num19].ai[1] = player.position.Y; + Main.projectile[num19].usesLocalNPCImmunity = true; + Main.projectile[num19].localNPCHitCooldown = 10; + Main.projectile[num19].Calamity().forceTypeless = true; + } + for (int l = 0; l < 5; l++) + { + float x = player.position.X + (float)Main.rand.Next(-400, 400); + float y = player.position.Y - (float)Main.rand.Next(500, 800); + Vector2 vector = new Vector2(x, y); + float num15 = player.position.X + (float)(player.width / 2) - vector.X; + float num16 = player.position.Y + (float)(player.height / 2) - vector.Y; + num15 += (float)Main.rand.Next(-100, 101); + int num17 = 22; + float num18 = (float)Math.Sqrt((double)(num15 * num15 + num16 * num16)); + num18 = (float)num17 / num18; + num15 *= num18; + num16 *= num18; + int num19 = Projectile.NewProjectile(x, y, num15, num16, ProjectileID.DemonScythe, (int)(5000 * player.AverageDamage()), 7f, player.whoAmI, 0f, 0f); + Main.projectile[num19].ai[1] = player.position.Y; + Main.projectile[num19].usesLocalNPCImmunity = true; + Main.projectile[num19].localNPCHitCooldown = 10; + Main.projectile[num19].Calamity().forceTypeless = true; + } + } + } + if (lastProjectileHit != null) + { + switch (lastProjectileHit.modProjectile.cooldownSlot) + { + case 0: + case 1: + player.hurtCooldowns[lastProjectileHit.modProjectile.cooldownSlot] += iFramesToAdd; + break; + case -1: + default: + player.immuneTime += iFramesToAdd; + break; + } + } + else + { + player.immuneTime += iFramesToAdd; + } } - #endregion + } + #endregion - #region Kill Player - public void KillPlayer() + #region Kill Player + public void KillPlayer() { deathCount++; if (player.whoAmI == Main.myPlayer && Main.netMode == NetmodeID.MultiplayerClient) @@ -7176,7 +7177,7 @@ namespace CalamityMod.CalPlayer { for (int i = 0; i < 59; i++) { - if (player.inventory[i].stack > 0 && ((player.inventory[i].type >= 1522 && player.inventory[i].type <= 1527) || player.inventory[i].type == 3643)) + if (player.inventory[i].stack > 0 && ((player.inventory[i].type >= ItemID.LargeAmethyst && player.inventory[i].type <= ItemID.LargeDiamond) || player.inventory[i].type == ItemID.LargeAmber)) { int num = Item.NewItem((int)player.position.X, (int)player.position.Y, player.width, player.height, player.inventory[i].type, 1, false, 0, false, false); Main.item[num].netDefaults(player.inventory[i].netID); @@ -7189,7 +7190,7 @@ namespace CalamityMod.CalPlayer Main.item[num].newAndShiny = false; if (Main.netMode == NetmodeID.MultiplayerClient) { - NetMessage.SendData(21, -1, -1, null, num, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncItem, -1, -1, null, num, 0f, 0f, 0f, 0, 0, 0); } player.inventory[i].SetDefaults(0, false); } @@ -7211,7 +7212,7 @@ namespace CalamityMod.CalPlayer } else { - Main.PlaySound(5, (int)player.position.X, (int)player.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.PlayerKilled, (int)player.position.X, (int)player.position.Y, 1, 1f, 0f); } player.headVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f; player.bodyVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f; @@ -8322,7 +8323,7 @@ namespace CalamityMod.CalPlayer } if (player.whoAmI == Main.myPlayer) { - NetMessage.SendData(62, -1, -1, null, player.whoAmI, 1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.Dodge, -1, -1, null, player.whoAmI, 1f, 0f, 0f, 0, 0, 0); } } } @@ -8588,7 +8589,7 @@ namespace CalamityMod.CalPlayer Item item = drawPlayer.ActiveItem(); if (!drawPlayer.frozen && - item.type > 0 && + item.type > ItemID.None && !drawPlayer.dead && !item.noUseGraphic && (!drawPlayer.wet || !item.noWet)) @@ -8755,7 +8756,7 @@ namespace CalamityMod.CalPlayer Item item = drawPlayer.ActiveItem(); if (!drawPlayer.frozen && - (item.type > 0 || item.IsAir) && + (item.IsAir || item.type > ItemID.None) && !drawPlayer.dead && (!drawPlayer.wet || !item.noWet)) { @@ -9788,7 +9789,7 @@ namespace CalamityMod.CalPlayer // Using any item which deals no damage or is a tool doesn't consume stealth. Item it = player.ActiveItem(); bool hasDamage = it.damage > 0; - bool hasHitboxes = !it.noMelee || it.shoot > 0; + bool hasHitboxes = !it.noMelee || it.shoot > ProjectileID.None; bool isPickaxe = it.pick > 0; bool isAxe = it.axe > 0; bool isHammer = it.hammer > 0; diff --git a/CalPlayer/CalamityPlayerFishing.cs b/CalPlayer/CalamityPlayerFishing.cs index 9f2d5cf8ac..9157ec305d 100644 --- a/CalPlayer/CalamityPlayerFishing.cs +++ b/CalPlayer/CalamityPlayerFishing.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Fishing; using CalamityMod.Items.Fishing.AstralCatches; using CalamityMod.Items.Fishing.BrimstoneCragCatches; diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 558a5f6620..317119f35d 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Alcohol; +using CalamityMod.Buffs.Alcohol; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Ranged; using CalamityMod.World; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 858dfdd1b3..fba59c9e17 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Cooldowns; +using CalamityMod.Buffs.Cooldowns; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.Potions; using CalamityMod.Buffs.StatBuffs; @@ -629,7 +629,7 @@ namespace CalamityMod.CalPlayer int randomFrequency = (int)(50f * frequencyMult); if (player.miscCounter == 280 && Main.rand.NextBool(randomFrequency) && player.ownedProjectileCounts[ProjectileID.Cthulunado] < 1) { - Main.PlaySound(4, (int)sharknadoSpawnPoint.X, (int)sharknadoSpawnPoint.Y, 19, 1f, 0f); + Main.PlaySound(SoundID.NPCDeath19, (int)sharknadoSpawnPoint.X, (int)sharknadoSpawnPoint.Y); int num331 = (int)(sharknadoSpawnPoint.Y / 16f); int num332 = (int)(sharknadoSpawnPoint.X / 16f); int num333 = 100; @@ -680,7 +680,7 @@ namespace CalamityMod.CalPlayer { if (player.miscCounter == 280 && Main.rand.NextBool(10) && player.ownedProjectileCounts[ProjectileID.Sharknado] < 1) { - Main.PlaySound(4, (int)sharknadoSpawnPoint.X, (int)sharknadoSpawnPoint.Y, 19, 1f, 0f); + Main.PlaySound(SoundID.NPCDeath19, (int)sharknadoSpawnPoint.X, (int)sharknadoSpawnPoint.Y); int num331 = (int)(sharknadoSpawnPoint.Y / 16f); int num332 = (int)(sharknadoSpawnPoint.X / 16f); int num333 = 100; @@ -2126,7 +2126,7 @@ namespace CalamityMod.CalPlayer { modPlayer.aquaticBoost = 0f; if (Main.netMode == NetmodeID.MultiplayerClient) - NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.PlayerStealth, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } } @@ -2160,7 +2160,7 @@ namespace CalamityMod.CalPlayer { modPlayer.modStealth = 0f; if (Main.netMode == NetmodeID.MultiplayerClient) - NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.PlayerStealth, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } } @@ -2199,7 +2199,7 @@ namespace CalamityMod.CalPlayer { modPlayer.modStealth = 0f; if (Main.netMode == NetmodeID.MultiplayerClient) - NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.PlayerStealth, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } } @@ -2245,7 +2245,7 @@ namespace CalamityMod.CalPlayer flag14 = true; if (modPlayer.shieldInvinc == 0f && num29 != modPlayer.shieldInvinc && Main.netMode == NetmodeID.MultiplayerClient) - NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.PlayerStealth, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); float damageBoost = (5f - modPlayer.shieldInvinc) * 0.03f; player.allDamage += damageBoost; @@ -2272,7 +2272,7 @@ namespace CalamityMod.CalPlayer flag14 = true; if (modPlayer.shieldInvinc == 5f && num30 != modPlayer.shieldInvinc && Main.netMode == NetmodeID.MultiplayerClient) - NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.PlayerStealth, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); } // Emit dust diff --git a/CalamityMod.cs b/CalamityMod.cs index 5ef3fbafb4..f4f589a2c0 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Alcohol; +using CalamityMod.Buffs.Alcohol; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; @@ -3795,7 +3795,7 @@ namespace CalamityMod { if (Main.netMode == NetmodeID.Server) { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.WorldData, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); } } #endregion diff --git a/Configs.cs b/Configs.cs index d45ffccf1e..8daa0b1da9 100644 --- a/Configs.cs +++ b/Configs.cs @@ -1,4 +1,4 @@ -using CalamityMod.UI; +using CalamityMod.UI; using Microsoft.Xna.Framework; using System.Collections.Generic; using System.ComponentModel; diff --git a/Dusts/AstralBasic.cs b/Dusts/AstralBasic.cs index 27ad7c3bf9..f771e84cdb 100644 --- a/Dusts/AstralBasic.cs +++ b/Dusts/AstralBasic.cs @@ -1,4 +1,4 @@ - + using Terraria; using Terraria.ModLoader; diff --git a/Dusts/AstralBlue.cs b/Dusts/AstralBlue.cs index 2493200de1..6959c9022b 100644 --- a/Dusts/AstralBlue.cs +++ b/Dusts/AstralBlue.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Dusts/AstralChunkDust.cs b/Dusts/AstralChunkDust.cs index db8227a4d6..f99c7069cf 100644 --- a/Dusts/AstralChunkDust.cs +++ b/Dusts/AstralChunkDust.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Dusts diff --git a/Dusts/AstralEnemy.cs b/Dusts/AstralEnemy.cs index 797f8c44de..e1db77d6c1 100644 --- a/Dusts/AstralEnemy.cs +++ b/Dusts/AstralEnemy.cs @@ -1,4 +1,4 @@ - + using Terraria; using Terraria.ModLoader; diff --git a/Dusts/AstralOrange.cs b/Dusts/AstralOrange.cs index 65b0917591..30ef63ef02 100644 --- a/Dusts/AstralOrange.cs +++ b/Dusts/AstralOrange.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Dusts/BrimstoneFlame.cs b/Dusts/BrimstoneFlame.cs index 1c48e1fb01..803ec53dfa 100644 --- a/Dusts/BrimstoneFlame.cs +++ b/Dusts/BrimstoneFlame.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Dusts/CalamityDusts.cs b/Dusts/CalamityDusts.cs index f2fcd21237..7c4c028027 100644 --- a/Dusts/CalamityDusts.cs +++ b/Dusts/CalamityDusts.cs @@ -1,4 +1,4 @@ -namespace CalamityMod.Dusts +namespace CalamityMod.Dusts { public enum CalamityDusts : int { diff --git a/Dusts/HBSparkle.cs b/Dusts/HBSparkle.cs index 9c4b5071cb..78a86c1b35 100644 --- a/Dusts/HBSparkle.cs +++ b/Dusts/HBSparkle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Dusts diff --git a/Dusts/HolyFireDust.cs b/Dusts/HolyFireDust.cs index cfa57c182e..2f8cf021b4 100644 --- a/Dusts/HolyFireDust.cs +++ b/Dusts/HolyFireDust.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Dusts/OMGWTHSparkle.cs b/Dusts/OMGWTHSparkle.cs index c4c7a4519a..fe847ae16d 100644 --- a/Dusts/OMGWTHSparkle.cs +++ b/Dusts/OMGWTHSparkle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Dusts diff --git a/Events/AcidRainEvent.cs b/Events/AcidRainEvent.cs index 0b32c27cb6..4d6ed1a4cd 100644 --- a/Events/AcidRainEvent.cs +++ b/Events/AcidRainEvent.cs @@ -1,4 +1,4 @@ -using CalamityMod.ILEditing; +using CalamityMod.ILEditing; using CalamityMod.NPCs.AcidRain; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/Gores/AstralWaterDroplet.cs b/Gores/AstralWaterDroplet.cs index 7f138a3749..dcaf96b671 100644 --- a/Gores/AstralWaterDroplet.cs +++ b/Gores/AstralWaterDroplet.cs @@ -1,10 +1,11 @@ - + using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.GameContent.Shaders; using Terraria.Graphics.Effects; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Gores { @@ -146,7 +147,7 @@ namespace CalamityMod.Gores gore.frameCounter = 0; if (gore.type != 716 && gore.type != 717 && gore.type != 943) { - Main.PlaySound(39, (int)gore.position.X + 8, (int)gore.position.Y + 8, Main.rand.Next(2), 1f, 0f); + Main.PlaySound(SoundID.Drip, (int)gore.position.X + 8, (int)gore.position.Y + 8, Main.rand.Next(2), 1f, 0f); } } } @@ -158,7 +159,7 @@ namespace CalamityMod.Gores gore.frameCounter = 0; if (gore.type != 716 && gore.type != 717 && gore.type != 943) { - Main.PlaySound(39, (int)gore.position.X + 8, (int)gore.position.Y + 8, 2, 1f, 0f); + Main.PlaySound(SoundID.Drip, (int)gore.position.X + 8, (int)gore.position.Y + 8, 2, 1f, 0f); } ((WaterShaderData)Filters.Scene["WaterDistortion"].GetShader()).QueueRipple(gore.position + new Vector2(8f, 8f), 1f, RippleShape.Square, 0f); } diff --git a/ILEditing/ILChanges.cs b/ILEditing/ILChanges.cs index 7be1dd64fb..31fdfeaa27 100644 --- a/ILEditing/ILChanges.cs +++ b/ILEditing/ILChanges.cs @@ -1,4 +1,4 @@ -using MonoMod.Cil; +using MonoMod.Cil; using System; using Terraria; diff --git a/Items/Accessories/Abaddon.cs b/Items/Accessories/Abaddon.cs index 3ce537fc31..8e34d287bd 100644 --- a/Items/Accessories/Abaddon.cs +++ b/Items/Accessories/Abaddon.cs @@ -1,5 +1,6 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Accessories item.width = 26; item.height = 26; item.value = Item.buyPrice(0, 15, 0, 0); - item.rare = 5; + item.rare = ItemRarityID.Lime; item.accessory = true; } diff --git a/Items/Accessories/AbyssalAmulet.cs b/Items/Accessories/AbyssalAmulet.cs index 318d0670f1..89ae80a10a 100644 --- a/Items/Accessories/AbyssalAmulet.cs +++ b/Items/Accessories/AbyssalAmulet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/AbyssalDivingGear.cs b/Items/Accessories/AbyssalDivingGear.cs index 3efcd05701..2eeb853a28 100644 --- a/Items/Accessories/AbyssalDivingGear.cs +++ b/Items/Accessories/AbyssalDivingGear.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/AbyssalDivingSuit.cs b/Items/Accessories/AbyssalDivingSuit.cs index bce7e75859..7286bbb8cc 100644 --- a/Items/Accessories/AbyssalDivingSuit.cs +++ b/Items/Accessories/AbyssalDivingSuit.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using Terraria; diff --git a/Items/Accessories/AbyssalMirror.cs b/Items/Accessories/AbyssalMirror.cs index e1f68da264..a77614f9b0 100644 --- a/Items/Accessories/AbyssalMirror.cs +++ b/Items/Accessories/AbyssalMirror.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/AeroStone.cs b/Items/Accessories/AeroStone.cs index ff83883e63..642e4fab63 100644 --- a/Items/Accessories/AeroStone.cs +++ b/Items/Accessories/AeroStone.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Accessories/Affliction.cs b/Items/Accessories/Affliction.cs index 6648787451..9da265f7e3 100644 --- a/Items/Accessories/Affliction.cs +++ b/Items/Accessories/Affliction.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatBuffs; +using CalamityMod.Buffs.StatBuffs; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Items/Accessories/AlchemicalFlask.cs b/Items/Accessories/AlchemicalFlask.cs index 5c504fecb5..e5ad4cacb6 100644 --- a/Items/Accessories/AlchemicalFlask.cs +++ b/Items/Accessories/AlchemicalFlask.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; diff --git a/Items/Accessories/AlluringBait.cs b/Items/Accessories/AlluringBait.cs index 7bd0db0207..e985fa4d3b 100644 --- a/Items/Accessories/AlluringBait.cs +++ b/Items/Accessories/AlluringBait.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories diff --git a/Items/Accessories/AmalgamatedBrain.cs b/Items/Accessories/AmalgamatedBrain.cs index 4e061201f9..9f2d57bcee 100644 --- a/Items/Accessories/AmalgamatedBrain.cs +++ b/Items/Accessories/AmalgamatedBrain.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using System; diff --git a/Items/Accessories/AmbrosialAmpoule.cs b/Items/Accessories/AmbrosialAmpoule.cs index bf85d5e999..b64ab83459 100644 --- a/Items/Accessories/AmbrosialAmpoule.cs +++ b/Items/Accessories/AmbrosialAmpoule.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/AmidiasPendant.cs b/Items/Accessories/AmidiasPendant.cs index 804543be9c..b49b033189 100644 --- a/Items/Accessories/AmidiasPendant.cs +++ b/Items/Accessories/AmidiasPendant.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/AmidiasSpark.cs b/Items/Accessories/AmidiasSpark.cs index d10e6ecd2b..3c22b43486 100644 --- a/Items/Accessories/AmidiasSpark.cs +++ b/Items/Accessories/AmidiasSpark.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/AncientFossil.cs b/Items/Accessories/AncientFossil.cs index 6a823e4095..a362702b5f 100644 --- a/Items/Accessories/AncientFossil.cs +++ b/Items/Accessories/AncientFossil.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/AnechoicPlating.cs b/Items/Accessories/AnechoicPlating.cs index 9915b7fffb..04145e4c27 100644 --- a/Items/Accessories/AnechoicPlating.cs +++ b/Items/Accessories/AnechoicPlating.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/AngelTreads.cs b/Items/Accessories/AngelTreads.cs index c8b2b00844..395224d5d1 100644 --- a/Items/Accessories/AngelTreads.cs +++ b/Items/Accessories/AngelTreads.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/AquaticEmblem.cs b/Items/Accessories/AquaticEmblem.cs index b8c8c836e4..0ef1cd7087 100644 --- a/Items/Accessories/AquaticEmblem.cs +++ b/Items/Accessories/AquaticEmblem.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/ArcanumoftheVoid.cs b/Items/Accessories/ArcanumoftheVoid.cs index 37606d7116..20668e48c7 100644 --- a/Items/Accessories/ArcanumoftheVoid.cs +++ b/Items/Accessories/ArcanumoftheVoid.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/ArchaicPowder.cs b/Items/Accessories/ArchaicPowder.cs index d5c501879e..05235d40a9 100644 --- a/Items/Accessories/ArchaicPowder.cs +++ b/Items/Accessories/ArchaicPowder.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/AsgardianAegis.cs b/Items/Accessories/AsgardianAegis.cs index 281db90beb..99b1887b5e 100644 --- a/Items/Accessories/AsgardianAegis.cs +++ b/Items/Accessories/AsgardianAegis.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; diff --git a/Items/Accessories/AsgardsValor.cs b/Items/Accessories/AsgardsValor.cs index 3a71ce5fdb..9f09c33d86 100644 --- a/Items/Accessories/AsgardsValor.cs +++ b/Items/Accessories/AsgardsValor.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; diff --git a/Items/Accessories/AstralArcanum.cs b/Items/Accessories/AstralArcanum.cs index e73a1929ad..aff0160b81 100644 --- a/Items/Accessories/AstralArcanum.cs +++ b/Items/Accessories/AstralArcanum.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; diff --git a/Items/Accessories/AstralBulwark.cs b/Items/Accessories/AstralBulwark.cs index 99aefdbf03..f40da571ca 100644 --- a/Items/Accessories/AstralBulwark.cs +++ b/Items/Accessories/AstralBulwark.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/BadgeofBravery.cs b/Items/Accessories/BadgeofBravery.cs index fd69344781..4a393de88f 100644 --- a/Items/Accessories/BadgeofBravery.cs +++ b/Items/Accessories/BadgeofBravery.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/BlazingCore.cs b/Items/Accessories/BlazingCore.cs index 0e9da8d3ff..81c6160db0 100644 --- a/Items/Accessories/BlazingCore.cs +++ b/Items/Accessories/BlazingCore.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Accessories/BloodPact.cs b/Items/Accessories/BloodPact.cs index 832c5aa45b..3df409447a 100644 --- a/Items/Accessories/BloodPact.cs +++ b/Items/Accessories/BloodPact.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/BloodflareCore.cs b/Items/Accessories/BloodflareCore.cs index a9cd27593e..5e42871eae 100644 --- a/Items/Accessories/BloodflareCore.cs +++ b/Items/Accessories/BloodflareCore.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/BloodyWormScarf.cs b/Items/Accessories/BloodyWormScarf.cs index a36ef22dce..a0869e6d28 100644 --- a/Items/Accessories/BloodyWormScarf.cs +++ b/Items/Accessories/BloodyWormScarf.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/BloodyWormTooth.cs b/Items/Accessories/BloodyWormTooth.cs index d4fce85355..c9e7bc1aa2 100644 --- a/Items/Accessories/BloodyWormTooth.cs +++ b/Items/Accessories/BloodyWormTooth.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/BloomStone.cs b/Items/Accessories/BloomStone.cs index 06f114da1c..d7f0c8a2ed 100644 --- a/Items/Accessories/BloomStone.cs +++ b/Items/Accessories/BloomStone.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; diff --git a/Items/Accessories/BurdenBreaker.cs b/Items/Accessories/BurdenBreaker.cs index 8984dc3fb8..7eaee8d0e4 100644 --- a/Items/Accessories/BurdenBreaker.cs +++ b/Items/Accessories/BurdenBreaker.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/CalamityRing.cs b/Items/Accessories/CalamityRing.cs index d3432a6760..d5992874e9 100644 --- a/Items/Accessories/CalamityRing.cs +++ b/Items/Accessories/CalamityRing.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using System; diff --git a/Items/Accessories/CelestialJewel.cs b/Items/Accessories/CelestialJewel.cs index 4c4b1a54f2..6fabf5503c 100644 --- a/Items/Accessories/CelestialJewel.cs +++ b/Items/Accessories/CelestialJewel.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Potions; using System.Collections.Generic; using Terraria; diff --git a/Items/Accessories/ChaosAmulet.cs b/Items/Accessories/ChaosAmulet.cs index e41780e326..3e55947eb8 100644 --- a/Items/Accessories/ChaosAmulet.cs +++ b/Items/Accessories/ChaosAmulet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/ChaosStone.cs b/Items/Accessories/ChaosStone.cs index eb1eefbf7d..04277b032a 100644 --- a/Items/Accessories/ChaosStone.cs +++ b/Items/Accessories/ChaosStone.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Accessories/CheatTestThing.cs b/Items/Accessories/CheatTestThing.cs index d04ccd30a4..a37be3c5f1 100644 --- a/Items/Accessories/CheatTestThing.cs +++ b/Items/Accessories/CheatTestThing.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Accessories/CoreOfTheBloodGod.cs b/Items/Accessories/CoreOfTheBloodGod.cs index a3fdd5614b..c6b3b65af3 100644 --- a/Items/Accessories/CoreOfTheBloodGod.cs +++ b/Items/Accessories/CoreOfTheBloodGod.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Accessories/CorrosiveSpine.cs b/Items/Accessories/CorrosiveSpine.cs index d4ed8a417a..42159dadd8 100644 --- a/Items/Accessories/CorrosiveSpine.cs +++ b/Items/Accessories/CorrosiveSpine.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/CorruptFlask.cs b/Items/Accessories/CorruptFlask.cs index 182619c9cd..7f8ec3029d 100644 --- a/Items/Accessories/CorruptFlask.cs +++ b/Items/Accessories/CorruptFlask.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/CounterScarf.cs b/Items/Accessories/CounterScarf.cs index 569a249447..df0ca83a33 100644 --- a/Items/Accessories/CounterScarf.cs +++ b/Items/Accessories/CounterScarf.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/CrawCarapace.cs b/Items/Accessories/CrawCarapace.cs index 8139737171..8cb1b4f854 100644 --- a/Items/Accessories/CrawCarapace.cs +++ b/Items/Accessories/CrawCarapace.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories diff --git a/Items/Accessories/CrimsonFlask.cs b/Items/Accessories/CrimsonFlask.cs index e9d0ec41b5..4884087736 100644 --- a/Items/Accessories/CrimsonFlask.cs +++ b/Items/Accessories/CrimsonFlask.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/CrownJewel.cs b/Items/Accessories/CrownJewel.cs index 763b17910f..e14f3e24c1 100644 --- a/Items/Accessories/CrownJewel.cs +++ b/Items/Accessories/CrownJewel.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/CryoStone.cs b/Items/Accessories/CryoStone.cs index 15eb77fb3c..00da5e3408 100644 --- a/Items/Accessories/CryoStone.cs +++ b/Items/Accessories/CryoStone.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Accessories/DaedalusEmblem.cs b/Items/Accessories/DaedalusEmblem.cs index 9c9e70b24f..4dee335e7c 100644 --- a/Items/Accessories/DaedalusEmblem.cs +++ b/Items/Accessories/DaedalusEmblem.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/DarkGodsSheath.cs b/Items/Accessories/DarkGodsSheath.cs index 4b3986bad0..8d0492ed21 100644 --- a/Items/Accessories/DarkGodsSheath.cs +++ b/Items/Accessories/DarkGodsSheath.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/DarkSunRing.cs b/Items/Accessories/DarkSunRing.cs index e1b6c88331..25882f1dc0 100644 --- a/Items/Accessories/DarkSunRing.cs +++ b/Items/Accessories/DarkSunRing.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.DataStructures; diff --git a/Items/Accessories/DeepDiver.cs b/Items/Accessories/DeepDiver.cs index 9ab6e96179..fc72e63709 100644 --- a/Items/Accessories/DeepDiver.cs +++ b/Items/Accessories/DeepDiver.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/DeificAmulet.cs b/Items/Accessories/DeificAmulet.cs index 884422778b..817a2ef703 100644 --- a/Items/Accessories/DeificAmulet.cs +++ b/Items/Accessories/DeificAmulet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/DepthCharm.cs b/Items/Accessories/DepthCharm.cs index 8ed09a6e56..c728b6e8a9 100644 --- a/Items/Accessories/DepthCharm.cs +++ b/Items/Accessories/DepthCharm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/DimensionalSoulArtifact.cs b/Items/Accessories/DimensionalSoulArtifact.cs index 17ce7a5e50..914f1cc56a 100644 --- a/Items/Accessories/DimensionalSoulArtifact.cs +++ b/Items/Accessories/DimensionalSoulArtifact.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Ores; diff --git a/Items/Accessories/DraedonsHeart.cs b/Items/Accessories/DraedonsHeart.cs index 1444ad5586..56ebf780f9 100644 --- a/Items/Accessories/DraedonsHeart.cs +++ b/Items/Accessories/DraedonsHeart.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; diff --git a/Items/Accessories/DragonScales.cs b/Items/Accessories/DragonScales.cs index 93ea711fa1..f421cd630d 100644 --- a/Items/Accessories/DragonScales.cs +++ b/Items/Accessories/DragonScales.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/EclipseMirror.cs b/Items/Accessories/EclipseMirror.cs index 9faf8fb409..e62c6a0edf 100644 --- a/Items/Accessories/EclipseMirror.cs +++ b/Items/Accessories/EclipseMirror.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Accessories/EldritchSoulArtifact.cs b/Items/Accessories/EldritchSoulArtifact.cs index a9302d4b85..abc1eb938e 100644 --- a/Items/Accessories/EldritchSoulArtifact.cs +++ b/Items/Accessories/EldritchSoulArtifact.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Ores; diff --git a/Items/Accessories/ElementalGauntlet.cs b/Items/Accessories/ElementalGauntlet.cs index 695804b640..daf2600bb2 100644 --- a/Items/Accessories/ElementalGauntlet.cs +++ b/Items/Accessories/ElementalGauntlet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Accessories/ElementalQuiver.cs b/Items/Accessories/ElementalQuiver.cs index f1a4cff40a..0768cc01b8 100644 --- a/Items/Accessories/ElementalQuiver.cs +++ b/Items/Accessories/ElementalQuiver.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Accessories/ElysianAegis.cs b/Items/Accessories/ElysianAegis.cs index 6f29a6674e..18dffeb0f3 100644 --- a/Items/Accessories/ElysianAegis.cs +++ b/Items/Accessories/ElysianAegis.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Buffs.DamageOverTime; using System.Collections.Generic; using Terraria; diff --git a/Items/Accessories/EnchantedPearl.cs b/Items/Accessories/EnchantedPearl.cs index 554ccc2f0f..a442616cf2 100644 --- a/Items/Accessories/EnchantedPearl.cs +++ b/Items/Accessories/EnchantedPearl.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items.Materials; diff --git a/Items/Accessories/EtherealTalisman.cs b/Items/Accessories/EtherealTalisman.cs index e97f68e4d6..4195c10187 100644 --- a/Items/Accessories/EtherealTalisman.cs +++ b/Items/Accessories/EtherealTalisman.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Accessories/FabledTortoiseShell.cs b/Items/Accessories/FabledTortoiseShell.cs index c659c1a4d7..f823e69be8 100644 --- a/Items/Accessories/FabledTortoiseShell.cs +++ b/Items/Accessories/FabledTortoiseShell.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/FeatherCrown.cs b/Items/Accessories/FeatherCrown.cs index 378fff20a4..a81b82e21a 100644 --- a/Items/Accessories/FeatherCrown.cs +++ b/Items/Accessories/FeatherCrown.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/FleshTotem.cs b/Items/Accessories/FleshTotem.cs index 5f217040f2..b4ae75b762 100644 --- a/Items/Accessories/FleshTotem.cs +++ b/Items/Accessories/FleshTotem.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/FrigidBulwark.cs b/Items/Accessories/FrigidBulwark.cs index c1caa2ffaa..ae11e4f707 100644 --- a/Items/Accessories/FrigidBulwark.cs +++ b/Items/Accessories/FrigidBulwark.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/FrostBarrier.cs b/Items/Accessories/FrostBarrier.cs index c837bc76fc..63c0da9caf 100644 --- a/Items/Accessories/FrostBarrier.cs +++ b/Items/Accessories/FrostBarrier.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/FrostFlare.cs b/Items/Accessories/FrostFlare.cs index 941cf1dcc7..f66a8c5566 100644 --- a/Items/Accessories/FrostFlare.cs +++ b/Items/Accessories/FrostFlare.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Accessories/FungalCarapace.cs b/Items/Accessories/FungalCarapace.cs index 4f9ee01b98..d7beaa3eee 100644 --- a/Items/Accessories/FungalCarapace.cs +++ b/Items/Accessories/FungalCarapace.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/FungalSymbiote.cs b/Items/Accessories/FungalSymbiote.cs index 84e7985c9d..836fdadad8 100644 --- a/Items/Accessories/FungalSymbiote.cs +++ b/Items/Accessories/FungalSymbiote.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/Gehenna.cs b/Items/Accessories/Gehenna.cs index 6d1362905e..71e1f63069 100644 --- a/Items/Accessories/Gehenna.cs +++ b/Items/Accessories/Gehenna.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/GiantPearl.cs b/Items/Accessories/GiantPearl.cs index c0fb3b84bb..0c82ffe5c3 100644 --- a/Items/Accessories/GiantPearl.cs +++ b/Items/Accessories/GiantPearl.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/GiantShell.cs b/Items/Accessories/GiantShell.cs index 5be9f7d194..d298b0c214 100644 --- a/Items/Accessories/GiantShell.cs +++ b/Items/Accessories/GiantShell.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/GiantTortoiseShell.cs b/Items/Accessories/GiantTortoiseShell.cs index ef667fd30d..74821e97f5 100644 --- a/Items/Accessories/GiantTortoiseShell.cs +++ b/Items/Accessories/GiantTortoiseShell.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/GloveOfRecklessness.cs b/Items/Accessories/GloveOfRecklessness.cs index d89ee3056e..8ccd8226ee 100644 --- a/Items/Accessories/GloveOfRecklessness.cs +++ b/Items/Accessories/GloveOfRecklessness.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/GloveofPrecision.cs b/Items/Accessories/GloveofPrecision.cs index ea5bfa6771..afd6a5a729 100644 --- a/Items/Accessories/GloveofPrecision.cs +++ b/Items/Accessories/GloveofPrecision.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/GodlySoulArtifact.cs b/Items/Accessories/GodlySoulArtifact.cs index cae592c6ea..b3afb40c51 100644 --- a/Items/Accessories/GodlySoulArtifact.cs +++ b/Items/Accessories/GodlySoulArtifact.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Ores; diff --git a/Items/Accessories/GoldBurdenBreaker.cs b/Items/Accessories/GoldBurdenBreaker.cs index 7d5283172f..b4fae34092 100644 --- a/Items/Accessories/GoldBurdenBreaker.cs +++ b/Items/Accessories/GoldBurdenBreaker.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/GrandGelatin.cs b/Items/Accessories/GrandGelatin.cs index c2ae63d6aa..c25916bf5c 100644 --- a/Items/Accessories/GrandGelatin.cs +++ b/Items/Accessories/GrandGelatin.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/HallowedRune.cs b/Items/Accessories/HallowedRune.cs index 26288e8743..f1766b6f7c 100644 --- a/Items/Accessories/HallowedRune.cs +++ b/Items/Accessories/HallowedRune.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/HarpyRing.cs b/Items/Accessories/HarpyRing.cs index d577416d61..bd7e8fea56 100644 --- a/Items/Accessories/HarpyRing.cs +++ b/Items/Accessories/HarpyRing.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/HeartofDarkness.cs b/Items/Accessories/HeartofDarkness.cs index 84f70f6e2f..81e7c7d448 100644 --- a/Items/Accessories/HeartofDarkness.cs +++ b/Items/Accessories/HeartofDarkness.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Accessories/HeartoftheElements.cs b/Items/Accessories/HeartoftheElements.cs index ff56822c8e..c8a91869d6 100644 --- a/Items/Accessories/HeartoftheElements.cs +++ b/Items/Accessories/HeartoftheElements.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using CalamityMod.World; diff --git a/Items/Accessories/HideofAstrumDeus.cs b/Items/Accessories/HideofAstrumDeus.cs index 0cacfad449..d382fc8b19 100644 --- a/Items/Accessories/HideofAstrumDeus.cs +++ b/Items/Accessories/HideofAstrumDeus.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/HoneyDew.cs b/Items/Accessories/HoneyDew.cs index 7eab4d144b..1272f5c886 100644 --- a/Items/Accessories/HoneyDew.cs +++ b/Items/Accessories/HoneyDew.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/InkBomb.cs b/Items/Accessories/InkBomb.cs index 69ce4210df..ba91beb059 100644 --- a/Items/Accessories/InkBomb.cs +++ b/Items/Accessories/InkBomb.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/IronBoots.cs b/Items/Accessories/IronBoots.cs index 5f71a9b2ce..17ee004f75 100644 --- a/Items/Accessories/IronBoots.cs +++ b/Items/Accessories/IronBoots.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/Laudanum.cs b/Items/Accessories/Laudanum.cs index a40343f11b..f3f8d8ef54 100644 --- a/Items/Accessories/Laudanum.cs +++ b/Items/Accessories/Laudanum.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/LeadCore.cs b/Items/Accessories/LeadCore.cs index ef8f5dc878..52fc9a0b46 100644 --- a/Items/Accessories/LeadCore.cs +++ b/Items/Accessories/LeadCore.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories diff --git a/Items/Accessories/LeviathanAmbergris.cs b/Items/Accessories/LeviathanAmbergris.cs index 697706684e..010f303042 100644 --- a/Items/Accessories/LeviathanAmbergris.cs +++ b/Items/Accessories/LeviathanAmbergris.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/LifeJelly.cs b/Items/Accessories/LifeJelly.cs index 05c0e60ad8..c7c79a17bf 100644 --- a/Items/Accessories/LifeJelly.cs +++ b/Items/Accessories/LifeJelly.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/LivingDew.cs b/Items/Accessories/LivingDew.cs index 703d64ad37..1840c1cd34 100644 --- a/Items/Accessories/LivingDew.cs +++ b/Items/Accessories/LivingDew.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/LumenousAmulet.cs b/Items/Accessories/LumenousAmulet.cs index 341201779c..0247f2cfd0 100644 --- a/Items/Accessories/LumenousAmulet.cs +++ b/Items/Accessories/LumenousAmulet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using Terraria; diff --git a/Items/Accessories/LuxorsGift.cs b/Items/Accessories/LuxorsGift.cs index 091407c0e4..8909f72368 100644 --- a/Items/Accessories/LuxorsGift.cs +++ b/Items/Accessories/LuxorsGift.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/MagicLevelMeter.cs b/Items/Accessories/MagicLevelMeter.cs index 51d1f64228..ffe71460e0 100644 --- a/Items/Accessories/MagicLevelMeter.cs +++ b/Items/Accessories/MagicLevelMeter.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/ManaJelly.cs b/Items/Accessories/ManaJelly.cs index 4beb850e8c..28ad8ae3ce 100644 --- a/Items/Accessories/ManaJelly.cs +++ b/Items/Accessories/ManaJelly.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/ManaOverloader.cs b/Items/Accessories/ManaOverloader.cs index 36950b8cc8..5d4d6691e3 100644 --- a/Items/Accessories/ManaOverloader.cs +++ b/Items/Accessories/ManaOverloader.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/MeleeLevelMeter.cs b/Items/Accessories/MeleeLevelMeter.cs index c898e93344..2ce168d7ee 100644 --- a/Items/Accessories/MeleeLevelMeter.cs +++ b/Items/Accessories/MeleeLevelMeter.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/MirageMirror.cs b/Items/Accessories/MirageMirror.cs index b7a4b1a871..5877e21aa2 100644 --- a/Items/Accessories/MirageMirror.cs +++ b/Items/Accessories/MirageMirror.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/MomentumCapacitor.cs b/Items/Accessories/MomentumCapacitor.cs index f688b56b2c..30431528d9 100644 --- a/Items/Accessories/MomentumCapacitor.cs +++ b/Items/Accessories/MomentumCapacitor.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/MoonstoneCrown.cs b/Items/Accessories/MoonstoneCrown.cs index e049ffebc8..18a590a446 100644 --- a/Items/Accessories/MoonstoneCrown.cs +++ b/Items/Accessories/MoonstoneCrown.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/Nanotech.cs b/Items/Accessories/Nanotech.cs index 09185b29c8..0fdbf8c416 100644 --- a/Items/Accessories/Nanotech.cs +++ b/Items/Accessories/Nanotech.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using System.Collections.Generic; diff --git a/Items/Accessories/NebulousCore.cs b/Items/Accessories/NebulousCore.cs index 9ab9bf429f..3063cedc7e 100644 --- a/Items/Accessories/NebulousCore.cs +++ b/Items/Accessories/NebulousCore.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; diff --git a/Items/Accessories/NecklaceofVexation.cs b/Items/Accessories/NecklaceofVexation.cs index fa64a07297..78832ad83c 100644 --- a/Items/Accessories/NecklaceofVexation.cs +++ b/Items/Accessories/NecklaceofVexation.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/OceanCrest.cs b/Items/Accessories/OceanCrest.cs index a254f2d29c..300b61afed 100644 --- a/Items/Accessories/OceanCrest.cs +++ b/Items/Accessories/OceanCrest.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories diff --git a/Items/Accessories/OldDie.cs b/Items/Accessories/OldDie.cs index 184416774d..9862cd5c82 100644 --- a/Items/Accessories/OldDie.cs +++ b/Items/Accessories/OldDie.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/OrnateShield.cs b/Items/Accessories/OrnateShield.cs index 62eac13dc4..bc6ac8bb02 100644 --- a/Items/Accessories/OrnateShield.cs +++ b/Items/Accessories/OrnateShield.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Armor; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/PlagueHive.cs b/Items/Accessories/PlagueHive.cs index c15e1c0389..9684774f91 100644 --- a/Items/Accessories/PlagueHive.cs +++ b/Items/Accessories/PlagueHive.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; diff --git a/Items/Accessories/PlaguedFuelPack.cs b/Items/Accessories/PlaguedFuelPack.cs index 70ed160be3..43a5ec841a 100644 --- a/Items/Accessories/PlaguedFuelPack.cs +++ b/Items/Accessories/PlaguedFuelPack.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/ProfanedSoulArtifact.cs b/Items/Accessories/ProfanedSoulArtifact.cs index 2256b16f90..98f96a7413 100644 --- a/Items/Accessories/ProfanedSoulArtifact.cs +++ b/Items/Accessories/ProfanedSoulArtifact.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Ores; diff --git a/Items/Accessories/ProfanedSoulCrystal.cs b/Items/Accessories/ProfanedSoulCrystal.cs index 7cedbc6546..0f7e8f2a8b 100644 --- a/Items/Accessories/ProfanedSoulCrystal.cs +++ b/Items/Accessories/ProfanedSoulCrystal.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.World; diff --git a/Items/Accessories/PsychoticAmulet.cs b/Items/Accessories/PsychoticAmulet.cs index 7aa25d41e2..6e08ca679d 100644 --- a/Items/Accessories/PsychoticAmulet.cs +++ b/Items/Accessories/PsychoticAmulet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/RadiantOoze.cs b/Items/Accessories/RadiantOoze.cs index 4e1a88ee0a..2a3e432b2c 100644 --- a/Items/Accessories/RadiantOoze.cs +++ b/Items/Accessories/RadiantOoze.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/RaidersTalisman.cs b/Items/Accessories/RaidersTalisman.cs index c3959a7c18..4654ecc26d 100644 --- a/Items/Accessories/RaidersTalisman.cs +++ b/Items/Accessories/RaidersTalisman.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/RampartofDeities.cs b/Items/Accessories/RampartofDeities.cs index b7a2b1ab91..bd38defdc1 100644 --- a/Items/Accessories/RampartofDeities.cs +++ b/Items/Accessories/RampartofDeities.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Accessories/RangedLevelMeter.cs b/Items/Accessories/RangedLevelMeter.cs index 87440ad6f1..c3cfcf53bc 100644 --- a/Items/Accessories/RangedLevelMeter.cs +++ b/Items/Accessories/RangedLevelMeter.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/ReaperToothNecklace.cs b/Items/Accessories/ReaperToothNecklace.cs index b5108a2740..0053e0b13f 100644 --- a/Items/Accessories/ReaperToothNecklace.cs +++ b/Items/Accessories/ReaperToothNecklace.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using Terraria; diff --git a/Items/Accessories/Regenator.cs b/Items/Accessories/Regenator.cs index e651a4ca1d..2656f6241c 100644 --- a/Items/Accessories/Regenator.cs +++ b/Items/Accessories/Regenator.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/RogueEmblem.cs b/Items/Accessories/RogueEmblem.cs index 1fcb7173b5..e215450b72 100644 --- a/Items/Accessories/RogueEmblem.cs +++ b/Items/Accessories/RogueEmblem.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/RogueLevelMeter.cs b/Items/Accessories/RogueLevelMeter.cs index 3997c2a52c..21e7acd1b5 100644 --- a/Items/Accessories/RogueLevelMeter.cs +++ b/Items/Accessories/RogueLevelMeter.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/RoseStone.cs b/Items/Accessories/RoseStone.cs index e1b2743f71..a4059168c3 100644 --- a/Items/Accessories/RoseStone.cs +++ b/Items/Accessories/RoseStone.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; diff --git a/Items/Accessories/RottenBrain.cs b/Items/Accessories/RottenBrain.cs index 6bbd8a2e6d..83cbd5ed35 100644 --- a/Items/Accessories/RottenBrain.cs +++ b/Items/Accessories/RottenBrain.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using System; diff --git a/Items/Accessories/RuinMedallion.cs b/Items/Accessories/RuinMedallion.cs index 8a982bed56..b55ec290eb 100644 --- a/Items/Accessories/RuinMedallion.cs +++ b/Items/Accessories/RuinMedallion.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/RustyMedallion.cs b/Items/Accessories/RustyMedallion.cs index 9d29b47034..9a8f099efb 100644 --- a/Items/Accessories/RustyMedallion.cs +++ b/Items/Accessories/RustyMedallion.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/SamuraiBadge.cs b/Items/Accessories/SamuraiBadge.cs index e695637546..94eeab7dd8 100644 --- a/Items/Accessories/SamuraiBadge.cs +++ b/Items/Accessories/SamuraiBadge.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/SandCloak.cs b/Items/Accessories/SandCloak.cs index 03d49f872d..6d64d18c78 100644 --- a/Items/Accessories/SandCloak.cs +++ b/Items/Accessories/SandCloak.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/SeaShell.cs b/Items/Accessories/SeaShell.cs index 453437ac17..a3ca77070a 100644 --- a/Items/Accessories/SeaShell.cs +++ b/Items/Accessories/SeaShell.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/ShieldoftheOcean.cs b/Items/Accessories/ShieldoftheOcean.cs index 534b6ef4ae..909b9d3835 100644 --- a/Items/Accessories/ShieldoftheOcean.cs +++ b/Items/Accessories/ShieldoftheOcean.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Armor; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/SigilofCalamitas.cs b/Items/Accessories/SigilofCalamitas.cs index df519ff0f8..2a26337511 100644 --- a/Items/Accessories/SigilofCalamitas.cs +++ b/Items/Accessories/SigilofCalamitas.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.DataStructures; using Terraria.ID; diff --git a/Items/Accessories/SilencingSheath.cs b/Items/Accessories/SilencingSheath.cs index 66e6969e5a..9bd46f5e43 100644 --- a/Items/Accessories/SilencingSheath.cs +++ b/Items/Accessories/SilencingSheath.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/SirensHeart.cs b/Items/Accessories/SirensHeart.cs index 3518463d4c..5a6ff51139 100644 --- a/Items/Accessories/SirensHeart.cs +++ b/Items/Accessories/SirensHeart.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/SirensHeartAlt.cs b/Items/Accessories/SirensHeartAlt.cs index f8f9ebfa24..1d4a2d36a1 100644 --- a/Items/Accessories/SirensHeartAlt.cs +++ b/Items/Accessories/SirensHeartAlt.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/SpectralVeil.cs b/Items/Accessories/SpectralVeil.cs index a02628b9a1..e01bb6c188 100644 --- a/Items/Accessories/SpectralVeil.cs +++ b/Items/Accessories/SpectralVeil.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/SpiritGenerator.cs b/Items/Accessories/SpiritGenerator.cs index 1bd9b8c7af..bcb286e074 100644 --- a/Items/Accessories/SpiritGenerator.cs +++ b/Items/Accessories/SpiritGenerator.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/Sponge.cs b/Items/Accessories/Sponge.cs index a40129a4bf..316eb68d3a 100644 --- a/Items/Accessories/Sponge.cs +++ b/Items/Accessories/Sponge.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; diff --git a/Items/Accessories/StarbusterCore.cs b/Items/Accessories/StarbusterCore.cs index 2b6f9b9d7f..0e337ff0df 100644 --- a/Items/Accessories/StarbusterCore.cs +++ b/Items/Accessories/StarbusterCore.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; diff --git a/Items/Accessories/StatMeter.cs b/Items/Accessories/StatMeter.cs index 4256880aa8..3813586e07 100644 --- a/Items/Accessories/StatMeter.cs +++ b/Items/Accessories/StatMeter.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.World; using System; using System.Collections.Generic; diff --git a/Items/Accessories/StatisBeltOfCurses.cs b/Items/Accessories/StatisBeltOfCurses.cs index 6d31a41f8c..59427ea6ad 100644 --- a/Items/Accessories/StatisBeltOfCurses.cs +++ b/Items/Accessories/StatisBeltOfCurses.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Accessories/StatisBlessing.cs b/Items/Accessories/StatisBlessing.cs index 927a17530c..a4256bea5d 100644 --- a/Items/Accessories/StatisBlessing.cs +++ b/Items/Accessories/StatisBlessing.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/StatisCurse.cs b/Items/Accessories/StatisCurse.cs index 66f86a96e2..9ed5b61071 100644 --- a/Items/Accessories/StatisCurse.cs +++ b/Items/Accessories/StatisCurse.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; using Terraria.ID; diff --git a/Items/Accessories/StatisNinjaBelt.cs b/Items/Accessories/StatisNinjaBelt.cs index e9d8bc1c46..3225f87f6b 100644 --- a/Items/Accessories/StatisNinjaBelt.cs +++ b/Items/Accessories/StatisNinjaBelt.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Accessories/StressPills.cs b/Items/Accessories/StressPills.cs index 31528b952d..c7d3180783 100644 --- a/Items/Accessories/StressPills.cs +++ b/Items/Accessories/StressPills.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/SummonLevelMeter.cs b/Items/Accessories/SummonLevelMeter.cs index a72c6d532f..7cfc2ce16e 100644 --- a/Items/Accessories/SummonLevelMeter.cs +++ b/Items/Accessories/SummonLevelMeter.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System.Collections.Generic; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs b/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs index 0815197ba2..8f6d44be6e 100644 --- a/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs +++ b/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/TheAbsorber.cs b/Items/Accessories/TheAbsorber.cs index 5f3450fd6b..21f68cc4ab 100644 --- a/Items/Accessories/TheAbsorber.cs +++ b/Items/Accessories/TheAbsorber.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using Terraria; diff --git a/Items/Accessories/TheAmalgam.cs b/Items/Accessories/TheAmalgam.cs index a30da8596a..9a3168dd08 100644 --- a/Items/Accessories/TheAmalgam.cs +++ b/Items/Accessories/TheAmalgam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; diff --git a/Items/Accessories/TheBee.cs b/Items/Accessories/TheBee.cs index e0194468d0..f8e516400a 100644 --- a/Items/Accessories/TheBee.cs +++ b/Items/Accessories/TheBee.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/TheCamper.cs b/Items/Accessories/TheCamper.cs index 0b4fac1ec4..9aa882e694 100644 --- a/Items/Accessories/TheCamper.cs +++ b/Items/Accessories/TheCamper.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using System; diff --git a/Items/Accessories/TheCommunity.cs b/Items/Accessories/TheCommunity.cs index f3575b1da4..e45b03735f 100644 --- a/Items/Accessories/TheCommunity.cs +++ b/Items/Accessories/TheCommunity.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Accessories/TheEvolution.cs b/Items/Accessories/TheEvolution.cs index fcd2d5d966..94eee504f0 100644 --- a/Items/Accessories/TheEvolution.cs +++ b/Items/Accessories/TheEvolution.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/TheFirstShadowflame.cs b/Items/Accessories/TheFirstShadowflame.cs index 982bd94cdd..b91765e2f7 100644 --- a/Items/Accessories/TheFirstShadowflame.cs +++ b/Items/Accessories/TheFirstShadowflame.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Accessories/TheTransformer.cs b/Items/Accessories/TheTransformer.cs index 95b7e61d88..f395f0592a 100644 --- a/Items/Accessories/TheTransformer.cs +++ b/Items/Accessories/TheTransformer.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/ToxicHeart.cs b/Items/Accessories/ToxicHeart.cs index 43f5fa212a..ccbe5b9cea 100644 --- a/Items/Accessories/ToxicHeart.cs +++ b/Items/Accessories/ToxicHeart.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; diff --git a/Items/Accessories/TrinketofChi.cs b/Items/Accessories/TrinketofChi.cs index 6b3e212cf5..ac8857c96c 100644 --- a/Items/Accessories/TrinketofChi.cs +++ b/Items/Accessories/TrinketofChi.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/UnstablePrism.cs b/Items/Accessories/UnstablePrism.cs index 4e23b15ba4..94a6ceb7d0 100644 --- a/Items/Accessories/UnstablePrism.cs +++ b/Items/Accessories/UnstablePrism.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/Vanity/Popo.cs b/Items/Accessories/Vanity/Popo.cs index c7b610a58f..d01f998f21 100644 --- a/Items/Accessories/Vanity/Popo.cs +++ b/Items/Accessories/Vanity/Popo.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/VeneratedLocket.cs b/Items/Accessories/VeneratedLocket.cs index ac2db5fa4b..91160edff1 100644 --- a/Items/Accessories/VeneratedLocket.cs +++ b/Items/Accessories/VeneratedLocket.cs @@ -1,4 +1,4 @@ - + using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/VitalJelly.cs b/Items/Accessories/VitalJelly.cs index 35dcd9f7d0..a532c509c6 100644 --- a/Items/Accessories/VitalJelly.cs +++ b/Items/Accessories/VitalJelly.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories diff --git a/Items/Accessories/VoidofExtinction.cs b/Items/Accessories/VoidofExtinction.cs index b19ff08fb0..a0c53e5fe5 100644 --- a/Items/Accessories/VoidofExtinction.cs +++ b/Items/Accessories/VoidofExtinction.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using System; diff --git a/Items/Accessories/Wings/CelestialTracers.cs b/Items/Accessories/Wings/CelestialTracers.cs index 2c44b2f125..3b52df128d 100644 --- a/Items/Accessories/Wings/CelestialTracers.cs +++ b/Items/Accessories/Wings/CelestialTracers.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Tiles.Furniture.CraftingStations; diff --git a/Items/Accessories/Wings/ElysianTracers.cs b/Items/Accessories/Wings/ElysianTracers.cs index 5813321aa9..db1c2f31b3 100644 --- a/Items/Accessories/Wings/ElysianTracers.cs +++ b/Items/Accessories/Wings/ElysianTracers.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; diff --git a/Items/Accessories/Wings/ElysianWings.cs b/Items/Accessories/Wings/ElysianWings.cs index 1de428e6b6..00fa3b003a 100644 --- a/Items/Accessories/Wings/ElysianWings.cs +++ b/Items/Accessories/Wings/ElysianWings.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Items/Accessories/Wings/InfinityBoots.cs b/Items/Accessories/Wings/InfinityBoots.cs index ade0756057..dc035315e3 100644 --- a/Items/Accessories/Wings/InfinityBoots.cs +++ b/Items/Accessories/Wings/InfinityBoots.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; diff --git a/Items/Accessories/Wings/MOAB.cs b/Items/Accessories/Wings/MOAB.cs index d0b81f25bd..7bb6e3b45d 100644 --- a/Items/Accessories/Wings/MOAB.cs +++ b/Items/Accessories/Wings/MOAB.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; diff --git a/Items/Accessories/Wings/SoulofCryogen.cs b/Items/Accessories/Wings/SoulofCryogen.cs index cb307a1303..ca69339bda 100644 --- a/Items/Accessories/Wings/SoulofCryogen.cs +++ b/Items/Accessories/Wings/SoulofCryogen.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; diff --git a/Items/Accessories/YharimsGift.cs b/Items/Accessories/YharimsGift.cs index bd898b736a..fabd3084d7 100644 --- a/Items/Accessories/YharimsGift.cs +++ b/Items/Accessories/YharimsGift.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Items/Accessories/YharimsInsignia.cs b/Items/Accessories/YharimsInsignia.cs index bdfd75b9c4..0c596447c4 100644 --- a/Items/Accessories/YharimsInsignia.cs +++ b/Items/Accessories/YharimsInsignia.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Ammo/AstralSolution.cs b/Items/Ammo/AstralSolution.cs index eb11992048..449e3c27d3 100644 --- a/Items/Ammo/AstralSolution.cs +++ b/Items/Ammo/AstralSolution.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Ammo/BloodRune.cs b/Items/Ammo/BloodRune.cs index 46f31b5047..2d90865bd1 100644 --- a/Items/Ammo/BloodRune.cs +++ b/Items/Ammo/BloodRune.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Magic; +using CalamityMod.Projectiles.Magic; using Terraria; using Terraria.ModLoader; diff --git a/Items/Armor/AerospecBreastplate.cs b/Items/Armor/AerospecBreastplate.cs index aa92807704..ce0533b5c2 100644 --- a/Items/Armor/AerospecBreastplate.cs +++ b/Items/Armor/AerospecBreastplate.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/AerospecHat.cs b/Items/Armor/AerospecHat.cs index 569427855b..281540bc79 100644 --- a/Items/Armor/AerospecHat.cs +++ b/Items/Armor/AerospecHat.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/AerospecHeadgear.cs b/Items/Armor/AerospecHeadgear.cs index d344d14dd4..f1ff8dfeb5 100644 --- a/Items/Armor/AerospecHeadgear.cs +++ b/Items/Armor/AerospecHeadgear.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/AerospecHelm.cs b/Items/Armor/AerospecHelm.cs index 683d65aad7..f150ad2d28 100644 --- a/Items/Armor/AerospecHelm.cs +++ b/Items/Armor/AerospecHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/AerospecHelmet.cs b/Items/Armor/AerospecHelmet.cs index 495d23c962..79efe6f96b 100644 --- a/Items/Armor/AerospecHelmet.cs +++ b/Items/Armor/AerospecHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; diff --git a/Items/Armor/AerospecHood.cs b/Items/Armor/AerospecHood.cs index 5bbf3b42dc..1bf782278c 100644 --- a/Items/Armor/AerospecHood.cs +++ b/Items/Armor/AerospecHood.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/AerospecLeggings.cs b/Items/Armor/AerospecLeggings.cs index 7f6de46848..6f76639062 100644 --- a/Items/Armor/AerospecLeggings.cs +++ b/Items/Armor/AerospecLeggings.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/AstralBreastplate.cs b/Items/Armor/AstralBreastplate.cs index 6ebe8b4b0a..8c1ee94320 100644 --- a/Items/Armor/AstralBreastplate.cs +++ b/Items/Armor/AstralBreastplate.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables; +using CalamityMod.Items.Placeables; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/AstralHelm.cs b/Items/Armor/AstralHelm.cs index b15aa82cbd..01855583cd 100644 --- a/Items/Armor/AstralHelm.cs +++ b/Items/Armor/AstralHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Placeables; using Terraria; using Terraria.ID; diff --git a/Items/Armor/AstralLeggings.cs b/Items/Armor/AstralLeggings.cs index c410fb56bf..e73d0d934a 100644 --- a/Items/Armor/AstralLeggings.cs +++ b/Items/Armor/AstralLeggings.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables; +using CalamityMod.Items.Placeables; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/AtaxiaArmor.cs b/Items/Armor/AtaxiaArmor.cs index abd671df04..cbdbe7177a 100644 --- a/Items/Armor/AtaxiaArmor.cs +++ b/Items/Armor/AtaxiaArmor.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/AtaxiaHeadgear.cs b/Items/Armor/AtaxiaHeadgear.cs index 413f44b1bb..fbba6b04f1 100644 --- a/Items/Armor/AtaxiaHeadgear.cs +++ b/Items/Armor/AtaxiaHeadgear.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/AtaxiaHelm.cs b/Items/Armor/AtaxiaHelm.cs index 6ec0e6dbe4..40fcb0cd07 100644 --- a/Items/Armor/AtaxiaHelm.cs +++ b/Items/Armor/AtaxiaHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/AtaxiaHelmet.cs b/Items/Armor/AtaxiaHelmet.cs index e91deb96a3..d29355e319 100644 --- a/Items/Armor/AtaxiaHelmet.cs +++ b/Items/Armor/AtaxiaHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; diff --git a/Items/Armor/AtaxiaHood.cs b/Items/Armor/AtaxiaHood.cs index 6b71af1b1a..23330ec8cd 100644 --- a/Items/Armor/AtaxiaHood.cs +++ b/Items/Armor/AtaxiaHood.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/AtaxiaMask.cs b/Items/Armor/AtaxiaMask.cs index ebee740c94..4299c241c8 100644 --- a/Items/Armor/AtaxiaMask.cs +++ b/Items/Armor/AtaxiaMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/AtaxiaSubligar.cs b/Items/Armor/AtaxiaSubligar.cs index d3329c6e16..182ce86fee 100644 --- a/Items/Armor/AtaxiaSubligar.cs +++ b/Items/Armor/AtaxiaSubligar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/AuricTeslaBodyArmor.cs b/Items/Armor/AuricTeslaBodyArmor.cs index c67b257148..7f41a3ee45 100644 --- a/Items/Armor/AuricTeslaBodyArmor.cs +++ b/Items/Armor/AuricTeslaBodyArmor.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; diff --git a/Items/Armor/AuricTeslaCuisses.cs b/Items/Armor/AuricTeslaCuisses.cs index cefc53a321..459ea221f7 100644 --- a/Items/Armor/AuricTeslaCuisses.cs +++ b/Items/Armor/AuricTeslaCuisses.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Armor/AuricTeslaHelm.cs b/Items/Armor/AuricTeslaHelm.cs index 6e320210be..7eb229155d 100644 --- a/Items/Armor/AuricTeslaHelm.cs +++ b/Items/Armor/AuricTeslaHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; diff --git a/Items/Armor/AuricTeslaHoodedFacemask.cs b/Items/Armor/AuricTeslaHoodedFacemask.cs index 19e573aa62..460b3a772f 100644 --- a/Items/Armor/AuricTeslaHoodedFacemask.cs +++ b/Items/Armor/AuricTeslaHoodedFacemask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; diff --git a/Items/Armor/AuricTeslaPlumedHelm.cs b/Items/Armor/AuricTeslaPlumedHelm.cs index 3005be8296..57d097ff52 100644 --- a/Items/Armor/AuricTeslaPlumedHelm.cs +++ b/Items/Armor/AuricTeslaPlumedHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; diff --git a/Items/Armor/AuricTeslaSpaceHelmet.cs b/Items/Armor/AuricTeslaSpaceHelmet.cs index 296e19fd3a..ad7e3eabbb 100644 --- a/Items/Armor/AuricTeslaSpaceHelmet.cs +++ b/Items/Armor/AuricTeslaSpaceHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; diff --git a/Items/Armor/AuricTeslaWireHemmedVisage.cs b/Items/Armor/AuricTeslaWireHemmedVisage.cs index 87dc2fa2e6..7307872955 100644 --- a/Items/Armor/AuricTeslaWireHemmedVisage.cs +++ b/Items/Armor/AuricTeslaWireHemmedVisage.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; diff --git a/Items/Armor/BloodflareBodyArmor.cs b/Items/Armor/BloodflareBodyArmor.cs index e714271439..231f65334a 100644 --- a/Items/Armor/BloodflareBodyArmor.cs +++ b/Items/Armor/BloodflareBodyArmor.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/BloodflareCuisses.cs b/Items/Armor/BloodflareCuisses.cs index 003c7e6a4f..423382683e 100644 --- a/Items/Armor/BloodflareCuisses.cs +++ b/Items/Armor/BloodflareCuisses.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/BloodflareHelm.cs b/Items/Armor/BloodflareHelm.cs index 22cba89c92..5cb35e9c2f 100644 --- a/Items/Armor/BloodflareHelm.cs +++ b/Items/Armor/BloodflareHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/BloodflareHelmet.cs b/Items/Armor/BloodflareHelmet.cs index ec7066ec40..eced0d7cce 100644 --- a/Items/Armor/BloodflareHelmet.cs +++ b/Items/Armor/BloodflareHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/BloodflareHornedHelm.cs b/Items/Armor/BloodflareHornedHelm.cs index 8762114229..2169c9027f 100644 --- a/Items/Armor/BloodflareHornedHelm.cs +++ b/Items/Armor/BloodflareHornedHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/BloodflareHornedMask.cs b/Items/Armor/BloodflareHornedMask.cs index a778d484ae..0b9fcc6490 100644 --- a/Items/Armor/BloodflareHornedMask.cs +++ b/Items/Armor/BloodflareHornedMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/BloodflareMask.cs b/Items/Armor/BloodflareMask.cs index 67839aeb58..6754860b83 100644 --- a/Items/Armor/BloodflareMask.cs +++ b/Items/Armor/BloodflareMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/BrimflameBoots.cs b/Items/Armor/BrimflameBoots.cs index 59929a06f5..505b4f5002 100644 --- a/Items/Armor/BrimflameBoots.cs +++ b/Items/Armor/BrimflameBoots.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/BrimflameRobes.cs b/Items/Armor/BrimflameRobes.cs index f1ab7b1ac2..7019f705a3 100644 --- a/Items/Armor/BrimflameRobes.cs +++ b/Items/Armor/BrimflameRobes.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/BrimflameScowl.cs b/Items/Armor/BrimflameScowl.cs index 3fc8cc75af..68b81c9435 100644 --- a/Items/Armor/BrimflameScowl.cs +++ b/Items/Armor/BrimflameScowl.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Cooldowns; +using CalamityMod.Buffs.Cooldowns; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; diff --git a/Items/Armor/DaedalusBreastplate.cs b/Items/Armor/DaedalusBreastplate.cs index 35a2b3f84d..273c78f3b1 100644 --- a/Items/Armor/DaedalusBreastplate.cs +++ b/Items/Armor/DaedalusBreastplate.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/DaedalusHat.cs b/Items/Armor/DaedalusHat.cs index 7218d53da5..38a890005f 100644 --- a/Items/Armor/DaedalusHat.cs +++ b/Items/Armor/DaedalusHat.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/DaedalusHeadgear.cs b/Items/Armor/DaedalusHeadgear.cs index 644fd96189..7de730e8fd 100644 --- a/Items/Armor/DaedalusHeadgear.cs +++ b/Items/Armor/DaedalusHeadgear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; diff --git a/Items/Armor/DaedalusHelm.cs b/Items/Armor/DaedalusHelm.cs index 8e7933371b..466ef8b65d 100644 --- a/Items/Armor/DaedalusHelm.cs +++ b/Items/Armor/DaedalusHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/DaedalusHelmet.cs b/Items/Armor/DaedalusHelmet.cs index c2195bd97e..e4d25a333b 100644 --- a/Items/Armor/DaedalusHelmet.cs +++ b/Items/Armor/DaedalusHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/DaedalusLeggings.cs b/Items/Armor/DaedalusLeggings.cs index 1a520cb2ef..f7ef4d1e62 100644 --- a/Items/Armor/DaedalusLeggings.cs +++ b/Items/Armor/DaedalusLeggings.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/DaedalusVisor.cs b/Items/Armor/DaedalusVisor.cs index 8f745ff2be..1fee11c457 100644 --- a/Items/Armor/DaedalusVisor.cs +++ b/Items/Armor/DaedalusVisor.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/DemonshadeBreastplate.cs b/Items/Armor/DemonshadeBreastplate.cs index 6793f8828c..1614e94852 100644 --- a/Items/Armor/DemonshadeBreastplate.cs +++ b/Items/Armor/DemonshadeBreastplate.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Armor/DemonshadeGreaves.cs b/Items/Armor/DemonshadeGreaves.cs index 946fe42d19..246b10d6b0 100644 --- a/Items/Armor/DemonshadeGreaves.cs +++ b/Items/Armor/DemonshadeGreaves.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Armor/DemonshadeHelm.cs b/Items/Armor/DemonshadeHelm.cs index 15ca18f95d..3b0de642b0 100644 --- a/Items/Armor/DemonshadeHelm.cs +++ b/Items/Armor/DemonshadeHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Typeless; diff --git a/Items/Armor/FathomSwarmerBoots.cs b/Items/Armor/FathomSwarmerBoots.cs index 71e9c18230..9fd55c2784 100644 --- a/Items/Armor/FathomSwarmerBoots.cs +++ b/Items/Armor/FathomSwarmerBoots.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using Terraria; using Terraria.ID; diff --git a/Items/Armor/FathomSwarmerBreastplate.cs b/Items/Armor/FathomSwarmerBreastplate.cs index 19963235bd..c40488a041 100644 --- a/Items/Armor/FathomSwarmerBreastplate.cs +++ b/Items/Armor/FathomSwarmerBreastplate.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using Terraria; using Terraria.ID; diff --git a/Items/Armor/FathomSwarmerVisage.cs b/Items/Armor/FathomSwarmerVisage.cs index 79848c149e..28724f85b3 100644 --- a/Items/Armor/FathomSwarmerVisage.cs +++ b/Items/Armor/FathomSwarmerVisage.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; diff --git a/Items/Armor/GodSlayerChestplate.cs b/Items/Armor/GodSlayerChestplate.cs index c6056bf119..8bb99cf580 100644 --- a/Items/Armor/GodSlayerChestplate.cs +++ b/Items/Armor/GodSlayerChestplate.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Armor/GodSlayerHelm.cs b/Items/Armor/GodSlayerHelm.cs index 48eee14bbe..3f91c72339 100644 --- a/Items/Armor/GodSlayerHelm.cs +++ b/Items/Armor/GodSlayerHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Armor/GodSlayerHelmet.cs b/Items/Armor/GodSlayerHelmet.cs index 9c5e10f08c..783b0663d4 100644 --- a/Items/Armor/GodSlayerHelmet.cs +++ b/Items/Armor/GodSlayerHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Armor/GodSlayerHornedHelm.cs b/Items/Armor/GodSlayerHornedHelm.cs index 279998cda0..6f60df9410 100644 --- a/Items/Armor/GodSlayerHornedHelm.cs +++ b/Items/Armor/GodSlayerHornedHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; diff --git a/Items/Armor/GodSlayerLeggings.cs b/Items/Armor/GodSlayerLeggings.cs index c7f5a9546b..46c8add575 100644 --- a/Items/Armor/GodSlayerLeggings.cs +++ b/Items/Armor/GodSlayerLeggings.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.ModLoader; diff --git a/Items/Armor/GodSlayerMask.cs b/Items/Armor/GodSlayerMask.cs index cf8f6ff59d..4987995557 100644 --- a/Items/Armor/GodSlayerMask.cs +++ b/Items/Armor/GodSlayerMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Armor/GodSlayerVisage.cs b/Items/Armor/GodSlayerVisage.cs index 82599bd18a..b3b7dc8bd5 100644 --- a/Items/Armor/GodSlayerVisage.cs +++ b/Items/Armor/GodSlayerVisage.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Armor/ReaverCap.cs b/Items/Armor/ReaverCap.cs index 546adfb0c3..a090524d3c 100644 --- a/Items/Armor/ReaverCap.cs +++ b/Items/Armor/ReaverCap.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/ReaverCuisses.cs b/Items/Armor/ReaverCuisses.cs index e015a2f62c..d9d5a2e317 100644 --- a/Items/Armor/ReaverCuisses.cs +++ b/Items/Armor/ReaverCuisses.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/ReaverHelm.cs b/Items/Armor/ReaverHelm.cs index 8599ad0dab..2cfc20f457 100644 --- a/Items/Armor/ReaverHelm.cs +++ b/Items/Armor/ReaverHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/ReaverHelmet.cs b/Items/Armor/ReaverHelmet.cs index 4030bf53d2..b85b0044f8 100644 --- a/Items/Armor/ReaverHelmet.cs +++ b/Items/Armor/ReaverHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; diff --git a/Items/Armor/ReaverMask.cs b/Items/Armor/ReaverMask.cs index ec0d2fda32..2c17859d9b 100644 --- a/Items/Armor/ReaverMask.cs +++ b/Items/Armor/ReaverMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/ReaverScaleMail.cs b/Items/Armor/ReaverScaleMail.cs index 241ee046f5..58a6026beb 100644 --- a/Items/Armor/ReaverScaleMail.cs +++ b/Items/Armor/ReaverScaleMail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/ReaverVisage.cs b/Items/Armor/ReaverVisage.cs index 479a3bdec3..e9beadc749 100644 --- a/Items/Armor/ReaverVisage.cs +++ b/Items/Armor/ReaverVisage.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/ShroomiteVisage.cs b/Items/Armor/ShroomiteVisage.cs index ec64249583..acda527210 100644 --- a/Items/Armor/ShroomiteVisage.cs +++ b/Items/Armor/ShroomiteVisage.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/SilvaArmor.cs b/Items/Armor/SilvaArmor.cs index 04afe120b1..1e18325658 100644 --- a/Items/Armor/SilvaArmor.cs +++ b/Items/Armor/SilvaArmor.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Tiles.Furniture.CraftingStations; diff --git a/Items/Armor/SilvaHelm.cs b/Items/Armor/SilvaHelm.cs index 3e3c7331a9..71c350f7b3 100644 --- a/Items/Armor/SilvaHelm.cs +++ b/Items/Armor/SilvaHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Tiles.Furniture.CraftingStations; diff --git a/Items/Armor/SilvaHelmet.cs b/Items/Armor/SilvaHelmet.cs index 57f5e2eccf..44a7107719 100644 --- a/Items/Armor/SilvaHelmet.cs +++ b/Items/Armor/SilvaHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; diff --git a/Items/Armor/SilvaHornedHelm.cs b/Items/Armor/SilvaHornedHelm.cs index b6b75bdc0d..5b292d01ac 100644 --- a/Items/Armor/SilvaHornedHelm.cs +++ b/Items/Armor/SilvaHornedHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Tiles.Furniture.CraftingStations; diff --git a/Items/Armor/SilvaLeggings.cs b/Items/Armor/SilvaLeggings.cs index f5fb48f192..ce4cddd912 100644 --- a/Items/Armor/SilvaLeggings.cs +++ b/Items/Armor/SilvaLeggings.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; diff --git a/Items/Armor/SilvaMask.cs b/Items/Armor/SilvaMask.cs index a937ccc73f..07cc847b99 100644 --- a/Items/Armor/SilvaMask.cs +++ b/Items/Armor/SilvaMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Tiles.Furniture.CraftingStations; diff --git a/Items/Armor/SilvaMaskedCap.cs b/Items/Armor/SilvaMaskedCap.cs index 9e1814096b..b36548d93a 100644 --- a/Items/Armor/SilvaMaskedCap.cs +++ b/Items/Armor/SilvaMaskedCap.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Tiles.Furniture.CraftingStations; diff --git a/Items/Armor/SnowRuffianChestplate.cs b/Items/Armor/SnowRuffianChestplate.cs index fa20deb3a9..20ea02f31f 100644 --- a/Items/Armor/SnowRuffianChestplate.cs +++ b/Items/Armor/SnowRuffianChestplate.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/SnowRuffianGreaves.cs b/Items/Armor/SnowRuffianGreaves.cs index 28c264575c..c63ea3524a 100644 --- a/Items/Armor/SnowRuffianGreaves.cs +++ b/Items/Armor/SnowRuffianGreaves.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/SnowRuffianMask.cs b/Items/Armor/SnowRuffianMask.cs index ed0e186674..34cdf2b0e5 100644 --- a/Items/Armor/SnowRuffianMask.cs +++ b/Items/Armor/SnowRuffianMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/StatigelArmor.cs b/Items/Armor/StatigelArmor.cs index 8179ae6847..8e5cd4fac1 100644 --- a/Items/Armor/StatigelArmor.cs +++ b/Items/Armor/StatigelArmor.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/StatigelCap.cs b/Items/Armor/StatigelCap.cs index f60ec36077..093fb17a08 100644 --- a/Items/Armor/StatigelCap.cs +++ b/Items/Armor/StatigelCap.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/StatigelGreaves.cs b/Items/Armor/StatigelGreaves.cs index c3fcc0f3dc..4391101bd5 100644 --- a/Items/Armor/StatigelGreaves.cs +++ b/Items/Armor/StatigelGreaves.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/StatigelHeadgear.cs b/Items/Armor/StatigelHeadgear.cs index b9ac4e47e4..ca3d139348 100644 --- a/Items/Armor/StatigelHeadgear.cs +++ b/Items/Armor/StatigelHeadgear.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/StatigelHelm.cs b/Items/Armor/StatigelHelm.cs index 9d16912b4b..657c49d9c9 100644 --- a/Items/Armor/StatigelHelm.cs +++ b/Items/Armor/StatigelHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/StatigelHood.cs b/Items/Armor/StatigelHood.cs index aa52185569..da4fd79c39 100644 --- a/Items/Armor/StatigelHood.cs +++ b/Items/Armor/StatigelHood.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; diff --git a/Items/Armor/StatigelMask.cs b/Items/Armor/StatigelMask.cs index 1d61ce5748..15272d8efa 100644 --- a/Items/Armor/StatigelMask.cs +++ b/Items/Armor/StatigelMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/SulfurBreastplate.cs b/Items/Armor/SulfurBreastplate.cs index 023a39e54d..05e63bca52 100644 --- a/Items/Armor/SulfurBreastplate.cs +++ b/Items/Armor/SulfurBreastplate.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Weapons.Rogue; using Terraria; diff --git a/Items/Armor/SulfurHelmet.cs b/Items/Armor/SulfurHelmet.cs index 4ffe68f177..b4882a1266 100644 --- a/Items/Armor/SulfurHelmet.cs +++ b/Items/Armor/SulfurHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Weapons.Rogue; diff --git a/Items/Armor/SulfurLeggings.cs b/Items/Armor/SulfurLeggings.cs index 94fd70f7ab..e67f26394c 100644 --- a/Items/Armor/SulfurLeggings.cs +++ b/Items/Armor/SulfurLeggings.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Weapons.Rogue; using Terraria; diff --git a/Items/Armor/TarragonBreastplate.cs b/Items/Armor/TarragonBreastplate.cs index c6bebaa258..209474037e 100644 --- a/Items/Armor/TarragonBreastplate.cs +++ b/Items/Armor/TarragonBreastplate.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/TarragonHelm.cs b/Items/Armor/TarragonHelm.cs index 24b488fc9c..f9f079167f 100644 --- a/Items/Armor/TarragonHelm.cs +++ b/Items/Armor/TarragonHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/TarragonHelmet.cs b/Items/Armor/TarragonHelmet.cs index eb1d9f64e0..d3a76200bf 100644 --- a/Items/Armor/TarragonHelmet.cs +++ b/Items/Armor/TarragonHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/TarragonHornedHelm.cs b/Items/Armor/TarragonHornedHelm.cs index 351ff9f4dc..ff43b9c950 100644 --- a/Items/Armor/TarragonHornedHelm.cs +++ b/Items/Armor/TarragonHornedHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/TarragonLeggings.cs b/Items/Armor/TarragonLeggings.cs index 4c2bdeed83..486fdeee85 100644 --- a/Items/Armor/TarragonLeggings.cs +++ b/Items/Armor/TarragonLeggings.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/TarragonMask.cs b/Items/Armor/TarragonMask.cs index 4d162d5f89..a73d7c459e 100644 --- a/Items/Armor/TarragonMask.cs +++ b/Items/Armor/TarragonMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/TarragonVisage.cs b/Items/Armor/TarragonVisage.cs index 412caff2ad..52835aa915 100644 --- a/Items/Armor/TarragonVisage.cs +++ b/Items/Armor/TarragonVisage.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/Vanity/ApronOfAffection.cs b/Items/Armor/Vanity/ApronOfAffection.cs index e22f05af4b..ae2fb745c8 100644 --- a/Items/Armor/Vanity/ApronOfAffection.cs +++ b/Items/Armor/Vanity/ApronOfAffection.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/Vanity/CeaselessVoidMask.cs b/Items/Armor/Vanity/CeaselessVoidMask.cs index 1b063be6a7..6dbd98e9c5 100644 --- a/Items/Armor/Vanity/CeaselessVoidMask.cs +++ b/Items/Armor/Vanity/CeaselessVoidMask.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Vanity { diff --git a/Items/Armor/Vanity/RavagerMask.cs b/Items/Armor/Vanity/RavagerMask.cs index fe021ea79f..9d007ff5c8 100644 --- a/Items/Armor/Vanity/RavagerMask.cs +++ b/Items/Armor/Vanity/RavagerMask.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Vanity { diff --git a/Items/Armor/Vanity/SignusMask.cs b/Items/Armor/Vanity/SignusMask.cs index 785769f7a3..7705bfa90e 100644 --- a/Items/Armor/Vanity/SignusMask.cs +++ b/Items/Armor/Vanity/SignusMask.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Vanity { diff --git a/Items/Armor/Vanity/StormWeaverMask.cs b/Items/Armor/Vanity/StormWeaverMask.cs index e77cac7f78..229a902909 100644 --- a/Items/Armor/Vanity/StormWeaverMask.cs +++ b/Items/Armor/Vanity/StormWeaverMask.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Vanity { diff --git a/Items/Armor/VictideBreastplate.cs b/Items/Armor/VictideBreastplate.cs index ced886f11d..00312c7750 100644 --- a/Items/Armor/VictideBreastplate.cs +++ b/Items/Armor/VictideBreastplate.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/VictideHeadgear.cs b/Items/Armor/VictideHeadgear.cs index b71e5a1622..6cf8618ca4 100644 --- a/Items/Armor/VictideHeadgear.cs +++ b/Items/Armor/VictideHeadgear.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/VictideHelm.cs b/Items/Armor/VictideHelm.cs index 7d719dc2bb..7d1d7582b0 100644 --- a/Items/Armor/VictideHelm.cs +++ b/Items/Armor/VictideHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/VictideHelmet.cs b/Items/Armor/VictideHelmet.cs index 27dc554057..8f8c1a1996 100644 --- a/Items/Armor/VictideHelmet.cs +++ b/Items/Armor/VictideHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; diff --git a/Items/Armor/VictideLeggings.cs b/Items/Armor/VictideLeggings.cs index a4a0d24fef..6a9b2fc296 100644 --- a/Items/Armor/VictideLeggings.cs +++ b/Items/Armor/VictideLeggings.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/VictideMask.cs b/Items/Armor/VictideMask.cs index 8f38e533f4..8cd1e26784 100644 --- a/Items/Armor/VictideMask.cs +++ b/Items/Armor/VictideMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/VictideVisage.cs b/Items/Armor/VictideVisage.cs index c055636b93..86641b1a04 100644 --- a/Items/Armor/VictideVisage.cs +++ b/Items/Armor/VictideVisage.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/WulfrumArmor.cs b/Items/Armor/WulfrumArmor.cs index c5a633b03d..184f6f3e39 100644 --- a/Items/Armor/WulfrumArmor.cs +++ b/Items/Armor/WulfrumArmor.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/WulfrumHeadgear.cs b/Items/Armor/WulfrumHeadgear.cs index 5b795e227a..6cdfc216f8 100644 --- a/Items/Armor/WulfrumHeadgear.cs +++ b/Items/Armor/WulfrumHeadgear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/WulfrumHelm.cs b/Items/Armor/WulfrumHelm.cs index ca3324a6b6..6282432f34 100644 --- a/Items/Armor/WulfrumHelm.cs +++ b/Items/Armor/WulfrumHelm.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/WulfrumHelmet.cs b/Items/Armor/WulfrumHelmet.cs index fb1924bdc5..b5491ec39c 100644 --- a/Items/Armor/WulfrumHelmet.cs +++ b/Items/Armor/WulfrumHelmet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/WulfrumHood.cs b/Items/Armor/WulfrumHood.cs index eb45a6550b..ae10a22c7e 100644 --- a/Items/Armor/WulfrumHood.cs +++ b/Items/Armor/WulfrumHood.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/WulfrumLeggings.cs b/Items/Armor/WulfrumLeggings.cs index 7616a914df..b769ea91a3 100644 --- a/Items/Armor/WulfrumLeggings.cs +++ b/Items/Armor/WulfrumLeggings.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/WulfrumMask.cs b/Items/Armor/WulfrumMask.cs index c87bb01370..75e87db6d0 100644 --- a/Items/Armor/WulfrumMask.cs +++ b/Items/Armor/WulfrumMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/XerocCuisses.cs b/Items/Armor/XerocCuisses.cs index 78a8171871..7d20d317bd 100644 --- a/Items/Armor/XerocCuisses.cs +++ b/Items/Armor/XerocCuisses.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Armor/XerocMask.cs b/Items/Armor/XerocMask.cs index 8cff77074b..679aa57301 100644 --- a/Items/Armor/XerocMask.cs +++ b/Items/Armor/XerocMask.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/Armor/XerocPlateMail.cs b/Items/Armor/XerocPlateMail.cs index 98fc0c6407..3d439a6533 100644 --- a/Items/Armor/XerocPlateMail.cs +++ b/Items/Armor/XerocPlateMail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 97b52f456c..9105a52ca3 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -317,7 +317,7 @@ namespace CalamityMod.Items { if (player.whoAmI == Main.myPlayer) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 20); + Main.PlaySound(SoundID.Item20, (int)player.position.X, (int)player.position.Y); float spread = 45f * 0.0174f; double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; double deltaAngle = spread / 8f; diff --git a/Items/Critters/BabyFlakHermit.cs b/Items/Critters/BabyFlakHermit.cs index a7a586fbca..fd00124e2a 100644 --- a/Items/Critters/BabyFlakHermit.cs +++ b/Items/Critters/BabyFlakHermit.cs @@ -1,6 +1,7 @@ using CalamityMod.NPCs.AcidRain; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Critters { @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Critters public override void SetDefaults() { - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.autoReuse = true; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Critters/BabyGhostBellItem.cs b/Items/Critters/BabyGhostBellItem.cs index e1a4250d1d..f55443fb8c 100644 --- a/Items/Critters/BabyGhostBellItem.cs +++ b/Items/Critters/BabyGhostBellItem.cs @@ -1,6 +1,7 @@ using CalamityMod.NPCs.SunkenSea; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Critters { @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Critters public override void SetDefaults() { - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.autoReuse = true; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Critters/PiggyItem.cs b/Items/Critters/PiggyItem.cs index 9cb6f11ef1..a323645466 100644 --- a/Items/Critters/PiggyItem.cs +++ b/Items/Critters/PiggyItem.cs @@ -1,5 +1,6 @@ using CalamityMod.NPCs.NormalNPCs; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Critters @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Critters public override void SetDefaults() { - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.autoReuse = true; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Critters/SeaMinnowItem.cs b/Items/Critters/SeaMinnowItem.cs index 11565c06cb..8ac32c7b8c 100644 --- a/Items/Critters/SeaMinnowItem.cs +++ b/Items/Critters/SeaMinnowItem.cs @@ -1,5 +1,6 @@ using CalamityMod.NPCs.SunkenSea; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Critters @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Critters public override void SetDefaults() { - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.autoReuse = true; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/Critters/TwinklerItem.cs b/Items/Critters/TwinklerItem.cs index db7cc03a0b..8539221ec8 100644 --- a/Items/Critters/TwinklerItem.cs +++ b/Items/Critters/TwinklerItem.cs @@ -1,5 +1,6 @@ -using CalamityMod.NPCs.Astral; +using CalamityMod.NPCs.Astral; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Critters @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Critters public override void SetDefaults() { - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.autoReuse = true; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/DifficultyItems/Armageddon.cs b/Items/DifficultyItems/Armageddon.cs index f022838ebf..c452c64f25 100644 --- a/Items/DifficultyItems/Armageddon.cs +++ b/Items/DifficultyItems/Armageddon.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.SlimeGod; +using CalamityMod.NPCs.SlimeGod; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; @@ -26,7 +26,7 @@ namespace CalamityMod.Items.DifficultyItems item.height = 28; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item123; item.consumable = false; } diff --git a/Items/DifficultyItems/Death.cs b/Items/DifficultyItems/Death.cs index 41cc8234d4..406156cfad 100644 --- a/Items/DifficultyItems/Death.cs +++ b/Items/DifficultyItems/Death.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.SlimeGod; +using CalamityMod.NPCs.SlimeGod; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; @@ -35,7 +35,7 @@ namespace CalamityMod.Items.DifficultyItems item.height = 28; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item119; item.consumable = false; } diff --git a/Items/DifficultyItems/DefiledRune.cs b/Items/DifficultyItems/DefiledRune.cs index 0edea71292..da9bc37a5c 100644 --- a/Items/DifficultyItems/DefiledRune.cs +++ b/Items/DifficultyItems/DefiledRune.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.SlimeGod; +using CalamityMod.NPCs.SlimeGod; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.DifficultyItems item.height = 28; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item100; item.consumable = false; } diff --git a/Items/DifficultyItems/IronHeart.cs b/Items/DifficultyItems/IronHeart.cs index af185ba0a3..2d2a7a9ac6 100644 --- a/Items/DifficultyItems/IronHeart.cs +++ b/Items/DifficultyItems/IronHeart.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.SlimeGod; +using CalamityMod.NPCs.SlimeGod; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; @@ -28,7 +28,7 @@ namespace CalamityMod.Items.DifficultyItems item.rare = 9; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item119; item.consumable = false; } diff --git a/Items/DifficultyItems/MLGRune.cs b/Items/DifficultyItems/MLGRune.cs index 6c5caf05ec..2903b8fa98 100644 --- a/Items/DifficultyItems/MLGRune.cs +++ b/Items/DifficultyItems/MLGRune.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -22,7 +22,7 @@ namespace CalamityMod.Items.DifficultyItems item.rare = 1; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item119; item.consumable = true; } diff --git a/Items/DifficultyItems/Revenge.cs b/Items/DifficultyItems/Revenge.cs index 536cf77c49..f72e50ece4 100644 --- a/Items/DifficultyItems/Revenge.cs +++ b/Items/DifficultyItems/Revenge.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.SlimeGod; +using CalamityMod.NPCs.SlimeGod; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; @@ -40,7 +40,7 @@ namespace CalamityMod.Items.DifficultyItems item.height = 28; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.rare = 11; item.UseSound = SoundID.Item119; item.consumable = false; diff --git a/Items/Dyes/HairDye/AdrenalineHairDye.cs b/Items/Dyes/HairDye/AdrenalineHairDye.cs index 6d07db5548..da4103197d 100644 --- a/Items/Dyes/HairDye/AdrenalineHairDye.cs +++ b/Items/Dyes/HairDye/AdrenalineHairDye.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Dyes.HairDye item.value = Item.buyPrice(gold: 7, silver: 50); item.rare = 2; item.UseSound = SoundID.Item3; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.useTurn = true; item.useAnimation = 17; item.useTime = 17; diff --git a/Items/Dyes/HairDye/RageHairDye.cs b/Items/Dyes/HairDye/RageHairDye.cs index 373d925b3c..d9da0f6f72 100644 --- a/Items/Dyes/HairDye/RageHairDye.cs +++ b/Items/Dyes/HairDye/RageHairDye.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Dyes.HairDye item.value = Item.buyPrice(gold: 7, silver: 50); item.rare = 2; item.UseSound = SoundID.Item3; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.useTurn = true; item.useAnimation = 17; item.useTime = 17; diff --git a/Items/Dyes/HairDye/StealthHairDye.cs b/Items/Dyes/HairDye/StealthHairDye.cs index ef877f9d33..bd0da7a33c 100644 --- a/Items/Dyes/HairDye/StealthHairDye.cs +++ b/Items/Dyes/HairDye/StealthHairDye.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Dyes.HairDye item.value = Item.buyPrice(gold: 5); item.rare = 2; item.UseSound = SoundID.Item3; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.useTurn = true; item.useAnimation = 17; item.useTime = 17; diff --git a/Items/Dyes/HairDye/WingTimeHairDye.cs b/Items/Dyes/HairDye/WingTimeHairDye.cs index 7f77cefa55..74baadd340 100644 --- a/Items/Dyes/HairDye/WingTimeHairDye.cs +++ b/Items/Dyes/HairDye/WingTimeHairDye.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Dyes.HairDye item.value = Item.buyPrice(gold: 7, silver: 50); item.rare = 2; item.UseSound = SoundID.Item3; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.useTurn = true; item.useAnimation = 17; item.useTime = 17; diff --git a/Items/Fishing/AstralCatches/AstralCrate.cs b/Items/Fishing/AstralCatches/AstralCrate.cs index 53c08f1100..2e29d34eed 100644 --- a/Items/Fishing/AstralCatches/AstralCrate.cs +++ b/Items/Fishing/AstralCatches/AstralCrate.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; } public override bool CanRightClick() => true; diff --git a/Items/Fishing/AstralCatches/GacruxianMollusk.cs b/Items/Fishing/AstralCatches/GacruxianMollusk.cs index dbc94665e7..f8d29162a1 100644 --- a/Items/Fishing/AstralCatches/GacruxianMollusk.cs +++ b/Items/Fishing/AstralCatches/GacruxianMollusk.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches item.autoReuse = true; item.useTime = 26; item.useAnimation = 26; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.width = 24; item.height = 22; item.UseSound = SoundID.Item1; diff --git a/Items/Fishing/AstralCatches/PolarisParrotfish.cs b/Items/Fishing/AstralCatches/PolarisParrotfish.cs index e44f282be1..8a313d2556 100644 --- a/Items/Fishing/AstralCatches/PolarisParrotfish.cs +++ b/Items/Fishing/AstralCatches/PolarisParrotfish.cs @@ -2,6 +2,7 @@ using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Fishing.AstralCatches @@ -25,7 +26,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches item.height = 34; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.25f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs b/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs index e4d965dc09..4ea4280573 100644 --- a/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs +++ b/Items/Fishing/BrimstoneCragCatches/Bloodfin.cs @@ -27,7 +27,7 @@ The life regen boost is stronger if below 75% health"); item.Calamity().customRarity = CalamityRarity.PureGreen; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.healLife = 240; diff --git a/Items/Fishing/BrimstoneCragCatches/BrimstoneCrate.cs b/Items/Fishing/BrimstoneCragCatches/BrimstoneCrate.cs index d98e589ed8..0d0297c164 100644 --- a/Items/Fishing/BrimstoneCragCatches/BrimstoneCrate.cs +++ b/Items/Fishing/BrimstoneCragCatches/BrimstoneCrate.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; } public override bool CanRightClick() => true; diff --git a/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs b/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs index 7bbc9dc760..5062198388 100644 --- a/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs +++ b/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs @@ -26,7 +26,7 @@ Revenge is a dish best served flaming hot"); item.height = 30; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Fishing/EnchantedStarfish.cs b/Items/Fishing/EnchantedStarfish.cs index 908c661ced..6adc6b54b9 100644 --- a/Items/Fishing/EnchantedStarfish.cs +++ b/Items/Fishing/EnchantedStarfish.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Fishing item.height = 26; item.useAnimation = 30; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item29; item.consumable = true; item.maxStack = 999; diff --git a/Items/Fishing/FishingRods/ChaoticSpreadRod.cs b/Items/Fishing/FishingRods/ChaoticSpreadRod.cs index 8aa6ced860..2364cba9cf 100644 --- a/Items/Fishing/FishingRods/ChaoticSpreadRod.cs +++ b/Items/Fishing/FishingRods/ChaoticSpreadRod.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Fishing.FishingRods item.height = 28; item.useAnimation = 8; item.useTime = 8; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.fishingPole = 45; item.shootSpeed = 17f; diff --git a/Items/Fishing/FishingRods/EarlyBloomRod.cs b/Items/Fishing/FishingRods/EarlyBloomRod.cs index d174f6aa54..cc2f30f1b1 100644 --- a/Items/Fishing/FishingRods/EarlyBloomRod.cs +++ b/Items/Fishing/FishingRods/EarlyBloomRod.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Fishing.FishingRods item.height = 28; item.useAnimation = 8; item.useTime = 8; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.fishingPole = 60; item.shootSpeed = 18f; diff --git a/Items/Fishing/FishingRods/FeralDoubleRod.cs b/Items/Fishing/FishingRods/FeralDoubleRod.cs index d638eec2cc..c6c8a4fa02 100644 --- a/Items/Fishing/FishingRods/FeralDoubleRod.cs +++ b/Items/Fishing/FishingRods/FeralDoubleRod.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Fishing.FishingRods item.height = 28; item.useAnimation = 8; item.useTime = 8; - item.useStyle = 1; - item.UseSound = SoundID.Item1; + item.useStyle = ItemUseStyleID.SwingThrow; + item.UseSound = SoundID.Item1; item.fishingPole = 40; item.shootSpeed = 16f; item.shoot = ModContent.ProjectileType(); diff --git a/Items/Fishing/FishingRods/HeronRod.cs b/Items/Fishing/FishingRods/HeronRod.cs index cad4f62081..9ec947ac88 100644 --- a/Items/Fishing/FishingRods/HeronRod.cs +++ b/Items/Fishing/FishingRods/HeronRod.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Fishing.FishingRods item.height = 28; item.useAnimation = 8; item.useTime = 8; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.fishingPole = 25; item.shootSpeed = 14.5f; diff --git a/Items/Fishing/FishingRods/NavyFishingRod.cs b/Items/Fishing/FishingRods/NavyFishingRod.cs index 31a6df3557..7537f507ae 100644 --- a/Items/Fishing/FishingRods/NavyFishingRod.cs +++ b/Items/Fishing/FishingRods/NavyFishingRod.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Fishing.FishingRods item.height = 28; item.useAnimation = 8; item.useTime = 8; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.fishingPole = 20; item.shootSpeed = 13f; diff --git a/Items/Fishing/FishingRods/SlurperPole.cs b/Items/Fishing/FishingRods/SlurperPole.cs index 289ab66039..9e54af8aed 100644 --- a/Items/Fishing/FishingRods/SlurperPole.cs +++ b/Items/Fishing/FishingRods/SlurperPole.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Fishing.FishingRods item.height = 28; item.useAnimation = 8; item.useTime = 8; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.fishingPole = 25; item.shootSpeed = 14f; diff --git a/Items/Fishing/FishingRods/TheDevourerofCods.cs b/Items/Fishing/FishingRods/TheDevourerofCods.cs index 6390c1e957..9c1a665ba6 100644 --- a/Items/Fishing/FishingRods/TheDevourerofCods.cs +++ b/Items/Fishing/FishingRods/TheDevourerofCods.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Fishing.FishingRods item.height = 28; item.useAnimation = 8; item.useTime = 8; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.fishingPole = 75; item.shootSpeed = 20f; diff --git a/Items/Fishing/FishingRods/VerstaltiteFishingRod.cs b/Items/Fishing/FishingRods/VerstaltiteFishingRod.cs index 21ac4728a0..41d1759d95 100644 --- a/Items/Fishing/FishingRods/VerstaltiteFishingRod.cs +++ b/Items/Fishing/FishingRods/VerstaltiteFishingRod.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Fishing.FishingRods item.height = 28; item.useAnimation = 8; item.useTime = 8; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.fishingPole = 35; item.shootSpeed = 15f; diff --git a/Items/Fishing/FishingRods/WulfrumRod.cs b/Items/Fishing/FishingRods/WulfrumRod.cs index bad16d5d96..67b104c255 100644 --- a/Items/Fishing/FishingRods/WulfrumRod.cs +++ b/Items/Fishing/FishingRods/WulfrumRod.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Fishing.FishingRods item.height = 28; item.useAnimation = 8; item.useTime = 8; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.rare = 1; item.fishingPole = 10; diff --git a/Items/Fishing/Spadefish.cs b/Items/Fishing/Spadefish.cs index c7243ea999..ebf5e5f372 100644 --- a/Items/Fishing/Spadefish.cs +++ b/Items/Fishing/Spadefish.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Fishing item.useAnimation = 20; item.useTurn = true; item.pick = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 2f; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; diff --git a/Items/Fishing/SulphurCatches/AbyssalCrate.cs b/Items/Fishing/SulphurCatches/AbyssalCrate.cs index 1dc1c6e2cf..e1f05a09af 100644 --- a/Items/Fishing/SulphurCatches/AbyssalCrate.cs +++ b/Items/Fishing/SulphurCatches/AbyssalCrate.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Fishing.SulphurCatches item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; } public override bool CanRightClick() => true; diff --git a/Items/Fishing/SunkenSeaCatches/SparklingEmpress.cs b/Items/Fishing/SunkenSeaCatches/SparklingEmpress.cs index b11ceb83a6..05d0959a09 100644 --- a/Items/Fishing/SunkenSeaCatches/SparklingEmpress.cs +++ b/Items/Fishing/SunkenSeaCatches/SparklingEmpress.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches item.useTime = 20; item.useAnimation = 20; item.UseSound = SoundID.Item13; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.shootSpeed = 14f; item.shoot = ModContent.ProjectileType(); item.value = Item.sellPrice(silver: 40); diff --git a/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs b/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs index 62f806f072..74bd0993ab 100644 --- a/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs +++ b/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; } public override bool CanRightClick() => true; diff --git a/Items/LoreItems/KnowledgeAquaticScourge.cs b/Items/LoreItems/KnowledgeAquaticScourge.cs index aed2022fa1..725d3ce13d 100644 --- a/Items/LoreItems/KnowledgeAquaticScourge.cs +++ b/Items/LoreItems/KnowledgeAquaticScourge.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeAstralInfection.cs b/Items/LoreItems/KnowledgeAstralInfection.cs index 934ca387cb..f9658bb9d2 100644 --- a/Items/LoreItems/KnowledgeAstralInfection.cs +++ b/Items/LoreItems/KnowledgeAstralInfection.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeAstrumAureus.cs b/Items/LoreItems/KnowledgeAstrumAureus.cs index 21f587688c..7b1d99ae7d 100644 --- a/Items/LoreItems/KnowledgeAstrumAureus.cs +++ b/Items/LoreItems/KnowledgeAstrumAureus.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeAstrumDeus.cs b/Items/LoreItems/KnowledgeAstrumDeus.cs index 7cf9d588fd..e892c5c7e8 100644 --- a/Items/LoreItems/KnowledgeAstrumDeus.cs +++ b/Items/LoreItems/KnowledgeAstrumDeus.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeBloodMoon.cs b/Items/LoreItems/KnowledgeBloodMoon.cs index 86a131d90d..cca166340f 100644 --- a/Items/LoreItems/KnowledgeBloodMoon.cs +++ b/Items/LoreItems/KnowledgeBloodMoon.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/LoreItems/KnowledgeBrainofCthulhu.cs b/Items/LoreItems/KnowledgeBrainofCthulhu.cs index e52ed1af9e..4e6a899dbb 100644 --- a/Items/LoreItems/KnowledgeBrainofCthulhu.cs +++ b/Items/LoreItems/KnowledgeBrainofCthulhu.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.LoreItems item.height = 20; item.rare = 2; item.autoReuse = false; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useAnimation = 20; item.useTime = 20; item.UseSound = SoundID.Item8; @@ -61,7 +61,7 @@ namespace CalamityMod.Items.LoreItems if ((Main.tile[num275, num276].wall != 87 || (double)num276 <= Main.worldSurface || NPC.downedPlantBoss) && !Collision.SolidCollision(vector31, player.width, player.height)) { player.Teleport(vector31, 1, 0); - NetMessage.SendData(65, -1, -1, null, 0, (float)player.whoAmI, vector31.X, vector31.Y, 1, 0, 0); + NetMessage.SendData(MessageID.Teleport, -1, -1, null, 0, (float)player.whoAmI, vector31.X, vector31.Y, 1, 0, 0); player.AddBuff(BuffID.ChaosState, 480, true); player.AddBuff(BuffID.Confused, 150, true); } diff --git a/Items/LoreItems/KnowledgeBrimstoneCrag.cs b/Items/LoreItems/KnowledgeBrimstoneCrag.cs index c953bdf3f0..63cd439712 100644 --- a/Items/LoreItems/KnowledgeBrimstoneCrag.cs +++ b/Items/LoreItems/KnowledgeBrimstoneCrag.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeBrimstoneElemental.cs b/Items/LoreItems/KnowledgeBrimstoneElemental.cs index fbb16afa8e..336c1e75a2 100644 --- a/Items/LoreItems/KnowledgeBrimstoneElemental.cs +++ b/Items/LoreItems/KnowledgeBrimstoneElemental.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeBumblebirb.cs b/Items/LoreItems/KnowledgeBumblebirb.cs index 21bbc9ae27..248f5dcd0d 100644 --- a/Items/LoreItems/KnowledgeBumblebirb.cs +++ b/Items/LoreItems/KnowledgeBumblebirb.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeCalamitas.cs b/Items/LoreItems/KnowledgeCalamitas.cs index 233470f8e3..a4f20b294d 100644 --- a/Items/LoreItems/KnowledgeCalamitas.cs +++ b/Items/LoreItems/KnowledgeCalamitas.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeCalamitasClone.cs b/Items/LoreItems/KnowledgeCalamitasClone.cs index c99fe61db5..d7fc3ef186 100644 --- a/Items/LoreItems/KnowledgeCalamitasClone.cs +++ b/Items/LoreItems/KnowledgeCalamitasClone.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeCorruption.cs b/Items/LoreItems/KnowledgeCorruption.cs index 74fb38a005..ca722fac4e 100644 --- a/Items/LoreItems/KnowledgeCorruption.cs +++ b/Items/LoreItems/KnowledgeCorruption.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeCrabulon.cs b/Items/LoreItems/KnowledgeCrabulon.cs index 39c11b4e9b..57bf38da6e 100644 --- a/Items/LoreItems/KnowledgeCrabulon.cs +++ b/Items/LoreItems/KnowledgeCrabulon.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeCrimson.cs b/Items/LoreItems/KnowledgeCrimson.cs index 0a60cb40c7..6cdf1c5d07 100644 --- a/Items/LoreItems/KnowledgeCrimson.cs +++ b/Items/LoreItems/KnowledgeCrimson.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeCryogen.cs b/Items/LoreItems/KnowledgeCryogen.cs index d1833e62c3..c088075693 100644 --- a/Items/LoreItems/KnowledgeCryogen.cs +++ b/Items/LoreItems/KnowledgeCryogen.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeDesertScourge.cs b/Items/LoreItems/KnowledgeDesertScourge.cs index 0eb3750562..082f206049 100644 --- a/Items/LoreItems/KnowledgeDesertScourge.cs +++ b/Items/LoreItems/KnowledgeDesertScourge.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeDestroyer.cs b/Items/LoreItems/KnowledgeDestroyer.cs index 8f59fc1c40..55303b8bff 100644 --- a/Items/LoreItems/KnowledgeDestroyer.cs +++ b/Items/LoreItems/KnowledgeDestroyer.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeDevourerofGods.cs b/Items/LoreItems/KnowledgeDevourerofGods.cs index ed5c55bec6..f4f40aee8b 100644 --- a/Items/LoreItems/KnowledgeDevourerofGods.cs +++ b/Items/LoreItems/KnowledgeDevourerofGods.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeDukeFishron.cs b/Items/LoreItems/KnowledgeDukeFishron.cs index 99600c9845..516bd28ad7 100644 --- a/Items/LoreItems/KnowledgeDukeFishron.cs +++ b/Items/LoreItems/KnowledgeDukeFishron.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeEaterofWorlds.cs b/Items/LoreItems/KnowledgeEaterofWorlds.cs index 738a877734..40a7adf76f 100644 --- a/Items/LoreItems/KnowledgeEaterofWorlds.cs +++ b/Items/LoreItems/KnowledgeEaterofWorlds.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeEyeofCthulhu.cs b/Items/LoreItems/KnowledgeEyeofCthulhu.cs index 5e80ef3b08..61a1a60a44 100644 --- a/Items/LoreItems/KnowledgeEyeofCthulhu.cs +++ b/Items/LoreItems/KnowledgeEyeofCthulhu.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/LoreItems/KnowledgeGolem.cs b/Items/LoreItems/KnowledgeGolem.cs index 7a8e4436e7..4fc871658b 100644 --- a/Items/LoreItems/KnowledgeGolem.cs +++ b/Items/LoreItems/KnowledgeGolem.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeHiveMind.cs b/Items/LoreItems/KnowledgeHiveMind.cs index da08e5f966..2d7b59c989 100644 --- a/Items/LoreItems/KnowledgeHiveMind.cs +++ b/Items/LoreItems/KnowledgeHiveMind.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeKingSlime.cs b/Items/LoreItems/KnowledgeKingSlime.cs index 7ce6eed7b9..9b7704180f 100644 --- a/Items/LoreItems/KnowledgeKingSlime.cs +++ b/Items/LoreItems/KnowledgeKingSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/LoreItems/KnowledgeLeviathanandSiren.cs b/Items/LoreItems/KnowledgeLeviathanandSiren.cs index 5cf25a5218..b0207cd611 100644 --- a/Items/LoreItems/KnowledgeLeviathanandSiren.cs +++ b/Items/LoreItems/KnowledgeLeviathanandSiren.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeLunaticCultist.cs b/Items/LoreItems/KnowledgeLunaticCultist.cs index 9a0fe2676e..85eefb0946 100644 --- a/Items/LoreItems/KnowledgeLunaticCultist.cs +++ b/Items/LoreItems/KnowledgeLunaticCultist.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeMechs.cs b/Items/LoreItems/KnowledgeMechs.cs index 43e62ba583..2e81bc04d7 100644 --- a/Items/LoreItems/KnowledgeMechs.cs +++ b/Items/LoreItems/KnowledgeMechs.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/LoreItems/KnowledgeMoonLord.cs b/Items/LoreItems/KnowledgeMoonLord.cs index 2ec7674af6..de993228b6 100644 --- a/Items/LoreItems/KnowledgeMoonLord.cs +++ b/Items/LoreItems/KnowledgeMoonLord.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeOcean.cs b/Items/LoreItems/KnowledgeOcean.cs index 32f81b0c5e..3928714138 100644 --- a/Items/LoreItems/KnowledgeOcean.cs +++ b/Items/LoreItems/KnowledgeOcean.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgePerforators.cs b/Items/LoreItems/KnowledgePerforators.cs index 978ec20724..aed58f7645 100644 --- a/Items/LoreItems/KnowledgePerforators.cs +++ b/Items/LoreItems/KnowledgePerforators.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgePlaguebringerGoliath.cs b/Items/LoreItems/KnowledgePlaguebringerGoliath.cs index eb373e70ea..54bc9ee369 100644 --- a/Items/LoreItems/KnowledgePlaguebringerGoliath.cs +++ b/Items/LoreItems/KnowledgePlaguebringerGoliath.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgePlantera.cs b/Items/LoreItems/KnowledgePlantera.cs index 65a907ac59..b5a07a9743 100644 --- a/Items/LoreItems/KnowledgePlantera.cs +++ b/Items/LoreItems/KnowledgePlantera.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgePolterghast.cs b/Items/LoreItems/KnowledgePolterghast.cs index f2a79c661e..80488cdddb 100644 --- a/Items/LoreItems/KnowledgePolterghast.cs +++ b/Items/LoreItems/KnowledgePolterghast.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeProfanedGuardians.cs b/Items/LoreItems/KnowledgeProfanedGuardians.cs index e0e9d83f25..ac15107a97 100644 --- a/Items/LoreItems/KnowledgeProfanedGuardians.cs +++ b/Items/LoreItems/KnowledgeProfanedGuardians.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeProvidence.cs b/Items/LoreItems/KnowledgeProvidence.cs index adff21ac24..4c6d5cb9e0 100644 --- a/Items/LoreItems/KnowledgeProvidence.cs +++ b/Items/LoreItems/KnowledgeProvidence.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeQueenBee.cs b/Items/LoreItems/KnowledgeQueenBee.cs index 9f9de92d1d..f4ed7c5ed5 100644 --- a/Items/LoreItems/KnowledgeQueenBee.cs +++ b/Items/LoreItems/KnowledgeQueenBee.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeRavager.cs b/Items/LoreItems/KnowledgeRavager.cs index 6452498e1f..8a2b2fc156 100644 --- a/Items/LoreItems/KnowledgeRavager.cs +++ b/Items/LoreItems/KnowledgeRavager.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/KnowledgeSentinels.cs b/Items/LoreItems/KnowledgeSentinels.cs index f2734e0176..6c36253e5f 100644 --- a/Items/LoreItems/KnowledgeSentinels.cs +++ b/Items/LoreItems/KnowledgeSentinels.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeSkeletron.cs b/Items/LoreItems/KnowledgeSkeletron.cs index 117982d8cc..81a3cf3fdc 100644 --- a/Items/LoreItems/KnowledgeSkeletron.cs +++ b/Items/LoreItems/KnowledgeSkeletron.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeSkeletronPrime.cs b/Items/LoreItems/KnowledgeSkeletronPrime.cs index 03fe2f047f..bbb95cff60 100644 --- a/Items/LoreItems/KnowledgeSkeletronPrime.cs +++ b/Items/LoreItems/KnowledgeSkeletronPrime.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeSlimeGod.cs b/Items/LoreItems/KnowledgeSlimeGod.cs index 39f3868d9d..e980523588 100644 --- a/Items/LoreItems/KnowledgeSlimeGod.cs +++ b/Items/LoreItems/KnowledgeSlimeGod.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeSulphurSea.cs b/Items/LoreItems/KnowledgeSulphurSea.cs index 1e88fa0eb6..22aad07afc 100644 --- a/Items/LoreItems/KnowledgeSulphurSea.cs +++ b/Items/LoreItems/KnowledgeSulphurSea.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeTwins.cs b/Items/LoreItems/KnowledgeTwins.cs index e1ff4210df..7314c7f2ba 100644 --- a/Items/LoreItems/KnowledgeTwins.cs +++ b/Items/LoreItems/KnowledgeTwins.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeUnderworld.cs b/Items/LoreItems/KnowledgeUnderworld.cs index 8912467c56..4d86b79d3d 100644 --- a/Items/LoreItems/KnowledgeUnderworld.cs +++ b/Items/LoreItems/KnowledgeUnderworld.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeWallofFlesh.cs b/Items/LoreItems/KnowledgeWallofFlesh.cs index 3bb8bd41e7..7f485be3dc 100644 --- a/Items/LoreItems/KnowledgeWallofFlesh.cs +++ b/Items/LoreItems/KnowledgeWallofFlesh.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; diff --git a/Items/LoreItems/KnowledgeYharon.cs b/Items/LoreItems/KnowledgeYharon.cs index 73c30d1dbf..535ff8a48d 100644 --- a/Items/LoreItems/KnowledgeYharon.cs +++ b/Items/LoreItems/KnowledgeYharon.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; diff --git a/Items/LoreItems/LoreItem.cs b/Items/LoreItems/LoreItem.cs index 584f64edcf..b4e35ac7e6 100644 --- a/Items/LoreItems/LoreItem.cs +++ b/Items/LoreItems/LoreItem.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems diff --git a/Items/Materials/Acidwood.cs b/Items/Materials/Acidwood.cs index 4ca317c2bc..a897376db9 100644 --- a/Items/Materials/Acidwood.cs +++ b/Items/Materials/Acidwood.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Items.Materials { diff --git a/Items/Materials/AerialiteBar.cs b/Items/Materials/AerialiteBar.cs index c2c408d183..8e24453e9c 100644 --- a/Items/Materials/AerialiteBar.cs +++ b/Items/Materials/AerialiteBar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Placeables.Ores; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/AncientBoneDust.cs b/Items/Materials/AncientBoneDust.cs index 25b75d6ca3..f290079594 100644 --- a/Items/Materials/AncientBoneDust.cs +++ b/Items/Materials/AncientBoneDust.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/ArmoredShell.cs b/Items/Materials/ArmoredShell.cs index 6b08a43f6a..16f06d7064 100644 --- a/Items/Materials/ArmoredShell.cs +++ b/Items/Materials/ArmoredShell.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/AuricBar.cs b/Items/Materials/AuricBar.cs index 1720c6f3cc..824a5195dc 100644 --- a/Items/Materials/AuricBar.cs +++ b/Items/Materials/AuricBar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Placeables.Ores; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Items/Materials/BarofLife.cs b/Items/Materials/BarofLife.cs index 1ac138afbc..828fd7e2d5 100644 --- a/Items/Materials/BarofLife.cs +++ b/Items/Materials/BarofLife.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/BeetleJuice.cs b/Items/Materials/BeetleJuice.cs index 8e66dd710a..a111baca3e 100644 --- a/Items/Materials/BeetleJuice.cs +++ b/Items/Materials/BeetleJuice.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/BlightedLens.cs b/Items/Materials/BlightedLens.cs index dd940f14b8..1443b4805d 100644 --- a/Items/Materials/BlightedLens.cs +++ b/Items/Materials/BlightedLens.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/BloodOrb.cs b/Items/Materials/BloodOrb.cs index 7bdcaee455..781a4ae398 100644 --- a/Items/Materials/BloodOrb.cs +++ b/Items/Materials/BloodOrb.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/BloodSample.cs b/Items/Materials/BloodSample.cs index 0772fb2855..b94604d9a6 100644 --- a/Items/Materials/BloodSample.cs +++ b/Items/Materials/BloodSample.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/BloodlettingEssence.cs b/Items/Materials/BloodlettingEssence.cs index 39efc7c864..f7baa533cd 100644 --- a/Items/Materials/BloodlettingEssence.cs +++ b/Items/Materials/BloodlettingEssence.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Materials/Bloodstone.cs b/Items/Materials/Bloodstone.cs index e072b3af93..b0e9c62e69 100644 --- a/Items/Materials/Bloodstone.cs +++ b/Items/Materials/Bloodstone.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/BloodstoneCore.cs b/Items/Materials/BloodstoneCore.cs index 2069eb2dea..227e00b6b4 100644 --- a/Items/Materials/BloodstoneCore.cs +++ b/Items/Materials/BloodstoneCore.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/CalamitousEssence.cs b/Items/Materials/CalamitousEssence.cs index 9861cbf206..9cbef4c001 100644 --- a/Items/Materials/CalamitousEssence.cs +++ b/Items/Materials/CalamitousEssence.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/CalamityDust.cs b/Items/Materials/CalamityDust.cs index bee54dff70..3d17ae3735 100644 --- a/Items/Materials/CalamityDust.cs +++ b/Items/Materials/CalamityDust.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/CloakingGland.cs b/Items/Materials/CloakingGland.cs index e5392dff71..35db052a0c 100644 --- a/Items/Materials/CloakingGland.cs +++ b/Items/Materials/CloakingGland.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/CoreofCalamity.cs b/Items/Materials/CoreofCalamity.cs index d93b495920..4f5ed57674 100644 --- a/Items/Materials/CoreofCalamity.cs +++ b/Items/Materials/CoreofCalamity.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/CoreofChaos.cs b/Items/Materials/CoreofChaos.cs index b5bc3ae33f..4d6b7d5d24 100644 --- a/Items/Materials/CoreofChaos.cs +++ b/Items/Materials/CoreofChaos.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/CoreofCinder.cs b/Items/Materials/CoreofCinder.cs index dbd726f1f2..e8457a9fd1 100644 --- a/Items/Materials/CoreofCinder.cs +++ b/Items/Materials/CoreofCinder.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/CoreofEleum.cs b/Items/Materials/CoreofEleum.cs index ceb7911439..a88bb59529 100644 --- a/Items/Materials/CoreofEleum.cs +++ b/Items/Materials/CoreofEleum.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/CorrodedFossil.cs b/Items/Materials/CorrodedFossil.cs index 7319999c79..6b49e7e0e6 100644 --- a/Items/Materials/CorrodedFossil.cs +++ b/Items/Materials/CorrodedFossil.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/CosmiliteBar.cs b/Items/Materials/CosmiliteBar.cs index bbadbc1d27..e955418d61 100644 --- a/Items/Materials/CosmiliteBar.cs +++ b/Items/Materials/CosmiliteBar.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Materials/CruptixBar.cs b/Items/Materials/CruptixBar.cs index 982e92d214..5ab4c43ff1 100644 --- a/Items/Materials/CruptixBar.cs +++ b/Items/Materials/CruptixBar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Placeables.Ores; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Materials { item.createTile = ModContent.TileType(); item.noUseGraphic = true; //no use graphic because animated things swing their entire sheet - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Materials/CryoBar.cs b/Items/Materials/CryoBar.cs index f26cbd88fd..9a10253222 100644 --- a/Items/Materials/CryoBar.cs +++ b/Items/Materials/CryoBar.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/DarkPlasma.cs b/Items/Materials/DarkPlasma.cs index 4e78240d05..e3197be99c 100644 --- a/Items/Materials/DarkPlasma.cs +++ b/Items/Materials/DarkPlasma.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Materials/DarksunFragment.cs b/Items/Materials/DarksunFragment.cs index 2760cb7caa..dae75292f2 100644 --- a/Items/Materials/DarksunFragment.cs +++ b/Items/Materials/DarksunFragment.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Materials/DemonicBoneAsh.cs b/Items/Materials/DemonicBoneAsh.cs index 4cfc97b397..c7b19fd16c 100644 --- a/Items/Materials/DemonicBoneAsh.cs +++ b/Items/Materials/DemonicBoneAsh.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/DepthCells.cs b/Items/Materials/DepthCells.cs index 99883c849a..e32d21e80a 100644 --- a/Items/Materials/DepthCells.cs +++ b/Items/Materials/DepthCells.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/DesertFeather.cs b/Items/Materials/DesertFeather.cs index 504cbcc9f4..6033673acf 100644 --- a/Items/Materials/DesertFeather.cs +++ b/Items/Materials/DesertFeather.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/DivineGeode.cs b/Items/Materials/DivineGeode.cs index ad96f4cc67..872606f369 100644 --- a/Items/Materials/DivineGeode.cs +++ b/Items/Materials/DivineGeode.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/DraedonBar.cs b/Items/Materials/DraedonBar.cs index 80a2b28f18..b77c2df485 100644 --- a/Items/Materials/DraedonBar.cs +++ b/Items/Materials/DraedonBar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Placeables.Ores; using CalamityMod.Tiles; using Terraria; using Terraria.ID; @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Materials public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Materials/EbonianGel.cs b/Items/Materials/EbonianGel.cs index 0c8676a2f5..758d825253 100644 --- a/Items/Materials/EbonianGel.cs +++ b/Items/Materials/EbonianGel.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/Ectoblood.cs b/Items/Materials/Ectoblood.cs index b97a4eeb68..f0933316ba 100644 --- a/Items/Materials/Ectoblood.cs +++ b/Items/Materials/Ectoblood.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/EffulgentFeather.cs b/Items/Materials/EffulgentFeather.cs index 4ef9391a84..d8c23f3386 100644 --- a/Items/Materials/EffulgentFeather.cs +++ b/Items/Materials/EffulgentFeather.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Materials/EndothermicEnergy.cs b/Items/Materials/EndothermicEnergy.cs index 08255e51e2..2ed244e86b 100644 --- a/Items/Materials/EndothermicEnergy.cs +++ b/Items/Materials/EndothermicEnergy.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; using Microsoft.Xna.Framework; using Terraria.DataStructures; diff --git a/Items/Materials/EssenceofChaos.cs b/Items/Materials/EssenceofChaos.cs index a0951de003..2678e468b5 100644 --- a/Items/Materials/EssenceofChaos.cs +++ b/Items/Materials/EssenceofChaos.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/EssenceofCinder.cs b/Items/Materials/EssenceofCinder.cs index 0b3130da50..f878f49954 100644 --- a/Items/Materials/EssenceofCinder.cs +++ b/Items/Materials/EssenceofCinder.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/EssenceofEleum.cs b/Items/Materials/EssenceofEleum.cs index 601f618259..c4f0618a79 100644 --- a/Items/Materials/EssenceofEleum.cs +++ b/Items/Materials/EssenceofEleum.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/FetidEssence.cs b/Items/Materials/FetidEssence.cs index a589911a05..29e9eecf55 100644 --- a/Items/Materials/FetidEssence.cs +++ b/Items/Materials/FetidEssence.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Materials/GalacticaSingularity.cs b/Items/Materials/GalacticaSingularity.cs index 2ff6ec4d30..4111002d92 100644 --- a/Items/Materials/GalacticaSingularity.cs +++ b/Items/Materials/GalacticaSingularity.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/GrandScale.cs b/Items/Materials/GrandScale.cs index a1b43b16be..99407eee49 100644 --- a/Items/Materials/GrandScale.cs +++ b/Items/Materials/GrandScale.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/GypsyPowder.cs b/Items/Materials/GypsyPowder.cs index 8163113127..fbaa547206 100644 --- a/Items/Materials/GypsyPowder.cs +++ b/Items/Materials/GypsyPowder.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/HadarianMembrane.cs b/Items/Materials/HadarianMembrane.cs index cda17a6504..afaa6c671a 100644 --- a/Items/Materials/HadarianMembrane.cs +++ b/Items/Materials/HadarianMembrane.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/HellcasterFragment.cs b/Items/Materials/HellcasterFragment.cs index e59b8c5f58..3b153a6f6e 100644 --- a/Items/Materials/HellcasterFragment.cs +++ b/Items/Materials/HellcasterFragment.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/LivingShard.cs b/Items/Materials/LivingShard.cs index cb951d8ed8..b4a27a5290 100644 --- a/Items/Materials/LivingShard.cs +++ b/Items/Materials/LivingShard.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/Lumenite.cs b/Items/Materials/Lumenite.cs index f2d646d97b..6ae7ab931f 100644 --- a/Items/Materials/Lumenite.cs +++ b/Items/Materials/Lumenite.cs @@ -1,5 +1,6 @@ -using CalamityMod.Tiles.Abyss; +using CalamityMod.Tiles.Abyss; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Materials { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Materials public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Materials/ManeaterBulb.cs b/Items/Materials/ManeaterBulb.cs index eed1f7ade4..b00136df6a 100644 --- a/Items/Materials/ManeaterBulb.cs +++ b/Items/Materials/ManeaterBulb.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/MeldBlob.cs b/Items/Materials/MeldBlob.cs index 678c68f4bd..547cf9992e 100644 --- a/Items/Materials/MeldBlob.cs +++ b/Items/Materials/MeldBlob.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/MeldiateBar.cs b/Items/Materials/MeldiateBar.cs index dfe8ef5e04..570ff475ff 100644 --- a/Items/Materials/MeldiateBar.cs +++ b/Items/Materials/MeldiateBar.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/MolluskHusk.cs b/Items/Materials/MolluskHusk.cs index 84af9f19ca..d4a9a46b00 100644 --- a/Items/Materials/MolluskHusk.cs +++ b/Items/Materials/MolluskHusk.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/MurkyPaste.cs b/Items/Materials/MurkyPaste.cs index 314eba74eb..7fff83c8a9 100644 --- a/Items/Materials/MurkyPaste.cs +++ b/Items/Materials/MurkyPaste.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/MurkySludge.cs b/Items/Materials/MurkySludge.cs index e9a67e2ce7..7e12344641 100644 --- a/Items/Materials/MurkySludge.cs +++ b/Items/Materials/MurkySludge.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/NightmareFuel.cs b/Items/Materials/NightmareFuel.cs index f0111964ef..3c2d52627c 100644 --- a/Items/Materials/NightmareFuel.cs +++ b/Items/Materials/NightmareFuel.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; using Microsoft.Xna.Framework; using Terraria.DataStructures; diff --git a/Items/Materials/Phantoplasm.cs b/Items/Materials/Phantoplasm.cs index 8b38af5d3e..9acab4a131 100644 --- a/Items/Materials/Phantoplasm.cs +++ b/Items/Materials/Phantoplasm.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Materials/PlagueCellCluster.cs b/Items/Materials/PlagueCellCluster.cs index 7281a8db48..39bbc8188b 100644 --- a/Items/Materials/PlagueCellCluster.cs +++ b/Items/Materials/PlagueCellCluster.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/PurifiedGel.cs b/Items/Materials/PurifiedGel.cs index c80d0f30f9..7b7879b9f2 100644 --- a/Items/Materials/PurifiedGel.cs +++ b/Items/Materials/PurifiedGel.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/ReaperTooth.cs b/Items/Materials/ReaperTooth.cs index 8cc54ed18d..44eae426a9 100644 --- a/Items/Materials/ReaperTooth.cs +++ b/Items/Materials/ReaperTooth.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/RuinousSoul.cs b/Items/Materials/RuinousSoul.cs index 218ff81623..2f7606bafe 100644 --- a/Items/Materials/RuinousSoul.cs +++ b/Items/Materials/RuinousSoul.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/ShadowspecBar.cs b/Items/Materials/ShadowspecBar.cs index b844b6bfda..448a841d1c 100644 --- a/Items/Materials/ShadowspecBar.cs +++ b/Items/Materials/ShadowspecBar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Materials/Stardust.cs b/Items/Materials/Stardust.cs index 88b9a1cec7..e46065e5e3 100644 --- a/Items/Materials/Stardust.cs +++ b/Items/Materials/Stardust.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/StormlionMandible.cs b/Items/Materials/StormlionMandible.cs index f310a98d56..8cad617f47 100644 --- a/Items/Materials/StormlionMandible.cs +++ b/Items/Materials/StormlionMandible.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/SulfuricScale.cs b/Items/Materials/SulfuricScale.cs index 4d47575525..230dc60d55 100644 --- a/Items/Materials/SulfuricScale.cs +++ b/Items/Materials/SulfuricScale.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/TrapperBulb.cs b/Items/Materials/TrapperBulb.cs index 9cb6a69b38..584b24e164 100644 --- a/Items/Materials/TrapperBulb.cs +++ b/Items/Materials/TrapperBulb.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/TrueShadowScale.cs b/Items/Materials/TrueShadowScale.cs index 27741f6d3b..4d4deac5eb 100644 --- a/Items/Materials/TrueShadowScale.cs +++ b/Items/Materials/TrueShadowScale.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/TwistingNether.cs b/Items/Materials/TwistingNether.cs index fe3b6d2032..bde14c1f38 100644 --- a/Items/Materials/TwistingNether.cs +++ b/Items/Materials/TwistingNether.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/UeliaceBar.cs b/Items/Materials/UeliaceBar.cs index 13216161bd..81d8871dd6 100644 --- a/Items/Materials/UeliaceBar.cs +++ b/Items/Materials/UeliaceBar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Placeables.Ores; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/UnholyCore.cs b/Items/Materials/UnholyCore.cs index ab0fd64e33..2da4e4d103 100644 --- a/Items/Materials/UnholyCore.cs +++ b/Items/Materials/UnholyCore.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Placeables.Ores; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/UnholyEssence.cs b/Items/Materials/UnholyEssence.cs index b5c93906b0..021cb43364 100644 --- a/Items/Materials/UnholyEssence.cs +++ b/Items/Materials/UnholyEssence.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; diff --git a/Items/Materials/VerstaltiteBar.cs b/Items/Materials/VerstaltiteBar.cs index 158060c35e..a9d30a0443 100644 --- a/Items/Materials/VerstaltiteBar.cs +++ b/Items/Materials/VerstaltiteBar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Placeables.Ores; using CalamityMod.Tiles; using Terraria; using Terraria.ID; @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Materials public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Materials/VictideBar.cs b/Items/Materials/VictideBar.cs index f6cf97973c..c14e5ff250 100644 --- a/Items/Materials/VictideBar.cs +++ b/Items/Materials/VictideBar.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Materials/VictoryShard.cs b/Items/Materials/VictoryShard.cs index 9ed0b2932d..b75ea9b02f 100644 --- a/Items/Materials/VictoryShard.cs +++ b/Items/Materials/VictoryShard.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Materials/WulfrumShard.cs b/Items/Materials/WulfrumShard.cs index 112239b7d8..e7975c53b3 100644 --- a/Items/Materials/WulfrumShard.cs +++ b/Items/Materials/WulfrumShard.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.Materials diff --git a/Items/Mounts/AlicornMount.cs b/Items/Mounts/AlicornMount.cs index e002f94005..5669c11af0 100644 --- a/Items/Mounts/AlicornMount.cs +++ b/Items/Mounts/AlicornMount.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Mounts; +using CalamityMod.Buffs.Mounts; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; diff --git a/Items/Mounts/AngryDogMount.cs b/Items/Mounts/AngryDogMount.cs index 056bdbce2e..f64b5124fe 100644 --- a/Items/Mounts/AngryDogMount.cs +++ b/Items/Mounts/AngryDogMount.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Mounts; +using CalamityMod.Buffs.Mounts; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Items/Mounts/Brimrose.cs b/Items/Mounts/Brimrose.cs index e57cc6e0af..e01b505126 100644 --- a/Items/Mounts/Brimrose.cs +++ b/Items/Mounts/Brimrose.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Mounts item.height = 64; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = Item.buyPrice(1, 50, 0, 0); item.rare = 9; item.expert = true; diff --git a/Items/Mounts/Crysthamyr.cs b/Items/Mounts/Crysthamyr.cs index 254a49b065..9a930dde93 100644 --- a/Items/Mounts/Crysthamyr.cs +++ b/Items/Mounts/Crysthamyr.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Mounts; +using CalamityMod.Buffs.Mounts; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Items/Mounts/Fabsol.cs b/Items/Mounts/Fabsol.cs index 35f7d33e32..17a060ce44 100644 --- a/Items/Mounts/Fabsol.cs +++ b/Items/Mounts/Fabsol.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Mounts item.height = 16; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 9; item.value = Item.buyPrice(3, 0, 0, 0); item.expert = true; diff --git a/Items/Mounts/GazeOfCrysthamyr.cs b/Items/Mounts/GazeOfCrysthamyr.cs index 91c6236f3f..236e8c6d3c 100644 --- a/Items/Mounts/GazeOfCrysthamyr.cs +++ b/Items/Mounts/GazeOfCrysthamyr.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Mounts item.height = 16; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.rare = 10; item.value = Item.buyPrice(3, 0, 0, 0); item.UseSound = SoundID.NPCHit56; diff --git a/Items/Mounts/OnyxExcavator.cs b/Items/Mounts/OnyxExcavator.cs index 8e86941bba..aa25965753 100644 --- a/Items/Mounts/OnyxExcavator.cs +++ b/Items/Mounts/OnyxExcavator.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Mounts; +using CalamityMod.Buffs.Mounts; using CalamityMod.Tiles; using CalamityMod.Tiles.Abyss; using CalamityMod.Tiles.Ores; @@ -191,7 +191,7 @@ namespace CalamityMod.Items.Mounts WorldGen.KillTile(num824, num825, false, false, false); if (!Main.tile[num824, num825].active() && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 0, (float)num824, (float)num825, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, (float)num824, (float)num825, 0f, 0, 0, 0); } } } diff --git a/Items/Mounts/OnyxExcavatorKey.cs b/Items/Mounts/OnyxExcavatorKey.cs index 8be8feb655..94271a3d6c 100644 --- a/Items/Mounts/OnyxExcavatorKey.cs +++ b/Items/Mounts/OnyxExcavatorKey.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Mounts item.height = 16; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.rare = 3; item.value = Item.buyPrice(0, 9, 0, 0); item.UseSound = SoundID.Item23; diff --git a/Items/Mounts/PhuppersChair.cs b/Items/Mounts/PhuppersChair.cs index 96c3dd4131..b0d3c72d87 100644 --- a/Items/Mounts/PhuppersChair.cs +++ b/Items/Mounts/PhuppersChair.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Buffs.Mounts; using Terraria; using Terraria.ID; diff --git a/Items/Mounts/SquishyBean.cs b/Items/Mounts/SquishyBean.cs index e9800e4871..42816aa49f 100644 --- a/Items/Mounts/SquishyBean.cs +++ b/Items/Mounts/SquishyBean.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Mounts; +using CalamityMod.Buffs.Mounts; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Mounts/SquishyBeanMount.cs b/Items/Mounts/SquishyBeanMount.cs index 175e365cff..99d173db2e 100644 --- a/Items/Mounts/SquishyBeanMount.cs +++ b/Items/Mounts/SquishyBeanMount.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Mounts item.height = 20; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 9; item.value = Item.buyPrice(1, 0, 0, 0); item.expert = true; diff --git a/Items/Mounts/TundraLeash.cs b/Items/Mounts/TundraLeash.cs index 7607c72562..12d0b80ef8 100644 --- a/Items/Mounts/TundraLeash.cs +++ b/Items/Mounts/TundraLeash.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Mounts item.height = 16; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.rare = 3; item.value = Item.buyPrice(0, 9, 0, 0); item.UseSound = SoundID.NPCHit56; diff --git a/Items/NormalityRelocator.cs b/Items/NormalityRelocator.cs index ed2b2dfe70..f45b610a90 100644 --- a/Items/NormalityRelocator.cs +++ b/Items/NormalityRelocator.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Ores; using System.Collections.Generic; diff --git a/Items/PermanentBoosters/BloodOrange.cs b/Items/PermanentBoosters/BloodOrange.cs index 2f70e1a28e..66069735ac 100644 --- a/Items/PermanentBoosters/BloodOrange.cs +++ b/Items/PermanentBoosters/BloodOrange.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.PermanentBoosters item.useAnimation = 30; item.rare = 5; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item4; item.consumable = true; } diff --git a/Items/PermanentBoosters/CometShard.cs b/Items/PermanentBoosters/CometShard.cs index ff58f26f4d..14dfa0ac12 100644 --- a/Items/PermanentBoosters/CometShard.cs +++ b/Items/PermanentBoosters/CometShard.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.PermanentBoosters item.useAnimation = 30; item.rare = 5; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item29; item.consumable = true; } diff --git a/Items/PermanentBoosters/Dragonfruit.cs b/Items/PermanentBoosters/Dragonfruit.cs index a1986c5752..7b73d56c32 100644 --- a/Items/PermanentBoosters/Dragonfruit.cs +++ b/Items/PermanentBoosters/Dragonfruit.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.PermanentBoosters item.height = 20; item.useAnimation = 30; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item4; item.consumable = true; item.rare = 10; diff --git a/Items/PermanentBoosters/Ectoheart.cs b/Items/PermanentBoosters/Ectoheart.cs index a59a069083..3cc7b8d6bb 100644 --- a/Items/PermanentBoosters/Ectoheart.cs +++ b/Items/PermanentBoosters/Ectoheart.cs @@ -1,4 +1,4 @@ -using CalamityMod; +using CalamityMod; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.PermanentBoosters item.height = 44; item.useAnimation = 30; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item122; item.consumable = true; item.rare = 10; diff --git a/Items/PermanentBoosters/Elderberry.cs b/Items/PermanentBoosters/Elderberry.cs index 2e84fa8ee3..7f5293d1f0 100644 --- a/Items/PermanentBoosters/Elderberry.cs +++ b/Items/PermanentBoosters/Elderberry.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.PermanentBoosters item.useAnimation = 30; item.rare = 10; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item4; item.consumable = true; } diff --git a/Items/PermanentBoosters/ElectrolyteGelPack.cs b/Items/PermanentBoosters/ElectrolyteGelPack.cs index dd0ca7caa1..3a93a85afa 100644 --- a/Items/PermanentBoosters/ElectrolyteGelPack.cs +++ b/Items/PermanentBoosters/ElectrolyteGelPack.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.PermanentBoosters item.useAnimation = 30; item.rare = 4; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item122; item.consumable = true; } diff --git a/Items/PermanentBoosters/EtherealCore.cs b/Items/PermanentBoosters/EtherealCore.cs index cc2b4f57dd..f44559cfcf 100644 --- a/Items/PermanentBoosters/EtherealCore.cs +++ b/Items/PermanentBoosters/EtherealCore.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Placeables; using Terraria; using Terraria.ID; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.PermanentBoosters item.useAnimation = 30; item.rare = 10; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item29; item.consumable = true; } diff --git a/Items/PermanentBoosters/InfernalBlood.cs b/Items/PermanentBoosters/InfernalBlood.cs index e94a8f5330..46ef2a7e5f 100644 --- a/Items/PermanentBoosters/InfernalBlood.cs +++ b/Items/PermanentBoosters/InfernalBlood.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.PermanentBoosters item.useAnimation = 30; item.rare = 8; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item122; item.consumable = true; } diff --git a/Items/PermanentBoosters/MLGRune2.cs b/Items/PermanentBoosters/MLGRune2.cs index 3a6e1c39e7..683a1faa92 100644 --- a/Items/PermanentBoosters/MLGRune2.cs +++ b/Items/PermanentBoosters/MLGRune2.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.World; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ Consuming it does something that cannot be reversed"); item.maxStack = 99; item.useAnimation = 30; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item4; item.consumable = true; } diff --git a/Items/PermanentBoosters/MiracleFruit.cs b/Items/PermanentBoosters/MiracleFruit.cs index 9672cd5480..8db3c03a1e 100644 --- a/Items/PermanentBoosters/MiracleFruit.cs +++ b/Items/PermanentBoosters/MiracleFruit.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Potions; using Terraria; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.PermanentBoosters item.useAnimation = 30; item.rare = 7; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item4; item.consumable = true; } diff --git a/Items/PermanentBoosters/MushroomPlasmaRoot.cs b/Items/PermanentBoosters/MushroomPlasmaRoot.cs index 1384f375bf..93517d7e0c 100644 --- a/Items/PermanentBoosters/MushroomPlasmaRoot.cs +++ b/Items/PermanentBoosters/MushroomPlasmaRoot.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.PermanentBoosters item.useAnimation = 30; item.rare = 2; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item122; item.consumable = true; } diff --git a/Items/PermanentBoosters/PhantomHeart.cs b/Items/PermanentBoosters/PhantomHeart.cs index c9cc9c6a88..62de96f9f1 100644 --- a/Items/PermanentBoosters/PhantomHeart.cs +++ b/Items/PermanentBoosters/PhantomHeart.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.PermanentBoosters item.height = 20; item.useAnimation = 30; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item29; item.consumable = true; item.rare = 10; diff --git a/Items/PermanentBoosters/RedLightningContainer.cs b/Items/PermanentBoosters/RedLightningContainer.cs index 3e74a1418f..eaf3a9e1a9 100644 --- a/Items/PermanentBoosters/RedLightningContainer.cs +++ b/Items/PermanentBoosters/RedLightningContainer.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -22,7 +22,7 @@ namespace CalamityMod.Items.PermanentBoosters item.height = 20; item.useAnimation = 30; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item122; item.consumable = true; item.rare = 10; diff --git a/Items/PermanentBoosters/StarlightFuelCell.cs b/Items/PermanentBoosters/StarlightFuelCell.cs index db4149db7c..9032b6f0ad 100644 --- a/Items/PermanentBoosters/StarlightFuelCell.cs +++ b/Items/PermanentBoosters/StarlightFuelCell.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.PermanentBoosters item.useAnimation = 30; item.rare = 7; item.useTime = 30; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item122; item.consumable = true; } diff --git a/Items/Pets/BearEye.cs b/Items/Pets/BearEye.cs index 330a372ad8..a6a42af5ed 100644 --- a/Items/Pets/BearEye.cs +++ b/Items/Pets/BearEye.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Pets public override void SetDefaults() { item.damage = 0; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useAnimation = 20; item.useTime = 20; item.noMelee = true; diff --git a/Items/Pets/BloodyVein.cs b/Items/Pets/BloodyVein.cs index 77052bf7de..6bcc74e3ef 100644 --- a/Items/Pets/BloodyVein.cs +++ b/Items/Pets/BloodyVein.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Pets; +using CalamityMod.Buffs.Pets; using CalamityMod.Projectiles.Pets; using Terraria; using Terraria.ID; @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Pets item.damage = 0; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.width = 24; item.height = 48; diff --git a/Items/Pets/CosmicPlushie.cs b/Items/Pets/CosmicPlushie.cs index 7237d467e8..9e21f52e19 100644 --- a/Items/Pets/CosmicPlushie.cs +++ b/Items/Pets/CosmicPlushie.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Pets public override void SetDefaults() { item.damage = 0; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useAnimation = 20; item.useTime = 20; item.noMelee = true; diff --git a/Items/Pets/ForgottenDragonEgg.cs b/Items/Pets/ForgottenDragonEgg.cs index 18b569c4e2..e79a792404 100644 --- a/Items/Pets/ForgottenDragonEgg.cs +++ b/Items/Pets/ForgottenDragonEgg.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Pets; +using CalamityMod.Buffs.Pets; using CalamityMod.Projectiles.Pets; using Terraria; using Terraria.ID; diff --git a/Items/Pets/FoxDrive.cs b/Items/Pets/FoxDrive.cs index 4487d9e187..c2b9bdb9b3 100644 --- a/Items/Pets/FoxDrive.cs +++ b/Items/Pets/FoxDrive.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Pets; +using CalamityMod.Buffs.Pets; using CalamityMod.Projectiles.Pets; using Terraria; using Terraria.ID; diff --git a/Items/Pets/GeyserShell.cs b/Items/Pets/GeyserShell.cs index 7bdded2aec..db0b010496 100644 --- a/Items/Pets/GeyserShell.cs +++ b/Items/Pets/GeyserShell.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Pets public override void SetDefaults() { item.damage = 0; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useAnimation = 20; item.useTime = 20; item.noMelee = true; diff --git a/Items/Pets/IbarakiBox.cs b/Items/Pets/IbarakiBox.cs index 281f8852de..85889814d6 100644 --- a/Items/Pets/IbarakiBox.cs +++ b/Items/Pets/IbarakiBox.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Pets; +using CalamityMod.Buffs.Pets; using CalamityMod.Projectiles.Pets; using Microsoft.Xna.Framework; using Terraria; @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Pets item.damage = 0; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.width = 36; item.height = 30; diff --git a/Items/Pets/JoyfulHeart.cs b/Items/Pets/JoyfulHeart.cs index 72c7b785b3..ccd6138bbb 100644 --- a/Items/Pets/JoyfulHeart.cs +++ b/Items/Pets/JoyfulHeart.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Pets public override void SetDefaults() { item.damage = 0; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useAnimation = 20; item.useTime = 20; item.noMelee = true; diff --git a/Items/Pets/Levi.cs b/Items/Pets/Levi.cs index 0d0fe68621..63e254f764 100644 --- a/Items/Pets/Levi.cs +++ b/Items/Pets/Levi.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Pets; +using CalamityMod.Buffs.Pets; using CalamityMod.Projectiles.Pets; using Terraria; using Terraria.ID; diff --git a/Items/Pets/PrimroseKeepsake.cs b/Items/Pets/PrimroseKeepsake.cs index 32383c7959..e36f2c2df0 100644 --- a/Items/Pets/PrimroseKeepsake.cs +++ b/Items/Pets/PrimroseKeepsake.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Pets; +using CalamityMod.Buffs.Pets; using CalamityMod.Projectiles.Pets; using Microsoft.Xna.Framework; using System.Collections.Generic; @@ -19,14 +19,14 @@ namespace CalamityMod.Items.Pets public override void SetDefaults() { item.damage = 0; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useAnimation = 20; item.useTime = 20; item.noMelee = true; item.width = 30; item.height = 30; item.value = Item.sellPrice(1, 0, 0, 0); - item.shoot = 0; // neither kendra nor bear is the direct "shoot" + item.shoot = ProjectileID.None; // neither kendra nor bear is the direct "shoot" item.buffType = ModContent.BuffType(); item.rare = 6; item.UseSound = SoundID.Item44; diff --git a/Items/Pets/RomajedaOrchid.cs b/Items/Pets/RomajedaOrchid.cs index c2ead075a6..fa161f44cc 100644 --- a/Items/Pets/RomajedaOrchid.cs +++ b/Items/Pets/RomajedaOrchid.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Pets public override void SetDefaults() { item.damage = 0; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useAnimation = 20; item.useTime = 20; item.noMelee = true; diff --git a/Items/Pets/RotomRemote.cs b/Items/Pets/RotomRemote.cs index 52bcce68aa..a1c7771531 100644 --- a/Items/Pets/RotomRemote.cs +++ b/Items/Pets/RotomRemote.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Pets item.damage = 0; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.width = 30; item.height = 34; diff --git a/Items/Pets/StrangeOrb.cs b/Items/Pets/StrangeOrb.cs index ac16485d74..8dfb85d620 100644 --- a/Items/Pets/StrangeOrb.cs +++ b/Items/Pets/StrangeOrb.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Pets; +using CalamityMod.Buffs.Pets; using CalamityMod.Projectiles.Pets; using Terraria; using Terraria.ID; diff --git a/Items/Pets/TrashmanTrashcan.cs b/Items/Pets/TrashmanTrashcan.cs index 65208e848e..b4c105789e 100644 --- a/Items/Pets/TrashmanTrashcan.cs +++ b/Items/Pets/TrashmanTrashcan.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Pets public override void SetDefaults() { item.damage = 0; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useAnimation = 20; item.useTime = 20; item.noMelee = true; diff --git a/Items/Placeables/AbyssGravel.cs b/Items/Placeables/AbyssGravel.cs index eb57d13e4c..e215445966 100644 --- a/Items/Placeables/AbyssGravel.cs +++ b/Items/Placeables/AbyssGravel.cs @@ -1,4 +1,6 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables { public class AbyssGravel : ModItem @@ -11,7 +13,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/AerialiteBrick.cs b/Items/Placeables/AerialiteBrick.cs index e0e3742aab..ef28e8ac45 100644 --- a/Items/Placeables/AerialiteBrick.cs +++ b/Items/Placeables/AerialiteBrick.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Placeables.Ores; using CalamityMod.Items.Placeables.Walls; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/AstralBar.cs b/Items/Placeables/AstralBar.cs index 1aebc40f87..470ea06d99 100644 --- a/Items/Placeables/AstralBar.cs +++ b/Items/Placeables/AstralBar.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using Terraria; @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/AstralBrick.cs b/Items/Placeables/AstralBrick.cs index 65b317a1db..52a12147ec 100644 --- a/Items/Placeables/AstralBrick.cs +++ b/Items/Placeables/AstralBrick.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Placeables.Ores; using CalamityMod.Items.Placeables.Walls; using Terraria.ID; using Terraria.ModLoader; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");" @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/AstralClay.cs b/Items/Placeables/AstralClay.cs index e29e5c0e77..0e3f2231e5 100644 --- a/Items/Placeables/AstralClay.cs +++ b/Items/Placeables/AstralClay.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/AstralDirt.cs b/Items/Placeables/AstralDirt.cs index 05668566bf..5d68b538a3 100644 --- a/Items/Placeables/AstralDirt.cs +++ b/Items/Placeables/AstralDirt.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables { public class AstralDirt : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +28,7 @@ namespace CalamityMod.Items.Placeables public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); diff --git a/Items/Placeables/AstralFossil.cs b/Items/Placeables/AstralFossil.cs index b774b093f0..138686b704 100644 --- a/Items/Placeables/AstralFossil.cs +++ b/Items/Placeables/AstralFossil.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using CalamityMod.Items.Materials; using Terraria.ID; using Terraria; @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables { ItemID.Sets.ExtractinatorMode[item.type] = item.type; item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Placeables public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); diff --git a/Items/Placeables/AstralIce.cs b/Items/Placeables/AstralIce.cs index f82580bed0..cc5fc01379 100644 --- a/Items/Placeables/AstralIce.cs +++ b/Items/Placeables/AstralIce.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables { public class AstralIce : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +28,7 @@ namespace CalamityMod.Items.Placeables public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); diff --git a/Items/Placeables/AstralMonolith.cs b/Items/Placeables/AstralMonolith.cs index 37391ada23..c6a333bade 100644 --- a/Items/Placeables/AstralMonolith.cs +++ b/Items/Placeables/AstralMonolith.cs @@ -1,4 +1,4 @@ -using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Items.Placeables.Walls; using CalamityMod.Items.Placeables.FurnitureAstral; using Terraria.ID; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/AstralSand.cs b/Items/Placeables/AstralSand.cs index 15ef6d1f59..6b0cb96135 100644 --- a/Items/Placeables/AstralSand.cs +++ b/Items/Placeables/AstralSand.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Projectiles.Ranged; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables //item.shoot = ModContent.ProjectileType(); //item.notAmmo = true; //item.shootSpeed = 15f; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/AstralSandstone.cs b/Items/Placeables/AstralSandstone.cs index 8ce77fd978..f0dc57708e 100644 --- a/Items/Placeables/AstralSandstone.cs +++ b/Items/Placeables/AstralSandstone.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables { public class AstralSandstone : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +28,7 @@ namespace CalamityMod.Items.Placeables public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); diff --git a/Items/Placeables/AstralSilt.cs b/Items/Placeables/AstralSilt.cs index 2463aaf63c..a79456eaa1 100644 --- a/Items/Placeables/AstralSilt.cs +++ b/Items/Placeables/AstralSilt.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria.ID; using Terraria; using Terraria.ModLoader; @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables { ItemID.Sets.ExtractinatorMode[item.type] = item.type; item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/AstralSnow.cs b/Items/Placeables/AstralSnow.cs index cf166004ae..a127680e18 100644 --- a/Items/Placeables/AstralSnow.cs +++ b/Items/Placeables/AstralSnow.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables { public class AstralSnow : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +28,7 @@ namespace CalamityMod.Items.Placeables public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); diff --git a/Items/Placeables/AstralStone.cs b/Items/Placeables/AstralStone.cs index d947f8d01b..c57d7de5c3 100644 --- a/Items/Placeables/AstralStone.cs +++ b/Items/Placeables/AstralStone.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables { public class AstralStone : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +28,7 @@ namespace CalamityMod.Items.Placeables public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); diff --git a/Items/Placeables/Banners/AcidEelBanner.cs b/Items/Placeables/Banners/AcidEelBanner.cs index 8f54541f54..51e4615af6 100644 --- a/Items/Placeables/Banners/AcidEelBanner.cs +++ b/Items/Placeables/Banners/AcidEelBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AcidEelBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AeroSlimeBanner.cs b/Items/Placeables/Banners/AeroSlimeBanner.cs index 83faacc0e2..8bb217d051 100644 --- a/Items/Placeables/Banners/AeroSlimeBanner.cs +++ b/Items/Placeables/Banners/AeroSlimeBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AeroSlimeBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AmberCrawlerBanner.cs b/Items/Placeables/Banners/AmberCrawlerBanner.cs index f16d43c2d0..71eeb51efb 100644 --- a/Items/Placeables/Banners/AmberCrawlerBanner.cs +++ b/Items/Placeables/Banners/AmberCrawlerBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AmberCrawlerBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AmethystCrawlerBanner.cs b/Items/Placeables/Banners/AmethystCrawlerBanner.cs index d8433990bf..53aa13580e 100644 --- a/Items/Placeables/Banners/AmethystCrawlerBanner.cs +++ b/Items/Placeables/Banners/AmethystCrawlerBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AmethystCrawlerBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AngryDogBanner.cs b/Items/Placeables/Banners/AngryDogBanner.cs index 962d2881b6..e998eff04d 100644 --- a/Items/Placeables/Banners/AngryDogBanner.cs +++ b/Items/Placeables/Banners/AngryDogBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AngryDogBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AnthozoanCrabBanner.cs b/Items/Placeables/Banners/AnthozoanCrabBanner.cs index 3383565c03..025835ac0d 100644 --- a/Items/Placeables/Banners/AnthozoanCrabBanner.cs +++ b/Items/Placeables/Banners/AnthozoanCrabBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AnthozoanCrabBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AquaticAberrationBanner.cs b/Items/Placeables/Banners/AquaticAberrationBanner.cs index 833e35b964..e469fcdc4f 100644 --- a/Items/Placeables/Banners/AquaticAberrationBanner.cs +++ b/Items/Placeables/Banners/AquaticAberrationBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AquaticAberrationBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AquaticParasiteBanner.cs b/Items/Placeables/Banners/AquaticParasiteBanner.cs index d22add94fe..5cc7b79bf9 100644 --- a/Items/Placeables/Banners/AquaticParasiteBanner.cs +++ b/Items/Placeables/Banners/AquaticParasiteBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AquaticParasiteBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AquaticSeekerBanner.cs b/Items/Placeables/Banners/AquaticSeekerBanner.cs index 9f848e7479..6bc5b5c221 100644 --- a/Items/Placeables/Banners/AquaticSeekerBanner.cs +++ b/Items/Placeables/Banners/AquaticSeekerBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AquaticSeekerBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AquaticUrchinBanner.cs b/Items/Placeables/Banners/AquaticUrchinBanner.cs index a428be8121..5f15874e3f 100644 --- a/Items/Placeables/Banners/AquaticUrchinBanner.cs +++ b/Items/Placeables/Banners/AquaticUrchinBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AquaticUrchinBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AriesBanner.cs b/Items/Placeables/Banners/AriesBanner.cs index 468268d1c4..2196cb2731 100644 --- a/Items/Placeables/Banners/AriesBanner.cs +++ b/Items/Placeables/Banners/AriesBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AriesBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ArmoredDiggerBanner.cs b/Items/Placeables/Banners/ArmoredDiggerBanner.cs index b683935afa..59f6590738 100644 --- a/Items/Placeables/Banners/ArmoredDiggerBanner.cs +++ b/Items/Placeables/Banners/ArmoredDiggerBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class ArmoredDiggerBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AstralProbeBanner.cs b/Items/Placeables/Banners/AstralProbeBanner.cs index d08a0df4c7..46a941bdab 100644 --- a/Items/Placeables/Banners/AstralProbeBanner.cs +++ b/Items/Placeables/Banners/AstralProbeBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AstralProbeBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AstralSlimeBanner.cs b/Items/Placeables/Banners/AstralSlimeBanner.cs index ec61cdf249..3a9dfc5ae1 100644 --- a/Items/Placeables/Banners/AstralSlimeBanner.cs +++ b/Items/Placeables/Banners/AstralSlimeBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AstralSlimeBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AstralachneaBanner.cs b/Items/Placeables/Banners/AstralachneaBanner.cs index 4c4f99bcb7..8e880025e4 100644 --- a/Items/Placeables/Banners/AstralachneaBanner.cs +++ b/Items/Placeables/Banners/AstralachneaBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AstralachneaBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/AtlasBanner.cs b/Items/Placeables/Banners/AtlasBanner.cs index 2d7d35bf2d..8330eb4a9f 100644 --- a/Items/Placeables/Banners/AtlasBanner.cs +++ b/Items/Placeables/Banners/AtlasBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class AtlasBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/BOHLDOHRBanner.cs b/Items/Placeables/Banners/BOHLDOHRBanner.cs index ac173eb9cb..45673df81f 100644 --- a/Items/Placeables/Banners/BOHLDOHRBanner.cs +++ b/Items/Placeables/Banners/BOHLDOHRBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class BOHLDOHRBanner : ModItem @@ -19,7 +21,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/BelchingCoralBanner.cs b/Items/Placeables/Banners/BelchingCoralBanner.cs index b0b7ebacb2..27309b958c 100644 --- a/Items/Placeables/Banners/BelchingCoralBanner.cs +++ b/Items/Placeables/Banners/BelchingCoralBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class BelchingCoralBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/BigSightseerBanner.cs b/Items/Placeables/Banners/BigSightseerBanner.cs index cb419504d3..6b1ceb6c3d 100644 --- a/Items/Placeables/Banners/BigSightseerBanner.cs +++ b/Items/Placeables/Banners/BigSightseerBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class BigSightseerBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/BlightedEyeBanner.cs b/Items/Placeables/Banners/BlightedEyeBanner.cs index ae07f36a7d..48f0de0cc9 100644 --- a/Items/Placeables/Banners/BlightedEyeBanner.cs +++ b/Items/Placeables/Banners/BlightedEyeBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class BlightedEyeBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/BlindedAnglerBanner.cs b/Items/Placeables/Banners/BlindedAnglerBanner.cs index 070f8e1c6f..bbf79bfb9f 100644 --- a/Items/Placeables/Banners/BlindedAnglerBanner.cs +++ b/Items/Placeables/Banners/BlindedAnglerBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class BlindedAnglerBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/BloatfishBanner.cs b/Items/Placeables/Banners/BloatfishBanner.cs index c6a4823fb3..02ec821518 100644 --- a/Items/Placeables/Banners/BloatfishBanner.cs +++ b/Items/Placeables/Banners/BloatfishBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class BloatfishBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/BloomSlimeBanner.cs b/Items/Placeables/Banners/BloomSlimeBanner.cs index 4fb161e5ed..85361bdaed 100644 --- a/Items/Placeables/Banners/BloomSlimeBanner.cs +++ b/Items/Placeables/Banners/BloomSlimeBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class BloomSlimeBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/BobbitWormBanner.cs b/Items/Placeables/Banners/BobbitWormBanner.cs index 4233e350ee..7b8222ed25 100644 --- a/Items/Placeables/Banners/BobbitWormBanner.cs +++ b/Items/Placeables/Banners/BobbitWormBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class BobbitWormBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/BoxJellyfishBanner.cs b/Items/Placeables/Banners/BoxJellyfishBanner.cs index 9bac884dff..c40e47ede1 100644 --- a/Items/Placeables/Banners/BoxJellyfishBanner.cs +++ b/Items/Placeables/Banners/BoxJellyfishBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class BoxJellyfishBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CalamityEyeBanner.cs b/Items/Placeables/Banners/CalamityEyeBanner.cs index 2277376047..346262bae4 100644 --- a/Items/Placeables/Banners/CalamityEyeBanner.cs +++ b/Items/Placeables/Banners/CalamityEyeBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CalamityEyeBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CatfishBanner.cs b/Items/Placeables/Banners/CatfishBanner.cs index a8bbd2c4d4..5d6273c753 100644 --- a/Items/Placeables/Banners/CatfishBanner.cs +++ b/Items/Placeables/Banners/CatfishBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CatfishBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ChaoticPufferBanner.cs b/Items/Placeables/Banners/ChaoticPufferBanner.cs index b323eeea91..a80af3f84a 100644 --- a/Items/Placeables/Banners/ChaoticPufferBanner.cs +++ b/Items/Placeables/Banners/ChaoticPufferBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class ChaoticPufferBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CharredSlimeBanner.cs b/Items/Placeables/Banners/CharredSlimeBanner.cs index 99c5c70d89..0681c17b24 100644 --- a/Items/Placeables/Banners/CharredSlimeBanner.cs +++ b/Items/Placeables/Banners/CharredSlimeBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CharredSlimeBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ClamBanner.cs b/Items/Placeables/Banners/ClamBanner.cs index f3b7ad5e2d..4e0418cc7e 100644 --- a/Items/Placeables/Banners/ClamBanner.cs +++ b/Items/Placeables/Banners/ClamBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class ClamBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CloudElementalBanner.cs b/Items/Placeables/Banners/CloudElementalBanner.cs index 3afccf66bb..21962c1dea 100644 --- a/Items/Placeables/Banners/CloudElementalBanner.cs +++ b/Items/Placeables/Banners/CloudElementalBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CloudElementalBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CnidrionBanner.cs b/Items/Placeables/Banners/CnidrionBanner.cs index 0a67bb2dd7..c309e6329a 100644 --- a/Items/Placeables/Banners/CnidrionBanner.cs +++ b/Items/Placeables/Banners/CnidrionBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CnidrionBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ColossalSquidBanner.cs b/Items/Placeables/Banners/ColossalSquidBanner.cs index ae0b8fe331..fa91f8b31b 100644 --- a/Items/Placeables/Banners/ColossalSquidBanner.cs +++ b/Items/Placeables/Banners/ColossalSquidBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class ColossalSquidBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CosmicElementalBanner.cs b/Items/Placeables/Banners/CosmicElementalBanner.cs index c4cae536eb..0ed480f326 100644 --- a/Items/Placeables/Banners/CosmicElementalBanner.cs +++ b/Items/Placeables/Banners/CosmicElementalBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CosmicElementalBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CrimulanBlightSlimeBanner.cs b/Items/Placeables/Banners/CrimulanBlightSlimeBanner.cs index c63684e5f1..990ef90a8e 100644 --- a/Items/Placeables/Banners/CrimulanBlightSlimeBanner.cs +++ b/Items/Placeables/Banners/CrimulanBlightSlimeBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CrimulanBlightSlimeBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CryoSlimeBanner.cs b/Items/Placeables/Banners/CryoSlimeBanner.cs index 9b5de6242c..381697930a 100644 --- a/Items/Placeables/Banners/CryoSlimeBanner.cs +++ b/Items/Placeables/Banners/CryoSlimeBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CryoSlimeBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CryonBanner.cs b/Items/Placeables/Banners/CryonBanner.cs index c24cbac2d9..aad771be2e 100644 --- a/Items/Placeables/Banners/CryonBanner.cs +++ b/Items/Placeables/Banners/CryonBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CryonBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CrystalCrawlerBanner.cs b/Items/Placeables/Banners/CrystalCrawlerBanner.cs index 2746679129..e3a19dfd06 100644 --- a/Items/Placeables/Banners/CrystalCrawlerBanner.cs +++ b/Items/Placeables/Banners/CrystalCrawlerBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CrystalCrawlerBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CultistAssassinBanner.cs b/Items/Placeables/Banners/CultistAssassinBanner.cs index caab76dc4c..a185a08226 100644 --- a/Items/Placeables/Banners/CultistAssassinBanner.cs +++ b/Items/Placeables/Banners/CultistAssassinBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CultistAssassinBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/CuttlefishBanner.cs b/Items/Placeables/Banners/CuttlefishBanner.cs index e056737c7d..cfecdc73e0 100644 --- a/Items/Placeables/Banners/CuttlefishBanner.cs +++ b/Items/Placeables/Banners/CuttlefishBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class CuttlefishBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/DespairStoneBanner.cs b/Items/Placeables/Banners/DespairStoneBanner.cs index 4b1622a0a0..1c9ca52553 100644 --- a/Items/Placeables/Banners/DespairStoneBanner.cs +++ b/Items/Placeables/Banners/DespairStoneBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class DespairStoneBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/DevilFishBanner.cs b/Items/Placeables/Banners/DevilFishBanner.cs index 8c6d29ee18..5ffddb2283 100644 --- a/Items/Placeables/Banners/DevilFishBanner.cs +++ b/Items/Placeables/Banners/DevilFishBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class DevilFishBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/DiamondCrawlerBanner.cs b/Items/Placeables/Banners/DiamondCrawlerBanner.cs index 2497ea8f80..c7474cf1dc 100644 --- a/Items/Placeables/Banners/DiamondCrawlerBanner.cs +++ b/Items/Placeables/Banners/DiamondCrawlerBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class DiamondCrawlerBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/EarthElementalBanner.cs b/Items/Placeables/Banners/EarthElementalBanner.cs index d44dd99d8a..8576860689 100644 --- a/Items/Placeables/Banners/EarthElementalBanner.cs +++ b/Items/Placeables/Banners/EarthElementalBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class EarthElementalBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/EbonianBlightSlimeBanner.cs b/Items/Placeables/Banners/EbonianBlightSlimeBanner.cs index fc46abc8bc..7f46434e39 100644 --- a/Items/Placeables/Banners/EbonianBlightSlimeBanner.cs +++ b/Items/Placeables/Banners/EbonianBlightSlimeBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class EbonianBlightSlimeBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/EidolistBanner.cs b/Items/Placeables/Banners/EidolistBanner.cs index ffab3e2aa9..7607c1c55e 100644 --- a/Items/Placeables/Banners/EidolistBanner.cs +++ b/Items/Placeables/Banners/EidolistBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class EidolistBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs b/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs index 39c44b1bcf..73a1614d21 100644 --- a/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs +++ b/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class EidolonWyrmJuvenileBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/EmeraldCrawlerBanner.cs b/Items/Placeables/Banners/EmeraldCrawlerBanner.cs index 80059761c3..df9dce31bd 100644 --- a/Items/Placeables/Banners/EmeraldCrawlerBanner.cs +++ b/Items/Placeables/Banners/EmeraldCrawlerBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class EmeraldCrawlerBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/EutrophicRayBanner.cs b/Items/Placeables/Banners/EutrophicRayBanner.cs index 1b3a31115b..b7945b7245 100644 --- a/Items/Placeables/Banners/EutrophicRayBanner.cs +++ b/Items/Placeables/Banners/EutrophicRayBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class EutrophicRayBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/FearlessGoldfishWarriorBanner.cs b/Items/Placeables/Banners/FearlessGoldfishWarriorBanner.cs index d4cebdd680..69e015be8c 100644 --- a/Items/Placeables/Banners/FearlessGoldfishWarriorBanner.cs +++ b/Items/Placeables/Banners/FearlessGoldfishWarriorBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class FearlessGoldfishWarriorBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.Calamity().customRarity = CalamityRarity.Dedicated; diff --git a/Items/Placeables/Banners/FlakBabyBanner.cs b/Items/Placeables/Banners/FlakBabyBanner.cs index 29b0b236b0..dfca97b3be 100644 --- a/Items/Placeables/Banners/FlakBabyBanner.cs +++ b/Items/Placeables/Banners/FlakBabyBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class FlakBabyBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/FlakCrabBanner.cs b/Items/Placeables/Banners/FlakCrabBanner.cs index 4bb2c9e879..d9f3f718ad 100644 --- a/Items/Placeables/Banners/FlakCrabBanner.cs +++ b/Items/Placeables/Banners/FlakCrabBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class FlakCrabBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/FlounderBanner.cs b/Items/Placeables/Banners/FlounderBanner.cs index 61f71a5e5d..6b133df1bc 100644 --- a/Items/Placeables/Banners/FlounderBanner.cs +++ b/Items/Placeables/Banners/FlounderBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class FlounderBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/FrogfishBanner.cs b/Items/Placeables/Banners/FrogfishBanner.cs index d7278c1157..3317f42898 100644 --- a/Items/Placeables/Banners/FrogfishBanner.cs +++ b/Items/Placeables/Banners/FrogfishBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class FrogfishBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/FusionFeederBanner.cs b/Items/Placeables/Banners/FusionFeederBanner.cs index 66082de9ed..12c8d1b076 100644 --- a/Items/Placeables/Banners/FusionFeederBanner.cs +++ b/Items/Placeables/Banners/FusionFeederBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class FusionFeederBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/GammaSlimeBanner.cs b/Items/Placeables/Banners/GammaSlimeBanner.cs index 5e2e674225..9f30e295cb 100644 --- a/Items/Placeables/Banners/GammaSlimeBanner.cs +++ b/Items/Placeables/Banners/GammaSlimeBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class GammaSlimeBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/GhostBellBanner.cs b/Items/Placeables/Banners/GhostBellBanner.cs index 16549d78f6..0b9315c080 100644 --- a/Items/Placeables/Banners/GhostBellBanner.cs +++ b/Items/Placeables/Banners/GhostBellBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class GhostBellBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/GhostBellSmallBanner.cs b/Items/Placeables/Banners/GhostBellSmallBanner.cs index dc9294b644..537550e25c 100644 --- a/Items/Placeables/Banners/GhostBellSmallBanner.cs +++ b/Items/Placeables/Banners/GhostBellSmallBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class GhostBellSmallBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/GiantClamBanner.cs b/Items/Placeables/Banners/GiantClamBanner.cs index b851a0bd40..1846e58205 100644 --- a/Items/Placeables/Banners/GiantClamBanner.cs +++ b/Items/Placeables/Banners/GiantClamBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class GiantClamBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/GiantSquidBanner.cs b/Items/Placeables/Banners/GiantSquidBanner.cs index 158b183bee..0e09f1d07d 100644 --- a/Items/Placeables/Banners/GiantSquidBanner.cs +++ b/Items/Placeables/Banners/GiantSquidBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class GiantSquidBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/GnasherBanner.cs b/Items/Placeables/Banners/GnasherBanner.cs index 5d3a9a149c..6ecf709e5e 100644 --- a/Items/Placeables/Banners/GnasherBanner.cs +++ b/Items/Placeables/Banners/GnasherBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class GnasherBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/GreatSandSharkBanner.cs b/Items/Placeables/Banners/GreatSandSharkBanner.cs index cc853eed01..b02e134f52 100644 --- a/Items/Placeables/Banners/GreatSandSharkBanner.cs +++ b/Items/Placeables/Banners/GreatSandSharkBanner.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Banners { public class GreatSandSharkBanner : ModItem @@ -14,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/GulperEelBanner.cs b/Items/Placeables/Banners/GulperEelBanner.cs index fd08483679..ba896d6188 100644 --- a/Items/Placeables/Banners/GulperEelBanner.cs +++ b/Items/Placeables/Banners/GulperEelBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/HadarianBanner.cs b/Items/Placeables/Banners/HadarianBanner.cs index c633bcb3d1..32f21d7c5c 100644 --- a/Items/Placeables/Banners/HadarianBanner.cs +++ b/Items/Placeables/Banners/HadarianBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/HeatSpiritBanner.cs b/Items/Placeables/Banners/HeatSpiritBanner.cs index d32c96f78a..b3d837b5b4 100644 --- a/Items/Placeables/Banners/HeatSpiritBanner.cs +++ b/Items/Placeables/Banners/HeatSpiritBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/HiveBanner.cs b/Items/Placeables/Banners/HiveBanner.cs index fed64a63df..63a93d2073 100644 --- a/Items/Placeables/Banners/HiveBanner.cs +++ b/Items/Placeables/Banners/HiveBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/IceClasperBanner.cs b/Items/Placeables/Banners/IceClasperBanner.cs index 8f54d7e49d..497ce6b2b3 100644 --- a/Items/Placeables/Banners/IceClasperBanner.cs +++ b/Items/Placeables/Banners/IceClasperBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ImpiousImmolatorBanner.cs b/Items/Placeables/Banners/ImpiousImmolatorBanner.cs index 1b9140e3ed..0f1d1dfd39 100644 --- a/Items/Placeables/Banners/ImpiousImmolatorBanner.cs +++ b/Items/Placeables/Banners/ImpiousImmolatorBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/IrradiatedSlimeBanner.cs b/Items/Placeables/Banners/IrradiatedSlimeBanner.cs index 20b88a97cc..d7682a21e6 100644 --- a/Items/Placeables/Banners/IrradiatedSlimeBanner.cs +++ b/Items/Placeables/Banners/IrradiatedSlimeBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/LaserfishBanner.cs b/Items/Placeables/Banners/LaserfishBanner.cs index 75f5c7d19c..76b9874ed6 100644 --- a/Items/Placeables/Banners/LaserfishBanner.cs +++ b/Items/Placeables/Banners/LaserfishBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/LuminousCorvinaBanner.cs b/Items/Placeables/Banners/LuminousCorvinaBanner.cs index 790d4548d9..8fe351a899 100644 --- a/Items/Placeables/Banners/LuminousCorvinaBanner.cs +++ b/Items/Placeables/Banners/LuminousCorvinaBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/MantisBanner.cs b/Items/Placeables/Banners/MantisBanner.cs index bb7526f9d3..4b1199c86e 100644 --- a/Items/Placeables/Banners/MantisBanner.cs +++ b/Items/Placeables/Banners/MantisBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/MantisShrimpBanner.cs b/Items/Placeables/Banners/MantisShrimpBanner.cs index d43a5957bc..997a6d30b3 100644 --- a/Items/Placeables/Banners/MantisShrimpBanner.cs +++ b/Items/Placeables/Banners/MantisShrimpBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/MaulerBanner.cs b/Items/Placeables/Banners/MaulerBanner.cs index 45595f8948..eb0ca8ab57 100644 --- a/Items/Placeables/Banners/MaulerBanner.cs +++ b/Items/Placeables/Banners/MaulerBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/MelterBanner.cs b/Items/Placeables/Banners/MelterBanner.cs index 24bcf8c5a8..0b8766b536 100644 --- a/Items/Placeables/Banners/MelterBanner.cs +++ b/Items/Placeables/Banners/MelterBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/MirageJellyBanner.cs b/Items/Placeables/Banners/MirageJellyBanner.cs index afe0883655..21a417cd45 100644 --- a/Items/Placeables/Banners/MirageJellyBanner.cs +++ b/Items/Placeables/Banners/MirageJellyBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/MorayEelBanner.cs b/Items/Placeables/Banners/MorayEelBanner.cs index a266569976..7d0d65524a 100644 --- a/Items/Placeables/Banners/MorayEelBanner.cs +++ b/Items/Placeables/Banners/MorayEelBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/NovaBanner.cs b/Items/Placeables/Banners/NovaBanner.cs index c9ef071793..9931312d93 100644 --- a/Items/Placeables/Banners/NovaBanner.cs +++ b/Items/Placeables/Banners/NovaBanner.cs @@ -1,6 +1,7 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Banners { public class NovaBanner : ModItem @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/NuclearToadBanner.cs b/Items/Placeables/Banners/NuclearToadBanner.cs index ef770b8866..7e56b4d694 100644 --- a/Items/Placeables/Banners/NuclearToadBanner.cs +++ b/Items/Placeables/Banners/NuclearToadBanner.cs @@ -1,6 +1,7 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Banners { public class NuclearToadBanner : ModItem @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/OarfishBanner.cs b/Items/Placeables/Banners/OarfishBanner.cs index 56b36f6e78..16022eb63b 100644 --- a/Items/Placeables/Banners/OarfishBanner.cs +++ b/Items/Placeables/Banners/OarfishBanner.cs @@ -1,6 +1,7 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Banners { public class OarfishBanner : ModItem @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/OrthoceraBanner.cs b/Items/Placeables/Banners/OrthoceraBanner.cs index 565ae130ee..85310742c6 100644 --- a/Items/Placeables/Banners/OrthoceraBanner.cs +++ b/Items/Placeables/Banners/OrthoceraBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/OverloadedSoldierBanner.cs b/Items/Placeables/Banners/OverloadedSoldierBanner.cs index 6a18b20edb..a1766a486d 100644 --- a/Items/Placeables/Banners/OverloadedSoldierBanner.cs +++ b/Items/Placeables/Banners/OverloadedSoldierBanner.cs @@ -1,6 +1,7 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Banners { public class OverloadedSoldierBanner : ModItem @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ParaseaBanner.cs b/Items/Placeables/Banners/ParaseaBanner.cs index 8e30599c52..b0f09b0d37 100644 --- a/Items/Placeables/Banners/ParaseaBanner.cs +++ b/Items/Placeables/Banners/ParaseaBanner.cs @@ -1,6 +1,7 @@ using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Banners { public class ParaseaBanner : ModItem @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/PerennialSlimeBanner.cs b/Items/Placeables/Banners/PerennialSlimeBanner.cs index 22e645564a..98ad464b70 100644 --- a/Items/Placeables/Banners/PerennialSlimeBanner.cs +++ b/Items/Placeables/Banners/PerennialSlimeBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/PestilentSlimeBanner.cs b/Items/Placeables/Banners/PestilentSlimeBanner.cs index f1dda5d542..7f3a0547d8 100644 --- a/Items/Placeables/Banners/PestilentSlimeBanner.cs +++ b/Items/Placeables/Banners/PestilentSlimeBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/PhantomDebrisBanner.cs b/Items/Placeables/Banners/PhantomDebrisBanner.cs index 73cb25a259..b6b5bc6e97 100644 --- a/Items/Placeables/Banners/PhantomDebrisBanner.cs +++ b/Items/Placeables/Banners/PhantomDebrisBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/PhantomSpiritBanner.cs b/Items/Placeables/Banners/PhantomSpiritBanner.cs index fb7486aa62..7cdf7b3bc1 100644 --- a/Items/Placeables/Banners/PhantomSpiritBanner.cs +++ b/Items/Placeables/Banners/PhantomSpiritBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/PiggyBanner.cs b/Items/Placeables/Banners/PiggyBanner.cs index d54624180e..5ef0b3fae4 100644 --- a/Items/Placeables/Banners/PiggyBanner.cs +++ b/Items/Placeables/Banners/PiggyBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.Calamity().customRarity = CalamityRarity.Dedicated; diff --git a/Items/Placeables/Banners/PitbullBanner.cs b/Items/Placeables/Banners/PitbullBanner.cs index e3702fd7d0..ab5484f0bc 100644 --- a/Items/Placeables/Banners/PitbullBanner.cs +++ b/Items/Placeables/Banners/PitbullBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/PlagueChargerBanner.cs b/Items/Placeables/Banners/PlagueChargerBanner.cs index aefc041a76..9e5d52ce37 100644 --- a/Items/Placeables/Banners/PlagueChargerBanner.cs +++ b/Items/Placeables/Banners/PlagueChargerBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/PlaguebringerBanner.cs b/Items/Placeables/Banners/PlaguebringerBanner.cs index 612fc00d31..506f625262 100644 --- a/Items/Placeables/Banners/PlaguebringerBanner.cs +++ b/Items/Placeables/Banners/PlaguebringerBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/PlagueshellBanner.cs b/Items/Placeables/Banners/PlagueshellBanner.cs index d2f7d506f5..3d3d9976ea 100644 --- a/Items/Placeables/Banners/PlagueshellBanner.cs +++ b/Items/Placeables/Banners/PlagueshellBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/PrismTurtleBanner.cs b/Items/Placeables/Banners/PrismTurtleBanner.cs index 0fec0e60cd..16a5070d8f 100644 --- a/Items/Placeables/Banners/PrismTurtleBanner.cs +++ b/Items/Placeables/Banners/PrismTurtleBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ProfanedEnergyBanner.cs b/Items/Placeables/Banners/ProfanedEnergyBanner.cs index b39234997f..8bbcdc7c88 100644 --- a/Items/Placeables/Banners/ProfanedEnergyBanner.cs +++ b/Items/Placeables/Banners/ProfanedEnergyBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/RadiatorBanner.cs b/Items/Placeables/Banners/RadiatorBanner.cs index aad7677f23..74e16b83ef 100644 --- a/Items/Placeables/Banners/RadiatorBanner.cs +++ b/Items/Placeables/Banners/RadiatorBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ReaperSharkBanner.cs b/Items/Placeables/Banners/ReaperSharkBanner.cs index 469cb23411..930dc1d033 100644 --- a/Items/Placeables/Banners/ReaperSharkBanner.cs +++ b/Items/Placeables/Banners/ReaperSharkBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/RubyCrawlerBanner.cs b/Items/Placeables/Banners/RubyCrawlerBanner.cs index 950f47aad0..cb787e3e07 100644 --- a/Items/Placeables/Banners/RubyCrawlerBanner.cs +++ b/Items/Placeables/Banners/RubyCrawlerBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SandTortoiseBanner.cs b/Items/Placeables/Banners/SandTortoiseBanner.cs index 9ddc190f8d..5eeb70405a 100644 --- a/Items/Placeables/Banners/SandTortoiseBanner.cs +++ b/Items/Placeables/Banners/SandTortoiseBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SapphireCrawlerBanner.cs b/Items/Placeables/Banners/SapphireCrawlerBanner.cs index adec5a0cef..f1b163d6a5 100644 --- a/Items/Placeables/Banners/SapphireCrawlerBanner.cs +++ b/Items/Placeables/Banners/SapphireCrawlerBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ScornEaterBanner.cs b/Items/Placeables/Banners/ScornEaterBanner.cs index 0502bb7195..ae78629bdb 100644 --- a/Items/Placeables/Banners/ScornEaterBanner.cs +++ b/Items/Placeables/Banners/ScornEaterBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ScryllarBanner.cs b/Items/Placeables/Banners/ScryllarBanner.cs index 1f1522365e..f89f306d60 100644 --- a/Items/Placeables/Banners/ScryllarBanner.cs +++ b/Items/Placeables/Banners/ScryllarBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SeaFloatyBanner.cs b/Items/Placeables/Banners/SeaFloatyBanner.cs index d73a1351dd..50b090c5b3 100644 --- a/Items/Placeables/Banners/SeaFloatyBanner.cs +++ b/Items/Placeables/Banners/SeaFloatyBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SeaMinnowBanner.cs b/Items/Placeables/Banners/SeaMinnowBanner.cs index a13566e49c..9f7f15414a 100644 --- a/Items/Placeables/Banners/SeaMinnowBanner.cs +++ b/Items/Placeables/Banners/SeaMinnowBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SeaSerpentBanner.cs b/Items/Placeables/Banners/SeaSerpentBanner.cs index c7563349bb..e8be035af1 100644 --- a/Items/Placeables/Banners/SeaSerpentBanner.cs +++ b/Items/Placeables/Banners/SeaSerpentBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SeaUrchinBanner.cs b/Items/Placeables/Banners/SeaUrchinBanner.cs index c90d6223e9..87446a7eaa 100644 --- a/Items/Placeables/Banners/SeaUrchinBanner.cs +++ b/Items/Placeables/Banners/SeaUrchinBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ShockstormShuttleBanner.cs b/Items/Placeables/Banners/ShockstormShuttleBanner.cs index e947dacbef..a55f0f2073 100644 --- a/Items/Placeables/Banners/ShockstormShuttleBanner.cs +++ b/Items/Placeables/Banners/ShockstormShuttleBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SkyfinBanner.cs b/Items/Placeables/Banners/SkyfinBanner.cs index 94408ffd0c..9a74793882 100644 --- a/Items/Placeables/Banners/SkyfinBanner.cs +++ b/Items/Placeables/Banners/SkyfinBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SmallSightseerBanner.cs b/Items/Placeables/Banners/SmallSightseerBanner.cs index 0301cd78a6..4f0cacc1a5 100644 --- a/Items/Placeables/Banners/SmallSightseerBanner.cs +++ b/Items/Placeables/Banners/SmallSightseerBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SoulSluperBanner.cs b/Items/Placeables/Banners/SoulSluperBanner.cs index c4f5d9fa74..559fed4cac 100644 --- a/Items/Placeables/Banners/SoulSluperBanner.cs +++ b/Items/Placeables/Banners/SoulSluperBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/StellarCulexBanner.cs b/Items/Placeables/Banners/StellarCulexBanner.cs index 7fbd7b9425..167451763e 100644 --- a/Items/Placeables/Banners/StellarCulexBanner.cs +++ b/Items/Placeables/Banners/StellarCulexBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/StormlionBanner.cs b/Items/Placeables/Banners/StormlionBanner.cs index 262f0eab35..607edb3c09 100644 --- a/Items/Placeables/Banners/StormlionBanner.cs +++ b/Items/Placeables/Banners/StormlionBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SulfurousSkaterBanner.cs b/Items/Placeables/Banners/SulfurousSkaterBanner.cs index 15d32c0314..78f2010fbc 100644 --- a/Items/Placeables/Banners/SulfurousSkaterBanner.cs +++ b/Items/Placeables/Banners/SulfurousSkaterBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SunBatBanner.cs b/Items/Placeables/Banners/SunBatBanner.cs index 6c45c2fd15..1dd92c983e 100644 --- a/Items/Placeables/Banners/SunBatBanner.cs +++ b/Items/Placeables/Banners/SunBatBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/SunskaterBanner.cs b/Items/Placeables/Banners/SunskaterBanner.cs index 1c432a9838..7218e83b9a 100644 --- a/Items/Placeables/Banners/SunskaterBanner.cs +++ b/Items/Placeables/Banners/SunskaterBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/TopazCrawlerBanner.cs b/Items/Placeables/Banners/TopazCrawlerBanner.cs index 44756ed8a8..2f8c6408a3 100644 --- a/Items/Placeables/Banners/TopazCrawlerBanner.cs +++ b/Items/Placeables/Banners/TopazCrawlerBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ToxicMinnowBanner.cs b/Items/Placeables/Banners/ToxicMinnowBanner.cs index ddf2fe041d..6a7b032f05 100644 --- a/Items/Placeables/Banners/ToxicMinnowBanner.cs +++ b/Items/Placeables/Banners/ToxicMinnowBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/TrasherBanner.cs b/Items/Placeables/Banners/TrasherBanner.cs index 6cba060dd2..8ce4e2c091 100644 --- a/Items/Placeables/Banners/TrasherBanner.cs +++ b/Items/Placeables/Banners/TrasherBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/TrilobiteBanner.cs b/Items/Placeables/Banners/TrilobiteBanner.cs index d730d9c795..ec137ee2fa 100644 --- a/Items/Placeables/Banners/TrilobiteBanner.cs +++ b/Items/Placeables/Banners/TrilobiteBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/ViperfishBanner.cs b/Items/Placeables/Banners/ViperfishBanner.cs index a8517af5c2..f8adb6039c 100644 --- a/Items/Placeables/Banners/ViperfishBanner.cs +++ b/Items/Placeables/Banners/ViperfishBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/VirulingBanner.cs b/Items/Placeables/Banners/VirulingBanner.cs index 71c9d0d7ae..a752842fb5 100644 --- a/Items/Placeables/Banners/VirulingBanner.cs +++ b/Items/Placeables/Banners/VirulingBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/WaterLeechBanner.cs b/Items/Placeables/Banners/WaterLeechBanner.cs index bea85e2872..b204dbe622 100644 --- a/Items/Placeables/Banners/WaterLeechBanner.cs +++ b/Items/Placeables/Banners/WaterLeechBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/WulfrumDroneBanner.cs b/Items/Placeables/Banners/WulfrumDroneBanner.cs index ebcac4d817..ff900a9127 100644 --- a/Items/Placeables/Banners/WulfrumDroneBanner.cs +++ b/Items/Placeables/Banners/WulfrumDroneBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/Banners/WulfrumSlimeBanner.cs b/Items/Placeables/Banners/WulfrumSlimeBanner.cs index bb186aeaa3..f3b561b2d6 100644 --- a/Items/Placeables/Banners/WulfrumSlimeBanner.cs +++ b/Items/Placeables/Banners/WulfrumSlimeBanner.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Banners { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Banners item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.rare = 1; item.value = Item.buyPrice(0, 0, 10, 0); diff --git a/Items/Placeables/BrimstoneSlag.cs b/Items/Placeables/BrimstoneSlag.cs index 70cdcab8de..772a990283 100644 --- a/Items/Placeables/BrimstoneSlag.cs +++ b/Items/Placeables/BrimstoneSlag.cs @@ -1,4 +1,5 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables { @@ -12,7 +13,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/ChaoticBrick.cs b/Items/Placeables/ChaoticBrick.cs index b4a83669c8..c43f026b1e 100644 --- a/Items/Placeables/ChaoticBrick.cs +++ b/Items/Placeables/ChaoticBrick.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -27,13 +27,13 @@ namespace CalamityMod.Items.Placeables ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.StoneBlock, 1); recipe.AddIngredient(ModContent.ItemType(), 1); - recipe.AddTile(17); + recipe.AddTile(TileID.Furnaces); recipe.SetResult(this, 1); recipe.AddRecipe(); recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.SetResult(this, 1); recipe.AddRecipe(); } diff --git a/Items/Placeables/Cinderplate.cs b/Items/Placeables/Cinderplate.cs index df66db992d..0f5ebf5a9f 100644 --- a/Items/Placeables/Cinderplate.cs +++ b/Items/Placeables/Cinderplate.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/CryonicBrick.cs b/Items/Placeables/CryonicBrick.cs index 9da2176c45..502aebbd95 100644 --- a/Items/Placeables/CryonicBrick.cs +++ b/Items/Placeables/CryonicBrick.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Placeables.Ores; using CalamityMod.Items.Placeables.Walls; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/EutrophicSand.cs b/Items/Placeables/EutrophicSand.cs index 5a520eac8a..2e33dc490d 100644 --- a/Items/Placeables/EutrophicSand.cs +++ b/Items/Placeables/EutrophicSand.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables { public class EutrophicSand : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -27,7 +29,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Placeables/Furniture/AstralChest.cs b/Items/Placeables/Furniture/AstralChest.cs index 93c7a932b5..00cc6bf3b8 100644 --- a/Items/Placeables/Furniture/AstralChest.cs +++ b/Items/Placeables/Furniture/AstralChest.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Astral; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture { public class AstralChest : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 500; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/Furniture/BabyFlakHermitCage.cs b/Items/Placeables/Furniture/BabyFlakHermitCage.cs index 670855cfdd..4b505cf857 100644 --- a/Items/Placeables/Furniture/BabyFlakHermitCage.cs +++ b/Items/Placeables/Furniture/BabyFlakHermitCage.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Furniture/BabyGhostBellJar.cs b/Items/Placeables/Furniture/BabyGhostBellJar.cs index d20c7c590f..6f85973dce 100644 --- a/Items/Placeables/Furniture/BabyGhostBellJar.cs +++ b/Items/Placeables/Furniture/BabyGhostBellJar.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Furniture/BlueCandle.cs b/Items/Placeables/Furniture/BlueCandle.cs index 5153f4ca6d..b7d85d8553 100644 --- a/Items/Placeables/Furniture/BlueCandle.cs +++ b/Items/Placeables/Furniture/BlueCandle.cs @@ -1,5 +1,6 @@ using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Furniture { @@ -21,7 +22,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = Item.buyPrice(0, 50, 0, 0); item.rare = 6; diff --git a/Items/Placeables/Furniture/ChaosCandle.cs b/Items/Placeables/Furniture/ChaosCandle.cs index b2a12ace09..09e7e6fb1f 100644 --- a/Items/Placeables/Furniture/ChaosCandle.cs +++ b/Items/Placeables/Furniture/ChaosCandle.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 500; item.createTile = ModContent.TileType(); @@ -63,7 +63,7 @@ namespace CalamityMod.Items.Placeables.Furniture recipe.AddIngredient(ModContent.ItemType(), 2); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Furniture/CorruptionEffigy.cs b/Items/Placeables/Furniture/CorruptionEffigy.cs index 33dff32e42..8fa2c09af0 100644 --- a/Items/Placeables/Furniture/CorruptionEffigy.cs +++ b/Items/Placeables/Furniture/CorruptionEffigy.cs @@ -1,5 +1,6 @@ using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Furniture { @@ -21,7 +22,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = Item.buyPrice(0, 9, 0, 0); item.rare = 3; diff --git a/Items/Placeables/Furniture/CraftingStations/AncientAltar.cs b/Items/Placeables/Furniture/CraftingStations/AncientAltar.cs index f4701f2c16..fc6bddd353 100644 --- a/Items/Placeables/Furniture/CraftingStations/AncientAltar.cs +++ b/Items/Placeables/Furniture/CraftingStations/AncientAltar.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/Furniture/CraftingStations/AshenAltar.cs b/Items/Placeables/Furniture/CraftingStations/AshenAltar.cs index 7c75e3a471..aae043ab5d 100644 --- a/Items/Placeables/Furniture/CraftingStations/AshenAltar.cs +++ b/Items/Placeables/Furniture/CraftingStations/AshenAltar.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.value = 0; item.consumable = true; diff --git a/Items/Placeables/Furniture/CraftingStations/BotanicPlanter.cs b/Items/Placeables/Furniture/CraftingStations/BotanicPlanter.cs index 8698fb8470..512c19c5fd 100644 --- a/Items/Placeables/Furniture/CraftingStations/BotanicPlanter.cs +++ b/Items/Placeables/Furniture/CraftingStations/BotanicPlanter.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations recipe.AddIngredient(ModContent.ItemType(), 20); recipe.AddIngredient(ItemID.JungleSpores, 5); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs index 411692b680..ea2510ae06 100644 --- a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs +++ b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 5000000; item.rare = 10; diff --git a/Items/Placeables/Furniture/CraftingStations/EutrophicCrafting.cs b/Items/Placeables/Furniture/CraftingStations/EutrophicCrafting.cs index 25425be023..1070f682b0 100644 --- a/Items/Placeables/Furniture/CraftingStations/EutrophicCrafting.cs +++ b/Items/Placeables/Furniture/CraftingStations/EutrophicCrafting.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Furniture/CraftingStations/MonolithCrafting.cs b/Items/Placeables/Furniture/CraftingStations/MonolithCrafting.cs index 67bcd25083..6c80fb13f3 100644 --- a/Items/Placeables/Furniture/CraftingStations/MonolithCrafting.cs +++ b/Items/Placeables/Furniture/CraftingStations/MonolithCrafting.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Furniture/CraftingStations/PlagueInfuser.cs b/Items/Placeables/Furniture/CraftingStations/PlagueInfuser.cs index 28c00dd152..c87cb398df 100644 --- a/Items/Placeables/Furniture/CraftingStations/PlagueInfuser.cs +++ b/Items/Placeables/Furniture/CraftingStations/PlagueInfuser.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Furniture/CraftingStations/ProfanedBasin.cs b/Items/Placeables/Furniture/CraftingStations/ProfanedBasin.cs index b57b64fb73..a502089377 100644 --- a/Items/Placeables/Furniture/CraftingStations/ProfanedBasin.cs +++ b/Items/Placeables/Furniture/CraftingStations/ProfanedBasin.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.FurnitureProfaned; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.CraftingStations { @@ -20,7 +21,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -31,7 +32,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations recipe.AddIngredient(ModContent.ItemType(), 10); recipe.AddIngredient(ModContent.ItemType(), 5); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Furniture/CraftingStations/SilvaBasin.cs b/Items/Placeables/Furniture/CraftingStations/SilvaBasin.cs index 8960cb33af..dfb7268919 100644 --- a/Items/Placeables/Furniture/CraftingStations/SilvaBasin.cs +++ b/Items/Placeables/Furniture/CraftingStations/SilvaBasin.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Furniture/CraftingStations/StaticRefiner.cs b/Items/Placeables/Furniture/CraftingStations/StaticRefiner.cs index d99275ad05..f955dca894 100644 --- a/Items/Placeables/Furniture/CraftingStations/StaticRefiner.cs +++ b/Items/Placeables/Furniture/CraftingStations/StaticRefiner.cs @@ -1,3 +1,4 @@ +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.CraftingStations { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Furniture/CraftingStations/VoidCondenser.cs b/Items/Placeables/Furniture/CraftingStations/VoidCondenser.cs index d645cd057a..6e87338026 100644 --- a/Items/Placeables/Furniture/CraftingStations/VoidCondenser.cs +++ b/Items/Placeables/Furniture/CraftingStations/VoidCondenser.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Furniture/CrimsonEffigy.cs b/Items/Placeables/Furniture/CrimsonEffigy.cs index 42c2395e01..33f172db0d 100644 --- a/Items/Placeables/Furniture/CrimsonEffigy.cs +++ b/Items/Placeables/Furniture/CrimsonEffigy.cs @@ -1,5 +1,6 @@ using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Furniture { @@ -21,7 +22,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = Item.buyPrice(0, 9, 0, 0); item.rare = 3; diff --git a/Items/Placeables/Furniture/EffigyOfDecay.cs b/Items/Placeables/Furniture/EffigyOfDecay.cs index 50eb4a6b11..e748104277 100644 --- a/Items/Placeables/Furniture/EffigyOfDecay.cs +++ b/Items/Placeables/Furniture/EffigyOfDecay.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = Item.buyPrice(0, 9, 0, 0); item.rare = 3; diff --git a/Items/Placeables/Furniture/Fountains/AbyssFountainItem.cs b/Items/Placeables/Furniture/Fountains/AbyssFountainItem.cs index f1f018affe..8fd17add27 100644 --- a/Items/Placeables/Furniture/Fountains/AbyssFountainItem.cs +++ b/Items/Placeables/Furniture/Fountains/AbyssFountainItem.cs @@ -1,6 +1,7 @@ using Terraria; using Terraria.ModLoader; using CalamityMod.Tiles.Furniture.Fountains; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Furniture.Fountains { @@ -20,7 +21,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 0; diff --git a/Items/Placeables/Furniture/Fountains/AstralFountainItem.cs b/Items/Placeables/Furniture/Fountains/AstralFountainItem.cs index 7891da5667..518ca1e943 100644 --- a/Items/Placeables/Furniture/Fountains/AstralFountainItem.cs +++ b/Items/Placeables/Furniture/Fountains/AstralFountainItem.cs @@ -1,6 +1,7 @@ using Terraria; using Terraria.ModLoader; using CalamityMod.Tiles.Furniture.Fountains; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Furniture.Fountains { @@ -20,7 +21,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 0; diff --git a/Items/Placeables/Furniture/Fountains/SulphurousFountainItem.cs b/Items/Placeables/Furniture/Fountains/SulphurousFountainItem.cs index 78316ac7b4..9b76db1934 100644 --- a/Items/Placeables/Furniture/Fountains/SulphurousFountainItem.cs +++ b/Items/Placeables/Furniture/Fountains/SulphurousFountainItem.cs @@ -1,4 +1,5 @@ using Terraria; +using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Tiles.Furniture.Fountains; @@ -20,7 +21,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 0; diff --git a/Items/Placeables/Furniture/Fountains/SunkenSeaFountain.cs b/Items/Placeables/Furniture/Fountains/SunkenSeaFountain.cs index 82099e5799..d796c97787 100644 --- a/Items/Placeables/Furniture/Fountains/SunkenSeaFountain.cs +++ b/Items/Placeables/Furniture/Fountains/SunkenSeaFountain.cs @@ -1,4 +1,5 @@ using Terraria; +using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Tiles.Furniture.Fountains; @@ -20,7 +21,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 0; diff --git a/Items/Placeables/Furniture/PiggyCage.cs b/Items/Placeables/Furniture/PiggyCage.cs index 869ccface4..c7c0e930c2 100644 --- a/Items/Placeables/Furniture/PiggyCage.cs +++ b/Items/Placeables/Furniture/PiggyCage.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); item.Calamity().customRarity = CalamityRarity.Dedicated; diff --git a/Items/Placeables/Furniture/PinkCandle.cs b/Items/Placeables/Furniture/PinkCandle.cs index 4c28c62fb1..25300ade45 100644 --- a/Items/Placeables/Furniture/PinkCandle.cs +++ b/Items/Placeables/Furniture/PinkCandle.cs @@ -1,4 +1,5 @@ using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture @@ -22,7 +23,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = Item.buyPrice(0, 50, 0, 0); item.rare = 6; diff --git a/Items/Placeables/Furniture/PurpleCandle.cs b/Items/Placeables/Furniture/PurpleCandle.cs index 149a3c618c..b927ded18d 100644 --- a/Items/Placeables/Furniture/PurpleCandle.cs +++ b/Items/Placeables/Furniture/PurpleCandle.cs @@ -1,4 +1,5 @@ using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture @@ -21,7 +22,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = Item.buyPrice(0, 50, 0, 0); item.rare = 6; diff --git a/Items/Placeables/Furniture/RustyChest.cs b/Items/Placeables/Furniture/RustyChest.cs index 0230fb4cbc..ebd21d9305 100644 --- a/Items/Placeables/Furniture/RustyChest.cs +++ b/Items/Placeables/Furniture/RustyChest.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 500; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/Furniture/SeaMinnowJar.cs b/Items/Placeables/Furniture/SeaMinnowJar.cs index 11fdd0a76a..40c762f7ac 100644 --- a/Items/Placeables/Furniture/SeaMinnowJar.cs +++ b/Items/Placeables/Furniture/SeaMinnowJar.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Furniture/TranquilityCandle.cs b/Items/Placeables/Furniture/TranquilityCandle.cs index b72f6ec8a0..ead77f5fc0 100644 --- a/Items/Placeables/Furniture/TranquilityCandle.cs +++ b/Items/Placeables/Furniture/TranquilityCandle.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 500; item.createTile = ModContent.TileType(); @@ -62,7 +62,7 @@ namespace CalamityMod.Items.Placeables.Furniture recipe.AddIngredient(ModContent.ItemType(), 2); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Furniture/Trophies/AquaticScourgeTrophy.cs b/Items/Placeables/Furniture/Trophies/AquaticScourgeTrophy.cs index ca6ee44061..3b8118122e 100644 --- a/Items/Placeables/Furniture/Trophies/AquaticScourgeTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/AquaticScourgeTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class AquaticScourgeTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/AstrageldonTrophy.cs b/Items/Placeables/Furniture/Trophies/AstrageldonTrophy.cs index ed0fb1f97a..0ee7ab393d 100644 --- a/Items/Placeables/Furniture/Trophies/AstrageldonTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/AstrageldonTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class AstrageldonTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/AstrumDeusTrophy.cs b/Items/Placeables/Furniture/Trophies/AstrumDeusTrophy.cs index db5e37636e..6bc3824e5e 100644 --- a/Items/Placeables/Furniture/Trophies/AstrumDeusTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/AstrumDeusTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class AstrumDeusTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/BrimstoneElementalTrophy.cs b/Items/Placeables/Furniture/Trophies/BrimstoneElementalTrophy.cs index 30fadd1a2a..635e64b756 100644 --- a/Items/Placeables/Furniture/Trophies/BrimstoneElementalTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/BrimstoneElementalTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class BrimstoneElementalTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/BumblebirbTrophy.cs b/Items/Placeables/Furniture/Trophies/BumblebirbTrophy.cs index e7cb9eef03..b54347c801 100644 --- a/Items/Placeables/Furniture/Trophies/BumblebirbTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/BumblebirbTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class BumblebirbTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/CalamitasTrophy.cs b/Items/Placeables/Furniture/Trophies/CalamitasTrophy.cs index 6eb6c24596..3531e9ffb9 100644 --- a/Items/Placeables/Furniture/Trophies/CalamitasTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/CalamitasTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class CalamitasTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/CataclysmTrophy.cs b/Items/Placeables/Furniture/Trophies/CataclysmTrophy.cs index f5f8a242e2..050e5e5dcd 100644 --- a/Items/Placeables/Furniture/Trophies/CataclysmTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/CataclysmTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class CataclysmTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/CatastropheTrophy.cs b/Items/Placeables/Furniture/Trophies/CatastropheTrophy.cs index 94df5c93a1..83ce3dc1ee 100644 --- a/Items/Placeables/Furniture/Trophies/CatastropheTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/CatastropheTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class CatastropheTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/CeaselessVoidTrophy.cs b/Items/Placeables/Furniture/Trophies/CeaselessVoidTrophy.cs index f3d8c20422..cafd13e2a6 100644 --- a/Items/Placeables/Furniture/Trophies/CeaselessVoidTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/CeaselessVoidTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class CeaselessVoidTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/CrabulonTrophy.cs b/Items/Placeables/Furniture/Trophies/CrabulonTrophy.cs index 0c236d19bb..4fb039f75e 100644 --- a/Items/Placeables/Furniture/Trophies/CrabulonTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/CrabulonTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class CrabulonTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/CryogenTrophy.cs b/Items/Placeables/Furniture/Trophies/CryogenTrophy.cs index 51a8ef30fd..7f388ab42c 100644 --- a/Items/Placeables/Furniture/Trophies/CryogenTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/CryogenTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class CryogenTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/DesertScourgeTrophy.cs b/Items/Placeables/Furniture/Trophies/DesertScourgeTrophy.cs index 9efc25a6f6..9becaa9747 100644 --- a/Items/Placeables/Furniture/Trophies/DesertScourgeTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/DesertScourgeTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class DesertScourgeTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/DevourerofGodsTrophy.cs b/Items/Placeables/Furniture/Trophies/DevourerofGodsTrophy.cs index 24d81caa65..b94f93296b 100644 --- a/Items/Placeables/Furniture/Trophies/DevourerofGodsTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/DevourerofGodsTrophy.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class DevourerofGodsTrophy : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/HiveMindTrophy.cs b/Items/Placeables/Furniture/Trophies/HiveMindTrophy.cs index 818e004fb3..340b2d13a1 100644 --- a/Items/Placeables/Furniture/Trophies/HiveMindTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/HiveMindTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/LeviathanTrophy.cs b/Items/Placeables/Furniture/Trophies/LeviathanTrophy.cs index 98eb9b77f9..1f21b2cf7f 100644 --- a/Items/Placeables/Furniture/Trophies/LeviathanTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/LeviathanTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/OldDukeTrophy.cs b/Items/Placeables/Furniture/Trophies/OldDukeTrophy.cs index 1c1016f360..c835466e09 100644 --- a/Items/Placeables/Furniture/Trophies/OldDukeTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/OldDukeTrophy.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles.Furniture; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Furniture.Trophies { public class OldDukeTrophy : ModItem @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/PerforatorTrophy.cs b/Items/Placeables/Furniture/Trophies/PerforatorTrophy.cs index e82b31a827..6311f7cd6a 100644 --- a/Items/Placeables/Furniture/Trophies/PerforatorTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/PerforatorTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/PlaguebringerGoliathTrophy.cs b/Items/Placeables/Furniture/Trophies/PlaguebringerGoliathTrophy.cs index b239b1a48c..a14ee9ebeb 100644 --- a/Items/Placeables/Furniture/Trophies/PlaguebringerGoliathTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/PlaguebringerGoliathTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/PolterghastTrophy.cs b/Items/Placeables/Furniture/Trophies/PolterghastTrophy.cs index 8240ffe886..da56d6861e 100644 --- a/Items/Placeables/Furniture/Trophies/PolterghastTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/PolterghastTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/ProfanedGuardianTrophy.cs b/Items/Placeables/Furniture/Trophies/ProfanedGuardianTrophy.cs index d3edb826df..277a403418 100644 --- a/Items/Placeables/Furniture/Trophies/ProfanedGuardianTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/ProfanedGuardianTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/ProvidenceTrophy.cs b/Items/Placeables/Furniture/Trophies/ProvidenceTrophy.cs index feaaf5a724..e7ffbcdf24 100644 --- a/Items/Placeables/Furniture/Trophies/ProvidenceTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/ProvidenceTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/RavagerTrophy.cs b/Items/Placeables/Furniture/Trophies/RavagerTrophy.cs index 33e4eff343..1c968db2a4 100644 --- a/Items/Placeables/Furniture/Trophies/RavagerTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/RavagerTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/SignusTrophy.cs b/Items/Placeables/Furniture/Trophies/SignusTrophy.cs index 8058b75b21..2421e2707d 100644 --- a/Items/Placeables/Furniture/Trophies/SignusTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/SignusTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/SlimeGodTrophy.cs b/Items/Placeables/Furniture/Trophies/SlimeGodTrophy.cs index 39caeb0aea..799aebdaa9 100644 --- a/Items/Placeables/Furniture/Trophies/SlimeGodTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/SlimeGodTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/SupremeCalamitasTrophy.cs b/Items/Placeables/Furniture/Trophies/SupremeCalamitasTrophy.cs index 6601314ed5..e99c6bcbe1 100644 --- a/Items/Placeables/Furniture/Trophies/SupremeCalamitasTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/SupremeCalamitasTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/WeaverTrophy.cs b/Items/Placeables/Furniture/Trophies/WeaverTrophy.cs index bce48774bf..574644403f 100644 --- a/Items/Placeables/Furniture/Trophies/WeaverTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/WeaverTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/Trophies/YharonTrophy.cs b/Items/Placeables/Furniture/Trophies/YharonTrophy.cs index 0682c54246..d53a9068e6 100644 --- a/Items/Placeables/Furniture/Trophies/YharonTrophy.cs +++ b/Items/Placeables/Furniture/Trophies/YharonTrophy.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture.Trophies { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 50000; item.rare = 1; diff --git a/Items/Placeables/Furniture/TwinklerInABottle.cs b/Items/Placeables/Furniture/TwinklerInABottle.cs index 203ab8a369..e4b5d81076 100644 --- a/Items/Placeables/Furniture/TwinklerInABottle.cs +++ b/Items/Placeables/Furniture/TwinklerInABottle.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Furniture/YellowCandle.cs b/Items/Placeables/Furniture/YellowCandle.cs index deb37c4456..476942ce18 100644 --- a/Items/Placeables/Furniture/YellowCandle.cs +++ b/Items/Placeables/Furniture/YellowCandle.cs @@ -1,4 +1,5 @@ using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Furniture @@ -22,7 +23,7 @@ namespace CalamityMod.Items.Placeables.Furniture item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = Item.buyPrice(0, 50, 0, 0); item.rare = 6; diff --git a/Items/Placeables/FurnitureAbyss/AbyssBath.cs b/Items/Placeables/FurnitureAbyss/AbyssBath.cs index e24ba3f5d5..d446fa928c 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssBath.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssBath.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAbyss { public class AbyssBath : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssBed.cs b/Items/Placeables/FurnitureAbyss/AbyssBed.cs index e5e8c7b6c5..b584bdcea9 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssBed.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssBed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssBookcase.cs b/Items/Placeables/FurnitureAbyss/AbyssBookcase.cs index 83ddfca98d..dca2ce4fb2 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssBookcase.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssBookcase.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssCandelabra.cs b/Items/Placeables/FurnitureAbyss/AbyssCandelabra.cs index 9ad6557133..7779ba0e0a 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssCandelabra.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssCandelabra.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAbyss { public class AbyssCandelabra : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssCandle.cs b/Items/Placeables/FurnitureAbyss/AbyssCandle.cs index a6a758c10e..eea6d78edb 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssCandle.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssCandle.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAbyss { public class AbyssCandle : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssChair.cs b/Items/Placeables/FurnitureAbyss/AbyssChair.cs index 6d5dcc3318..5676c78157 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssChair.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssChair.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAbyss { public class AbyssChair : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssChandelier.cs b/Items/Placeables/FurnitureAbyss/AbyssChandelier.cs index 5647dd6f1a..27f096ca41 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssChandelier.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssChandelier.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssChest.cs b/Items/Placeables/FurnitureAbyss/AbyssChest.cs index 6c5343c69c..c8d3f0fa23 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssChest.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssChest.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssClock.cs b/Items/Placeables/FurnitureAbyss/AbyssClock.cs index f06d340ff2..21b2f3adfe 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssClock.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssClock.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssDoor.cs b/Items/Placeables/FurnitureAbyss/AbyssDoor.cs index 9ab51bc3e7..c76174dcb0 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssDoor.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssDoor.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurnitureAbyss; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAbyss { public class AbyssDoor : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssDresser.cs b/Items/Placeables/FurnitureAbyss/AbyssDresser.cs index f1036b7545..27212b3a30 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssDresser.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssDresser.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAbyss { public class AbyssDresser : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssLamp.cs b/Items/Placeables/FurnitureAbyss/AbyssLamp.cs index 614cf72686..26df1a487d 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssLamp.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssLamp.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAbyss { public class AbyssLamp : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssLantern.cs b/Items/Placeables/FurnitureAbyss/AbyssLantern.cs index 2123319b88..d52c918963 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssLantern.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssLantern.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAbyss { public class AbyssLantern : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssPiano.cs b/Items/Placeables/FurnitureAbyss/AbyssPiano.cs index df3b033dc6..e05e1d20dd 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssPiano.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssPiano.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssSink.cs b/Items/Placeables/FurnitureAbyss/AbyssSink.cs index 77d07713db..d8c2e690d5 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssSink.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssSink.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssSofa.cs b/Items/Placeables/FurnitureAbyss/AbyssSofa.cs index 9ae798f09e..972e7d9a7c 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssSofa.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssSofa.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssTable.cs b/Items/Placeables/FurnitureAbyss/AbyssTable.cs index 1d93d4dd66..f7304e950a 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssTable.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssTable.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAbyss { public class AbyssTable : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/AbyssTorch.cs b/Items/Placeables/FurnitureAbyss/AbyssTorch.cs index b85cf6d7e4..bbe515f6e7 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssTorch.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssTorch.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); item.flame = true; diff --git a/Items/Placeables/FurnitureAbyss/AbyssWorkbench.cs b/Items/Placeables/FurnitureAbyss/AbyssWorkbench.cs index 14229683ef..0fc323094f 100644 --- a/Items/Placeables/FurnitureAbyss/AbyssWorkbench.cs +++ b/Items/Placeables/FurnitureAbyss/AbyssWorkbench.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAbyss { public class AbyssWorkbench : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAbyss/SmoothAbyssGravel.cs b/Items/Placeables/FurnitureAbyss/SmoothAbyssGravel.cs index e1bf55c9f2..a8b13ce7b0 100644 --- a/Items/Placeables/FurnitureAbyss/SmoothAbyssGravel.cs +++ b/Items/Placeables/FurnitureAbyss/SmoothAbyssGravel.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelPlatform.cs b/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelPlatform.cs index c6ebe6b55b..4b6c7ac9ba 100644 --- a/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelPlatform.cs +++ b/Items/Placeables/FurnitureAbyss/SmoothAbyssGravelPlatform.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAbyss { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAncient/AncientBasin.cs b/Items/Placeables/FurnitureAncient/AncientBasin.cs index c17f00b50e..d914d7e460 100644 --- a/Items/Placeables/FurnitureAncient/AncientBasin.cs +++ b/Items/Placeables/FurnitureAncient/AncientBasin.cs @@ -2,6 +2,8 @@ using CalamityMod.Items.Placeables.Ores; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAncient { public class AncientBasin : ModItem @@ -19,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientBath.cs b/Items/Placeables/FurnitureAncient/AncientBath.cs index 040a6feeaa..4338212a38 100644 --- a/Items/Placeables/FurnitureAncient/AncientBath.cs +++ b/Items/Placeables/FurnitureAncient/AncientBath.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAncient { public class AncientBath : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientBed.cs b/Items/Placeables/FurnitureAncient/AncientBed.cs index 46a86667c8..b38529aac4 100644 --- a/Items/Placeables/FurnitureAncient/AncientBed.cs +++ b/Items/Placeables/FurnitureAncient/AncientBed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientBookcase.cs b/Items/Placeables/FurnitureAncient/AncientBookcase.cs index 384e5601a2..89f36a00eb 100644 --- a/Items/Placeables/FurnitureAncient/AncientBookcase.cs +++ b/Items/Placeables/FurnitureAncient/AncientBookcase.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.value = 0; item.consumable = true; diff --git a/Items/Placeables/FurnitureAncient/AncientChair.cs b/Items/Placeables/FurnitureAncient/AncientChair.cs index 6d5431a695..e8947763a8 100644 --- a/Items/Placeables/FurnitureAncient/AncientChair.cs +++ b/Items/Placeables/FurnitureAncient/AncientChair.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAncient { public class AncientChair : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientChandelier.cs b/Items/Placeables/FurnitureAncient/AncientChandelier.cs index 2870180960..72ad41722f 100644 --- a/Items/Placeables/FurnitureAncient/AncientChandelier.cs +++ b/Items/Placeables/FurnitureAncient/AncientChandelier.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientDoor.cs b/Items/Placeables/FurnitureAncient/AncientDoor.cs index aa0df69f2e..d20d621654 100644 --- a/Items/Placeables/FurnitureAncient/AncientDoor.cs +++ b/Items/Placeables/FurnitureAncient/AncientDoor.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurnitureAncient; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAncient { public class AncientDoor : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientDresser.cs b/Items/Placeables/FurnitureAncient/AncientDresser.cs index 0234a486d0..d6468e2dca 100644 --- a/Items/Placeables/FurnitureAncient/AncientDresser.cs +++ b/Items/Placeables/FurnitureAncient/AncientDresser.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAncient { public class AncientDresser : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientLamp.cs b/Items/Placeables/FurnitureAncient/AncientLamp.cs index 41bf1aab5b..f01f15b2a9 100644 --- a/Items/Placeables/FurnitureAncient/AncientLamp.cs +++ b/Items/Placeables/FurnitureAncient/AncientLamp.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAncient { public class AncientLamp : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientLantern.cs b/Items/Placeables/FurnitureAncient/AncientLantern.cs index bb72b07afd..222c81bd81 100644 --- a/Items/Placeables/FurnitureAncient/AncientLantern.cs +++ b/Items/Placeables/FurnitureAncient/AncientLantern.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientMonolith.cs b/Items/Placeables/FurnitureAncient/AncientMonolith.cs index 1b6183accf..1ee3f5fc63 100644 --- a/Items/Placeables/FurnitureAncient/AncientMonolith.cs +++ b/Items/Placeables/FurnitureAncient/AncientMonolith.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Placeables.Ores; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAncient { public class AncientMonolith : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientPiano.cs b/Items/Placeables/FurnitureAncient/AncientPiano.cs index 9b0acb272c..adfcc88daa 100644 --- a/Items/Placeables/FurnitureAncient/AncientPiano.cs +++ b/Items/Placeables/FurnitureAncient/AncientPiano.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientSink.cs b/Items/Placeables/FurnitureAncient/AncientSink.cs index 3574b87717..dff549f129 100644 --- a/Items/Placeables/FurnitureAncient/AncientSink.cs +++ b/Items/Placeables/FurnitureAncient/AncientSink.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientSofa.cs b/Items/Placeables/FurnitureAncient/AncientSofa.cs index bc60b0ba21..2b519310cc 100644 --- a/Items/Placeables/FurnitureAncient/AncientSofa.cs +++ b/Items/Placeables/FurnitureAncient/AncientSofa.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientTable.cs b/Items/Placeables/FurnitureAncient/AncientTable.cs index fb70d53339..75d1c64f0c 100644 --- a/Items/Placeables/FurnitureAncient/AncientTable.cs +++ b/Items/Placeables/FurnitureAncient/AncientTable.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAncient { public class AncientTable : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAncient/AncientWorkbench.cs b/Items/Placeables/FurnitureAncient/AncientWorkbench.cs index eeda5304dc..bac946d479 100644 --- a/Items/Placeables/FurnitureAncient/AncientWorkbench.cs +++ b/Items/Placeables/FurnitureAncient/AncientWorkbench.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAncient { public class AncientWorkbench : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenBasin.cs b/Items/Placeables/FurnitureAshen/AshenBasin.cs index 3be38dd39c..e5dcfc817b 100644 --- a/Items/Placeables/FurnitureAshen/AshenBasin.cs +++ b/Items/Placeables/FurnitureAshen/AshenBasin.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenBasin : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.value = 0; item.consumable = true; diff --git a/Items/Placeables/FurnitureAshen/AshenBath.cs b/Items/Placeables/FurnitureAshen/AshenBath.cs index cca17e7715..ae79bc1306 100644 --- a/Items/Placeables/FurnitureAshen/AshenBath.cs +++ b/Items/Placeables/FurnitureAshen/AshenBath.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenBath : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.value = 0; item.consumable = true; diff --git a/Items/Placeables/FurnitureAshen/AshenBed.cs b/Items/Placeables/FurnitureAshen/AshenBed.cs index 76aa19d29d..d9d1d667dd 100644 --- a/Items/Placeables/FurnitureAshen/AshenBed.cs +++ b/Items/Placeables/FurnitureAshen/AshenBed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenBookcase.cs b/Items/Placeables/FurnitureAshen/AshenBookcase.cs index 4a7aa65af4..65b9f1beff 100644 --- a/Items/Placeables/FurnitureAshen/AshenBookcase.cs +++ b/Items/Placeables/FurnitureAshen/AshenBookcase.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenCandelabra.cs b/Items/Placeables/FurnitureAshen/AshenCandelabra.cs index 9fcbe18d15..30bed14326 100644 --- a/Items/Placeables/FurnitureAshen/AshenCandelabra.cs +++ b/Items/Placeables/FurnitureAshen/AshenCandelabra.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenCandelabra : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenCandle.cs b/Items/Placeables/FurnitureAshen/AshenCandle.cs index b1d45176b4..eec0e44e53 100644 --- a/Items/Placeables/FurnitureAshen/AshenCandle.cs +++ b/Items/Placeables/FurnitureAshen/AshenCandle.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenCandle : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenChair.cs b/Items/Placeables/FurnitureAshen/AshenChair.cs index 6f1789660b..235e683615 100644 --- a/Items/Placeables/FurnitureAshen/AshenChair.cs +++ b/Items/Placeables/FurnitureAshen/AshenChair.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenChair : ModItem @@ -19,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.useAnimation = 15; item.useTime = 10; item.rare = 3; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.value = 0; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAshen/AshenChandelier.cs b/Items/Placeables/FurnitureAshen/AshenChandelier.cs index 29cecbe994..9a64236795 100644 --- a/Items/Placeables/FurnitureAshen/AshenChandelier.cs +++ b/Items/Placeables/FurnitureAshen/AshenChandelier.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenChest.cs b/Items/Placeables/FurnitureAshen/AshenChest.cs index 27146775b6..96d7609ba8 100644 --- a/Items/Placeables/FurnitureAshen/AshenChest.cs +++ b/Items/Placeables/FurnitureAshen/AshenChest.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenDoor.cs b/Items/Placeables/FurnitureAshen/AshenDoor.cs index 222ade62ef..bf09508d75 100644 --- a/Items/Placeables/FurnitureAshen/AshenDoor.cs +++ b/Items/Placeables/FurnitureAshen/AshenDoor.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurnitureAshen; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenDoor : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenDresser.cs b/Items/Placeables/FurnitureAshen/AshenDresser.cs index 647196054a..a8b453fce2 100644 --- a/Items/Placeables/FurnitureAshen/AshenDresser.cs +++ b/Items/Placeables/FurnitureAshen/AshenDresser.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenDresser : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenLamp.cs b/Items/Placeables/FurnitureAshen/AshenLamp.cs index 20e29fbaeb..7cb84aec92 100644 --- a/Items/Placeables/FurnitureAshen/AshenLamp.cs +++ b/Items/Placeables/FurnitureAshen/AshenLamp.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenLamp : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenLantern.cs b/Items/Placeables/FurnitureAshen/AshenLantern.cs index 37d6234b8d..16f65d9d77 100644 --- a/Items/Placeables/FurnitureAshen/AshenLantern.cs +++ b/Items/Placeables/FurnitureAshen/AshenLantern.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenLantern : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenMonolith.cs b/Items/Placeables/FurnitureAshen/AshenMonolith.cs index 2f2c097552..7d93012023 100644 --- a/Items/Placeables/FurnitureAshen/AshenMonolith.cs +++ b/Items/Placeables/FurnitureAshen/AshenMonolith.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenMonolith : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenPiano.cs b/Items/Placeables/FurnitureAshen/AshenPiano.cs index fb25b53be2..7159bff7a2 100644 --- a/Items/Placeables/FurnitureAshen/AshenPiano.cs +++ b/Items/Placeables/FurnitureAshen/AshenPiano.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenPlatform.cs b/Items/Placeables/FurnitureAshen/AshenPlatform.cs index 07d69b0b3f..73f9ccaf64 100644 --- a/Items/Placeables/FurnitureAshen/AshenPlatform.cs +++ b/Items/Placeables/FurnitureAshen/AshenPlatform.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenPlatform : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAshen/AshenSink.cs b/Items/Placeables/FurnitureAshen/AshenSink.cs index f55552f1d7..835b4bdd9c 100644 --- a/Items/Placeables/FurnitureAshen/AshenSink.cs +++ b/Items/Placeables/FurnitureAshen/AshenSink.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenSlab.cs b/Items/Placeables/FurnitureAshen/AshenSlab.cs index a2eaed0395..6543245d06 100644 --- a/Items/Placeables/FurnitureAshen/AshenSlab.cs +++ b/Items/Placeables/FurnitureAshen/AshenSlab.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAshen/AshenSofa.cs b/Items/Placeables/FurnitureAshen/AshenSofa.cs index 382afff286..b135f8376f 100644 --- a/Items/Placeables/FurnitureAshen/AshenSofa.cs +++ b/Items/Placeables/FurnitureAshen/AshenSofa.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenTable.cs b/Items/Placeables/FurnitureAshen/AshenTable.cs index ac65639087..644e5c0a81 100644 --- a/Items/Placeables/FurnitureAshen/AshenTable.cs +++ b/Items/Placeables/FurnitureAshen/AshenTable.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenTable : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/AshenWorkbench.cs b/Items/Placeables/FurnitureAshen/AshenWorkbench.cs index e1c1daca2d..89672ff7b9 100644 --- a/Items/Placeables/FurnitureAshen/AshenWorkbench.cs +++ b/Items/Placeables/FurnitureAshen/AshenWorkbench.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureAshen { public class AshenWorkbench : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.value = 0; diff --git a/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlag.cs b/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlag.cs index 158dd102e9..2d8b746f70 100644 --- a/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlag.cs +++ b/Items/Placeables/FurnitureAshen/SmoothBrimstoneSlag.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureAstral/MonolithBathtub.cs b/Items/Placeables/FurnitureAstral/MonolithBathtub.cs index e916e7378a..f205e2672d 100644 --- a/Items/Placeables/FurnitureAstral/MonolithBathtub.cs +++ b/Items/Placeables/FurnitureAstral/MonolithBathtub.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithBed.cs b/Items/Placeables/FurnitureAstral/MonolithBed.cs index e69224b23c..fb9ece751c 100644 --- a/Items/Placeables/FurnitureAstral/MonolithBed.cs +++ b/Items/Placeables/FurnitureAstral/MonolithBed.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithBench.cs b/Items/Placeables/FurnitureAstral/MonolithBench.cs index 0f00d8d229..5b955bdcbb 100644 --- a/Items/Placeables/FurnitureAstral/MonolithBench.cs +++ b/Items/Placeables/FurnitureAstral/MonolithBench.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithBookcase.cs b/Items/Placeables/FurnitureAstral/MonolithBookcase.cs index 495b50f999..e16c24294b 100644 --- a/Items/Placeables/FurnitureAstral/MonolithBookcase.cs +++ b/Items/Placeables/FurnitureAstral/MonolithBookcase.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithCandelabra.cs b/Items/Placeables/FurnitureAstral/MonolithCandelabra.cs index 12cd6e5f91..5e020735b1 100644 --- a/Items/Placeables/FurnitureAstral/MonolithCandelabra.cs +++ b/Items/Placeables/FurnitureAstral/MonolithCandelabra.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithCandle.cs b/Items/Placeables/FurnitureAstral/MonolithCandle.cs index 81754d7a3c..76cc41ca9f 100644 --- a/Items/Placeables/FurnitureAstral/MonolithCandle.cs +++ b/Items/Placeables/FurnitureAstral/MonolithCandle.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithChair.cs b/Items/Placeables/FurnitureAstral/MonolithChair.cs index 4ac35d7c1a..e31227c30d 100644 --- a/Items/Placeables/FurnitureAstral/MonolithChair.cs +++ b/Items/Placeables/FurnitureAstral/MonolithChair.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithChandelier.cs b/Items/Placeables/FurnitureAstral/MonolithChandelier.cs index d547d50deb..5069aed9b1 100644 --- a/Items/Placeables/FurnitureAstral/MonolithChandelier.cs +++ b/Items/Placeables/FurnitureAstral/MonolithChandelier.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithChest.cs b/Items/Placeables/FurnitureAstral/MonolithChest.cs index dce7c35bbf..3933f5e17c 100644 --- a/Items/Placeables/FurnitureAstral/MonolithChest.cs +++ b/Items/Placeables/FurnitureAstral/MonolithChest.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithClock.cs b/Items/Placeables/FurnitureAstral/MonolithClock.cs index f6008200ce..1b59c74b54 100644 --- a/Items/Placeables/FurnitureAstral/MonolithClock.cs +++ b/Items/Placeables/FurnitureAstral/MonolithClock.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithDoor.cs b/Items/Placeables/FurnitureAstral/MonolithDoor.cs index e2b82a59b0..6f71c58e3c 100644 --- a/Items/Placeables/FurnitureAstral/MonolithDoor.cs +++ b/Items/Placeables/FurnitureAstral/MonolithDoor.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithDresser.cs b/Items/Placeables/FurnitureAstral/MonolithDresser.cs index 3659f98789..aae5bf9fa3 100644 --- a/Items/Placeables/FurnitureAstral/MonolithDresser.cs +++ b/Items/Placeables/FurnitureAstral/MonolithDresser.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithLamp.cs b/Items/Placeables/FurnitureAstral/MonolithLamp.cs index 95cf03c958..1592b86f07 100644 --- a/Items/Placeables/FurnitureAstral/MonolithLamp.cs +++ b/Items/Placeables/FurnitureAstral/MonolithLamp.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithLantern.cs b/Items/Placeables/FurnitureAstral/MonolithLantern.cs index 70f1a8ddf1..ffcb0023b3 100644 --- a/Items/Placeables/FurnitureAstral/MonolithLantern.cs +++ b/Items/Placeables/FurnitureAstral/MonolithLantern.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithPiano.cs b/Items/Placeables/FurnitureAstral/MonolithPiano.cs index b26724d4eb..a6db0470a0 100644 --- a/Items/Placeables/FurnitureAstral/MonolithPiano.cs +++ b/Items/Placeables/FurnitureAstral/MonolithPiano.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithPlatform.cs b/Items/Placeables/FurnitureAstral/MonolithPlatform.cs index 9d6a007785..97ab9ad12e 100644 --- a/Items/Placeables/FurnitureAstral/MonolithPlatform.cs +++ b/Items/Placeables/FurnitureAstral/MonolithPlatform.cs @@ -1,4 +1,5 @@ +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithSink.cs b/Items/Placeables/FurnitureAstral/MonolithSink.cs index 8b733ac0e3..6d8bc9f389 100644 --- a/Items/Placeables/FurnitureAstral/MonolithSink.cs +++ b/Items/Placeables/FurnitureAstral/MonolithSink.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithTable.cs b/Items/Placeables/FurnitureAstral/MonolithTable.cs index 1c9897a822..d2f0e2900c 100644 --- a/Items/Placeables/FurnitureAstral/MonolithTable.cs +++ b/Items/Placeables/FurnitureAstral/MonolithTable.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureAstral/MonolithWorkBench.cs b/Items/Placeables/FurnitureAstral/MonolithWorkBench.cs index 568f7b6570..320ea87981 100644 --- a/Items/Placeables/FurnitureAstral/MonolithWorkBench.cs +++ b/Items/Placeables/FurnitureAstral/MonolithWorkBench.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureAstral { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAstral item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureBotanic/BotanicBathtub.cs b/Items/Placeables/FurnitureBotanic/BotanicBathtub.cs index 24394cb2c7..a260eb0b6f 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicBathtub.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicBathtub.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureBotanic { public class BotanicBathtub : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicBed.cs b/Items/Placeables/FurnitureBotanic/BotanicBed.cs index de7ab09717..50a3517ed9 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicBed.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicBed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicBench.cs b/Items/Placeables/FurnitureBotanic/BotanicBench.cs index ba0c9916da..491a96af76 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicBench.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicBench.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicBookcase.cs b/Items/Placeables/FurnitureBotanic/BotanicBookcase.cs index 6cb02a9957..42e5d9a754 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicBookcase.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicBookcase.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicCandelabra.cs b/Items/Placeables/FurnitureBotanic/BotanicCandelabra.cs index f261b0e9e4..f96490b5a5 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicCandelabra.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicCandelabra.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicCandle.cs b/Items/Placeables/FurnitureBotanic/BotanicCandle.cs index bc3fddb7e9..3e68f8d0d6 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicCandle.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicCandle.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicChair.cs b/Items/Placeables/FurnitureBotanic/BotanicChair.cs index ec4cd00d2c..4c5ac4f8b7 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicChair.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicChair.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureBotanic { public class BotanicChair : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicChandelier.cs b/Items/Placeables/FurnitureBotanic/BotanicChandelier.cs index 530a6aea32..28490b2974 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicChandelier.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicChandelier.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicChest.cs b/Items/Placeables/FurnitureBotanic/BotanicChest.cs index 9c674b121c..af4aeae5b7 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicChest.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicChest.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicClock.cs b/Items/Placeables/FurnitureBotanic/BotanicClock.cs index 672b9262e4..aaf6d04614 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicClock.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicClock.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicDoor.cs b/Items/Placeables/FurnitureBotanic/BotanicDoor.cs index 85601c0519..323366a583 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicDoor.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicDoor.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurnitureBotanic; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureBotanic { public class BotanicDoor : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicDresser.cs b/Items/Placeables/FurnitureBotanic/BotanicDresser.cs index 07690e1c3c..ea02d06016 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicDresser.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicDresser.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureBotanic { public class BotanicDresser : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicLamp.cs b/Items/Placeables/FurnitureBotanic/BotanicLamp.cs index a7545d2139..dc25fea0dd 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicLamp.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicLamp.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicLantern.cs b/Items/Placeables/FurnitureBotanic/BotanicLantern.cs index 29a20c3e06..b3256358d0 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicLantern.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicLantern.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicPiano.cs b/Items/Placeables/FurnitureBotanic/BotanicPiano.cs index 4837caa34b..14f94528e7 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicPiano.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicPiano.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicPlatform.cs b/Items/Placeables/FurnitureBotanic/BotanicPlatform.cs index b8e0dd8ec7..f2fb3d05aa 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicPlatform.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicPlatform.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureBotanic { public class BotanicPlatform : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureBotanic/BotanicSink.cs b/Items/Placeables/FurnitureBotanic/BotanicSink.cs index f9adbe2064..cabf3c0272 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicSink.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicSink.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicTable.cs b/Items/Placeables/FurnitureBotanic/BotanicTable.cs index 2b8b6940f5..6a69e6bea7 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicTable.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicTable.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureBotanic { public class BotanicTable : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureBotanic/BotanicWorkBench.cs b/Items/Placeables/FurnitureBotanic/BotanicWorkBench.cs index 08cd05ad1f..8f3ca3975c 100644 --- a/Items/Placeables/FurnitureBotanic/BotanicWorkBench.cs +++ b/Items/Placeables/FurnitureBotanic/BotanicWorkBench.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureBotanic { public class BotanicWorkBench : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = 0; item.consumable = true; item.createTile = ModContent.TileType(); diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteBasin.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteBasin.cs index 3d126504ff..39e5924ead 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteBasin.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteBasin.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteBath.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteBath.cs index 1d5365e6e5..f6fcf74f03 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteBath.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteBath.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureCosmilite { public class CosmiliteBath : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteBed.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteBed.cs index 35a9c698f7..0c51fa3b94 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteBed.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteBed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteBookcase.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteBookcase.cs index c95ad400a4..acdb1974d2 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteBookcase.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteBookcase.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteBrick.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteBrick.cs index 275bc629a5..3338a5158b 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteBrick.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteBrick.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 2); diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteCandelabra.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteCandelabra.cs index e0b05735eb..e9a05a0b51 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteCandelabra.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteCandelabra.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteCandle.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteCandle.cs index c27b9eebea..cf3a11b1ce 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteCandle.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteCandle.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteChair.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteChair.cs index 9e3ed67b55..d90e8b8ee9 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteChair.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteChair.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureCosmilite { public class CosmiliteChair : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteChandelier.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteChandelier.cs index 2f4eb5d255..531966bd94 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteChandelier.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteChandelier.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteChest.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteChest.cs index d0be0b22c7..bbdf50d9c2 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteChest.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteChest.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteClock.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteClock.cs index 739cd8aa8b..22877525c1 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteClock.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteClock.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteDoor.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteDoor.cs index 2452547901..e314fb019a 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteDoor.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteDoor.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurnitureCosmilite; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureCosmilite { public class CosmiliteDoor : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteDresser.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteDresser.cs index bfd62c0291..106efab27d 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteDresser.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteDresser.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureCosmilite { public class CosmiliteDresser : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteLamp.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteLamp.cs index a3b2136573..608c5930f5 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteLamp.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteLamp.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteLantern.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteLantern.cs index 138678d887..956f037c86 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteLantern.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteLantern.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmilitePiano.cs b/Items/Placeables/FurnitureCosmilite/CosmilitePiano.cs index a85678f6e7..2a086cbc71 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmilitePiano.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmilitePiano.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmilitePlatform.cs b/Items/Placeables/FurnitureCosmilite/CosmilitePlatform.cs index 16512a7608..ef66ca2f28 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmilitePlatform.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmilitePlatform.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureCosmilite { public class CosmilitePlatform : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteSconce.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteSconce.cs index 9fe4014bd8..48f38948c2 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteSconce.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteSconce.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteSink.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteSink.cs index c671e5359e..52f8cf9f0e 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteSink.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteSink.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteSofa.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteSofa.cs index a00ad351ba..d103cb02c2 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteSofa.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteSofa.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteTable.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteTable.cs index 8eb24ef345..742f932f5c 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteTable.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteTable.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureCosmilite { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureCosmilite/CosmiliteWorkbench.cs b/Items/Placeables/FurnitureCosmilite/CosmiliteWorkbench.cs index e77571e538..91ccd1a845 100644 --- a/Items/Placeables/FurnitureCosmilite/CosmiliteWorkbench.cs +++ b/Items/Placeables/FurnitureCosmilite/CosmiliteWorkbench.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureCosmilite { public class CosmiliteWorkbench : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureCosmilite item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicBathtub.cs b/Items/Placeables/FurnitureEutrophic/EutrophicBathtub.cs index 2e7eaf532a..be4945bdc5 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicBathtub.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicBathtub.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicBathtub : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicBed.cs b/Items/Placeables/FurnitureEutrophic/EutrophicBed.cs index 831c00a152..c5326d5690 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicBed.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicBed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicBench.cs b/Items/Placeables/FurnitureEutrophic/EutrophicBench.cs index bac22e824f..6ca0c2309b 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicBench.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicBench.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicBench : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicBookcase.cs b/Items/Placeables/FurnitureEutrophic/EutrophicBookcase.cs index 67bf933b1e..16c32e3d5e 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicBookcase.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicBookcase.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicCandelabra.cs b/Items/Placeables/FurnitureEutrophic/EutrophicCandelabra.cs index 406715473e..0ad861e738 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicCandelabra.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicCandelabra.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicCandelabra : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicCandle.cs b/Items/Placeables/FurnitureEutrophic/EutrophicCandle.cs index 94c6abd472..cfc3e1ff86 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicCandle.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicCandle.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicCandle : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicChair.cs b/Items/Placeables/FurnitureEutrophic/EutrophicChair.cs index 286a0a21c9..00c21452d1 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicChair.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicChair.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicChair : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicChandelier.cs b/Items/Placeables/FurnitureEutrophic/EutrophicChandelier.cs index 0435088c36..093d4f3258 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicChandelier.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicChandelier.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicChandelier : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicChest.cs b/Items/Placeables/FurnitureEutrophic/EutrophicChest.cs index 894c57f15d..2e0ead968c 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicChest.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicChest.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicChest : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicClock.cs b/Items/Placeables/FurnitureEutrophic/EutrophicClock.cs index f271cea3a7..9447bf2412 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicClock.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicClock.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicClock : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicDoor.cs b/Items/Placeables/FurnitureEutrophic/EutrophicDoor.cs index 7c5f4b266a..9f3f63e5b5 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicDoor.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicDoor.cs @@ -1,6 +1,8 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurnitureEutrophic; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicDoor : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicDresser.cs b/Items/Placeables/FurnitureEutrophic/EutrophicDresser.cs index 2609eacbeb..f2c96961c8 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicDresser.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicDresser.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicDresser : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicLamp.cs b/Items/Placeables/FurnitureEutrophic/EutrophicLamp.cs index cdce5e5985..812426332f 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicLamp.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicLamp.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicLamp : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicLantern.cs b/Items/Placeables/FurnitureEutrophic/EutrophicLantern.cs index e6910a7e29..6a6026567f 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicLantern.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicLantern.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicLantern : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicPiano.cs b/Items/Placeables/FurnitureEutrophic/EutrophicPiano.cs index 4fc4e44ad3..e91d8ac3e6 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicPiano.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicPiano.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicPlatform.cs b/Items/Placeables/FurnitureEutrophic/EutrophicPlatform.cs index 1c561307f1..50c59b288b 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicPlatform.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicPlatform.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicPlatform : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicSink.cs b/Items/Placeables/FurnitureEutrophic/EutrophicSink.cs index 92a502e5fb..7ffc8fbd7d 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicSink.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicSink.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicTable.cs b/Items/Placeables/FurnitureEutrophic/EutrophicTable.cs index b2c7adf686..43b61bb2da 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicTable.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicTable.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicTable : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/EutrophicWorkBench.cs b/Items/Placeables/FurnitureEutrophic/EutrophicWorkBench.cs index cc0b636f9b..3a34ae6bff 100644 --- a/Items/Placeables/FurnitureEutrophic/EutrophicWorkBench.cs +++ b/Items/Placeables/FurnitureEutrophic/EutrophicWorkBench.cs @@ -1,5 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.FurnitureEutrophic { public class EutrophicWorkBench : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureEutrophic/SmoothNavystone.cs b/Items/Placeables/FurnitureEutrophic/SmoothNavystone.cs index 1d7fce847a..4fe2d30933 100644 --- a/Items/Placeables/FurnitureEutrophic/SmoothNavystone.cs +++ b/Items/Placeables/FurnitureEutrophic/SmoothNavystone.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria.ID; using Terraria.ModLoader; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");" @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureEutrophic item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultBathtub.cs b/Items/Placeables/FurnitureOccult/OccultBathtub.cs index f5adcf6e8c..1f1077948f 100644 --- a/Items/Placeables/FurnitureOccult/OccultBathtub.cs +++ b/Items/Placeables/FurnitureOccult/OccultBathtub.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.FurnitureOccult { public class OccultBathtub : ModItem @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultBed.cs b/Items/Placeables/FurnitureOccult/OccultBed.cs index 640dd63f30..eddf26cdfb 100644 --- a/Items/Placeables/FurnitureOccult/OccultBed.cs +++ b/Items/Placeables/FurnitureOccult/OccultBed.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultBookcase.cs b/Items/Placeables/FurnitureOccult/OccultBookcase.cs index 37622bfea3..c401cbf489 100644 --- a/Items/Placeables/FurnitureOccult/OccultBookcase.cs +++ b/Items/Placeables/FurnitureOccult/OccultBookcase.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultCandelabra.cs b/Items/Placeables/FurnitureOccult/OccultCandelabra.cs index 635dae3303..85929b0a10 100644 --- a/Items/Placeables/FurnitureOccult/OccultCandelabra.cs +++ b/Items/Placeables/FurnitureOccult/OccultCandelabra.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Placeables.FurnitureCosmilite; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.FurnitureOccult { public class OccultCandelabra : ModItem @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultCandle.cs b/Items/Placeables/FurnitureOccult/OccultCandle.cs index 3cb25d124f..eec64d7e12 100644 --- a/Items/Placeables/FurnitureOccult/OccultCandle.cs +++ b/Items/Placeables/FurnitureOccult/OccultCandle.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Placeables.FurnitureCosmilite; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.FurnitureOccult { public class OccultCandle : ModItem @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultChair.cs b/Items/Placeables/FurnitureOccult/OccultChair.cs index 5b545a6c6e..773ca0739e 100644 --- a/Items/Placeables/FurnitureOccult/OccultChair.cs +++ b/Items/Placeables/FurnitureOccult/OccultChair.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.FurnitureOccult { public class OccultChair : ModItem @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultChandelier.cs b/Items/Placeables/FurnitureOccult/OccultChandelier.cs index 2911e25f7a..503e12ecf4 100644 --- a/Items/Placeables/FurnitureOccult/OccultChandelier.cs +++ b/Items/Placeables/FurnitureOccult/OccultChandelier.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Placeables.FurnitureCosmilite; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.FurnitureOccult { public class OccultChandelier : ModItem @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultChest.cs b/Items/Placeables/FurnitureOccult/OccultChest.cs index cf7f87f0c4..ef9e74d45c 100644 --- a/Items/Placeables/FurnitureOccult/OccultChest.cs +++ b/Items/Placeables/FurnitureOccult/OccultChest.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Placeables.FurnitureCosmilite; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.FurnitureOccult { public class OccultChest : ModItem @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultClock.cs b/Items/Placeables/FurnitureOccult/OccultClock.cs index 2cf0e11872..805a9adaf5 100644 --- a/Items/Placeables/FurnitureOccult/OccultClock.cs +++ b/Items/Placeables/FurnitureOccult/OccultClock.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultDoor.cs b/Items/Placeables/FurnitureOccult/OccultDoor.cs index d531ea8e49..d0f06f7677 100644 --- a/Items/Placeables/FurnitureOccult/OccultDoor.cs +++ b/Items/Placeables/FurnitureOccult/OccultDoor.cs @@ -1,6 +1,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurnitureOccult; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.FurnitureOccult { public class OccultDoor : ModItem @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultDresser.cs b/Items/Placeables/FurnitureOccult/OccultDresser.cs index 8714ce3b8d..adc24ce45e 100644 --- a/Items/Placeables/FurnitureOccult/OccultDresser.cs +++ b/Items/Placeables/FurnitureOccult/OccultDresser.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.FurnitureOccult { public class OccultDresser : ModItem @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultLamp.cs b/Items/Placeables/FurnitureOccult/OccultLamp.cs index 63ce5dff94..a17729a202 100644 --- a/Items/Placeables/FurnitureOccult/OccultLamp.cs +++ b/Items/Placeables/FurnitureOccult/OccultLamp.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Placeables.FurnitureCosmilite; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.FurnitureOccult { public class OccultLamp : ModItem @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultLantern.cs b/Items/Placeables/FurnitureOccult/OccultLantern.cs index 233e23ee0a..be9214247c 100644 --- a/Items/Placeables/FurnitureOccult/OccultLantern.cs +++ b/Items/Placeables/FurnitureOccult/OccultLantern.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Placeables.FurnitureCosmilite; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.FurnitureOccult { public class OccultLantern : ModItem @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultPiano.cs b/Items/Placeables/FurnitureOccult/OccultPiano.cs index 551d7193ea..457ad4ce2a 100644 --- a/Items/Placeables/FurnitureOccult/OccultPiano.cs +++ b/Items/Placeables/FurnitureOccult/OccultPiano.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultPlatform.cs b/Items/Placeables/FurnitureOccult/OccultPlatform.cs index 1e18dca615..843f2a1386 100644 --- a/Items/Placeables/FurnitureOccult/OccultPlatform.cs +++ b/Items/Placeables/FurnitureOccult/OccultPlatform.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.FurnitureOccult { public class OccultPlatform : ModItem @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultSink.cs b/Items/Placeables/FurnitureOccult/OccultSink.cs index 35fe77b7c5..7945dfa7ce 100644 --- a/Items/Placeables/FurnitureOccult/OccultSink.cs +++ b/Items/Placeables/FurnitureOccult/OccultSink.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultSofa.cs b/Items/Placeables/FurnitureOccult/OccultSofa.cs index 6043761083..d8f93887d7 100644 --- a/Items/Placeables/FurnitureOccult/OccultSofa.cs +++ b/Items/Placeables/FurnitureOccult/OccultSofa.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultStone.cs b/Items/Placeables/FurnitureOccult/OccultStone.cs index 9888bbdb94..e0854bc917 100644 --- a/Items/Placeables/FurnitureOccult/OccultStone.cs +++ b/Items/Placeables/FurnitureOccult/OccultStone.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 2); diff --git a/Items/Placeables/FurnitureOccult/OccultTable.cs b/Items/Placeables/FurnitureOccult/OccultTable.cs index 46abfb9418..2956927cca 100644 --- a/Items/Placeables/FurnitureOccult/OccultTable.cs +++ b/Items/Placeables/FurnitureOccult/OccultTable.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureOccult { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureOccult/OccultWorkBench.cs b/Items/Placeables/FurnitureOccult/OccultWorkBench.cs index 850b132f66..90f58e5c73 100644 --- a/Items/Placeables/FurnitureOccult/OccultWorkBench.cs +++ b/Items/Placeables/FurnitureOccult/OccultWorkBench.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureOccult { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureOccult item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlate.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlate.cs index 0e5f5b3684..3fa832fe50 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlate.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlate.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBasin.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBasin.cs index 9711b27bee..d738005724 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBasin.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBasin.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBathtub.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBathtub.cs index ede7820449..6fb05766d3 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBathtub.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBathtub.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBed.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBed.cs index 30accece05..baefc81006 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBed.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBed.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBookcase.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBookcase.cs index 9353d81bd2..b44dea4c60 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBookcase.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateBookcase.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs index 19c0cc9854..92c34b5d57 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandelabra.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandle.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandle.cs index 19d2316bdd..90d3ef179b 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandle.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateCandle.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChair.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChair.cs index c693cfc7e1..13b30935b0 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChair.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChair.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChandelier.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChandelier.cs index 52c5c2c4bd..1f3841292e 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChandelier.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChandelier.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChest.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChest.cs index 38d66ee1a5..1c85ac501c 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChest.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateChest.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateClock.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateClock.cs index 00fc76a269..e31efda4ca 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateClock.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateClock.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDoor.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDoor.cs index a22c587a97..16fd16674a 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDoor.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDoor.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurniturePlaguedPlate; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate { @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDresser.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDresser.cs index ae941746aa..55576a2823 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDresser.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateDresser.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLamp.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLamp.cs index 685f96b793..40be02e85a 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLamp.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLamp.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLantern.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLantern.cs index ee7805a838..20ef9cd14a 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLantern.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateLantern.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePiano.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePiano.cs index 580d175727..df9bb67e8b 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePiano.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePiano.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePlatform.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePlatform.cs index 9faa059752..bbb6bbbd1a 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePlatform.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlatePlatform.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSink.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSink.cs index de43cb45e0..88953f4751 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSink.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSink.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSofa.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSofa.cs index 892c562e47..f4e30f2702 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSofa.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateSofa.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateTable.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateTable.cs index 74d50bcaef..5da9b7803f 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateTable.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateTable.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs index 07ec419225..6d172e2e94 100644 --- a/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs +++ b/Items/Placeables/FurniturePlaguedPlate/PlaguedPlateWorkbench.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate { @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlaguedPlate item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedBath.cs b/Items/Placeables/FurnitureProfaned/ProfanedBath.cs index 4f8676afe5..f07acdd0d2 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedBath.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedBath.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureProfaned { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedBed.cs b/Items/Placeables/FurnitureProfaned/ProfanedBed.cs index bb4e083072..70e9f683b4 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedBed.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedBed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedBench.cs b/Items/Placeables/FurnitureProfaned/ProfanedBench.cs index 7cbb94b036..59b1b4920b 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedBench.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedBench.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedBookcase.cs b/Items/Placeables/FurnitureProfaned/ProfanedBookcase.cs index cf2c1bffc1..6419359076 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedBookcase.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedBookcase.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedCandelabra.cs b/Items/Placeables/FurnitureProfaned/ProfanedCandelabra.cs index 56363a9bae..6538873a55 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedCandelabra.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedCandelabra.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedCandle.cs b/Items/Placeables/FurnitureProfaned/ProfanedCandle.cs index 6577ef6080..dfa6f7b398 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedCandle.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedCandle.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedChair.cs b/Items/Placeables/FurnitureProfaned/ProfanedChair.cs index 9d056fd814..cec01ba444 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedChair.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedChair.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureProfaned { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedChandelier.cs b/Items/Placeables/FurnitureProfaned/ProfanedChandelier.cs index 81d5843f63..de1db867b7 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedChandelier.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedChandelier.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedChest.cs b/Items/Placeables/FurnitureProfaned/ProfanedChest.cs index 201f120e81..55de5c3317 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedChest.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedChest.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedClock.cs b/Items/Placeables/FurnitureProfaned/ProfanedClock.cs index 2fe51947cb..fec8da5c6a 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedClock.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedClock.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs b/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs index 32b34c2eae..fc32d06f9c 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedCrystal.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Walls; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ItemID.Glass, 20); recipe.SetResult(this, 20); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); diff --git a/Items/Placeables/FurnitureProfaned/ProfanedDoor.cs b/Items/Placeables/FurnitureProfaned/ProfanedDoor.cs index 23448631f6..8e1099bf2b 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedDoor.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedDoor.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurnitureProfaned; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureProfaned { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedDresser.cs b/Items/Placeables/FurnitureProfaned/ProfanedDresser.cs index 28429ecce8..cf8bdd5e5c 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedDresser.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedDresser.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureProfaned { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedLamp.cs b/Items/Placeables/FurnitureProfaned/ProfanedLamp.cs index 60db826f0a..db6cfe1686 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedLamp.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedLamp.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedLantern.cs b/Items/Placeables/FurnitureProfaned/ProfanedLantern.cs index 442d22fd2e..560e15d6e7 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedLantern.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedLantern.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedPiano.cs b/Items/Placeables/FurnitureProfaned/ProfanedPiano.cs index 4cfcc27bb9..ca608417e4 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedPiano.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedPiano.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedPlatform.cs b/Items/Placeables/FurnitureProfaned/ProfanedPlatform.cs index 8e078fb991..13c0112efa 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedPlatform.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedPlatform.cs @@ -1,3 +1,4 @@ +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureProfaned { @@ -16,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -26,7 +27,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 2); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedRock.cs b/Items/Placeables/FurnitureProfaned/ProfanedRock.cs index ba5716d96a..564cf65003 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedRock.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedRock.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Walls; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -29,18 +29,18 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ItemID.StoneBlock, 20); recipe.SetResult(this, 20); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 2); recipe.SetResult(this); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedSink.cs b/Items/Placeables/FurnitureProfaned/ProfanedSink.cs index c8ed7db818..a7b2a7f625 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedSink.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedSink.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs b/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs index 704c205dae..48d91afc89 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedSlab.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureProfaned @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 5); recipe.SetResult(this, 5); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); diff --git a/Items/Placeables/FurnitureProfaned/ProfanedTable.cs b/Items/Placeables/FurnitureProfaned/ProfanedTable.cs index 9ecd4b63c2..0df753bff7 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedTable.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedTable.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureProfaned { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/ProfanedWorkbench.cs b/Items/Placeables/FurnitureProfaned/ProfanedWorkbench.cs index 46fdf8f46b..2eb36ea337 100644 --- a/Items/Placeables/FurnitureProfaned/ProfanedWorkbench.cs +++ b/Items/Placeables/FurnitureProfaned/ProfanedWorkbench.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureProfaned { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs b/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs index 68545d7460..e9ded18620 100644 --- a/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs +++ b/Items/Placeables/FurnitureProfaned/RunicProfanedBrick.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria.ID; using Terraria.ModLoader; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");" @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned recipe.AddIngredient(ModContent.ItemType(), 4); recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 5); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); diff --git a/Items/Placeables/FurnitureSilva/SilvaBathtub.cs b/Items/Placeables/FurnitureSilva/SilvaBathtub.cs index d595bff7ed..f2c69fbdaf 100644 --- a/Items/Placeables/FurnitureSilva/SilvaBathtub.cs +++ b/Items/Placeables/FurnitureSilva/SilvaBathtub.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaBed.cs b/Items/Placeables/FurnitureSilva/SilvaBed.cs index 7559964a8f..00e1f0ba74 100644 --- a/Items/Placeables/FurnitureSilva/SilvaBed.cs +++ b/Items/Placeables/FurnitureSilva/SilvaBed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaBench.cs b/Items/Placeables/FurnitureSilva/SilvaBench.cs index 45364c19a7..444e75d74c 100644 --- a/Items/Placeables/FurnitureSilva/SilvaBench.cs +++ b/Items/Placeables/FurnitureSilva/SilvaBench.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaBookcase.cs b/Items/Placeables/FurnitureSilva/SilvaBookcase.cs index 6aea67b8b3..c1399436b8 100644 --- a/Items/Placeables/FurnitureSilva/SilvaBookcase.cs +++ b/Items/Placeables/FurnitureSilva/SilvaBookcase.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaCandelabra.cs b/Items/Placeables/FurnitureSilva/SilvaCandelabra.cs index 5df6ab8d8a..8ef27911f3 100644 --- a/Items/Placeables/FurnitureSilva/SilvaCandelabra.cs +++ b/Items/Placeables/FurnitureSilva/SilvaCandelabra.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaCandle.cs b/Items/Placeables/FurnitureSilva/SilvaCandle.cs index ab885cf5c9..119316a107 100644 --- a/Items/Placeables/FurnitureSilva/SilvaCandle.cs +++ b/Items/Placeables/FurnitureSilva/SilvaCandle.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaChair.cs b/Items/Placeables/FurnitureSilva/SilvaChair.cs index 35bc0ca6fd..172ef47636 100644 --- a/Items/Placeables/FurnitureSilva/SilvaChair.cs +++ b/Items/Placeables/FurnitureSilva/SilvaChair.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaChandelier.cs b/Items/Placeables/FurnitureSilva/SilvaChandelier.cs index ad183ce0d3..7562940c29 100644 --- a/Items/Placeables/FurnitureSilva/SilvaChandelier.cs +++ b/Items/Placeables/FurnitureSilva/SilvaChandelier.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaChest.cs b/Items/Placeables/FurnitureSilva/SilvaChest.cs index 61ca4a0ef5..b79f06cba9 100644 --- a/Items/Placeables/FurnitureSilva/SilvaChest.cs +++ b/Items/Placeables/FurnitureSilva/SilvaChest.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaClock.cs b/Items/Placeables/FurnitureSilva/SilvaClock.cs index 3999459299..d3640d9bf1 100644 --- a/Items/Placeables/FurnitureSilva/SilvaClock.cs +++ b/Items/Placeables/FurnitureSilva/SilvaClock.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaCrystal.cs b/Items/Placeables/FurnitureSilva/SilvaCrystal.cs index 06cc84fe58..767e8832fc 100644 --- a/Items/Placeables/FurnitureSilva/SilvaCrystal.cs +++ b/Items/Placeables/FurnitureSilva/SilvaCrystal.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaDoor.cs b/Items/Placeables/FurnitureSilva/SilvaDoor.cs index 6a7bd19a3b..7e53b496e3 100644 --- a/Items/Placeables/FurnitureSilva/SilvaDoor.cs +++ b/Items/Placeables/FurnitureSilva/SilvaDoor.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurnitureSilva; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaDresser.cs b/Items/Placeables/FurnitureSilva/SilvaDresser.cs index e66691f426..39d2b02cde 100644 --- a/Items/Placeables/FurnitureSilva/SilvaDresser.cs +++ b/Items/Placeables/FurnitureSilva/SilvaDresser.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaLamp.cs b/Items/Placeables/FurnitureSilva/SilvaLamp.cs index 8659a864c8..df9109ffe7 100644 --- a/Items/Placeables/FurnitureSilva/SilvaLamp.cs +++ b/Items/Placeables/FurnitureSilva/SilvaLamp.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaLantern.cs b/Items/Placeables/FurnitureSilva/SilvaLantern.cs index e76e77d220..77cbfcdfc2 100644 --- a/Items/Placeables/FurnitureSilva/SilvaLantern.cs +++ b/Items/Placeables/FurnitureSilva/SilvaLantern.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaPiano.cs b/Items/Placeables/FurnitureSilva/SilvaPiano.cs index 4c624762b6..e2c5fef227 100644 --- a/Items/Placeables/FurnitureSilva/SilvaPiano.cs +++ b/Items/Placeables/FurnitureSilva/SilvaPiano.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaPlatform.cs b/Items/Placeables/FurnitureSilva/SilvaPlatform.cs index d16bbd1ae0..0962b6ecf4 100644 --- a/Items/Placeables/FurnitureSilva/SilvaPlatform.cs +++ b/Items/Placeables/FurnitureSilva/SilvaPlatform.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaSink.cs b/Items/Placeables/FurnitureSilva/SilvaSink.cs index 37f2aa1853..1fd97c15a8 100644 --- a/Items/Placeables/FurnitureSilva/SilvaSink.cs +++ b/Items/Placeables/FurnitureSilva/SilvaSink.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaTable.cs b/Items/Placeables/FurnitureSilva/SilvaTable.cs index b15dc4ba8e..c2cf2950ce 100644 --- a/Items/Placeables/FurnitureSilva/SilvaTable.cs +++ b/Items/Placeables/FurnitureSilva/SilvaTable.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureSilva/SilvaWorkBench.cs b/Items/Placeables/FurnitureSilva/SilvaWorkBench.cs index 6450e45095..bd60f93d00 100644 --- a/Items/Placeables/FurnitureSilva/SilvaWorkBench.cs +++ b/Items/Placeables/FurnitureSilva/SilvaWorkBench.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureSilva { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureSilva item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelBath.cs b/Items/Placeables/FurnitureStatigel/StatigelBath.cs index d24327e737..fa790183e4 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelBath.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelBath.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStatigel { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelBed.cs b/Items/Placeables/FurnitureStatigel/StatigelBed.cs index f35fd9e689..aff3b833ad 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelBed.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelBed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelBlock.cs b/Items/Placeables/FurnitureStatigel/StatigelBlock.cs index da0eb968d8..96b77cc218 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelBlock.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelBlock.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelBookcase.cs b/Items/Placeables/FurnitureStatigel/StatigelBookcase.cs index 58ab27537d..fc508cfd11 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelBookcase.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelBookcase.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelCandelabra.cs b/Items/Placeables/FurnitureStatigel/StatigelCandelabra.cs index 48cb355021..4bcade6253 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelCandelabra.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelCandelabra.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelCandle.cs b/Items/Placeables/FurnitureStatigel/StatigelCandle.cs index 0c83ccaabe..308f3deecc 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelCandle.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelCandle.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelChair.cs b/Items/Placeables/FurnitureStatigel/StatigelChair.cs index 80a69bf03c..70a7324427 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelChair.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelChair.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStatigel { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelChandelier.cs b/Items/Placeables/FurnitureStatigel/StatigelChandelier.cs index 682bac858e..6102484361 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelChandelier.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelChandelier.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelChest.cs b/Items/Placeables/FurnitureStatigel/StatigelChest.cs index fa3d55659c..79bdadbda8 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelChest.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelChest.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelClock.cs b/Items/Placeables/FurnitureStatigel/StatigelClock.cs index b4ffc54492..5f989b5f7c 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelClock.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelClock.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelDoor.cs b/Items/Placeables/FurnitureStatigel/StatigelDoor.cs index 48ad4a89a0..fa381319b9 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelDoor.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelDoor.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurnitureStatigel; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStatigel { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelDresser.cs b/Items/Placeables/FurnitureStatigel/StatigelDresser.cs index 2e1290cc1c..0a2b1c2279 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelDresser.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelDresser.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStatigel { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelLamp.cs b/Items/Placeables/FurnitureStatigel/StatigelLamp.cs index cbee15def8..59029dde11 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelLamp.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelLamp.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelLantern.cs b/Items/Placeables/FurnitureStatigel/StatigelLantern.cs index 722087968e..3adae2902a 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelLantern.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelLantern.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelPiano.cs b/Items/Placeables/FurnitureStatigel/StatigelPiano.cs index a2cc7c48d3..312716c25f 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelPiano.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelPiano.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelPlatform.cs b/Items/Placeables/FurnitureStatigel/StatigelPlatform.cs index 72fc8de3a2..9ae59c1247 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelPlatform.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelPlatform.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStatigel { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelSink.cs b/Items/Placeables/FurnitureStatigel/StatigelSink.cs index cccfa7ddef..c738bf1f5c 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelSink.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelSink.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelSofa.cs b/Items/Placeables/FurnitureStatigel/StatigelSofa.cs index 6f54abba06..15d696c8d6 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelSofa.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelSofa.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelTable.cs b/Items/Placeables/FurnitureStatigel/StatigelTable.cs index 8406330083..3f1a96de16 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelTable.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelTable.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStatigel { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStatigel/StatigelWorkbench.cs b/Items/Placeables/FurnitureStatigel/StatigelWorkbench.cs index de66734790..803c5e57b0 100644 --- a/Items/Placeables/FurnitureStatigel/StatigelWorkbench.cs +++ b/Items/Placeables/FurnitureStatigel/StatigelWorkbench.cs @@ -1,5 +1,5 @@ - using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStatigel { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStatigel item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureStratus/StratusBathtub.cs b/Items/Placeables/FurnitureStratus/StratusBathtub.cs index c752f7e770..e224a99058 100644 --- a/Items/Placeables/FurnitureStratus/StratusBathtub.cs +++ b/Items/Placeables/FurnitureStratus/StratusBathtub.cs @@ -1,3 +1,4 @@ +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStratus { @@ -16,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -26,7 +27,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 14); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusBed.cs b/Items/Placeables/FurnitureStratus/StratusBed.cs index 9006861aeb..714e66524d 100644 --- a/Items/Placeables/FurnitureStratus/StratusBed.cs +++ b/Items/Placeables/FurnitureStratus/StratusBed.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ModContent.ItemType(), 15); recipe.AddIngredient(ItemID.Silk, 5); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusBookcase.cs b/Items/Placeables/FurnitureStratus/StratusBookcase.cs index cdd6fada0d..9fa963130a 100644 --- a/Items/Placeables/FurnitureStratus/StratusBookcase.cs +++ b/Items/Placeables/FurnitureStratus/StratusBookcase.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ModContent.ItemType(), 20); recipe.AddIngredient(ItemID.Book, 10); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusBricks.cs b/Items/Placeables/FurnitureStratus/StratusBricks.cs index 10d49c78d4..0e2b64d885 100644 --- a/Items/Placeables/FurnitureStratus/StratusBricks.cs +++ b/Items/Placeables/FurnitureStratus/StratusBricks.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Items.Placeables.Walls; using Terraria.ID; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ModContent.ItemType(), 1); recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 50); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 2); recipe.SetResult(this); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusCandelabra.cs b/Items/Placeables/FurnitureStratus/StratusCandelabra.cs index ce5d9435fc..f310ee57fd 100644 --- a/Items/Placeables/FurnitureStratus/StratusCandelabra.cs +++ b/Items/Placeables/FurnitureStratus/StratusCandelabra.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStratus { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -28,7 +29,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ModContent.ItemType(), 3); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusCandle.cs b/Items/Placeables/FurnitureStratus/StratusCandle.cs index 93510d0740..4eec66e6d7 100644 --- a/Items/Placeables/FurnitureStratus/StratusCandle.cs +++ b/Items/Placeables/FurnitureStratus/StratusCandle.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStratus { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -28,7 +29,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ModContent.ItemType(), 4); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusChair.cs b/Items/Placeables/FurnitureStratus/StratusChair.cs index 103c714918..03f57528a5 100644 --- a/Items/Placeables/FurnitureStratus/StratusChair.cs +++ b/Items/Placeables/FurnitureStratus/StratusChair.cs @@ -1,3 +1,4 @@ +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStratus { @@ -16,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -26,7 +27,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusChandelier.cs b/Items/Placeables/FurnitureStratus/StratusChandelier.cs index e968dd7938..cec16a72fd 100644 --- a/Items/Placeables/FurnitureStratus/StratusChandelier.cs +++ b/Items/Placeables/FurnitureStratus/StratusChandelier.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ModContent.ItemType(), 4); recipe.AddIngredient(ItemID.Chain); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusChest.cs b/Items/Placeables/FurnitureStratus/StratusChest.cs index e79858c90e..e9da768598 100644 --- a/Items/Placeables/FurnitureStratus/StratusChest.cs +++ b/Items/Placeables/FurnitureStratus/StratusChest.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ItemID.IronBar, 2); recipe.anyIronBar = true; recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusClock.cs b/Items/Placeables/FurnitureStratus/StratusClock.cs index d822ac65ce..1921261425 100644 --- a/Items/Placeables/FurnitureStratus/StratusClock.cs +++ b/Items/Placeables/FurnitureStratus/StratusClock.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.anyIronBar = true; recipe.AddIngredient(ItemID.Glass, 6); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusDoor.cs b/Items/Placeables/FurnitureStratus/StratusDoor.cs index 5cf097bd10..bb2bfbdf47 100644 --- a/Items/Placeables/FurnitureStratus/StratusDoor.cs +++ b/Items/Placeables/FurnitureStratus/StratusDoor.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.FurnitureStratus; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStratus { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -27,7 +28,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 6); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusDresser.cs b/Items/Placeables/FurnitureStratus/StratusDresser.cs index c59e82958e..565f61a957 100644 --- a/Items/Placeables/FurnitureStratus/StratusDresser.cs +++ b/Items/Placeables/FurnitureStratus/StratusDresser.cs @@ -1,3 +1,4 @@ +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStratus { @@ -16,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -26,7 +27,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 16); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusLamp.cs b/Items/Placeables/FurnitureStratus/StratusLamp.cs index ab193e11af..f5ee7e3b66 100644 --- a/Items/Placeables/FurnitureStratus/StratusLamp.cs +++ b/Items/Placeables/FurnitureStratus/StratusLamp.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStratus { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -28,7 +29,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ModContent.ItemType(), 3); recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusLantern.cs b/Items/Placeables/FurnitureStratus/StratusLantern.cs index ccd3421137..88d3542dc6 100644 --- a/Items/Placeables/FurnitureStratus/StratusLantern.cs +++ b/Items/Placeables/FurnitureStratus/StratusLantern.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStratus { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -28,7 +29,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ModContent.ItemType(), 6); recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusPiano.cs b/Items/Placeables/FurnitureStratus/StratusPiano.cs index af5891918b..0602e8a58c 100644 --- a/Items/Placeables/FurnitureStratus/StratusPiano.cs +++ b/Items/Placeables/FurnitureStratus/StratusPiano.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ItemID.Bone, 4); recipe.AddIngredient(ItemID.Book, 1); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusPlatform.cs b/Items/Placeables/FurnitureStratus/StratusPlatform.cs index 249b761395..b74ec035e6 100644 --- a/Items/Placeables/FurnitureStratus/StratusPlatform.cs +++ b/Items/Placeables/FurnitureStratus/StratusPlatform.cs @@ -1,3 +1,4 @@ +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStratus { @@ -16,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -26,7 +27,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 1); recipe.SetResult(this, 2); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusSink.cs b/Items/Placeables/FurnitureStratus/StratusSink.cs index 903de044b2..4d88f2eae6 100644 --- a/Items/Placeables/FurnitureStratus/StratusSink.cs +++ b/Items/Placeables/FurnitureStratus/StratusSink.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ModContent.ItemType(), 6); recipe.AddIngredient(ItemID.WaterBucket); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusSofa.cs b/Items/Placeables/FurnitureStratus/StratusSofa.cs index ab53136008..6dd93a1b10 100644 --- a/Items/Placeables/FurnitureStratus/StratusSofa.cs +++ b/Items/Placeables/FurnitureStratus/StratusSofa.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ItemID.Silk, 2); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusTable.cs b/Items/Placeables/FurnitureStratus/StratusTable.cs index afc9ddf685..a2b12a9c24 100644 --- a/Items/Placeables/FurnitureStratus/StratusTable.cs +++ b/Items/Placeables/FurnitureStratus/StratusTable.cs @@ -1,3 +1,4 @@ +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStratus { @@ -16,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -26,7 +27,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 8); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureStratus/StratusWorkbench.cs b/Items/Placeables/FurnitureStratus/StratusWorkbench.cs index 06f79a283d..30ebb1cad4 100644 --- a/Items/Placeables/FurnitureStratus/StratusWorkbench.cs +++ b/Items/Placeables/FurnitureStratus/StratusWorkbench.cs @@ -1,3 +1,4 @@ +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureStratus { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } @@ -27,7 +28,7 @@ namespace CalamityMod.Items.Placeables.FurnitureStratus ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 10); recipe.SetResult(this, 1); - recipe.AddTile(412); + recipe.AddTile(TileID.LunarCraftingStation); recipe.AddRecipe(); } } diff --git a/Items/Placeables/FurnitureVoid/SmoothVoidstone.cs b/Items/Placeables/FurnitureVoid/SmoothVoidstone.cs index c20111210c..369d7b9093 100644 --- a/Items/Placeables/FurnitureVoid/SmoothVoidstone.cs +++ b/Items/Placeables/FurnitureVoid/SmoothVoidstone.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.cs b/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.cs index 449d47941b..ce8e8189d6 100644 --- a/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.cs +++ b/Items/Placeables/FurnitureVoid/SmoothVoidstonePlatform.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureVoid { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidBath.cs b/Items/Placeables/FurnitureVoid/VoidBath.cs index 21c1ed5aa3..3be827d990 100644 --- a/Items/Placeables/FurnitureVoid/VoidBath.cs +++ b/Items/Placeables/FurnitureVoid/VoidBath.cs @@ -1,5 +1,5 @@ - using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureVoid { @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidBed.cs b/Items/Placeables/FurnitureVoid/VoidBed.cs index c30c07cbd9..1045ed8c01 100644 --- a/Items/Placeables/FurnitureVoid/VoidBed.cs +++ b/Items/Placeables/FurnitureVoid/VoidBed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidBookcase.cs b/Items/Placeables/FurnitureVoid/VoidBookcase.cs index 9039436fa9..65ac40cdef 100644 --- a/Items/Placeables/FurnitureVoid/VoidBookcase.cs +++ b/Items/Placeables/FurnitureVoid/VoidBookcase.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidCandelabra.cs b/Items/Placeables/FurnitureVoid/VoidCandelabra.cs index 42c3c15066..5b043ce49f 100644 --- a/Items/Placeables/FurnitureVoid/VoidCandelabra.cs +++ b/Items/Placeables/FurnitureVoid/VoidCandelabra.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureVoid { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidCandle.cs b/Items/Placeables/FurnitureVoid/VoidCandle.cs index ac8fc9f8f0..5cca74e980 100644 --- a/Items/Placeables/FurnitureVoid/VoidCandle.cs +++ b/Items/Placeables/FurnitureVoid/VoidCandle.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureVoid { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidChair.cs b/Items/Placeables/FurnitureVoid/VoidChair.cs index 39668a3a77..f86f544367 100644 --- a/Items/Placeables/FurnitureVoid/VoidChair.cs +++ b/Items/Placeables/FurnitureVoid/VoidChair.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureVoid { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidChandelier.cs b/Items/Placeables/FurnitureVoid/VoidChandelier.cs index d52e4b2939..0a3beac57f 100644 --- a/Items/Placeables/FurnitureVoid/VoidChandelier.cs +++ b/Items/Placeables/FurnitureVoid/VoidChandelier.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidChest.cs b/Items/Placeables/FurnitureVoid/VoidChest.cs index 806985f1a2..a611920294 100644 --- a/Items/Placeables/FurnitureVoid/VoidChest.cs +++ b/Items/Placeables/FurnitureVoid/VoidChest.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidClock.cs b/Items/Placeables/FurnitureVoid/VoidClock.cs index d721d180ed..679d52d147 100644 --- a/Items/Placeables/FurnitureVoid/VoidClock.cs +++ b/Items/Placeables/FurnitureVoid/VoidClock.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidDoor.cs b/Items/Placeables/FurnitureVoid/VoidDoor.cs index a07e1020d2..e3aa493874 100644 --- a/Items/Placeables/FurnitureVoid/VoidDoor.cs +++ b/Items/Placeables/FurnitureVoid/VoidDoor.cs @@ -1,5 +1,6 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Tiles.FurnitureVoid; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureVoid { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidDresser.cs b/Items/Placeables/FurnitureVoid/VoidDresser.cs index 30dc30c36d..19cefccc9f 100644 --- a/Items/Placeables/FurnitureVoid/VoidDresser.cs +++ b/Items/Placeables/FurnitureVoid/VoidDresser.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureVoid { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidLamp.cs b/Items/Placeables/FurnitureVoid/VoidLamp.cs index a4c67f0d7d..05b797734e 100644 --- a/Items/Placeables/FurnitureVoid/VoidLamp.cs +++ b/Items/Placeables/FurnitureVoid/VoidLamp.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureVoid { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidLantern.cs b/Items/Placeables/FurnitureVoid/VoidLantern.cs index 389f704e44..165bfa5d15 100644 --- a/Items/Placeables/FurnitureVoid/VoidLantern.cs +++ b/Items/Placeables/FurnitureVoid/VoidLantern.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureVoid { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidPiano.cs b/Items/Placeables/FurnitureVoid/VoidPiano.cs index 06297179e1..f5b8ed450b 100644 --- a/Items/Placeables/FurnitureVoid/VoidPiano.cs +++ b/Items/Placeables/FurnitureVoid/VoidPiano.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidSink.cs b/Items/Placeables/FurnitureVoid/VoidSink.cs index 6ddc710bf5..621a0e86dc 100644 --- a/Items/Placeables/FurnitureVoid/VoidSink.cs +++ b/Items/Placeables/FurnitureVoid/VoidSink.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidSofa.cs b/Items/Placeables/FurnitureVoid/VoidSofa.cs index d176d3b1db..3cb55dc521 100644 --- a/Items/Placeables/FurnitureVoid/VoidSofa.cs +++ b/Items/Placeables/FurnitureVoid/VoidSofa.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidTable.cs b/Items/Placeables/FurnitureVoid/VoidTable.cs index 43c66aa2e1..d2d2c94f41 100644 --- a/Items/Placeables/FurnitureVoid/VoidTable.cs +++ b/Items/Placeables/FurnitureVoid/VoidTable.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureVoid { @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidWorkbench.cs b/Items/Placeables/FurnitureVoid/VoidWorkbench.cs index 49ff732a8a..635049c9f6 100644 --- a/Items/Placeables/FurnitureVoid/VoidWorkbench.cs +++ b/Items/Placeables/FurnitureVoid/VoidWorkbench.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurnitureVoid { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/FurnitureVoid/VoidstoneSlab.cs b/Items/Placeables/FurnitureVoid/VoidstoneSlab.cs index 40d4786d11..4dbe0af9c8 100644 --- a/Items/Placeables/FurnitureVoid/VoidstoneSlab.cs +++ b/Items/Placeables/FurnitureVoid/VoidstoneSlab.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureVoid item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/HardenedAstralSand.cs b/Items/Placeables/HardenedAstralSand.cs index 1bddfd6910..7860ece387 100644 --- a/Items/Placeables/HardenedAstralSand.cs +++ b/Items/Placeables/HardenedAstralSand.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables { @@ -12,7 +13,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +27,7 @@ namespace CalamityMod.Items.Placeables public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this, 1); recipe.AddRecipe(); diff --git a/Items/Placeables/HardenedSulphurousSandstone.cs b/Items/Placeables/HardenedSulphurousSandstone.cs index 68f6cdd0d4..ce46f8634b 100644 --- a/Items/Placeables/HardenedSulphurousSandstone.cs +++ b/Items/Placeables/HardenedSulphurousSandstone.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables { @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Placeables public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Placeables/LivingFire/LivingBrimstoneFireBlock.cs b/Items/Placeables/LivingFire/LivingBrimstoneFireBlock.cs index 61e6cfb425..c334d7ad3a 100644 --- a/Items/Placeables/LivingFire/LivingBrimstoneFireBlock.cs +++ b/Items/Placeables/LivingFire/LivingBrimstoneFireBlock.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Placeables.LivingFire item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/LivingFire/LivingGodSlayerFireBlock.cs b/Items/Placeables/LivingFire/LivingGodSlayerFireBlock.cs index 09cd09e454..64d7b24cdf 100644 --- a/Items/Placeables/LivingFire/LivingGodSlayerFireBlock.cs +++ b/Items/Placeables/LivingFire/LivingGodSlayerFireBlock.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Placeables.LivingFire item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/LivingFire/LivingHolyFireBlock.cs b/Items/Placeables/LivingFire/LivingHolyFireBlock.cs index 39485fa6c2..3a2f68ff69 100644 --- a/Items/Placeables/LivingFire/LivingHolyFireBlock.cs +++ b/Items/Placeables/LivingFire/LivingHolyFireBlock.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Placeables.LivingFire item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Navystone.cs b/Items/Placeables/Navystone.cs index f2d5dd1a3d..abb570b5c9 100644 --- a/Items/Placeables/Navystone.cs +++ b/Items/Placeables/Navystone.cs @@ -1,6 +1,7 @@ -using CalamityMod.Items.Placeables.FurnitureEutrophic; +using CalamityMod.Items.Placeables.FurnitureEutrophic; using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables { @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -29,7 +30,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.SetResult(this); recipe.AddRecipe(); recipe = new ModRecipe(mod); diff --git a/Items/Placeables/Ores/AerialiteOre.cs b/Items/Placeables/Ores/AerialiteOre.cs index 73f1ac68f1..5a9a448138 100644 --- a/Items/Placeables/Ores/AerialiteOre.cs +++ b/Items/Placeables/Ores/AerialiteOre.cs @@ -1,5 +1,6 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Ores { @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Ores public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/Ores/AstralOre.cs b/Items/Placeables/Ores/AstralOre.cs index ce620f1b39..69bc1a7864 100644 --- a/Items/Placeables/Ores/AstralOre.cs +++ b/Items/Placeables/Ores/AstralOre.cs @@ -1,5 +1,6 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Ores { @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Ores public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/Ores/AuricOre.cs b/Items/Placeables/Ores/AuricOre.cs index 49930ebde1..ab00f8060a 100644 --- a/Items/Placeables/Ores/AuricOre.cs +++ b/Items/Placeables/Ores/AuricOre.cs @@ -1,5 +1,6 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Ores { @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Ores public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/Ores/ChaoticOre.cs b/Items/Placeables/Ores/ChaoticOre.cs index c4caff39ed..462f52744c 100644 --- a/Items/Placeables/Ores/ChaoticOre.cs +++ b/Items/Placeables/Ores/ChaoticOre.cs @@ -1,5 +1,6 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Ores { @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Ores public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/Ores/CharredOre.cs b/Items/Placeables/Ores/CharredOre.cs index 5d772c198e..bf4d6c81d3 100644 --- a/Items/Placeables/Ores/CharredOre.cs +++ b/Items/Placeables/Ores/CharredOre.cs @@ -1,5 +1,6 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Ores { @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Ores public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/Ores/CryonicOre.cs b/Items/Placeables/Ores/CryonicOre.cs index 609e77563f..827a46f994 100644 --- a/Items/Placeables/Ores/CryonicOre.cs +++ b/Items/Placeables/Ores/CryonicOre.cs @@ -1,5 +1,6 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Ores { @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Ores public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/Ores/ExodiumClusterOre.cs b/Items/Placeables/Ores/ExodiumClusterOre.cs index 268ec2aa3f..7bb3081407 100644 --- a/Items/Placeables/Ores/ExodiumClusterOre.cs +++ b/Items/Placeables/Ores/ExodiumClusterOre.cs @@ -1,4 +1,4 @@ -using CalamityMod.Tiles.Ores; +using CalamityMod.Tiles.Ores; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Ores public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/Ores/PerennialOre.cs b/Items/Placeables/Ores/PerennialOre.cs index aecabea730..2f3981d1f7 100644 --- a/Items/Placeables/Ores/PerennialOre.cs +++ b/Items/Placeables/Ores/PerennialOre.cs @@ -1,5 +1,6 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Ores { @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Ores public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/Ores/UelibloomOre.cs b/Items/Placeables/Ores/UelibloomOre.cs index 93c7ba6603..fe9d27737d 100644 --- a/Items/Placeables/Ores/UelibloomOre.cs +++ b/Items/Placeables/Ores/UelibloomOre.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System.Collections.Generic; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Ores @@ -15,7 +16,7 @@ namespace CalamityMod.Items.Placeables.Ores public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/PerennialBrick.cs b/Items/Placeables/PerennialBrick.cs index 50ae25086e..b93e5b270d 100644 --- a/Items/Placeables/PerennialBrick.cs +++ b/Items/Placeables/PerennialBrick.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Ores; +using CalamityMod.Items.Placeables.Ores; using CalamityMod.Items.Placeables.Walls; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/PlantyMush.cs b/Items/Placeables/PlantyMush.cs index 27486f66ca..bcb1df91d4 100644 --- a/Items/Placeables/PlantyMush.cs +++ b/Items/Placeables/PlantyMush.cs @@ -1,4 +1,5 @@ -using Terraria; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/PrismShard.cs b/Items/Placeables/PrismShard.cs index befbdeedfc..517835f1bf 100644 --- a/Items/Placeables/PrismShard.cs +++ b/Items/Placeables/PrismShard.cs @@ -1,5 +1,6 @@ -using CalamityMod.Tiles.SunkenSea; +using CalamityMod.Tiles.SunkenSea; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables { @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/SeaPrism.cs b/Items/Placeables/SeaPrism.cs index 6f81baa6c7..9166f710dc 100644 --- a/Items/Placeables/SeaPrism.cs +++ b/Items/Placeables/SeaPrism.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/SulphurousSand.cs b/Items/Placeables/SulphurousSand.cs index 19e3dc5f45..7ac38dbc76 100644 --- a/Items/Placeables/SulphurousSand.cs +++ b/Items/Placeables/SulphurousSand.cs @@ -1,4 +1,5 @@ -using Terraria.ModLoader; +using Terraria.ID; +using Terraria.ModLoader; namespace CalamityMod.Items.Placeables { public class SulphurousSand : ModItem @@ -11,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -25,7 +26,7 @@ namespace CalamityMod.Items.Placeables public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Placeables/SulphurousSandstone.cs b/Items/Placeables/SulphurousSandstone.cs index 854db54095..bb6ee05063 100644 --- a/Items/Placeables/SulphurousSandstone.cs +++ b/Items/Placeables/SulphurousSandstone.cs @@ -1,4 +1,5 @@ -using Terraria.ModLoader; +using Terraria.ID; +using Terraria.ModLoader; namespace CalamityMod.Items.Placeables { public class SulphurousSandstone : ModItem @@ -11,7 +12,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -25,7 +26,7 @@ namespace CalamityMod.Items.Placeables public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType(), 4); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Placeables/Tenebris.cs b/Items/Placeables/Tenebris.cs index 41b3e81813..f320acc050 100644 --- a/Items/Placeables/Tenebris.cs +++ b/Items/Placeables/Tenebris.cs @@ -1,4 +1,5 @@ -using Terraria; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { item.createTile = ModContent.TileType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/UelibloomBrick.cs b/Items/Placeables/UelibloomBrick.cs index cd344ba449..2e8c44954e 100644 --- a/Items/Placeables/UelibloomBrick.cs +++ b/Items/Placeables/UelibloomBrick.cs @@ -1,4 +1,4 @@ -using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.Furniture.CraftingStations; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Items.Placeables.Walls; using CalamityMod.Items.Placeables.FurnitureBotanic; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Voidstone.cs b/Items/Placeables/Voidstone.cs index 1e388b2fe4..db6a9ef38c 100644 --- a/Items/Placeables/Voidstone.cs +++ b/Items/Placeables/Voidstone.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Placeables.Walls; using Terraria.ID; using Terraria.ModLoader; // If you are using c# 6, you can use: "using static Terraria.Localization.GameCulture;" which would mean you could just write "DisplayName.AddTranslation(German, "");" @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createTile = ModContent.TileType(); } diff --git a/Items/Placeables/Walls/AbyssGravelWallItem.cs b/Items/Placeables/Walls/AbyssGravelWallItem.cs index 4a71b1aa1b..37dbd3a637 100644 --- a/Items/Placeables/Walls/AbyssGravelWallItem.cs +++ b/Items/Placeables/Walls/AbyssGravelWallItem.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Placeables/Walls/AerialiteBrickWall.cs b/Items/Placeables/Walls/AerialiteBrickWall.cs index bda0fc4f7b..38d0778f73 100644 --- a/Items/Placeables/Walls/AerialiteBrickWall.cs +++ b/Items/Placeables/Walls/AerialiteBrickWall.cs @@ -1,5 +1,7 @@ using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class AerialiteBrickWall : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -27,7 +29,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/AshenSlabWall.cs b/Items/Placeables/Walls/AshenSlabWall.cs index d0b91ce173..e507ded4b0 100644 --- a/Items/Placeables/Walls/AshenSlabWall.cs +++ b/Items/Placeables/Walls/AshenSlabWall.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Placeables.FurnitureAshen; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class AshenSlabWall : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.createWall = ModContent.WallType(); @@ -29,7 +31,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/AstralBrickWall.cs b/Items/Placeables/Walls/AstralBrickWall.cs index fcf25f34b6..97093d3a49 100644 --- a/Items/Placeables/Walls/AstralBrickWall.cs +++ b/Items/Placeables/Walls/AstralBrickWall.cs @@ -1,5 +1,7 @@ using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class AstralBrickWall : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -27,7 +29,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/AstralDirtWall.cs b/Items/Placeables/Walls/AstralDirtWall.cs index a3b4b4b58b..13b732276d 100644 --- a/Items/Placeables/Walls/AstralDirtWall.cs +++ b/Items/Placeables/Walls/AstralDirtWall.cs @@ -1,5 +1,7 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class AstralDirtWall : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetDefaults() { item.createWall = ModContent.WallType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 7; @@ -26,7 +28,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); diff --git a/Items/Placeables/Walls/AstralFossilWall.cs b/Items/Placeables/Walls/AstralFossilWall.cs index bb14713258..ac98d407a9 100644 --- a/Items/Placeables/Walls/AstralFossilWall.cs +++ b/Items/Placeables/Walls/AstralFossilWall.cs @@ -1,5 +1,7 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class AstralFossilWall : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetDefaults() { item.createWall = ModContent.WallType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +28,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); diff --git a/Items/Placeables/Walls/AstralGrassWall.cs b/Items/Placeables/Walls/AstralGrassWall.cs index 6beb85065a..02a358b4ad 100644 --- a/Items/Placeables/Walls/AstralGrassWall.cs +++ b/Items/Placeables/Walls/AstralGrassWall.cs @@ -1,5 +1,7 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class AstralGrassWall : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetDefaults() { item.createWall = ModContent.WallType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/Walls/AstralIceWall.cs b/Items/Placeables/Walls/AstralIceWall.cs index d30712a3f1..dea131be4e 100644 --- a/Items/Placeables/Walls/AstralIceWall.cs +++ b/Items/Placeables/Walls/AstralIceWall.cs @@ -1,5 +1,7 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class AstralIceWall : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetDefaults() { item.createWall = ModContent.WallType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +28,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); diff --git a/Items/Placeables/Walls/AstralMonolithWall.cs b/Items/Placeables/Walls/AstralMonolithWall.cs index 4e47831f72..b2b096daab 100644 --- a/Items/Placeables/Walls/AstralMonolithWall.cs +++ b/Items/Placeables/Walls/AstralMonolithWall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; using Terraria.ModLoader; using WallTiles = 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, "");" @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Placeables/Walls/AstralSandstoneWall.cs b/Items/Placeables/Walls/AstralSandstoneWall.cs index d117622196..8f13f3330e 100644 --- a/Items/Placeables/Walls/AstralSandstoneWall.cs +++ b/Items/Placeables/Walls/AstralSandstoneWall.cs @@ -1,5 +1,7 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class AstralSandstoneWall : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetDefaults() { item.createWall = ModContent.WallType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +28,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); diff --git a/Items/Placeables/Walls/AstralSnowWall.cs b/Items/Placeables/Walls/AstralSnowWall.cs index a6db11bd6b..46755c10cb 100644 --- a/Items/Placeables/Walls/AstralSnowWall.cs +++ b/Items/Placeables/Walls/AstralSnowWall.cs @@ -1,5 +1,7 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class AstralSnowWall : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetDefaults() { item.createWall = ModContent.WallType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +28,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); diff --git a/Items/Placeables/Walls/AstralStoneWall.cs b/Items/Placeables/Walls/AstralStoneWall.cs index 795038b0eb..04bc91380a 100644 --- a/Items/Placeables/Walls/AstralStoneWall.cs +++ b/Items/Placeables/Walls/AstralStoneWall.cs @@ -1,5 +1,7 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class AstralStoneWall : ModItem @@ -12,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetDefaults() { item.createWall = ModContent.WallType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +28,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); diff --git a/Items/Placeables/Walls/BlueBrickWallUnsafe.cs b/Items/Placeables/Walls/BlueBrickWallUnsafe.cs index 61e21a0478..cc1486a84a 100644 --- a/Items/Placeables/Walls/BlueBrickWallUnsafe.cs +++ b/Items/Placeables/Walls/BlueBrickWallUnsafe.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Walls { @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = WallID.BlueDungeonUnsafe; } diff --git a/Items/Placeables/Walls/BlueSlabWallUnsafe.cs b/Items/Placeables/Walls/BlueSlabWallUnsafe.cs index 2198cc8828..3e96fc21d9 100644 --- a/Items/Placeables/Walls/BlueSlabWallUnsafe.cs +++ b/Items/Placeables/Walls/BlueSlabWallUnsafe.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Walls { @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = WallID.BlueDungeonSlabUnsafe; } diff --git a/Items/Placeables/Walls/BlueTiledWallUnsafe.cs b/Items/Placeables/Walls/BlueTiledWallUnsafe.cs index 366b0deb4a..a67f1d2f53 100644 --- a/Items/Placeables/Walls/BlueTiledWallUnsafe.cs +++ b/Items/Placeables/Walls/BlueTiledWallUnsafe.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Walls { @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = WallID.BlueDungeonTileUnsafe; } diff --git a/Items/Placeables/Walls/BrimstoneSlagWall.cs b/Items/Placeables/Walls/BrimstoneSlagWall.cs index 1cd00f6d8a..af2e428daa 100644 --- a/Items/Placeables/Walls/BrimstoneSlagWall.cs +++ b/Items/Placeables/Walls/BrimstoneSlagWall.cs @@ -1,5 +1,7 @@ using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class BrimstoneSlagWall : ModItem @@ -13,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -22,7 +24,7 @@ namespace CalamityMod.Items.Placeables.Walls { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.SetResult(this, 4); recipe.AddRecipe(); } diff --git a/Items/Placeables/Walls/ChaoticBrickWall.cs b/Items/Placeables/Walls/ChaoticBrickWall.cs index 50b827e0b2..b95d9a77c5 100644 --- a/Items/Placeables/Walls/ChaoticBrickWall.cs +++ b/Items/Placeables/Walls/ChaoticBrickWall.cs @@ -1,5 +1,7 @@ using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class ChaoticBrickWall : ModItem @@ -13,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -22,7 +24,7 @@ namespace CalamityMod.Items.Placeables.Walls { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 1); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.SetResult(this, 4); recipe.AddRecipe(); } diff --git a/Items/Placeables/Walls/CinderplateWall.cs b/Items/Placeables/Walls/CinderplateWall.cs index 9df72de716..33781b2a04 100644 --- a/Items/Placeables/Walls/CinderplateWall.cs +++ b/Items/Placeables/Walls/CinderplateWall.cs @@ -1,5 +1,7 @@ using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class CinderplateWall : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Placeables/Walls/CosmiliteBrickWall.cs b/Items/Placeables/Walls/CosmiliteBrickWall.cs index 29553b7bdf..b482d874fa 100644 --- a/Items/Placeables/Walls/CosmiliteBrickWall.cs +++ b/Items/Placeables/Walls/CosmiliteBrickWall.cs @@ -1,6 +1,8 @@ using CalamityMod.Items.Placeables.FurnitureCosmilite; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class CosmiliteBrickWall : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -28,7 +30,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/CryonicBrickWall.cs b/Items/Placeables/Walls/CryonicBrickWall.cs index 5eb8b7337b..f6b0d9a336 100644 --- a/Items/Placeables/Walls/CryonicBrickWall.cs +++ b/Items/Placeables/Walls/CryonicBrickWall.cs @@ -1,5 +1,7 @@ using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class CryonicBrickWall : ModItem @@ -17,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -27,7 +29,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/EutrophicSandWall.cs b/Items/Placeables/Walls/EutrophicSandWall.cs index 2f62148f1f..0244df9fb2 100644 --- a/Items/Placeables/Walls/EutrophicSandWall.cs +++ b/Items/Placeables/Walls/EutrophicSandWall.cs @@ -1,5 +1,7 @@ using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class EutrophicSandWall : ModItem @@ -13,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Placeables/Walls/EutrophicSandWallSafe.cs b/Items/Placeables/Walls/EutrophicSandWallSafe.cs index 3e1bf05a31..4d24db55b6 100644 --- a/Items/Placeables/Walls/EutrophicSandWallSafe.cs +++ b/Items/Placeables/Walls/EutrophicSandWallSafe.cs @@ -1,5 +1,7 @@ using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; + namespace CalamityMod.Items.Placeables.Walls { public class EutrophicSandWallSafe : ModItem @@ -13,7 +15,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -22,7 +24,7 @@ namespace CalamityMod.Items.Placeables.Walls { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.SetResult(this, 4); recipe.AddRecipe(); } diff --git a/Items/Placeables/Walls/GreenBrickWallUnsafe.cs b/Items/Placeables/Walls/GreenBrickWallUnsafe.cs index dfa9154bf5..3a3cf6ceeb 100644 --- a/Items/Placeables/Walls/GreenBrickWallUnsafe.cs +++ b/Items/Placeables/Walls/GreenBrickWallUnsafe.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Walls { @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = WallID.GreenDungeonUnsafe; } diff --git a/Items/Placeables/Walls/GreenSlabWallUnsafe.cs b/Items/Placeables/Walls/GreenSlabWallUnsafe.cs index 74c598c34e..240b76f75d 100644 --- a/Items/Placeables/Walls/GreenSlabWallUnsafe.cs +++ b/Items/Placeables/Walls/GreenSlabWallUnsafe.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Walls { @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = WallID.GreenDungeonSlabUnsafe; } diff --git a/Items/Placeables/Walls/GreenTiledWallUnsafe.cs b/Items/Placeables/Walls/GreenTiledWallUnsafe.cs index 5a94140c08..91dc8d687f 100644 --- a/Items/Placeables/Walls/GreenTiledWallUnsafe.cs +++ b/Items/Placeables/Walls/GreenTiledWallUnsafe.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Walls { @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = WallID.GreenDungeonTileUnsafe; } diff --git a/Items/Placeables/Walls/HardenedAstralSandWall.cs b/Items/Placeables/Walls/HardenedAstralSandWall.cs index 71380c8c14..c6c3f06935 100644 --- a/Items/Placeables/Walls/HardenedAstralSandWall.cs +++ b/Items/Placeables/Walls/HardenedAstralSandWall.cs @@ -1,4 +1,5 @@ -using Terraria.ModLoader; +using Terraria.ID; +using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls { @@ -12,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetDefaults() { item.createWall = ModContent.WallType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +27,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); diff --git a/Items/Placeables/Walls/HardenedSulphurousSandstoneWall.cs b/Items/Placeables/Walls/HardenedSulphurousSandstoneWall.cs index 7fab425008..df4ab65d7d 100644 --- a/Items/Placeables/Walls/HardenedSulphurousSandstoneWall.cs +++ b/Items/Placeables/Walls/HardenedSulphurousSandstoneWall.cs @@ -1,4 +1,5 @@ -using Terraria.ModLoader; +using Terraria.ID; +using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls { @@ -12,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetDefaults() { item.createWall = ModContent.WallType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +27,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); diff --git a/Items/Placeables/Walls/NavystoneWall.cs b/Items/Placeables/Walls/NavystoneWall.cs index d4ac3c26c6..2baee58fdf 100644 --- a/Items/Placeables/Walls/NavystoneWall.cs +++ b/Items/Placeables/Walls/NavystoneWall.cs @@ -1,5 +1,6 @@ using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Walls { public class NavystoneWall : ModItem @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -22,7 +23,7 @@ namespace CalamityMod.Items.Placeables.Walls { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.SetResult(this, 4); recipe.AddRecipe(); } diff --git a/Items/Placeables/Walls/NavystoneWallSafe.cs b/Items/Placeables/Walls/NavystoneWallSafe.cs index 37face8557..0c899e051b 100644 --- a/Items/Placeables/Walls/NavystoneWallSafe.cs +++ b/Items/Placeables/Walls/NavystoneWallSafe.cs @@ -1,5 +1,6 @@ using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Walls { public class NavystoneWallSafe : ModItem @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -22,7 +23,7 @@ namespace CalamityMod.Items.Placeables.Walls { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.SetResult(this, 4); recipe.AddRecipe(); } diff --git a/Items/Placeables/Walls/OccultStoneWall.cs b/Items/Placeables/Walls/OccultStoneWall.cs index ede61e61ce..fe0c5b2a03 100644 --- a/Items/Placeables/Walls/OccultStoneWall.cs +++ b/Items/Placeables/Walls/OccultStoneWall.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Placeables.FurnitureOccult; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Walls { public class OccultStoneWall : ModItem @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -29,7 +30,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/PerennialBrickWall.cs b/Items/Placeables/Walls/PerennialBrickWall.cs index 5d84ffa3f4..36e36acf55 100644 --- a/Items/Placeables/Walls/PerennialBrickWall.cs +++ b/Items/Placeables/Walls/PerennialBrickWall.cs @@ -1,5 +1,6 @@ using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; +using Terraria.ID; namespace CalamityMod.Items.Placeables.Walls { public class PerennialBrickWall : ModItem @@ -17,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -27,7 +28,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/PinkBrickWallUnsafe.cs b/Items/Placeables/Walls/PinkBrickWallUnsafe.cs index 0efe3f1e6f..1ebd084c02 100644 --- a/Items/Placeables/Walls/PinkBrickWallUnsafe.cs +++ b/Items/Placeables/Walls/PinkBrickWallUnsafe.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Walls { @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = WallID.PinkDungeonUnsafe; } diff --git a/Items/Placeables/Walls/PinkSlabWallUnsafe.cs b/Items/Placeables/Walls/PinkSlabWallUnsafe.cs index f0852df71f..3d4f6f81f3 100644 --- a/Items/Placeables/Walls/PinkSlabWallUnsafe.cs +++ b/Items/Placeables/Walls/PinkSlabWallUnsafe.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Walls { @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = WallID.PinkDungeonSlabUnsafe; } diff --git a/Items/Placeables/Walls/PinkTiledWallUnsafe.cs b/Items/Placeables/Walls/PinkTiledWallUnsafe.cs index 29235e60a9..2f73deb5c0 100644 --- a/Items/Placeables/Walls/PinkTiledWallUnsafe.cs +++ b/Items/Placeables/Walls/PinkTiledWallUnsafe.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.Walls { @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = WallID.PinkDungeonTileUnsafe; } diff --git a/Items/Placeables/Walls/PlaguedPlateWall.cs b/Items/Placeables/Walls/PlaguedPlateWall.cs index 6dc898930a..69a74e58bc 100644 --- a/Items/Placeables/Walls/PlaguedPlateWall.cs +++ b/Items/Placeables/Walls/PlaguedPlateWall.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.FurniturePlaguedPlate; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Placeables/Walls/ProfanedCrystalWall.cs b/Items/Placeables/Walls/ProfanedCrystalWall.cs index 2252423c5d..aaa21daa4c 100644 --- a/Items/Placeables/Walls/ProfanedCrystalWall.cs +++ b/Items/Placeables/Walls/ProfanedCrystalWall.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Placeables.FurnitureProfaned; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -28,7 +29,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/ProfanedRockWall.cs b/Items/Placeables/Walls/ProfanedRockWall.cs index 61215bcf4d..3cdca800e8 100644 --- a/Items/Placeables/Walls/ProfanedRockWall.cs +++ b/Items/Placeables/Walls/ProfanedRockWall.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Placeables.FurnitureProfaned; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -28,7 +29,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/ProfanedSlabWall.cs b/Items/Placeables/Walls/ProfanedSlabWall.cs index f0d637da96..fd97b87c70 100644 --- a/Items/Placeables/Walls/ProfanedSlabWall.cs +++ b/Items/Placeables/Walls/ProfanedSlabWall.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Placeables.FurnitureProfaned; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -28,7 +29,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/RunicProfanedBrickWall.cs b/Items/Placeables/Walls/RunicProfanedBrickWall.cs index 3224b14b4d..254d803644 100644 --- a/Items/Placeables/Walls/RunicProfanedBrickWall.cs +++ b/Items/Placeables/Walls/RunicProfanedBrickWall.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Placeables.FurnitureProfaned; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -28,7 +29,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/SilvaWall.cs b/Items/Placeables/Walls/SilvaWall.cs index 5d35348089..d13ef6d3a4 100644 --- a/Items/Placeables/Walls/SilvaWall.cs +++ b/Items/Placeables/Walls/SilvaWall.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.FurnitureSilva; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Placeables/Walls/SmoothAbyssGravelWall.cs b/Items/Placeables/Walls/SmoothAbyssGravelWall.cs index 87f932ffad..c5217f8a42 100644 --- a/Items/Placeables/Walls/SmoothAbyssGravelWall.cs +++ b/Items/Placeables/Walls/SmoothAbyssGravelWall.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.FurnitureAbyss; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Placeables/Walls/SmoothBrimstoneSlagWall.cs b/Items/Placeables/Walls/SmoothBrimstoneSlagWall.cs index b262bf9a9a..1dc311d536 100644 --- a/Items/Placeables/Walls/SmoothBrimstoneSlagWall.cs +++ b/Items/Placeables/Walls/SmoothBrimstoneSlagWall.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.FurnitureAshen; using Terraria.ModLoader; +using Terraria.ID; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls { @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.rare = 3; item.consumable = true; item.createWall = ModContent.WallType(); @@ -29,7 +30,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/SmoothNavystoneWall.cs b/Items/Placeables/Walls/SmoothNavystoneWall.cs index dcdf443b5f..df61a4a81f 100644 --- a/Items/Placeables/Walls/SmoothNavystoneWall.cs +++ b/Items/Placeables/Walls/SmoothNavystoneWall.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Placeables.FurnitureEutrophic; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -28,7 +29,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/SmoothVoidstoneWall.cs b/Items/Placeables/Walls/SmoothVoidstoneWall.cs index 6206d3be93..c27e1e8819 100644 --- a/Items/Placeables/Walls/SmoothVoidstoneWall.cs +++ b/Items/Placeables/Walls/SmoothVoidstoneWall.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Placeables/Walls/StatigelWall.cs b/Items/Placeables/Walls/StatigelWall.cs index 8bbd84f106..b19e8c6fa4 100644 --- a/Items/Placeables/Walls/StatigelWall.cs +++ b/Items/Placeables/Walls/StatigelWall.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.FurnitureStatigel; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls @@ -19,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Placeables/Walls/StratusWall.cs b/Items/Placeables/Walls/StratusWall.cs index ea73c6389e..1520125c5e 100644 --- a/Items/Placeables/Walls/StratusWall.cs +++ b/Items/Placeables/Walls/StratusWall.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Placeables.FurnitureStratus; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } @@ -28,7 +29,7 @@ namespace CalamityMod.Items.Placeables.Walls ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); - recipe.AddTile(18); + recipe.AddTile(TileID.WorkBenches); recipe.AddRecipe(); } } diff --git a/Items/Placeables/Walls/SulphurousSandWall.cs b/Items/Placeables/Walls/SulphurousSandWall.cs index 0a29b7bfd0..0335702073 100644 --- a/Items/Placeables/Walls/SulphurousSandWall.cs +++ b/Items/Placeables/Walls/SulphurousSandWall.cs @@ -1,4 +1,5 @@ -using Terraria.ModLoader; +using Terraria.ID; +using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls { @@ -12,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetDefaults() { item.createWall = ModContent.WallType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; @@ -26,7 +27,8 @@ namespace CalamityMod.Items.Placeables.Walls public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddTile(18); + recipe.AddTile( + 18); recipe.AddIngredient(ModContent.ItemType()); recipe.SetResult(this, 4); recipe.AddRecipe(); diff --git a/Items/Placeables/Walls/SulphurousSandstoneWall.cs b/Items/Placeables/Walls/SulphurousSandstoneWall.cs index a124416ed5..3c260a5e7b 100644 --- a/Items/Placeables/Walls/SulphurousSandstoneWall.cs +++ b/Items/Placeables/Walls/SulphurousSandstoneWall.cs @@ -1,4 +1,5 @@ -using Terraria.ModLoader; +using Terraria.ID; +using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls { @@ -12,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetDefaults() { item.createWall = ModContent.WallType(); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; diff --git a/Items/Placeables/Walls/UelibloomBrickWall.cs b/Items/Placeables/Walls/UelibloomBrickWall.cs index cd7d924fea..fd8c45eae1 100644 --- a/Items/Placeables/Walls/UelibloomBrickWall.cs +++ b/Items/Placeables/Walls/UelibloomBrickWall.cs @@ -1,4 +1,5 @@ using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria.ID; using Terraria.ModLoader; using WallTiles = CalamityMod.Walls; namespace CalamityMod.Items.Placeables.Walls @@ -18,7 +19,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Placeables/Walls/VoidstoneSlabWall.cs b/Items/Placeables/Walls/VoidstoneSlabWall.cs index 2ac830ab2b..987924770b 100644 --- a/Items/Placeables/Walls/VoidstoneSlabWall.cs +++ b/Items/Placeables/Walls/VoidstoneSlabWall.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Placeables/Walls/VoidstoneWall.cs b/Items/Placeables/Walls/VoidstoneWall.cs index 97e0e86d24..71e6cb8eed 100644 --- a/Items/Placeables/Walls/VoidstoneWall.cs +++ b/Items/Placeables/Walls/VoidstoneWall.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.Walls item.autoReuse = true; item.useAnimation = 15; item.useTime = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.consumable = true; item.createWall = ModContent.WallType(); } diff --git a/Items/Potions/Alcohol/BloodyMary.cs b/Items/Potions/Alcohol/BloodyMary.cs index af1098189d..5977d1cb65 100644 --- a/Items/Potions/Alcohol/BloodyMary.cs +++ b/Items/Potions/Alcohol/BloodyMary.cs @@ -24,7 +24,7 @@ Reduces life regen by 2 and defense by 6"); item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/CaribbeanRum.cs b/Items/Potions/Alcohol/CaribbeanRum.cs index 12e3eee559..a111e0d38f 100644 --- a/Items/Potions/Alcohol/CaribbeanRum.cs +++ b/Items/Potions/Alcohol/CaribbeanRum.cs @@ -24,7 +24,7 @@ Makes you floaty and reduces defense by 12"); item.rare = 4; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/CinnamonRoll.cs b/Items/Potions/Alcohol/CinnamonRoll.cs index 995e3cb13a..cde44bd371 100644 --- a/Items/Potions/Alcohol/CinnamonRoll.cs +++ b/Items/Potions/Alcohol/CinnamonRoll.cs @@ -26,7 +26,7 @@ Reduces defense by 12"); item.rare = 4; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/Everclear.cs b/Items/Potions/Alcohol/Everclear.cs index b93f36370d..872d2126c5 100644 --- a/Items/Potions/Alcohol/Everclear.cs +++ b/Items/Potions/Alcohol/Everclear.cs @@ -24,7 +24,7 @@ Reduces life regen by 10 and defense by 40"); item.rare = 2; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/EvergreenGin.cs b/Items/Potions/Alcohol/EvergreenGin.cs index a75ee9cdd9..b7b3ca9307 100644 --- a/Items/Potions/Alcohol/EvergreenGin.cs +++ b/Items/Potions/Alcohol/EvergreenGin.cs @@ -24,7 +24,7 @@ Reduces life regen by 1"); item.rare = 4; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/FabsolsVodka.cs b/Items/Potions/Alcohol/FabsolsVodka.cs index 81a4cb69a9..812c007e92 100644 --- a/Items/Potions/Alcohol/FabsolsVodka.cs +++ b/Items/Potions/Alcohol/FabsolsVodka.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Alcohol; +using CalamityMod.Buffs.Alcohol; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions.Alcohol item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/Fireball.cs b/Items/Potions/Alcohol/Fireball.cs index 44e9e869ec..4d87fd005e 100644 --- a/Items/Potions/Alcohol/Fireball.cs +++ b/Items/Potions/Alcohol/Fireball.cs @@ -26,7 +26,7 @@ Reduces life regen by 1"); item.rare = 2; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/GrapeBeer.cs b/Items/Potions/Alcohol/GrapeBeer.cs index b14fe3f62c..68c3e97a5e 100644 --- a/Items/Potions/Alcohol/GrapeBeer.cs +++ b/Items/Potions/Alcohol/GrapeBeer.cs @@ -25,7 +25,7 @@ Reduces defense by 2 and movement speed by 5%"); item.rare = 1; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.healLife = 100; item.consumable = true; diff --git a/Items/Potions/Alcohol/Margarita.cs b/Items/Potions/Alcohol/Margarita.cs index b5e6b64dce..613329475c 100644 --- a/Items/Potions/Alcohol/Margarita.cs +++ b/Items/Potions/Alcohol/Margarita.cs @@ -26,7 +26,7 @@ Reduces defense by 6 and life regen by 1"); item.rare = 5; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.potion = true; diff --git a/Items/Potions/Alcohol/Moonshine.cs b/Items/Potions/Alcohol/Moonshine.cs index 9e31dac7b0..d6b4630518 100644 --- a/Items/Potions/Alcohol/Moonshine.cs +++ b/Items/Potions/Alcohol/Moonshine.cs @@ -24,7 +24,7 @@ Reduces life regen by 1"); item.rare = 2; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/MoscowMule.cs b/Items/Potions/Alcohol/MoscowMule.cs index cdf5648e4d..e2d8c6abe0 100644 --- a/Items/Potions/Alcohol/MoscowMule.cs +++ b/Items/Potions/Alcohol/MoscowMule.cs @@ -24,7 +24,7 @@ Reduces life regen by 2"); item.rare = 4; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/OddMushroom.cs b/Items/Potions/Alcohol/OddMushroom.cs index c0551a6dc2..c8f34dfd96 100644 --- a/Items/Potions/Alcohol/OddMushroom.cs +++ b/Items/Potions/Alcohol/OddMushroom.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Alcohol; +using CalamityMod.Buffs.Alcohol; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Potions.Alcohol item.useAnimation = 17; item.useTime = 17; item.rare = 3; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item2; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/RedWine.cs b/Items/Potions/Alcohol/RedWine.cs index a1fb141b12..48facc24f6 100644 --- a/Items/Potions/Alcohol/RedWine.cs +++ b/Items/Potions/Alcohol/RedWine.cs @@ -24,7 +24,7 @@ Reduces life regen by 1"); item.rare = 1; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.healLife = 200; item.consumable = true; diff --git a/Items/Potions/Alcohol/Rum.cs b/Items/Potions/Alcohol/Rum.cs index 6e2842c8bd..ad5efb2135 100644 --- a/Items/Potions/Alcohol/Rum.cs +++ b/Items/Potions/Alcohol/Rum.cs @@ -24,7 +24,7 @@ Reduces defense by 8"); item.rare = 2; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/Screwdriver.cs b/Items/Potions/Alcohol/Screwdriver.cs index bb86f77f5d..b70b8f0eb6 100644 --- a/Items/Potions/Alcohol/Screwdriver.cs +++ b/Items/Potions/Alcohol/Screwdriver.cs @@ -24,7 +24,7 @@ Reduces life regen by 1"); item.rare = 4; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/StarBeamRye.cs b/Items/Potions/Alcohol/StarBeamRye.cs index f21d5a50f0..7d3a010bce 100644 --- a/Items/Potions/Alcohol/StarBeamRye.cs +++ b/Items/Potions/Alcohol/StarBeamRye.cs @@ -25,7 +25,7 @@ Reduces defense by 6 and life regen by 1"); item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/Tequila.cs b/Items/Potions/Alcohol/Tequila.cs index a87c972841..09aa8468bf 100644 --- a/Items/Potions/Alcohol/Tequila.cs +++ b/Items/Potions/Alcohol/Tequila.cs @@ -24,7 +24,7 @@ Reduces life regen by 1"); item.rare = 2; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/TequilaSunrise.cs b/Items/Potions/Alcohol/TequilaSunrise.cs index de0101291f..ccdeb1e250 100644 --- a/Items/Potions/Alcohol/TequilaSunrise.cs +++ b/Items/Potions/Alcohol/TequilaSunrise.cs @@ -24,7 +24,7 @@ Reduces life regen by 1"); item.rare = 4; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/Vodka.cs b/Items/Potions/Alcohol/Vodka.cs index 80dee69cb8..1b1647d0e8 100644 --- a/Items/Potions/Alcohol/Vodka.cs +++ b/Items/Potions/Alcohol/Vodka.cs @@ -24,7 +24,7 @@ Reduces life regen by 1 and defense by 4"); item.rare = 2; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/Whiskey.cs b/Items/Potions/Alcohol/Whiskey.cs index 38b303f939..54cc55b724 100644 --- a/Items/Potions/Alcohol/Whiskey.cs +++ b/Items/Potions/Alcohol/Whiskey.cs @@ -24,7 +24,7 @@ Reduces defense by 8"); item.rare = 2; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/Alcohol/WhiteWine.cs b/Items/Potions/Alcohol/WhiteWine.cs index 1f3665f36e..1eeffbb613 100644 --- a/Items/Potions/Alcohol/WhiteWine.cs +++ b/Items/Potions/Alcohol/WhiteWine.cs @@ -24,7 +24,7 @@ Reduces defense by 6 and life regen by 1"); item.rare = 4; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.healMana = 400; diff --git a/Items/Potions/AnechoicCoating.cs b/Items/Potions/AnechoicCoating.cs index b4ae0b0d45..2ec329c4d4 100644 --- a/Items/Potions/AnechoicCoating.cs +++ b/Items/Potions/AnechoicCoating.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/AstralInjection.cs b/Items/Potions/AstralInjection.cs index 8e9bdb7634..bea213c75b 100644 --- a/Items/Potions/AstralInjection.cs +++ b/Items/Potions/AstralInjection.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.DataStructures; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/AstralJelly.cs b/Items/Potions/AstralJelly.cs index a81d078260..fc9d41d7f2 100644 --- a/Items/Potions/AstralJelly.cs +++ b/Items/Potions/AstralJelly.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Potions item.useAnimation = 17; item.useTime = 17; item.rare = 7; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.healMana = 200; item.UseSound = SoundID.Item3; item.consumable = true; diff --git a/Items/Potions/Baguette.cs b/Items/Potions/Baguette.cs index 21e041a251..6c20b1b2b9 100644 --- a/Items/Potions/Baguette.cs +++ b/Items/Potions/Baguette.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Buffs.Potions; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.useAnimation = 17; item.useTime = 17; item.rare = 1; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item2; item.consumable = true; item.value = Item.buyPrice(0, 0, 50, 0); diff --git a/Items/Potions/BoundingPotion.cs b/Items/Potions/BoundingPotion.cs index 1c6eac1b71..83c761a909 100644 --- a/Items/Potions/BoundingPotion.cs +++ b/Items/Potions/BoundingPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/CadencePotion.cs b/Items/Potions/CadencePotion.cs index 5374214e7f..c02e28ba72 100644 --- a/Items/Potions/CadencePotion.cs +++ b/Items/Potions/CadencePotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/CalamitasBrew.cs b/Items/Potions/CalamitasBrew.cs index 0c3d0afd56..72c46ae0f2 100644 --- a/Items/Potions/CalamitasBrew.cs +++ b/Items/Potions/CalamitasBrew.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/CalciumPotion.cs b/Items/Potions/CalciumPotion.cs index d1c88894d9..2ae5e02014 100644 --- a/Items/Potions/CalciumPotion.cs +++ b/Items/Potions/CalciumPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/CeaselessHungerPotion.cs b/Items/Potions/CeaselessHungerPotion.cs index c011f98bce..e7f0db58cc 100644 --- a/Items/Potions/CeaselessHungerPotion.cs +++ b/Items/Potions/CeaselessHungerPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/CrumblingPotion.cs b/Items/Potions/CrumblingPotion.cs index fcff6d9521..d8d6b5b14d 100644 --- a/Items/Potions/CrumblingPotion.cs +++ b/Items/Potions/CrumblingPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/DeliciousMeat.cs b/Items/Potions/DeliciousMeat.cs index b16872c69f..05def0868c 100644 --- a/Items/Potions/DeliciousMeat.cs +++ b/Items/Potions/DeliciousMeat.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Potions item.useAnimation = 17; item.useTime = 17; item.UseSound = SoundID.Item2; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.useTurn = true; item.buffType = BuffID.WellFed; item.buffTime = 108000; diff --git a/Items/Potions/DraconicElixir.cs b/Items/Potions/DraconicElixir.cs index a7a01cd9a3..9e9220bc65 100644 --- a/Items/Potions/DraconicElixir.cs +++ b/Items/Potions/DraconicElixir.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/GravityNormalizerPotion.cs b/Items/Potions/GravityNormalizerPotion.cs index 47fe871041..7f4fe5fa42 100644 --- a/Items/Potions/GravityNormalizerPotion.cs +++ b/Items/Potions/GravityNormalizerPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using CalamityMod.Items.Fishing.AstralCatches; using Terraria; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/HolyWrathPotion.cs b/Items/Potions/HolyWrathPotion.cs index d59c672eec..e9ce32dc5f 100644 --- a/Items/Potions/HolyWrathPotion.cs +++ b/Items/Potions/HolyWrathPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/OmegaHealingPotion.cs b/Items/Potions/OmegaHealingPotion.cs index 6f7c90dc8c..d7e71db6ba 100644 --- a/Items/Potions/OmegaHealingPotion.cs +++ b/Items/Potions/OmegaHealingPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.ID; @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Potions item.healLife = 300; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.potion = true; diff --git a/Items/Potions/PenumbraPotion.cs b/Items/Potions/PenumbraPotion.cs index 7d001aac12..ef185ed897 100644 --- a/Items/Potions/PenumbraPotion.cs +++ b/Items/Potions/PenumbraPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/PhotosynthesisPotion.cs b/Items/Potions/PhotosynthesisPotion.cs index 45574fe3d2..05c380d3b9 100644 --- a/Items/Potions/PhotosynthesisPotion.cs +++ b/Items/Potions/PhotosynthesisPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/PotionofOmniscience.cs b/Items/Potions/PotionofOmniscience.cs index e80a5ae3ef..3a3cbf39fa 100644 --- a/Items/Potions/PotionofOmniscience.cs +++ b/Items/Potions/PotionofOmniscience.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/ProfanedRagePotion.cs b/Items/Potions/ProfanedRagePotion.cs index f560a6a5bb..d885297232 100644 --- a/Items/Potions/ProfanedRagePotion.cs +++ b/Items/Potions/ProfanedRagePotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/PurifiedJam.cs b/Items/Potions/PurifiedJam.cs index e2922cf4ef..d403e9f29c 100644 --- a/Items/Potions/PurifiedJam.cs +++ b/Items/Potions/PurifiedJam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.World; using Terraria; using Terraria.ID; @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Potions/RevivifyPotion.cs b/Items/Potions/RevivifyPotion.cs index 3d378d36b7..553f85e8d1 100644 --- a/Items/Potions/RevivifyPotion.cs +++ b/Items/Potions/RevivifyPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using CalamityMod.Items.Fishing.SunkenSeaCatches; using Terraria; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/ShatteringPotion.cs b/Items/Potions/ShatteringPotion.cs index 79309c6c3e..bde143567e 100644 --- a/Items/Potions/ShatteringPotion.cs +++ b/Items/Potions/ShatteringPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/SoaringPotion.cs b/Items/Potions/SoaringPotion.cs index be7bbb0000..f4c764af50 100644 --- a/Items/Potions/SoaringPotion.cs +++ b/Items/Potions/SoaringPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Fishing.SunkenSeaCatches; using CalamityMod.Items.Materials; using Terraria; @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/SulphurskinPotion.cs b/Items/Potions/SulphurskinPotion.cs index 0db7d4313a..27c569846c 100644 --- a/Items/Potions/SulphurskinPotion.cs +++ b/Items/Potions/SulphurskinPotion.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/SunkenStew.cs b/Items/Potions/SunkenStew.cs index c113ca61fe..2376a0ab90 100644 --- a/Items/Potions/SunkenStew.cs +++ b/Items/Potions/SunkenStew.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables; +using CalamityMod.Items.Placeables; using CalamityMod.Items.Fishing.BrimstoneCragCatches; using System.Collections.Generic; using Terraria; @@ -26,7 +26,7 @@ Grants Well Fed"); item.useAnimation = 17; item.useTime = 17; item.rare = 3; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.potion = true; diff --git a/Items/Potions/SupremeHealingPotion.cs b/Items/Potions/SupremeHealingPotion.cs index 26739a6738..f2e4638c9e 100644 --- a/Items/Potions/SupremeHealingPotion.cs +++ b/Items/Potions/SupremeHealingPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Potions item.healLife = 250; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.potion = true; diff --git a/Items/Potions/SupremeManaPotion.cs b/Items/Potions/SupremeManaPotion.cs index 91a11973ff..9a4e07e22e 100644 --- a/Items/Potions/SupremeManaPotion.cs +++ b/Items/Potions/SupremeManaPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Potions item.healMana = 400; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.rare = 10; diff --git a/Items/Potions/TeslaPotion.cs b/Items/Potions/TeslaPotion.cs index 880fe3cdc2..db39cb952d 100644 --- a/Items/Potions/TeslaPotion.cs +++ b/Items/Potions/TeslaPotion.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/TitanScalePotion.cs b/Items/Potions/TitanScalePotion.cs index cc8c6cf303..b6361ee788 100644 --- a/Items/Potions/TitanScalePotion.cs +++ b/Items/Potions/TitanScalePotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using CalamityMod.Items.Fishing.SunkenSeaCatches; using Terraria; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/TriumphPotion.cs b/Items/Potions/TriumphPotion.cs index 8bb99136b4..6f9861933b 100644 --- a/Items/Potions/TriumphPotion.cs +++ b/Items/Potions/TriumphPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/YharimsStimulants.cs b/Items/Potions/YharimsStimulants.cs index 4869e4de51..226072f55e 100644 --- a/Items/Potions/YharimsStimulants.cs +++ b/Items/Potions/YharimsStimulants.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/ZenPotion.cs b/Items/Potions/ZenPotion.cs index d80965dd28..4b92fa67b1 100644 --- a/Items/Potions/ZenPotion.cs +++ b/Items/Potions/ZenPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Potions/ZergPotion.cs b/Items/Potions/ZergPotion.cs index f6b975b525..0a63d0e0bf 100644 --- a/Items/Potions/ZergPotion.cs +++ b/Items/Potions/ZergPotion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Potions item.rare = 3; item.useAnimation = 17; item.useTime = 17; - item.useStyle = 2; + item.useStyle = ItemUseStyleID.EatingUsing; item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); diff --git a/Items/Rock.cs b/Items/Rock.cs index 7c3b07954f..49c2aa5bf0 100644 --- a/Items/Rock.cs +++ b/Items/Rock.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items diff --git a/Items/SummonItems/Abomination.cs b/Items/SummonItems/Abomination.cs index a5b323bdcc..03d001e4a2 100644 --- a/Items/SummonItems/Abomination.cs +++ b/Items/SummonItems/Abomination.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.PlaguebringerGoliath; using Terraria; using Terraria.ID; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 8; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/AncientMedallion.cs b/Items/SummonItems/AncientMedallion.cs index ed7d87adbe..c4314e06b3 100644 --- a/Items/SummonItems/AncientMedallion.cs +++ b/Items/SummonItems/AncientMedallion.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.Ravager; +using CalamityMod.NPCs.Ravager; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 8; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/AstralChunk.cs b/Items/SummonItems/AstralChunk.cs index 84ce4c35d3..d85d35d685 100644 --- a/Items/SummonItems/AstralChunk.cs +++ b/Items/SummonItems/AstralChunk.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.AstrumAureus; using Terraria; using Terraria.ID; @@ -22,7 +22,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 7; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/BirbPheromones.cs b/Items/SummonItems/BirbPheromones.cs index a86ceb5844..6f684c71dc 100644 --- a/Items/SummonItems/BirbPheromones.cs +++ b/Items/SummonItems/BirbPheromones.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.Bumblebirb; +using CalamityMod.NPCs.Bumblebirb; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 10; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/BlightedEyeball.cs b/Items/SummonItems/BlightedEyeball.cs index 4b792423d8..24fd415b40 100644 --- a/Items/SummonItems/BlightedEyeball.cs +++ b/Items/SummonItems/BlightedEyeball.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.Calamitas; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 6; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = false; } diff --git a/Items/SummonItems/BloodwormItem.cs b/Items/SummonItems/BloodwormItem.cs index 8ef056acbf..8b4068c0fe 100644 --- a/Items/SummonItems/BloodwormItem.cs +++ b/Items/SummonItems/BloodwormItem.cs @@ -1,6 +1,7 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; using CalamityMod.NPCs.AcidRain; +using Terraria.ID; namespace CalamityMod.Items.SummonItems { @@ -19,7 +20,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 10; item.Calamity().customRarity = CalamityRarity.PureGreen; item.bait = 69420; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.autoReuse = true; item.useTurn = true; item.useAnimation = 15; diff --git a/Items/SummonItems/BloodyWormFood.cs b/Items/SummonItems/BloodyWormFood.cs index 623cfc7243..0beb8fc5ef 100644 --- a/Items/SummonItems/BloodyWormFood.cs +++ b/Items/SummonItems/BloodyWormFood.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.Perforator; using Terraria; using Terraria.ID; @@ -22,7 +22,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 3; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/BossRush.cs b/Items/SummonItems/BossRush.cs index 21c2f2b616..2866a82b21 100644 --- a/Items/SummonItems/BossRush.cs +++ b/Items/SummonItems/BossRush.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.SummonItems item.height = 28; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item123; item.consumable = false; } diff --git a/Items/SummonItems/BulbofDoom.cs b/Items/SummonItems/BulbofDoom.cs index b1ff819c00..98c6b10c99 100644 --- a/Items/SummonItems/BulbofDoom.cs +++ b/Items/SummonItems/BulbofDoom.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.SummonItems item.maxStack = 20; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.rare = 7; item.consumable = true; } diff --git a/Items/SummonItems/CharredIdol.cs b/Items/SummonItems/CharredIdol.cs index ca285a18c9..dbe391ec18 100644 --- a/Items/SummonItems/CharredIdol.cs +++ b/Items/SummonItems/CharredIdol.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.NPCs.BrimstoneElemental; using Terraria; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 6; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/ChickenEgg.cs b/Items/SummonItems/ChickenEgg.cs index fe2cbf5f23..2cefbdadc7 100644 --- a/Items/SummonItems/ChickenEgg.cs +++ b/Items/SummonItems/ChickenEgg.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.Yharon; using CalamityMod.World; using Terraria; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.SummonItems item.height = 18; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = false; item.Calamity().customRarity = CalamityRarity.DarkBlue; } diff --git a/Items/SummonItems/CosmicWorm.cs b/Items/SummonItems/CosmicWorm.cs index e20ea1ee81..895141107f 100644 --- a/Items/SummonItems/CosmicWorm.cs +++ b/Items/SummonItems/CosmicWorm.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.DevourerofGods; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.SummonItems item.height = 18; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = false; item.Calamity().customRarity = CalamityRarity.PureGreen; } diff --git a/Items/SummonItems/CryoKey.cs b/Items/SummonItems/CryoKey.cs index aef427480c..d80959ea35 100644 --- a/Items/SummonItems/CryoKey.cs +++ b/Items/SummonItems/CryoKey.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.Cryogen; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 5; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/DecapoditaSprout.cs b/Items/SummonItems/DecapoditaSprout.cs index ff4f73d0ed..90cb377169 100644 --- a/Items/SummonItems/DecapoditaSprout.cs +++ b/Items/SummonItems/DecapoditaSprout.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.Crabulon; +using CalamityMod.NPCs.Crabulon; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 2; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/DraedonsRemote.cs b/Items/SummonItems/DraedonsRemote.cs index e48eb17133..3173e489ea 100644 --- a/Items/SummonItems/DraedonsRemote.cs +++ b/Items/SummonItems/DraedonsRemote.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs; +using CalamityMod.NPCs; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 8; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/DriedSeafood.cs b/Items/SummonItems/DriedSeafood.cs index 2bce193495..352677586b 100644 --- a/Items/SummonItems/DriedSeafood.cs +++ b/Items/SummonItems/DriedSeafood.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.DesertScourge; using CalamityMod.World; using Terraria; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 2; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/EidolonTablet.cs b/Items/SummonItems/EidolonTablet.cs index 7b9f4aebf6..334dd3e834 100644 --- a/Items/SummonItems/EidolonTablet.cs +++ b/Items/SummonItems/EidolonTablet.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 9; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/EyeofExtinction.cs b/Items/SummonItems/EyeofExtinction.cs index 2c6a3e0910..77dcf2314c 100644 --- a/Items/SummonItems/EyeofExtinction.cs +++ b/Items/SummonItems/EyeofExtinction.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.Tiles; @@ -29,7 +29,7 @@ namespace CalamityMod.Items.SummonItems item.height = 40; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = false; item.Calamity().customRarity = CalamityRarity.Violet; } diff --git a/Items/SummonItems/Invasion/CausticTear.cs b/Items/SummonItems/Invasion/CausticTear.cs index 5dd6afd63b..202d462474 100644 --- a/Items/SummonItems/Invasion/CausticTear.cs +++ b/Items/SummonItems/Invasion/CausticTear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Events; +using CalamityMod.Events; using CalamityMod.Items.Materials; using CalamityMod.World; using Terraria; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.SummonItems.Invasion item.rare = 1; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/Invasion/CausticTearNonConsumable.cs b/Items/SummonItems/Invasion/CausticTearNonConsumable.cs index 99a51fd3c8..421bce07dc 100644 --- a/Items/SummonItems/Invasion/CausticTearNonConsumable.cs +++ b/Items/SummonItems/Invasion/CausticTearNonConsumable.cs @@ -1,4 +1,4 @@ -using CalamityMod.Events; +using CalamityMod.Events; using CalamityMod.Items.Materials; using CalamityMod.World; using Terraria; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.SummonItems.Invasion item.rare = 6; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = false; } diff --git a/Items/SummonItems/NecroplasmicBeacon.cs b/Items/SummonItems/NecroplasmicBeacon.cs index 4d79385faa..7633d4bff0 100644 --- a/Items/SummonItems/NecroplasmicBeacon.cs +++ b/Items/SummonItems/NecroplasmicBeacon.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.Polterghast; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.SummonItems item.height = 58; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = false; item.Calamity().customRarity = CalamityRarity.PureGreen; } diff --git a/Items/SummonItems/OldPowerCell.cs b/Items/SummonItems/OldPowerCell.cs index 48b034c7fa..7574bb43f2 100644 --- a/Items/SummonItems/OldPowerCell.cs +++ b/Items/SummonItems/OldPowerCell.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 7; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/OverloadedSludge.cs b/Items/SummonItems/OverloadedSludge.cs index 5e73b74abd..bba085c39b 100644 --- a/Items/SummonItems/OverloadedSludge.cs +++ b/Items/SummonItems/OverloadedSludge.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.SlimeGod; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 4; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/ProfanedCore.cs b/Items/SummonItems/ProfanedCore.cs index bc31dd4d4a..85bfb5c550 100644 --- a/Items/SummonItems/ProfanedCore.cs +++ b/Items/SummonItems/ProfanedCore.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.Providence; +using CalamityMod.NPCs.Providence; using CalamityMod.World; using Terraria; using Terraria.ID; @@ -22,7 +22,7 @@ namespace CalamityMod.Items.SummonItems item.maxStack = 20; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; item.rare = 10; item.Calamity().customRarity = CalamityRarity.Turquoise; diff --git a/Items/SummonItems/ProfanedCoreUnlimited.cs b/Items/SummonItems/ProfanedCoreUnlimited.cs index 9e0593ff33..61ffe27608 100644 --- a/Items/SummonItems/ProfanedCoreUnlimited.cs +++ b/Items/SummonItems/ProfanedCoreUnlimited.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.Providence; using CalamityMod.World; using Terraria; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.SummonItems item.height = 20; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = false; item.rare = 10; item.Calamity().customRarity = CalamityRarity.Turquoise; diff --git a/Items/SummonItems/ProfanedShard.cs b/Items/SummonItems/ProfanedShard.cs index 2d097d7d4a..8cda5125b7 100644 --- a/Items/SummonItems/ProfanedShard.cs +++ b/Items/SummonItems/ProfanedShard.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.ProfanedGuardians; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.SummonItems item.maxStack = 20; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; item.Calamity().customRarity = CalamityRarity.Turquoise; } diff --git a/Items/SummonItems/RuneofCos.cs b/Items/SummonItems/RuneofCos.cs index 821e4478b5..640947eb0c 100644 --- a/Items/SummonItems/RuneofCos.cs +++ b/Items/SummonItems/RuneofCos.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.CeaselessVoid; using CalamityMod.NPCs.Signus; using CalamityMod.NPCs.StormWeaver; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.SummonItems item.height = 20; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.rare = 9; item.UseSound = SoundID.Item44; item.consumable = false; diff --git a/Items/SummonItems/SandstormsCore.cs b/Items/SummonItems/SandstormsCore.cs index 4d78a34bd0..82c6222426 100644 --- a/Items/SummonItems/SandstormsCore.cs +++ b/Items/SummonItems/SandstormsCore.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.GreatSandShark; +using CalamityMod.NPCs.GreatSandShark; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 7; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/Seafood.cs b/Items/SummonItems/Seafood.cs index 0f34ed0dd5..85fe14322d 100644 --- a/Items/SummonItems/Seafood.cs +++ b/Items/SummonItems/Seafood.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Placeables; using CalamityMod.NPCs.AquaticScourge; using Terraria; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 5; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SummonItems/Starcore.cs b/Items/SummonItems/Starcore.cs index 426f2b1657..26efa81016 100644 --- a/Items/SummonItems/Starcore.cs +++ b/Items/SummonItems/Starcore.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Potions; using CalamityMod.NPCs.AstrumDeus; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 9; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = false; } diff --git a/Items/SummonItems/Teratoma.cs b/Items/SummonItems/Teratoma.cs index fbc42a9dda..4b4c8aeba5 100644 --- a/Items/SummonItems/Teratoma.cs +++ b/Items/SummonItems/Teratoma.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs.HiveMind; using Terraria; using Terraria.ID; @@ -22,7 +22,7 @@ namespace CalamityMod.Items.SummonItems item.rare = 3; item.useAnimation = 45; item.useTime = 45; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.consumable = true; } diff --git a/Items/SuperDummy.cs b/Items/SuperDummy.cs index cbe2a2cda2..b8b41984d0 100644 --- a/Items/SuperDummy.cs +++ b/Items/SuperDummy.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items item.height = 30; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.value = 0; item.rare = 1; diff --git a/Items/Tools/AbyssalWarhammer.cs b/Items/Tools/AbyssalWarhammer.cs index d4c1aeaa15..8906c58260 100644 --- a/Items/Tools/AbyssalWarhammer.cs +++ b/Items/Tools/AbyssalWarhammer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 38; item.useTurn = true; item.hammer = 110; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 8f; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; diff --git a/Items/Tools/AerialHamaxe.cs b/Items/Tools/AerialHamaxe.cs index bea7a7c633..2c599525b9 100644 --- a/Items/Tools/AerialHamaxe.cs +++ b/Items/Tools/AerialHamaxe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools item.useTurn = true; item.axe = 25; item.hammer = 65; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7f; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; diff --git a/Items/Tools/AstralHamaxe.cs b/Items/Tools/AstralHamaxe.cs index 6a5220743f..c6c9956f40 100644 --- a/Items/Tools/AstralHamaxe.cs +++ b/Items/Tools/AstralHamaxe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Placeables; using Microsoft.Xna.Framework; @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Tools item.useTurn = true; item.axe = 30; item.hammer = 150; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5f; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; diff --git a/Items/Tools/AstralPickaxe.cs b/Items/Tools/AstralPickaxe.cs index 28ccf6de9f..8769f8337b 100644 --- a/Items/Tools/AstralPickaxe.cs +++ b/Items/Tools/AstralPickaxe.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 10; item.useTurn = true; item.pick = 220; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5f; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; diff --git a/Items/Tools/BeastialPickaxe.cs b/Items/Tools/BeastialPickaxe.cs index e9a72e87e4..875654a311 100644 --- a/Items/Tools/BeastialPickaxe.cs +++ b/Items/Tools/BeastialPickaxe.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools item.useTurn = true; item.pick = 200; item.tileBoost += 1; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 4.5f; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; diff --git a/Items/Tools/BerserkerWaraxe.cs b/Items/Tools/BerserkerWaraxe.cs index 7f3fa6aab9..8fe6435948 100644 --- a/Items/Tools/BerserkerWaraxe.cs +++ b/Items/Tools/BerserkerWaraxe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 27; item.useTurn = true; item.axe = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 8; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; diff --git a/Items/Tools/BlossomPickaxe.cs b/Items/Tools/BlossomPickaxe.cs index 3443ad53ee..2a86a40a82 100644 --- a/Items/Tools/BlossomPickaxe.cs +++ b/Items/Tools/BlossomPickaxe.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 10; item.useTurn = true; item.pick = 275; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6.5f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; diff --git a/Items/Tools/ChaoswarpedSlashaxe.cs b/Items/Tools/ChaoswarpedSlashaxe.cs index cafc172595..6bef3eb8f6 100644 --- a/Items/Tools/ChaoswarpedSlashaxe.cs +++ b/Items/Tools/ChaoswarpedSlashaxe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 31; item.useTurn = true; item.axe = 40; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; diff --git a/Items/Tools/ClimateChange/AridArtifact.cs b/Items/Tools/ClimateChange/AridArtifact.cs index 1e43393ae7..5cefe0e1af 100644 --- a/Items/Tools/ClimateChange/AridArtifact.cs +++ b/Items/Tools/ClimateChange/AridArtifact.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Tools.ClimateChange item.rare = 5; item.useAnimation = 20; item.useTime = 20; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item66; item.consumable = true; } diff --git a/Items/Tools/ClimateChange/BloodIdol.cs b/Items/Tools/ClimateChange/BloodIdol.cs index b191d29a34..b5b4c84743 100644 --- a/Items/Tools/ClimateChange/BloodIdol.cs +++ b/Items/Tools/ClimateChange/BloodIdol.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Tools.ClimateChange item.rare = 5; item.useAnimation = 20; item.useTime = 20; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item66; item.consumable = true; } diff --git a/Items/Tools/ClimateChange/Cosmolight.cs b/Items/Tools/ClimateChange/Cosmolight.cs index 42c7fca390..c372575163 100644 --- a/Items/Tools/ClimateChange/Cosmolight.cs +++ b/Items/Tools/ClimateChange/Cosmolight.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs; +using CalamityMod.NPCs; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Tools.ClimateChange item.rare = 5; item.useAnimation = 20; item.useTime = 20; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item60; item.consumable = false; } diff --git a/Items/Tools/ClimateChange/Daylight.cs b/Items/Tools/ClimateChange/Daylight.cs index b963b8a384..1d4e405fde 100644 --- a/Items/Tools/ClimateChange/Daylight.cs +++ b/Items/Tools/ClimateChange/Daylight.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs; +using CalamityMod.NPCs; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Tools.ClimateChange item.rare = 5; item.useAnimation = 20; item.useTime = 20; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item60; item.consumable = false; } diff --git a/Items/Tools/ClimateChange/Moonlight.cs b/Items/Tools/ClimateChange/Moonlight.cs index 55d4216c0a..7ed05c712c 100644 --- a/Items/Tools/ClimateChange/Moonlight.cs +++ b/Items/Tools/ClimateChange/Moonlight.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.NPCs; using Terraria; using Terraria.ID; @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Tools.ClimateChange item.rare = 5; item.useAnimation = 20; item.useTime = 20; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item60; item.consumable = false; } diff --git a/Items/Tools/ClimateChange/TorrentialTear.cs b/Items/Tools/ClimateChange/TorrentialTear.cs index 3f664889a9..c0ff3c1f21 100644 --- a/Items/Tools/ClimateChange/TorrentialTear.cs +++ b/Items/Tools/ClimateChange/TorrentialTear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Events; +using CalamityMod.Events; using CalamityMod.World; using Terraria; using Terraria.ID; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Tools.ClimateChange item.rare = 5; item.useAnimation = 20; item.useTime = 20; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item66; item.consumable = false; } diff --git a/Items/Tools/CrystylCrusher.cs b/Items/Tools/CrystylCrusher.cs index 061966f0cd..44febeec27 100644 --- a/Items/Tools/CrystylCrusher.cs +++ b/Items/Tools/CrystylCrusher.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Tools item.height = 70; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 9f; item.shootSpeed = 14f; item.value = Item.buyPrice(5, 0, 0, 0); @@ -60,11 +60,11 @@ namespace CalamityMod.Items.Tools if (player.altFunctionUse == 2) { item.pick = PickPower; - item.shoot = 0; + item.shoot = ProjectileID.None; item.shootSpeed = 0f; item.tileBoost += 50; item.UseSound = SoundID.Item1; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 2; item.useAnimation = 10; item.useTurn = true; @@ -79,7 +79,7 @@ namespace CalamityMod.Items.Tools item.shootSpeed = LaserSpeed; item.tileBoost = 0; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/CrystylCharge"); - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 20; item.useAnimation = 20; item.useTurn = false; diff --git a/Items/Tools/FellerofEvergreens.cs b/Items/Tools/FellerofEvergreens.cs index decfb2160c..06dc0f3161 100644 --- a/Items/Tools/FellerofEvergreens.cs +++ b/Items/Tools/FellerofEvergreens.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 25; item.useTurn = true; item.axe = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; diff --git a/Items/Tools/FlamebeakHampick.cs b/Items/Tools/FlamebeakHampick.cs index cfe91e3a42..379173b172 100644 --- a/Items/Tools/FlamebeakHampick.cs +++ b/Items/Tools/FlamebeakHampick.cs @@ -29,7 +29,7 @@ Right click to use as a hammer"); item.useTurn = true; item.pick = PickPower; item.hammer = HammerPower; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 3.5f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; diff --git a/Items/Tools/GallantPickaxe.cs b/Items/Tools/GallantPickaxe.cs index eb9de146b3..ed67c98c64 100644 --- a/Items/Tools/GallantPickaxe.cs +++ b/Items/Tools/GallantPickaxe.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 12; item.useTurn = true; item.pick = 225; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5.5f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; diff --git a/Items/Tools/Gelpick.cs b/Items/Tools/Gelpick.cs index e4f193d785..c5770c628a 100644 --- a/Items/Tools/Gelpick.cs +++ b/Items/Tools/Gelpick.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Tools item.useTime = 16; item.useAnimation = 20; item.pick = 100; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 12, 0, 0); item.rare = 4; diff --git a/Items/Tools/Grax.cs b/Items/Tools/Grax.cs index 454f99c50d..1bfe946de1 100644 --- a/Items/Tools/Grax.cs +++ b/Items/Tools/Grax.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Tools item.damage = 500; item.melee = true; item.useAnimation = 16; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 4; item.useTurn = true; item.axe = 50; diff --git a/Items/Tools/GreatbayPickaxe.cs b/Items/Tools/GreatbayPickaxe.cs index 46c85b4142..afcb7dcbc8 100644 --- a/Items/Tools/GreatbayPickaxe.cs +++ b/Items/Tools/GreatbayPickaxe.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 16; item.useTurn = true; item.pick = 60; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 2f; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; diff --git a/Items/Tools/InfernaCutter.cs b/Items/Tools/InfernaCutter.cs index 742b593fcb..f908af4673 100644 --- a/Items/Tools/InfernaCutter.cs +++ b/Items/Tools/InfernaCutter.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 12; item.useTurn = true; item.axe = 27; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7f; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; diff --git a/Items/Tools/MarniteObliterator.cs b/Items/Tools/MarniteObliterator.cs index e4947f0e73..380cee11fc 100644 --- a/Items/Tools/MarniteObliterator.cs +++ b/Items/Tools/MarniteObliterator.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Tools item.pick = 57; item.axe = 10; item.tileBoost++; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 3; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; diff --git a/Items/Tools/PurityAxe.cs b/Items/Tools/PurityAxe.cs index 54a8d82c3e..c5b156e2cd 100644 --- a/Items/Tools/PurityAxe.cs +++ b/Items/Tools/PurityAxe.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 19; item.useTurn = true; item.axe = AxePower; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5f; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; @@ -59,7 +59,7 @@ namespace CalamityMod.Items.Tools else { item.axe = AxePower; - item.shoot = 0; + item.shoot = ProjectileID.None; item.shootSpeed = 0f; } return base.CanUseItem(player); diff --git a/Items/Tools/ReefclawHamaxe.cs b/Items/Tools/ReefclawHamaxe.cs index 3b9b35487e..3dbe02600d 100644 --- a/Items/Tools/ReefclawHamaxe.cs +++ b/Items/Tools/ReefclawHamaxe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools item.useTurn = true; item.axe = 13; item.hammer = 50; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6f; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; diff --git a/Items/Tools/ShardlightPickaxe.cs b/Items/Tools/ShardlightPickaxe.cs index cbbf0502a1..4849d6b46d 100644 --- a/Items/Tools/ShardlightPickaxe.cs +++ b/Items/Tools/ShardlightPickaxe.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 15; item.useTurn = true; item.pick = 190; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 4f; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; diff --git a/Items/Tools/SkyfringePickaxe.cs b/Items/Tools/SkyfringePickaxe.cs index c25fdeaf57..87d42dbf7e 100644 --- a/Items/Tools/SkyfringePickaxe.cs +++ b/Items/Tools/SkyfringePickaxe.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 16; item.useTurn = true; item.pick = 95; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; diff --git a/Items/Tools/WulfrumAxe.cs b/Items/Tools/WulfrumAxe.cs index 435f431a43..457e96fb4f 100644 --- a/Items/Tools/WulfrumAxe.cs +++ b/Items/Tools/WulfrumAxe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 26; item.useTurn = true; item.axe = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 4.5f; item.value = Item.buyPrice(0, 1, 0, 0); item.rare = 1; diff --git a/Items/Tools/WulfrumHammer.cs b/Items/Tools/WulfrumHammer.cs index d7dd1364ed..c4643b22ca 100644 --- a/Items/Tools/WulfrumHammer.cs +++ b/Items/Tools/WulfrumHammer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 29; item.useTurn = true; item.hammer = 35; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5.5f; item.value = Item.buyPrice(0, 1, 0, 0); item.rare = 1; diff --git a/Items/Tools/WulfrumPickaxe.cs b/Items/Tools/WulfrumPickaxe.cs index 083c548e2e..7c5faf290a 100644 --- a/Items/Tools/WulfrumPickaxe.cs +++ b/Items/Tools/WulfrumPickaxe.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 16; item.useTurn = true; item.pick = 35; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 2f; item.value = Item.buyPrice(0, 1, 0, 0); item.rare = 1; diff --git a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs index c5ac8b9fe2..d6d911a91a 100644 --- a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs +++ b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.autoReuse = false; item.channel = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/GatlingLaserFireStart"); item.noMelee = true; diff --git a/Items/Weapons/DraedonsArsenal/LaserRifle.cs b/Items/Weapons/DraedonsArsenal/LaserRifle.cs index 38bbd2e6b6..85850d92db 100644 --- a/Items/Weapons/DraedonsArsenal/LaserRifle.cs +++ b/Items/Weapons/DraedonsArsenal/LaserRifle.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.useAnimation = 25; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LaserRifleFire"); item.noMelee = true; diff --git a/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs b/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs index e3d9745c97..ba26d956f9 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.useAnimation = 45; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaCasterFire"); item.noMelee = true; diff --git a/Items/Weapons/DraedonsArsenal/PulseRifle.cs b/Items/Weapons/DraedonsArsenal/PulseRifle.cs index afd41b0476..e9551f42aa 100644 --- a/Items/Weapons/DraedonsArsenal/PulseRifle.cs +++ b/Items/Weapons/DraedonsArsenal/PulseRifle.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.useAnimation = 35; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PulseRifleFire"); item.noMelee = true; diff --git a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs index 91aec7d77a..2b326a4cae 100644 --- a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs +++ b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.useAnimation = 90; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/TeslaCannonFire"); item.noMelee = true; diff --git a/Items/Weapons/Magic/AbyssShocker.cs b/Items/Weapons/Magic/AbyssShocker.cs index 0d192ab7ec..e038fa78b3 100644 --- a/Items/Weapons/Magic/AbyssShocker.cs +++ b/Items/Weapons/Magic/AbyssShocker.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useTime = 19; item.useAnimation = 19; item.UseSound = SoundID.Item13; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.mana = 10; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; diff --git a/Items/Weapons/Magic/AbyssalTome.cs b/Items/Weapons/Magic/AbyssalTome.cs index 85a6593382..69d7613d45 100644 --- a/Items/Weapons/Magic/AbyssalTome.cs +++ b/Items/Weapons/Magic/AbyssalTome.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6; item.value = Item.buyPrice(0, 12, 0, 0); diff --git a/Items/Weapons/Magic/AlphaRay.cs b/Items/Weapons/Magic/AlphaRay.cs index 2d0190fcad..ff2716da9e 100644 --- a/Items/Weapons/Magic/AlphaRay.cs +++ b/Items/Weapons/Magic/AlphaRay.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 74; item.useTime = 3; item.useAnimation = 3; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.value = Item.buyPrice(2, 50, 0, 0); diff --git a/Items/Weapons/Magic/ApoctosisArray.cs b/Items/Weapons/Magic/ApoctosisArray.cs index 734002411f..74cd462352 100644 --- a/Items/Weapons/Magic/ApoctosisArray.cs +++ b/Items/Weapons/Magic/ApoctosisArray.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.mana = 12; item.useAnimation = 7; item.useTime = 7; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 6.75f; item.UseSound = SoundID.Item91; item.autoReuse = true; diff --git a/Items/Weapons/Magic/Apotheosis.cs b/Items/Weapons/Magic/Apotheosis.cs index a678ec175f..f6c1572b06 100644 --- a/Items/Weapons/Magic/Apotheosis.cs +++ b/Items/Weapons/Magic/Apotheosis.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 34; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTurn = false; item.noMelee = true; item.knockBack = 6.9f; diff --git a/Items/Weapons/Magic/AquamarineStaff.cs b/Items/Weapons/Magic/AquamarineStaff.cs index ffcd12cb7b..9d97e02474 100644 --- a/Items/Weapons/Magic/AquamarineStaff.cs +++ b/Items/Weapons/Magic/AquamarineStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 38; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Magic/ArchAmaryllis.cs b/Items/Weapons/Magic/ArchAmaryllis.cs index 79d0c8499f..81fc9e2cf6 100644 --- a/Items/Weapons/Magic/ArchAmaryllis.cs +++ b/Items/Weapons/Magic/ArchAmaryllis.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 68; item.useTime = 23; item.useAnimation = 23; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Magic/ArcticBearPaw.cs b/Items/Weapons/Magic/ArcticBearPaw.cs index ac38bec8ec..241ffa9457 100644 --- a/Items/Weapons/Magic/ArcticBearPaw.cs +++ b/Items/Weapons/Magic/ArcticBearPaw.cs @@ -22,7 +22,7 @@ Fires spiritual claws that ignore walls and confuse enemies"); item.height = 22; item.useTime = 28; item.useAnimation = 28; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTurn = false; item.noMelee = true; item.knockBack = 10f; diff --git a/Items/Weapons/Magic/AsteroidStaff.cs b/Items/Weapons/Magic/AsteroidStaff.cs index 0e4360f634..4a2883c6f1 100644 --- a/Items/Weapons/Magic/AsteroidStaff.cs +++ b/Items/Weapons/Magic/AsteroidStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 50; item.useTime = 10; item.useAnimation = 10; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6.75f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Magic/AstralStaff.cs b/Items/Weapons/Magic/AstralStaff.cs index 6545dae501..edc1c104b0 100644 --- a/Items/Weapons/Magic/AstralStaff.cs +++ b/Items/Weapons/Magic/AstralStaff.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 72; item.useTime = 18; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Magic/AstralachneaStaff.cs b/Items/Weapons/Magic/AstralachneaStaff.cs index a73ee76376..06e1de8eb6 100644 --- a/Items/Weapons/Magic/AstralachneaStaff.cs +++ b/Items/Weapons/Magic/AstralachneaStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 52; item.useTime = 21; item.useAnimation = 21; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Magic/Atlantis.cs b/Items/Weapons/Magic/Atlantis.cs index b497187c7a..fe0e1692a7 100644 --- a/Items/Weapons/Magic/Atlantis.cs +++ b/Items/Weapons/Magic/Atlantis.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Magic/AuguroftheElements.cs b/Items/Weapons/Magic/AuguroftheElements.cs index 84d647227d..51a1db3ee7 100644 --- a/Items/Weapons/Magic/AuguroftheElements.cs +++ b/Items/Weapons/Magic/AuguroftheElements.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useTime = 2; item.reuseDelay = 5; item.useAnimation = 10; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Magic/BelchingSaxophone.cs b/Items/Weapons/Magic/BelchingSaxophone.cs index 787e0e7f77..3477ef02db 100644 --- a/Items/Weapons/Magic/BelchingSaxophone.cs +++ b/Items/Weapons/Magic/BelchingSaxophone.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 22; item.useTime = 12; item.useAnimation = 24; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/BittercoldStaff.cs b/Items/Weapons/Magic/BittercoldStaff.cs index 7d3737829f..19346096b0 100644 --- a/Items/Weapons/Magic/BittercoldStaff.cs +++ b/Items/Weapons/Magic/BittercoldStaff.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 52; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/BlackAnurian.cs b/Items/Weapons/Magic/BlackAnurian.cs index 12b3a3b0a8..e3fb247d6b 100644 --- a/Items/Weapons/Magic/BlackAnurian.cs +++ b/Items/Weapons/Magic/BlackAnurian.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 38; item.useTime = 14; item.useAnimation = 14; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.75f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Magic/BloodBath.cs b/Items/Weapons/Magic/BloodBath.cs index 6e1e474d76..b332e3186a 100644 --- a/Items/Weapons/Magic/BloodBath.cs +++ b/Items/Weapons/Magic/BloodBath.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 50; item.useTime = 15; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.75f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Magic/BlushieStaff.cs b/Items/Weapons/Magic/BlushieStaff.cs index 1c2b386333..ce01ef316d 100644 --- a/Items/Weapons/Magic/BlushieStaff.cs +++ b/Items/Weapons/Magic/BlushieStaff.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic { item.width = 38; item.height = 38; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.useAnimation = 30; item.useTime = 30; item.channel = true; diff --git a/Items/Weapons/Magic/BrimroseStaff.cs b/Items/Weapons/Magic/BrimroseStaff.cs index b1a73679a3..0cca124237 100644 --- a/Items/Weapons/Magic/BrimroseStaff.cs +++ b/Items/Weapons/Magic/BrimroseStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 34; item.useTime = 30; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/BurningSea.cs b/Items/Weapons/Magic/BurningSea.cs index baeb9e75de..388f3cf209 100644 --- a/Items/Weapons/Magic/BurningSea.cs +++ b/Items/Weapons/Magic/BurningSea.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6.5f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/CalamitasInferno.cs b/Items/Weapons/Magic/CalamitasInferno.cs index 3a185591b2..d0646bf721 100644 --- a/Items/Weapons/Magic/CalamitasInferno.cs +++ b/Items/Weapons/Magic/CalamitasInferno.cs @@ -1,6 +1,8 @@ using CalamityMod.Projectiles.Magic; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Weapons.Magic { public class CalamitasInferno : ModItem @@ -20,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Magic/CarnageRay.cs b/Items/Weapons/Magic/CarnageRay.cs index ad326cce6e..65e8197023 100644 --- a/Items/Weapons/Magic/CarnageRay.cs +++ b/Items/Weapons/Magic/CarnageRay.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 46; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.25f; item.value = Item.buyPrice(0, 12, 0, 0); diff --git a/Items/Weapons/Magic/ClamorNoctus.cs b/Items/Weapons/Magic/ClamorNoctus.cs index 97761b3104..765734ec7c 100644 --- a/Items/Weapons/Magic/ClamorNoctus.cs +++ b/Items/Weapons/Magic/ClamorNoctus.cs @@ -28,7 +28,7 @@ Fires night wyverns and stars from the sky that stick to enemies and tiles and e item.height = 74; item.useTime = 21; item.useAnimation = 21; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.2f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Magic/Climax.cs b/Items/Weapons/Magic/Climax.cs index 832336811c..50b9d297db 100644 --- a/Items/Weapons/Magic/Climax.cs +++ b/Items/Weapons/Magic/Climax.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 78; item.useTime = 33; item.useAnimation = 33; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(2, 50, 0, 0); diff --git a/Items/Weapons/Magic/ClothiersWrath.cs b/Items/Weapons/Magic/ClothiersWrath.cs index 41f19227e9..b34f78eb91 100644 --- a/Items/Weapons/Magic/ClothiersWrath.cs +++ b/Items/Weapons/Magic/ClothiersWrath.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Magic/CoralSpout.cs b/Items/Weapons/Magic/CoralSpout.cs index 725265e76c..dfb49f3f8e 100644 --- a/Items/Weapons/Magic/CoralSpout.cs +++ b/Items/Weapons/Magic/CoralSpout.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 26; item.useAnimation = 26; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Magic/CosmicRainbow.cs b/Items/Weapons/Magic/CosmicRainbow.cs index c29abcc638..5889350917 100644 --- a/Items/Weapons/Magic/CosmicRainbow.cs +++ b/Items/Weapons/Magic/CosmicRainbow.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 64; item.useTime = 35; item.useAnimation = 35; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 0f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Magic/Cryophobia.cs b/Items/Weapons/Magic/Cryophobia.cs index 20b7971099..05d624d73b 100644 --- a/Items/Weapons/Magic/Cryophobia.cs +++ b/Items/Weapons/Magic/Cryophobia.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 34; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Magic/CrystalFlareStaff.cs b/Items/Weapons/Magic/CrystalFlareStaff.cs index 443bde8a77..4e8c4f7daa 100644 --- a/Items/Weapons/Magic/CrystalFlareStaff.cs +++ b/Items/Weapons/Magic/CrystalFlareStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 46; item.useTime = 10; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.25f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Magic/DarkSpark.cs b/Items/Weapons/Magic/DarkSpark.cs index 12d3301906..46ef2d7c66 100644 --- a/Items/Weapons/Magic/DarkSpark.cs +++ b/Items/Weapons/Magic/DarkSpark.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useTime = 10; item.useAnimation = 10; item.reuseDelay = 5; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.UseSound = SoundID.Item13; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Magic/DeathValley.cs b/Items/Weapons/Magic/DeathValley.cs index dc7521f1e3..102be956ef 100644 --- a/Items/Weapons/Magic/DeathValley.cs +++ b/Items/Weapons/Magic/DeathValley.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 32; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/DeathhailStaff.cs b/Items/Weapons/Magic/DeathhailStaff.cs index 6ba9203013..f65ded93fc 100644 --- a/Items/Weapons/Magic/DeathhailStaff.cs +++ b/Items/Weapons/Magic/DeathhailStaff.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 84; item.useTime = 6; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Magic/DemonicPitchfork.cs b/Items/Weapons/Magic/DemonicPitchfork.cs index a77ae33eff..6fd6aa0348 100644 --- a/Items/Weapons/Magic/DemonicPitchfork.cs +++ b/Items/Weapons/Magic/DemonicPitchfork.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 56; item.useTime = 24; item.useAnimation = 24; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/DivineRetribution.cs b/Items/Weapons/Magic/DivineRetribution.cs index 8d72d86381..843c5dd217 100644 --- a/Items/Weapons/Magic/DivineRetribution.cs +++ b/Items/Weapons/Magic/DivineRetribution.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 88; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Magic/Downpour.cs b/Items/Weapons/Magic/Downpour.cs index 4451a7543b..03f3de9ebc 100644 --- a/Items/Weapons/Magic/Downpour.cs +++ b/Items/Weapons/Magic/Downpour.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 42; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/Effervescence.cs b/Items/Weapons/Magic/Effervescence.cs index 632d5a9574..cb97f27dda 100644 --- a/Items/Weapons/Magic/Effervescence.cs +++ b/Items/Weapons/Magic/Effervescence.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 26; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.75f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Magic/EidolicWail.cs b/Items/Weapons/Magic/EidolicWail.cs index 1f0b09584b..5e8e12c6f3 100644 --- a/Items/Weapons/Magic/EidolicWail.cs +++ b/Items/Weapons/Magic/EidolicWail.cs @@ -2,6 +2,8 @@ using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Weapons.Magic { public class EidolicWail : ModItem @@ -23,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useTime = 12; item.reuseDelay = 30; item.useAnimation = 36; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Magic/EldritchTome.cs b/Items/Weapons/Magic/EldritchTome.cs index c15a6fba63..00755343da 100644 --- a/Items/Weapons/Magic/EldritchTome.cs +++ b/Items/Weapons/Magic/EldritchTome.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 7; item.useAnimation = 21; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(0, 12, 0, 0); diff --git a/Items/Weapons/Magic/ElementalRay.cs b/Items/Weapons/Magic/ElementalRay.cs index e367e8cbd1..8bc5a8a053 100644 --- a/Items/Weapons/Magic/ElementalRay.cs +++ b/Items/Weapons/Magic/ElementalRay.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 62; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Magic/EventHorizon.cs b/Items/Weapons/Magic/EventHorizon.cs index 3886602ec2..6341c7d5c4 100644 --- a/Items/Weapons/Magic/EventHorizon.cs +++ b/Items/Weapons/Magic/EventHorizon.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useTime = 28; item.useAnimation = 28; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.autoReuse = true; item.rare = 10; diff --git a/Items/Weapons/Magic/EvergladeSpray.cs b/Items/Weapons/Magic/EvergladeSpray.cs index 988b5e3a00..36108ee45c 100644 --- a/Items/Weapons/Magic/EvergladeSpray.cs +++ b/Items/Weapons/Magic/EvergladeSpray.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 6; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4.5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Magic/EyeofMagnus.cs b/Items/Weapons/Magic/EyeofMagnus.cs index e568c0825b..5d67161a96 100644 --- a/Items/Weapons/Magic/EyeofMagnus.cs +++ b/Items/Weapons/Magic/EyeofMagnus.cs @@ -2,6 +2,8 @@ using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Weapons.Magic { public class EyeofMagnus : ModItem @@ -20,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.rare = 5; item.useAnimation = 20; item.useTime = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 2f; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LaserCannon"); item.magic = true; diff --git a/Items/Weapons/Magic/Fabstaff.cs b/Items/Weapons/Magic/Fabstaff.cs index 2db840dafe..1542e17e2d 100644 --- a/Items/Weapons/Magic/Fabstaff.cs +++ b/Items/Weapons/Magic/Fabstaff.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 84; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(5, 0, 0, 0); diff --git a/Items/Weapons/Magic/FaceMelter.cs b/Items/Weapons/Magic/FaceMelter.cs index 60a21429fc..1a68bc48c9 100644 --- a/Items/Weapons/Magic/FaceMelter.cs +++ b/Items/Weapons/Magic/FaceMelter.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 50; item.useTime = 5; item.useAnimation = 10; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.rare = 10; diff --git a/Items/Weapons/Magic/FatesReveal.cs b/Items/Weapons/Magic/FatesReveal.cs index 8bd4fc2b5a..33ae94d164 100644 --- a/Items/Weapons/Magic/FatesReveal.cs +++ b/Items/Weapons/Magic/FatesReveal.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 86; item.useTime = 16; item.useAnimation = 16; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Magic/FlareBolt.cs b/Items/Weapons/Magic/FlareBolt.cs index 515a9047ed..da9b0c74eb 100644 --- a/Items/Weapons/Magic/FlareBolt.cs +++ b/Items/Weapons/Magic/FlareBolt.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Magic/ForbiddenSun.cs b/Items/Weapons/Magic/ForbiddenSun.cs index b22a42f381..87007c1587 100644 --- a/Items/Weapons/Magic/ForbiddenSun.cs +++ b/Items/Weapons/Magic/ForbiddenSun.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 30; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Magic/FrigidflashBolt.cs b/Items/Weapons/Magic/FrigidflashBolt.cs index 1d5425b88e..04e0f7b5be 100644 --- a/Items/Weapons/Magic/FrigidflashBolt.cs +++ b/Items/Weapons/Magic/FrigidflashBolt.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/FrostBolt.cs b/Items/Weapons/Magic/FrostBolt.cs index d42e2eeb90..76abfeb0b9 100644 --- a/Items/Weapons/Magic/FrostBolt.cs +++ b/Items/Weapons/Magic/FrostBolt.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Magic/GammaFusillade.cs b/Items/Weapons/Magic/GammaFusillade.cs index fa37505ae9..a869bd3251 100644 --- a/Items/Weapons/Magic/GammaFusillade.cs +++ b/Items/Weapons/Magic/GammaFusillade.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 3; item.useAnimation = 3; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Magic/Genisis.cs b/Items/Weapons/Magic/Genisis.cs index 4e3358bc7b..c0f9fed517 100644 --- a/Items/Weapons/Magic/Genisis.cs +++ b/Items/Weapons/Magic/Genisis.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 28; item.useTime = 4; item.useAnimation = 4; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Magic/GhastlyVisage.cs b/Items/Weapons/Magic/GhastlyVisage.cs index 777ab102c0..dd575e3f31 100644 --- a/Items/Weapons/Magic/GhastlyVisage.cs +++ b/Items/Weapons/Magic/GhastlyVisage.cs @@ -3,6 +3,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Weapons.Magic { @@ -25,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 36; item.useTime = 27; item.useAnimation = 27; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Magic/GleamingMagnolia.cs b/Items/Weapons/Magic/GleamingMagnolia.cs index a56585b89e..4a0ba906a5 100644 --- a/Items/Weapons/Magic/GleamingMagnolia.cs +++ b/Items/Weapons/Magic/GleamingMagnolia.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 54; item.useTime = 27; item.useAnimation = 27; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/HadopelagicEcho.cs b/Items/Weapons/Magic/HadopelagicEcho.cs index 94c1c2e386..7c918f6776 100644 --- a/Items/Weapons/Magic/HadopelagicEcho.cs +++ b/Items/Weapons/Magic/HadopelagicEcho.cs @@ -4,6 +4,8 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Weapons.Magic { public class HadopelagicEcho : ModItem @@ -29,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useTime = 8; item.reuseDelay = 20; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.value = Item.buyPrice(2, 50, 0, 0); diff --git a/Items/Weapons/Magic/HarvestStaff.cs b/Items/Weapons/Magic/HarvestStaff.cs index 6559c36fae..a5c315414e 100644 --- a/Items/Weapons/Magic/HarvestStaff.cs +++ b/Items/Weapons/Magic/HarvestStaff.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 23; item.useAnimation = 23; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Magic/HeliumFlash.cs b/Items/Weapons/Magic/HeliumFlash.cs index f543cb77ae..93d52b70f6 100644 --- a/Items/Weapons/Magic/HeliumFlash.cs +++ b/Items/Weapons/Magic/HeliumFlash.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic item.autoReuse = true; item.noMelee = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item73; item.rare = 10; diff --git a/Items/Weapons/Magic/HellBurst.cs b/Items/Weapons/Magic/HellBurst.cs index c361083f8e..41f54b411d 100644 --- a/Items/Weapons/Magic/HellBurst.cs +++ b/Items/Weapons/Magic/HellBurst.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 52; item.useTime = 31; item.useAnimation = 31; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 7f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/HellwingStaff.cs b/Items/Weapons/Magic/HellwingStaff.cs index f5d528970d..c114202dfb 100644 --- a/Items/Weapons/Magic/HellwingStaff.cs +++ b/Items/Weapons/Magic/HellwingStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 52; item.useTime = 33; item.useAnimation = 33; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Magic/Hematemesis.cs b/Items/Weapons/Magic/Hematemesis.cs index d9bebc5370..2750cfd9d1 100644 --- a/Items/Weapons/Magic/Hematemesis.cs +++ b/Items/Weapons/Magic/Hematemesis.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 54; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.75f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Magic/HyphaeRod.cs b/Items/Weapons/Magic/HyphaeRod.cs index 317a2ae5cd..45500e343c 100644 --- a/Items/Weapons/Magic/HyphaeRod.cs +++ b/Items/Weapons/Magic/HyphaeRod.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 34; item.useTime = 24; item.useAnimation = 24; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Magic/IceBarrage.cs b/Items/Weapons/Magic/IceBarrage.cs index cf2aae3f70..0931211c2a 100644 --- a/Items/Weapons/Magic/IceBarrage.cs +++ b/Items/Weapons/Magic/IceBarrage.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Ammo; +using CalamityMod.Items.Ammo; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Tiles.Furniture.CraftingStations; diff --git a/Items/Weapons/Magic/IcicleStaff.cs b/Items/Weapons/Magic/IcicleStaff.cs index 2f37571e0d..dd038b4c7d 100644 --- a/Items/Weapons/Magic/IcicleStaff.cs +++ b/Items/Weapons/Magic/IcicleStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 44; item.useTime = 15; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 1, 0, 0); diff --git a/Items/Weapons/Magic/IcicleTrident.cs b/Items/Weapons/Magic/IcicleTrident.cs index 927517853a..78255e0839 100644 --- a/Items/Weapons/Magic/IcicleTrident.cs +++ b/Items/Weapons/Magic/IcicleTrident.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 64; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTurn = false; item.noMelee = true; item.knockBack = 7f; diff --git a/Items/Weapons/Magic/InfernalRift.cs b/Items/Weapons/Magic/InfernalRift.cs index 448966fc4d..52135140d4 100644 --- a/Items/Weapons/Magic/InfernalRift.cs +++ b/Items/Weapons/Magic/InfernalRift.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useTime = 4; item.reuseDelay = item.useAnimation + 6; item.crit = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/IonBlaster.cs b/Items/Weapons/Magic/IonBlaster.cs index 82eaf50a6d..fad71a3dc0 100644 --- a/Items/Weapons/Magic/IonBlaster.cs +++ b/Items/Weapons/Magic/IonBlaster.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.mana = 6; item.useAnimation = 10; item.useTime = 10; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 5.5f; item.UseSound = SoundID.Item91; item.autoReuse = true; diff --git a/Items/Weapons/Magic/Keelhaul.cs b/Items/Weapons/Magic/Keelhaul.cs index 144ba99e79..5485b3308d 100644 --- a/Items/Weapons/Magic/Keelhaul.cs +++ b/Items/Weapons/Magic/Keelhaul.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useTime = 30; item.useAnimation = 30; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 2f; item.UseSound = SoundID.Item102; item.autoReuse = true; diff --git a/Items/Weapons/Magic/Lazhar.cs b/Items/Weapons/Magic/Lazhar.cs index 9e9eff4ef5..4ed61c734a 100644 --- a/Items/Weapons/Magic/Lazhar.cs +++ b/Items/Weapons/Magic/Lazhar.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 20; item.useTime = 7; item.useAnimation = 7; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Magic/LightGodsBrilliance.cs b/Items/Weapons/Magic/LightGodsBrilliance.cs index c844846ad9..2ec949bfc4 100644 --- a/Items/Weapons/Magic/LightGodsBrilliance.cs +++ b/Items/Weapons/Magic/LightGodsBrilliance.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 36; item.useTime = 3; item.useAnimation = 3; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(1, 80, 0, 0); diff --git a/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs b/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs index 167eefcb28..3eea56cf0f 100644 --- a/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs +++ b/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 36; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(1, 80, 0, 0); diff --git a/Items/Weapons/Magic/MagnaCannon.cs b/Items/Weapons/Magic/MagnaCannon.cs index eb0402a653..2f5a987604 100644 --- a/Items/Weapons/Magic/MagnaCannon.cs +++ b/Items/Weapons/Magic/MagnaCannon.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 34; item.useTime = 32; item.useAnimation = 32; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Magic/MagneticMeltdown.cs b/Items/Weapons/Magic/MagneticMeltdown.cs index 77556128fd..8cebeba233 100644 --- a/Items/Weapons/Magic/MagneticMeltdown.cs +++ b/Items/Weapons/Magic/MagneticMeltdown.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 78; item.useTime = 27; item.useAnimation = 27; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(1, 80, 0, 0); diff --git a/Items/Weapons/Magic/ManaRose.cs b/Items/Weapons/Magic/ManaRose.cs index b598d88cda..5f645699d6 100644 --- a/Items/Weapons/Magic/ManaRose.cs +++ b/Items/Weapons/Magic/ManaRose.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 38; item.useTime = 27; item.useAnimation = 27; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.25f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Magic/Mistlestorm.cs b/Items/Weapons/Magic/Mistlestorm.cs index 3871950373..bd39f7269f 100644 --- a/Items/Weapons/Magic/Mistlestorm.cs +++ b/Items/Weapons/Magic/Mistlestorm.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 48; item.useTime = 6; item.useAnimation = 6; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Magic/NightsRay.cs b/Items/Weapons/Magic/NightsRay.cs index 6c840fb496..7b4d0d00de 100644 --- a/Items/Weapons/Magic/NightsRay.cs +++ b/Items/Weapons/Magic/NightsRay.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 50; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.25f; item.value = Item.buyPrice(0, 12, 0, 0); diff --git a/Items/Weapons/Magic/NuclearFury.cs b/Items/Weapons/Magic/NuclearFury.cs index 399e34adff..9a42be9721 100644 --- a/Items/Weapons/Magic/NuclearFury.cs +++ b/Items/Weapons/Magic/NuclearFury.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Magic/PhantasmalFury.cs b/Items/Weapons/Magic/PhantasmalFury.cs index 2210557969..5cd1e41a10 100644 --- a/Items/Weapons/Magic/PhantasmalFury.cs +++ b/Items/Weapons/Magic/PhantasmalFury.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 60; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Magic/PhoenixFlameBarrage.cs b/Items/Weapons/Magic/PhoenixFlameBarrage.cs index dffa051d42..74ffcbb075 100644 --- a/Items/Weapons/Magic/PhoenixFlameBarrage.cs +++ b/Items/Weapons/Magic/PhoenixFlameBarrage.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 70; item.useTime = 15; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(1, 80, 0, 0); diff --git a/Items/Weapons/Magic/PlagueStaff.cs b/Items/Weapons/Magic/PlagueStaff.cs index 8b90cd7c5e..5059626301 100644 --- a/Items/Weapons/Magic/PlagueStaff.cs +++ b/Items/Weapons/Magic/PlagueStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 46; item.useTime = 21; item.useAnimation = 21; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 8f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Magic/PlasmaRifle.cs b/Items/Weapons/Magic/PlasmaRifle.cs index 640c62a2c0..29142fe633 100644 --- a/Items/Weapons/Magic/PlasmaRifle.cs +++ b/Items/Weapons/Magic/PlasmaRifle.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 22; item.useTime = 40; item.useAnimation = 40; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Magic/PlasmaRod.cs b/Items/Weapons/Magic/PlasmaRod.cs index dc55c85321..59ed119a27 100644 --- a/Items/Weapons/Magic/PlasmaRod.cs +++ b/Items/Weapons/Magic/PlasmaRod.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 40; item.useTime = 36; item.useAnimation = 36; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 1, 0, 0); diff --git a/Items/Weapons/Magic/Poseidon.cs b/Items/Weapons/Magic/Poseidon.cs index beab2e94f4..24642c3bad 100644 --- a/Items/Weapons/Magic/Poseidon.cs +++ b/Items/Weapons/Magic/Poseidon.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 32; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/PrimordialAncient.cs b/Items/Weapons/Magic/PrimordialAncient.cs index 8addb9e132..052a74c31d 100644 --- a/Items/Weapons/Magic/PrimordialAncient.cs +++ b/Items/Weapons/Magic/PrimordialAncient.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 48; item.useTime = 18; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5; item.value = Item.buyPrice(1, 80, 0, 0); diff --git a/Items/Weapons/Magic/PrimordialEarth.cs b/Items/Weapons/Magic/PrimordialEarth.cs index 97dfe1b26a..303278d42a 100644 --- a/Items/Weapons/Magic/PrimordialEarth.cs +++ b/Items/Weapons/Magic/PrimordialEarth.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 32; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Magic/Purge.cs b/Items/Weapons/Magic/Purge.cs index 5c9108e9ca..1aca1916f0 100644 --- a/Items/Weapons/Magic/Purge.cs +++ b/Items/Weapons/Magic/Purge.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 12; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.noUseGraphic = true; item.channel = true; diff --git a/Items/Weapons/Magic/PurgeGuzzler.cs b/Items/Weapons/Magic/PurgeGuzzler.cs index 2770ccd882..8b231d57b1 100644 --- a/Items/Weapons/Magic/PurgeGuzzler.cs +++ b/Items/Weapons/Magic/PurgeGuzzler.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { @@ -21,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 44; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4.5f; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LaserCannon"); diff --git a/Items/Weapons/Magic/RecitationoftheBeast.cs b/Items/Weapons/Magic/RecitationoftheBeast.cs index fb150cfe9d..b6c4a3b792 100644 --- a/Items/Weapons/Magic/RecitationoftheBeast.cs +++ b/Items/Weapons/Magic/RecitationoftheBeast.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic item.crit += 20; item.noMelee = true; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 18; item.knockBack = 8.5f; item.UseSound = SoundID.Item8; diff --git a/Items/Weapons/Magic/RelicofRuin.cs b/Items/Weapons/Magic/RelicofRuin.cs index a6f315c111..c107657fd3 100644 --- a/Items/Weapons/Magic/RelicofRuin.cs +++ b/Items/Weapons/Magic/RelicofRuin.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 35; item.useAnimation = 35; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4.25f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/RougeSlash.cs b/Items/Weapons/Magic/RougeSlash.cs index 4dafbc4b84..0159ae94c4 100644 --- a/Items/Weapons/Magic/RougeSlash.cs +++ b/Items/Weapons/Magic/RougeSlash.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 32; item.useTime = 19; item.useAnimation = 19; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.UseSound = SoundID.Item91; diff --git a/Items/Weapons/Magic/SHPC.cs b/Items/Weapons/Magic/SHPC.cs index 4bfd67fdb4..8a3b91912c 100644 --- a/Items/Weapons/Magic/SHPC.cs +++ b/Items/Weapons/Magic/SHPC.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 34; item.useTime = 50; item.useAnimation = 50; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.25f; item.rare = 5; diff --git a/Items/Weapons/Magic/SanguineFlare.cs b/Items/Weapons/Magic/SanguineFlare.cs index 5a6b9b34a6..3bee34a1cd 100644 --- a/Items/Weapons/Magic/SanguineFlare.cs +++ b/Items/Weapons/Magic/SanguineFlare.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 60; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 8f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Magic/SeethingDischarge.cs b/Items/Weapons/Magic/SeethingDischarge.cs index c0488f1753..c9acd0befb 100644 --- a/Items/Weapons/Magic/SeethingDischarge.cs +++ b/Items/Weapons/Magic/SeethingDischarge.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { @@ -21,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 32; item.useTime = 24; item.useAnimation = 24; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6.75f; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/FlareSound"); diff --git a/Items/Weapons/Magic/Serpentine.cs b/Items/Weapons/Magic/Serpentine.cs index 8d1cc473a0..c9f481b19d 100644 --- a/Items/Weapons/Magic/Serpentine.cs +++ b/Items/Weapons/Magic/Serpentine.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 32; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/ShadecrystalTome.cs b/Items/Weapons/Magic/ShadecrystalTome.cs index 52e676c48b..25a3624454 100644 --- a/Items/Weapons/Magic/ShadecrystalTome.cs +++ b/Items/Weapons/Magic/ShadecrystalTome.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 6; item.useAnimation = 6; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/ShaderainStaff.cs b/Items/Weapons/Magic/ShaderainStaff.cs index 6629f15a5e..df4e88c5c5 100644 --- a/Items/Weapons/Magic/ShaderainStaff.cs +++ b/Items/Weapons/Magic/ShaderainStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 42; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 0f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Magic/ShadowboltStaff.cs b/Items/Weapons/Magic/ShadowboltStaff.cs index f962f3079e..a62dad29a0 100644 --- a/Items/Weapons/Magic/ShadowboltStaff.cs +++ b/Items/Weapons/Magic/ShadowboltStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 56; item.useTime = 14; item.useAnimation = 14; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 8f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Magic/ShadowdropStaff.cs b/Items/Weapons/Magic/ShadowdropStaff.cs index 0683f16b44..296c86aa69 100644 --- a/Items/Weapons/Magic/ShadowdropStaff.cs +++ b/Items/Weapons/Magic/ShadowdropStaff.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 44; item.useTime = 9; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.25f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Magic/ShiftingSands.cs b/Items/Weapons/Magic/ShiftingSands.cs index 6882e3429a..7e69a5dbaa 100644 --- a/Items/Weapons/Magic/ShiftingSands.cs +++ b/Items/Weapons/Magic/ShiftingSands.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 58; item.useTime = 30; item.useAnimation = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Magic/SirensSong.cs b/Items/Weapons/Magic/SirensSong.cs index 91772c9742..4a0ecac307 100644 --- a/Items/Weapons/Magic/SirensSong.cs +++ b/Items/Weapons/Magic/SirensSong.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 50; item.useTime = 18; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6.5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Magic/SkyGlaze.cs b/Items/Weapons/Magic/SkyGlaze.cs index 768831d436..941e02af33 100644 --- a/Items/Weapons/Magic/SkyGlaze.cs +++ b/Items/Weapons/Magic/SkyGlaze.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 74; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(0, 1, 0, 0); diff --git a/Items/Weapons/Magic/SnowstormStaff.cs b/Items/Weapons/Magic/SnowstormStaff.cs index 795414ddeb..2bf94b296b 100644 --- a/Items/Weapons/Magic/SnowstormStaff.cs +++ b/Items/Weapons/Magic/SnowstormStaff.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 66; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 5; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/SoulPiercer.cs b/Items/Weapons/Magic/SoulPiercer.cs index 4846f7549d..c284569b20 100644 --- a/Items/Weapons/Magic/SoulPiercer.cs +++ b/Items/Weapons/Magic/SoulPiercer.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 64; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 8f; item.value = Item.buyPrice(1, 80, 0, 0); diff --git a/Items/Weapons/Magic/StardustStaff.cs b/Items/Weapons/Magic/StardustStaff.cs index fff419d968..77264c15f6 100644 --- a/Items/Weapons/Magic/StardustStaff.cs +++ b/Items/Weapons/Magic/StardustStaff.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 56; item.useTime = 18; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Magic/Starfall.cs b/Items/Weapons/Magic/Starfall.cs index 58c95ea694..58846ac042 100644 --- a/Items/Weapons/Magic/Starfall.cs +++ b/Items/Weapons/Magic/Starfall.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 14; item.useAnimation = 14; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.25f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Magic/StormSpray.cs b/Items/Weapons/Magic/StormSpray.cs index 1d39ed22ff..53db58ca5d 100644 --- a/Items/Weapons/Magic/StormSpray.cs +++ b/Items/Weapons/Magic/StormSpray.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 42; item.useTime = 23; item.useAnimation = 23; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Magic/StratusSphere.cs b/Items/Weapons/Magic/StratusSphere.cs index d572461059..a66bcaed87 100644 --- a/Items/Weapons/Magic/StratusSphere.cs +++ b/Items/Weapons/Magic/StratusSphere.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useAnimation = 45; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 7f; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.mana = 30; item.knockBack = 2; item.UseSound = SoundID.Item20; diff --git a/Items/Weapons/Magic/T1000.cs b/Items/Weapons/Magic/T1000.cs index b76bc6e8d1..9c0fbfef8a 100644 --- a/Items/Weapons/Magic/T1000.cs +++ b/Items/Weapons/Magic/T1000.cs @@ -3,6 +3,7 @@ using CalamityMod.Projectiles.Magic; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic @@ -24,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 12; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.noUseGraphic = true; item.channel = true; diff --git a/Items/Weapons/Magic/TearsofHeaven.cs b/Items/Weapons/Magic/TearsofHeaven.cs index f919aca926..b30c6c2aaf 100644 --- a/Items/Weapons/Magic/TearsofHeaven.cs +++ b/Items/Weapons/Magic/TearsofHeaven.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Magic/TerraRay.cs b/Items/Weapons/Magic/TerraRay.cs index b61f0556ac..578f2652bb 100644 --- a/Items/Weapons/Magic/TerraRay.cs +++ b/Items/Weapons/Magic/TerraRay.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 54; item.useTime = 24; item.useAnimation = 24; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Magic/TheSwarmer.cs b/Items/Weapons/Magic/TheSwarmer.cs index 76ac5e1a49..8618c2cbdc 100644 --- a/Items/Weapons/Magic/TheSwarmer.cs +++ b/Items/Weapons/Magic/TheSwarmer.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 52; item.useTime = 8; item.useAnimation = 8; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; diff --git a/Items/Weapons/Magic/TheWand.cs b/Items/Weapons/Magic/TheWand.cs index 11f6805c22..c5d2d616a3 100644 --- a/Items/Weapons/Magic/TheWand.cs +++ b/Items/Weapons/Magic/TheWand.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useAnimation = 250; item.useTime = 250; item.useTurn = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 0.5f; item.UseSound = SoundID.Item102; item.autoReuse = true; diff --git a/Items/Weapons/Magic/ThornBlossom.cs b/Items/Weapons/Magic/ThornBlossom.cs index d3e2b2aaea..78ee67d598 100644 --- a/Items/Weapons/Magic/ThornBlossom.cs +++ b/Items/Weapons/Magic/ThornBlossom.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 68; item.useTime = 23; item.useAnimation = 23; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Magic/Thunderstorm.cs b/Items/Weapons/Magic/Thunderstorm.cs index a08cdb4226..ded4b0bba3 100644 --- a/Items/Weapons/Magic/Thunderstorm.cs +++ b/Items/Weapons/Magic/Thunderstorm.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { @@ -21,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 22; item.useTime = 24; item.useAnimation = 24; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Magic/TomeofFates.cs b/Items/Weapons/Magic/TomeofFates.cs index e852aa6602..a1147d2298 100644 --- a/Items/Weapons/Magic/TomeofFates.cs +++ b/Items/Weapons/Magic/TomeofFates.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 5; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Magic/Tradewinds.cs b/Items/Weapons/Magic/Tradewinds.cs index 13d4e68cc6..ddcffce055 100644 --- a/Items/Weapons/Magic/Tradewinds.cs +++ b/Items/Weapons/Magic/Tradewinds.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Magic/UltraLiquidator.cs b/Items/Weapons/Magic/UltraLiquidator.cs index 9d18479c0f..6d4b09db7b 100644 --- a/Items/Weapons/Magic/UltraLiquidator.cs +++ b/Items/Weapons/Magic/UltraLiquidator.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useTime = 3; item.reuseDelay = item.useAnimation; item.crit = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Magic/UndinesRetribution.cs b/Items/Weapons/Magic/UndinesRetribution.cs index bc85307e05..1b07fcdcb9 100644 --- a/Items/Weapons/Magic/UndinesRetribution.cs +++ b/Items/Weapons/Magic/UndinesRetribution.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 64; item.useTime = 18; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Magic/ValkyrieRay.cs b/Items/Weapons/Magic/ValkyrieRay.cs index 095e5705b7..9f70cb4bb8 100644 --- a/Items/Weapons/Magic/ValkyrieRay.cs +++ b/Items/Weapons/Magic/ValkyrieRay.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using Terraria; @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic item.mana = 26; item.useTime = ChargeFrames + CooldownFrames; item.useAnimation = ChargeFrames + CooldownFrames; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.NPCDeath7; item.useTurn = false; item.noMelee = true; diff --git a/Items/Weapons/Magic/Vehemenc.cs b/Items/Weapons/Magic/Vehemenc.cs index 8738aebf5c..fd8dd02b46 100644 --- a/Items/Weapons/Magic/Vehemenc.cs +++ b/Items/Weapons/Magic/Vehemenc.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 44; item.useTime = 50; item.useAnimation = 50; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.75f; item.value = Item.buyPrice(1, 0, 0, 0); diff --git a/Items/Weapons/Magic/VenusianTrident.cs b/Items/Weapons/Magic/VenusianTrident.cs index bee24a26d4..af53338209 100644 --- a/Items/Weapons/Magic/VenusianTrident.cs +++ b/Items/Weapons/Magic/VenusianTrident.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 48; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 9f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Magic/Vesuvius.cs b/Items/Weapons/Magic/Vesuvius.cs index 2ec0fe3b9f..8f22d466d8 100644 --- a/Items/Weapons/Magic/Vesuvius.cs +++ b/Items/Weapons/Magic/Vesuvius.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useAnimation = 20; item.useTime = 20; item.noMelee = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 3f; item.UseSound = SoundID.Item88; item.autoReuse = true; diff --git a/Items/Weapons/Magic/Viscera.cs b/Items/Weapons/Magic/Viscera.cs index 4dd87bf603..2fe4d94d4f 100644 --- a/Items/Weapons/Magic/Viscera.cs +++ b/Items/Weapons/Magic/Viscera.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 52; item.useTime = 14; item.useAnimation = 14; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Magic/VividClarity.cs b/Items/Weapons/Magic/VividClarity.cs index bde4eeeaa7..add2d994d1 100644 --- a/Items/Weapons/Magic/VividClarity.cs +++ b/Items/Weapons/Magic/VividClarity.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useAnimation = 20; item.useTime = 4; item.reuseDelay = item.useAnimation; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.value = Item.buyPrice(2, 50, 0, 0); diff --git a/Items/Weapons/Magic/VoidVortex.cs b/Items/Weapons/Magic/VoidVortex.cs index 5a05f26ded..bdf4c64a67 100644 --- a/Items/Weapons/Magic/VoidVortex.cs +++ b/Items/Weapons/Magic/VoidVortex.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 130; item.useTime = 41; item.useAnimation = 41; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 0f; item.value = Item.buyPrice(2, 50, 0, 0); diff --git a/Items/Weapons/Magic/Waywasher.cs b/Items/Weapons/Magic/Waywasher.cs index 6ff0f3baab..f35c4a9e5b 100644 --- a/Items/Weapons/Magic/Waywasher.cs +++ b/Items/Weapons/Magic/Waywasher.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Magic/Wingman.cs b/Items/Weapons/Magic/Wingman.cs index 6edfcd2e38..20be7e8f2b 100644 --- a/Items/Weapons/Magic/Wingman.cs +++ b/Items/Weapons/Magic/Wingman.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 22; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Magic/WintersFury.cs b/Items/Weapons/Magic/WintersFury.cs index b69736bc4f..5803b47218 100644 --- a/Items/Weapons/Magic/WintersFury.cs +++ b/Items/Weapons/Magic/WintersFury.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTurn = false; item.noMelee = true; item.knockBack = 5f; diff --git a/Items/Weapons/Magic/WrathoftheAncients.cs b/Items/Weapons/Magic/WrathoftheAncients.cs index 84f05e6845..d7aa63ac3d 100644 --- a/Items/Weapons/Magic/WrathoftheAncients.cs +++ b/Items/Weapons/Magic/WrathoftheAncients.cs @@ -2,6 +2,7 @@ using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { @@ -22,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 30; item.useTime = 38; item.useAnimation = 38; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Magic/WulfrumStaff.cs b/Items/Weapons/Magic/WulfrumStaff.cs index 27bf657e3f..9341c3853b 100644 --- a/Items/Weapons/Magic/WulfrumStaff.cs +++ b/Items/Weapons/Magic/WulfrumStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 46; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3; item.value = Item.buyPrice(0, 1, 0, 0); diff --git a/Items/Weapons/Magic/WyvernsCall.cs b/Items/Weapons/Magic/WyvernsCall.cs index 1c7c5fbf54..06048e3dbe 100644 --- a/Items/Weapons/Magic/WyvernsCall.cs +++ b/Items/Weapons/Magic/WyvernsCall.cs @@ -26,7 +26,7 @@ Fires wyverns and colored feathers from the sky that stick to enemies and tiles item.height = 74; item.useTime = 23; item.useAnimation = 23; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4.75f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Magic/YharimsCrystal.cs b/Items/Weapons/Magic/YharimsCrystal.cs index 21872e981e..5021b79b7d 100644 --- a/Items/Weapons/Magic/YharimsCrystal.cs +++ b/Items/Weapons/Magic/YharimsCrystal.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useTime = 10; item.useAnimation = 10; item.reuseDelay = 5; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item13; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Magic/Zapper.cs b/Items/Weapons/Magic/Zapper.cs index 33808b6d71..25e1ddc0d3 100644 --- a/Items/Weapons/Magic/Zapper.cs +++ b/Items/Weapons/Magic/Zapper.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic item.height = 22; item.useTime = 7; item.useAnimation = 7; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 48, 0, 0); diff --git a/Items/Weapons/Melee/AbsoluteZero.cs b/Items/Weapons/Melee/AbsoluteZero.cs index a30e6f597f..c19b0be69a 100644 --- a/Items/Weapons/Melee/AbsoluteZero.cs +++ b/Items/Weapons/Melee/AbsoluteZero.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 58; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = false; item.knockBack = 4f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Melee/AbyssBlade.cs b/Items/Weapons/Melee/AbyssBlade.cs index 48ebd44440..81e597cecb 100644 --- a/Items/Weapons/Melee/AbyssBlade.cs +++ b/Items/Weapons/Melee/AbyssBlade.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 26; item.useTime = 26; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 8f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/AccretionDiskMelee.cs b/Items/Weapons/Melee/AccretionDiskMelee.cs index 2b4c772c7c..71f32bf6b9 100644 --- a/Items/Weapons/Melee/AccretionDiskMelee.cs +++ b/Items/Weapons/Melee/AccretionDiskMelee.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 9f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/AegisBlade.cs b/Items/Weapons/Melee/AegisBlade.cs index 0ad7576f0c..67d9db46ac 100644 --- a/Items/Weapons/Melee/AegisBlade.cs +++ b/Items/Weapons/Melee/AegisBlade.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 20; item.useTime = 20; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 4.25f; item.UseSound = SoundID.Item1; item.autoReuse = true; @@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 15; item.useAnimation = 15; item.UseSound = SoundID.Item1; - item.shoot = 0; + item.shoot = ProjectileID.None; } return base.CanUseItem(player); } diff --git a/Items/Weapons/Melee/Aftershock.cs b/Items/Weapons/Melee/Aftershock.cs index 367dd49c9a..5cbf307cdd 100644 --- a/Items/Weapons/Melee/Aftershock.cs +++ b/Items/Weapons/Melee/Aftershock.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 28; item.useAnimation = 28; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7.5f; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; diff --git a/Items/Weapons/Melee/AirSpinner.cs b/Items/Weapons/Melee/AirSpinner.cs index 4a05ae5486..c2bb163b95 100644 --- a/Items/Weapons/Melee/AirSpinner.cs +++ b/Items/Weapons/Melee/AirSpinner.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/AmidiasTrident.cs b/Items/Weapons/Melee/AmidiasTrident.cs index 8c6372ab45..a6c0e0b474 100644 --- a/Items/Weapons/Melee/AmidiasTrident.cs +++ b/Items/Weapons/Melee/AmidiasTrident.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 17; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 17; item.knockBack = 4.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/AnarchyBlade.cs b/Items/Weapons/Melee/AnarchyBlade.cs index 4cd6222c92..3e5cd7ccca 100644 --- a/Items/Weapons/Melee/AnarchyBlade.cs +++ b/Items/Weapons/Melee/AnarchyBlade.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 19; item.useTime = 19; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/AncientCrusher.cs b/Items/Weapons/Melee/AncientCrusher.cs index a93ddd3189..4aa33271fa 100644 --- a/Items/Weapons/Melee/AncientCrusher.cs +++ b/Items/Weapons/Melee/AncientCrusher.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 55; item.melee = true; item.useAnimation = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 30; item.useTurn = true; item.knockBack = 8f; diff --git a/Items/Weapons/Melee/AncientShiv.cs b/Items/Weapons/Melee/AncientShiv.cs index dad30b9ee6..db8df68ce8 100644 --- a/Items/Weapons/Melee/AncientShiv.cs +++ b/Items/Weapons/Melee/AncientShiv.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 12; item.useTime = 12; diff --git a/Items/Weapons/Melee/Animus.cs b/Items/Weapons/Melee/Animus.cs index 65fe9f4017..a9a09b298b 100644 --- a/Items/Weapons/Melee/Animus.cs +++ b/Items/Weapons/Melee/Animus.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 4000; item.melee = true; item.useAnimation = 11; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 11; item.useTurn = true; item.knockBack = 20f; diff --git a/Items/Weapons/Melee/Aorta.cs b/Items/Weapons/Melee/Aorta.cs index 83390a98b1..5144e55830 100644 --- a/Items/Weapons/Melee/Aorta.cs +++ b/Items/Weapons/Melee/Aorta.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/AquaticDischarge.cs b/Items/Weapons/Melee/AquaticDischarge.cs index f9f1ee8bee..39e0bc38f1 100644 --- a/Items/Weapons/Melee/AquaticDischarge.cs +++ b/Items/Weapons/Melee/AquaticDischarge.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 12; item.useTime = 12; diff --git a/Items/Weapons/Melee/AquaticDissolution.cs b/Items/Weapons/Melee/AquaticDissolution.cs index bf5b6b75bd..61bbe6e53e 100644 --- a/Items/Weapons/Melee/AquaticDissolution.cs +++ b/Items/Weapons/Melee/AquaticDissolution.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 16; item.useTime = 16; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6f; item.UseSound = SoundID.Item60; item.autoReuse = true; diff --git a/Items/Weapons/Melee/ArkoftheAncients.cs b/Items/Weapons/Melee/ArkoftheAncients.cs index 55a9ab0908..5b192c82d5 100644 --- a/Items/Weapons/Melee/ArkoftheAncients.cs +++ b/Items/Weapons/Melee/ArkoftheAncients.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.useTime = 22; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6.25f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/ArkoftheCosmos.cs b/Items/Weapons/Melee/ArkoftheCosmos.cs index d36fddba5a..a26fa91711 100644 --- a/Items/Weapons/Melee/ArkoftheCosmos.cs +++ b/Items/Weapons/Melee/ArkoftheCosmos.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 15; item.useTime = 15; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.crit += 15; item.knockBack = 9.5f; item.UseSound = SoundID.Item60; diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index e6e70fe1c6..7a868328b0 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 20; item.useTime = 20; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.crit += 10; item.knockBack = 8.5f; item.UseSound = SoundID.Item60; diff --git a/Items/Weapons/Melee/AstralBlade.cs b/Items/Weapons/Melee/AstralBlade.cs index efdd75c998..88b2b4cd31 100644 --- a/Items/Weapons/Melee/AstralBlade.cs +++ b/Items/Weapons/Melee/AstralBlade.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Placeables; using Microsoft.Xna.Framework; @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 9; item.useAnimation = 9; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5f; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; diff --git a/Items/Weapons/Melee/AstralPike.cs b/Items/Weapons/Melee/AstralPike.cs index e86c53a34b..c1af96dbe8 100644 --- a/Items/Weapons/Melee/AstralPike.cs +++ b/Items/Weapons/Melee/AstralPike.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 13; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 13; item.knockBack = 8.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/AstralScythe.cs b/Items/Weapons/Melee/AstralScythe.cs index 90852c6093..4fef76c126 100644 --- a/Items/Weapons/Melee/AstralScythe.cs +++ b/Items/Weapons/Melee/AstralScythe.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.melee = true; item.useTurn = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 6f; item.UseSound = SoundID.Item71; diff --git a/Items/Weapons/Melee/Ataraxia.cs b/Items/Weapons/Melee/Ataraxia.cs index b9fa8607a1..6f51d843d0 100644 --- a/Items/Weapons/Melee/Ataraxia.cs +++ b/Items/Weapons/Melee/Ataraxia.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee item.autoReuse = true; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.rare = 10; diff --git a/Items/Weapons/Melee/Avalanche.cs b/Items/Weapons/Melee/Avalanche.cs index 962d41f3f2..c5bfe28f4c 100644 --- a/Items/Weapons/Melee/Avalanche.cs +++ b/Items/Weapons/Melee/Avalanche.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 30; item.useTime = 30; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7.25f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/Azathoth.cs b/Items/Weapons/Melee/Azathoth.cs index 396e32b38c..3713313821 100644 --- a/Items/Weapons/Melee/Azathoth.cs +++ b/Items/Weapons/Melee/Azathoth.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 20; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/BalefulHarvester.cs b/Items/Weapons/Melee/BalefulHarvester.cs index 33ca237241..844d57d178 100644 --- a/Items/Weapons/Melee/BalefulHarvester.cs +++ b/Items/Weapons/Melee/BalefulHarvester.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 66; item.melee = true; item.useAnimation = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 22; item.useTurn = true; item.knockBack = 8f; diff --git a/Items/Weapons/Melee/BallOFugu.cs b/Items/Weapons/Melee/BallOFugu.cs index c8e28c327b..a3b34079b3 100644 --- a/Items/Weapons/Melee/BallOFugu.cs +++ b/Items/Weapons/Melee/BallOFugu.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 10; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.noUseGraphic = true; item.knockBack = 8f; diff --git a/Items/Weapons/Melee/BansheeHook.cs b/Items/Weapons/Melee/BansheeHook.cs index 13a98989bd..690070ad15 100644 --- a/Items/Weapons/Melee/BansheeHook.cs +++ b/Items/Weapons/Melee/BansheeHook.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.channel = true; item.melee = true; item.useAnimation = 21; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 21; item.knockBack = 8.5f; item.UseSound = SoundID.DD2_GhastlyGlaivePierce; diff --git a/Items/Weapons/Melee/BiomeBlade.cs b/Items/Weapons/Melee/BiomeBlade.cs index 9f8d84c2ef..16be34da7b 100644 --- a/Items/Weapons/Melee/BiomeBlade.cs +++ b/Items/Weapons/Melee/BiomeBlade.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 24; item.useTime = 24; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/BladecrestOathsword.cs b/Items/Weapons/Melee/BladecrestOathsword.cs index 189a175570..3e5f9c2aa0 100644 --- a/Items/Weapons/Melee/BladecrestOathsword.cs +++ b/Items/Weapons/Melee/BladecrestOathsword.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 25; item.melee = true; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 25; item.knockBack = 4f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/BladeofEnmity.cs b/Items/Weapons/Melee/BladeofEnmity.cs index c2babd48c0..c7ddba4fe2 100644 --- a/Items/Weapons/Melee/BladeofEnmity.cs +++ b/Items/Weapons/Melee/BladeofEnmity.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 158; item.melee = true; item.useAnimation = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 10; item.useTurn = true; item.knockBack = 8f; diff --git a/Items/Weapons/Melee/BloodyEdge.cs b/Items/Weapons/Melee/BloodyEdge.cs index 9337375fff..9585d9682a 100644 --- a/Items/Weapons/Melee/BloodyEdge.cs +++ b/Items/Weapons/Melee/BloodyEdge.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 52; item.melee = true; item.useAnimation = 23; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 23; item.knockBack = 5.25f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/BloodyRupture.cs b/Items/Weapons/Melee/BloodyRupture.cs index 5c6fed7379..af33b33ee1 100644 --- a/Items/Weapons/Melee/BloodyRupture.cs +++ b/Items/Weapons/Melee/BloodyRupture.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 15; item.useTime = 15; diff --git a/Items/Weapons/Melee/Bonebreaker.cs b/Items/Weapons/Melee/Bonebreaker.cs index aea4ceeb2f..05212f7a82 100644 --- a/Items/Weapons/Melee/Bonebreaker.cs +++ b/Items/Weapons/Melee/Bonebreaker.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useAnimation = 15; item.useTime = 15; item.width = 32; diff --git a/Items/Weapons/Melee/Brimlance.cs b/Items/Weapons/Melee/Brimlance.cs index 0eb0b15909..b3f400c4b6 100644 --- a/Items/Weapons/Melee/Brimlance.cs +++ b/Items/Weapons/Melee/Brimlance.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 19; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 19; item.knockBack = 7.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/Brimlash.cs b/Items/Weapons/Melee/Brimlash.cs index 3adb80c8fc..161eb295ad 100644 --- a/Items/Weapons/Melee/Brimlash.cs +++ b/Items/Weapons/Melee/Brimlash.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.useTime = 25; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/BrimlashBuster.cs b/Items/Weapons/Melee/BrimlashBuster.cs index f1ed473d10..f576976d36 100644 --- a/Items/Weapons/Melee/BrimlashBuster.cs +++ b/Items/Weapons/Melee/BrimlashBuster.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.useTime = 25; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 8; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/BrinyBaron.cs b/Items/Weapons/Melee/BrinyBaron.cs index 4cf4b19886..a273951ccf 100644 --- a/Items/Weapons/Melee/BrinyBaron.cs +++ b/Items/Weapons/Melee/BrinyBaron.cs @@ -25,13 +25,13 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 20; item.useTime = 20; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 4f; item.UseSound = SoundID.Item1; item.autoReuse = true; item.height = 62; item.value = Item.buyPrice(0, 80, 0, 0); - item.rare = 8; + item.rare = ItemRarityID.Yellow; item.shootSpeed = 4f; item.Calamity().customRarity = CalamityRarity.ItemSpecific; } @@ -59,7 +59,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 20; item.useAnimation = 20; item.UseSound = SoundID.Item1; - item.shoot = 0; + item.shoot = ProjectileID.None; } return base.CanUseItem(player); } diff --git a/Items/Weapons/Melee/BurntSienna.cs b/Items/Weapons/Melee/BurntSienna.cs index fcf21be439..bbf06f93b9 100644 --- a/Items/Weapons/Melee/BurntSienna.cs +++ b/Items/Weapons/Melee/BurntSienna.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 21; item.useTime = 21; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/Carnage.cs b/Items/Weapons/Melee/Carnage.cs index 0eeedbbc78..02c0136f32 100644 --- a/Items/Weapons/Melee/Carnage.cs +++ b/Items/Weapons/Melee/Carnage.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 55; item.melee = true; item.useAnimation = 21; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 21; item.knockBack = 5.25f; item.UseSound = SoundID.Item1; @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Melee { if (target.life <= 0) { - Main.PlaySound(2, (int)target.position.X, (int)target.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)target.position.X, (int)target.position.Y); target.position.X += (float)(target.width / 2); target.position.Y += (float)(target.height / 2); target.position.X -= (float)(target.width / 2); @@ -86,7 +86,7 @@ namespace CalamityMod.Items.Weapons.Melee { if (target.statLife <= 0) { - Main.PlaySound(2, (int)target.position.X, (int)target.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)target.position.X, (int)target.position.Y); target.position.X += (float)(target.width / 2); target.position.Y += (float)(target.height / 2); target.position.X -= (float)(target.width / 2); diff --git a/Items/Weapons/Melee/CatastropheClaymore.cs b/Items/Weapons/Melee/CatastropheClaymore.cs index 556abda6b2..ea9b87e8ff 100644 --- a/Items/Weapons/Melee/CatastropheClaymore.cs +++ b/Items/Weapons/Melee/CatastropheClaymore.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 23; item.useTime = 23; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6.25f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/CausticEdge.cs b/Items/Weapons/Melee/CausticEdge.cs index 58f796b9c5..b8975fef49 100644 --- a/Items/Weapons/Melee/CausticEdge.cs +++ b/Items/Weapons/Melee/CausticEdge.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.melee = true; item.useTurn = true; item.useAnimation = 27; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 27; item.knockBack = 5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/CelestialClaymore.cs b/Items/Weapons/Melee/CelestialClaymore.cs index 7cba73378e..775543a275 100644 --- a/Items/Weapons/Melee/CelestialClaymore.cs +++ b/Items/Weapons/Melee/CelestialClaymore.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 23; item.useTime = 23; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5.25f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/Chaotrix.cs b/Items/Weapons/Melee/Chaotrix.cs index 1a35401fe1..df07558233 100644 --- a/Items/Weapons/Melee/Chaotrix.cs +++ b/Items/Weapons/Melee/Chaotrix.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/ClamCrusher.cs b/Items/Weapons/Melee/ClamCrusher.cs index 08562b8c22..361197b733 100644 --- a/Items/Weapons/Melee/ClamCrusher.cs +++ b/Items/Weapons/Melee/ClamCrusher.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 60; item.useTime = 50; item.useAnimation = 50; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.noUseGraphic = true; item.knockBack = 10f; diff --git a/Items/Weapons/Melee/Cnidarian.cs b/Items/Weapons/Melee/Cnidarian.cs index 830a0a369b..1205d112ba 100644 --- a/Items/Weapons/Melee/Cnidarian.cs +++ b/Items/Weapons/Melee/Cnidarian.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/ColdheartIcicle.cs b/Items/Weapons/Melee/ColdheartIcicle.cs index e6433e35a0..b8edf40604 100644 --- a/Items/Weapons/Melee/ColdheartIcicle.cs +++ b/Items/Weapons/Melee/ColdheartIcicle.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 27; item.useAnimation = 27; item.autoReuse = true; - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.UseSound = SoundID.Item1; item.useTurn = true; item.knockBack = 3f; diff --git a/Items/Weapons/Melee/CometQuasher.cs b/Items/Weapons/Melee/CometQuasher.cs index 5174b979e2..902a6676c3 100644 --- a/Items/Weapons/Melee/CometQuasher.cs +++ b/Items/Weapons/Melee/CometQuasher.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 120; item.melee = true; item.useAnimation = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 22; item.useTurn = true; item.knockBack = 7.75f; diff --git a/Items/Weapons/Melee/CorpusAvertorMelee.cs b/Items/Weapons/Melee/CorpusAvertorMelee.cs index d50d006414..c73dbd5a7b 100644 --- a/Items/Weapons/Melee/CorpusAvertorMelee.cs +++ b/Items/Weapons/Melee/CorpusAvertorMelee.cs @@ -24,12 +24,12 @@ namespace CalamityMod.Items.Weapons.Melee item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 3f; item.UseSound = SoundID.Item1; item.autoReuse = true; - item.value = Item.buyPrice(0, 80, 0, 0); + item.value = Item.buyPrice(gold: 80); item.rare = 8; item.Calamity().customRarity = CalamityRarity.Dedicated; item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/CorruptedCrusherBlade.cs b/Items/Weapons/Melee/CorruptedCrusherBlade.cs index dd1d05b5fe..927b90c556 100644 --- a/Items/Weapons/Melee/CorruptedCrusherBlade.cs +++ b/Items/Weapons/Melee/CorruptedCrusherBlade.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 26; item.useAnimation = 26; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6.75f; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; diff --git a/Items/Weapons/Melee/CosmicDischarge.cs b/Items/Weapons/Melee/CosmicDischarge.cs index 781b5bec93..24f867a7e9 100644 --- a/Items/Weapons/Melee/CosmicDischarge.cs +++ b/Items/Weapons/Melee/CosmicDischarge.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee item.melee = true; item.useAnimation = 15; item.useTime = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 0.5f; item.UseSound = SoundID.Item122; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Melee/CosmicShiv.cs b/Items/Weapons/Melee/CosmicShiv.cs index 408059b77f..b13ae6dc5f 100644 --- a/Items/Weapons/Melee/CosmicShiv.cs +++ b/Items/Weapons/Melee/CosmicShiv.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 18; item.useTime = 18; diff --git a/Items/Weapons/Melee/CrescentMoon.cs b/Items/Weapons/Melee/CrescentMoon.cs index 20211d1cd5..c881acf21c 100644 --- a/Items/Weapons/Melee/CrescentMoon.cs +++ b/Items/Weapons/Melee/CrescentMoon.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee item.melee = true; item.useAnimation = 18; item.useTime = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 4f; item.UseSound = SoundID.Item82; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Melee/CrimsonCrusherBlade.cs b/Items/Weapons/Melee/CrimsonCrusherBlade.cs index dbe72daf9c..0508e4d547 100644 --- a/Items/Weapons/Melee/CrimsonCrusherBlade.cs +++ b/Items/Weapons/Melee/CrimsonCrusherBlade.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 28; item.useAnimation = 28; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7f; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; diff --git a/Items/Weapons/Melee/CrystalBlade.cs b/Items/Weapons/Melee/CrystalBlade.cs index 1445a4a406..1ab40aa0af 100644 --- a/Items/Weapons/Melee/CrystalBlade.cs +++ b/Items/Weapons/Melee/CrystalBlade.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 45; item.melee = true; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 25; item.useTurn = true; item.knockBack = 4.5f; diff --git a/Items/Weapons/Melee/DarklightGreatsword.cs b/Items/Weapons/Melee/DarklightGreatsword.cs index 9b49fab046..3f4cc4ff24 100644 --- a/Items/Weapons/Melee/DarklightGreatsword.cs +++ b/Items/Weapons/Melee/DarklightGreatsword.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 75; item.melee = true; item.useAnimation = 24; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 24; item.useTurn = true; item.knockBack = 5; diff --git a/Items/Weapons/Melee/DepthBlade.cs b/Items/Weapons/Melee/DepthBlade.cs index 0cd1dad426..956da57f64 100644 --- a/Items/Weapons/Melee/DepthBlade.cs +++ b/Items/Weapons/Melee/DepthBlade.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.useTime = 22; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5.25f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/Devastation.cs b/Items/Weapons/Melee/Devastation.cs index 7610867339..5839f9250e 100644 --- a/Items/Weapons/Melee/Devastation.cs +++ b/Items/Weapons/Melee/Devastation.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 24; item.useTime = 24; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 4.25f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/DevilsDevastation.cs b/Items/Weapons/Melee/DevilsDevastation.cs index fb554e397f..792337455b 100644 --- a/Items/Weapons/Melee/DevilsDevastation.cs +++ b/Items/Weapons/Melee/DevilsDevastation.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 20; item.useTime = 20; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6.75f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/DevilsSunrise.cs b/Items/Weapons/Melee/DevilsSunrise.cs index d47472a4fe..f7c515ef93 100644 --- a/Items/Weapons/Melee/DevilsSunrise.cs +++ b/Items/Weapons/Melee/DevilsSunrise.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.useTime = 5; item.autoReuse = false; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.rare = 10; item.Calamity().customRarity = CalamityRarity.Dedicated; diff --git a/Items/Weapons/Melee/DiseasedPike.cs b/Items/Weapons/Melee/DiseasedPike.cs index fbcf8cb69d..2bf14a10a8 100644 --- a/Items/Weapons/Melee/DiseasedPike.cs +++ b/Items/Weapons/Melee/DiseasedPike.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 20; item.knockBack = 8.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/DivineHatchet.cs b/Items/Weapons/Melee/DivineHatchet.cs index 6025795649..a0f6c55d17 100644 --- a/Items/Weapons/Melee/DivineHatchet.cs +++ b/Items/Weapons/Melee/DivineHatchet.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 17; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 17; item.knockBack = 8.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/DraconicDestruction.cs b/Items/Weapons/Melee/DraconicDestruction.cs index 1bb40c681d..81ed5fdcf8 100644 --- a/Items/Weapons/Melee/DraconicDestruction.cs +++ b/Items/Weapons/Melee/DraconicDestruction.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 350; item.melee = true; item.useAnimation = 24; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 24; item.useTurn = true; item.knockBack = 7.25f; diff --git a/Items/Weapons/Melee/DraedonsExoblade.cs b/Items/Weapons/Melee/DraedonsExoblade.cs index 444032cbb8..ccaa8a501b 100644 --- a/Items/Weapons/Melee/DraedonsExoblade.cs +++ b/Items/Weapons/Melee/DraedonsExoblade.cs @@ -24,28 +24,28 @@ namespace CalamityMod.Items.Weapons.Melee "The lower your HP the more damage this blade does and heals the player on enemy hits"); } - public override void SetDefaults() - { - item.width = 80; - item.damage = 5000; - item.useAnimation = 14; - item.useStyle = 1; - item.useTime = 14; - item.useTurn = true; - item.melee = true; - item.knockBack = 9f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 114; - item.value = Item.buyPrice(2, 50, 0, 0); - item.rare = 10; - item.shoot = ModContent.ProjectileType(); - item.shootSpeed = 19f; - item.Calamity().customRarity = CalamityRarity.Violet; - } + public override void SetDefaults() + { + item.width = 80; + item.damage = 5000; + item.useAnimation = 14; + item.useStyle = ItemUseStyleID.SwingThrow; + item.useTime = 14; + item.useTurn = true; + item.melee = true; + item.knockBack = 9f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 114; + item.value = Item.buyPrice(2, 50, 0, 0); + item.rare = 10; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 19f; + item.Calamity().customRarity = CalamityRarity.Violet; + } - // Gains 100% of missing health as base damage. - public override void ModifyWeaponDamage(Player player, ref float add, ref float mult, ref float flat) + // Gains 100% of missing health as base damage. + public override void ModifyWeaponDamage(Player player, ref float add, ref float mult, ref float flat) { int lifeAmount = player.statLifeMax2 - player.statLife; flat += lifeAmount * player.MeleeDamage(); @@ -74,7 +74,7 @@ namespace CalamityMod.Items.Weapons.Melee target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); target.AddBuff(BuffID.Ichor, 120); - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 88); + Main.PlaySound(SoundID.Item88, player.Center); float xPos = player.position.X + 800 * Main.rand.NextBool(2).ToDirectionInt(); float yPos = player.position.Y + Main.rand.Next(-800, 801); Vector2 startPos = new Vector2(xPos, yPos); @@ -116,7 +116,7 @@ namespace CalamityMod.Items.Weapons.Melee target.AddBuff(BuffID.Frostburn, 120); target.AddBuff(BuffID.OnFire, 120); target.AddBuff(BuffID.Ichor, 120); - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 88); + Main.PlaySound(SoundID.Item88, player.Center); float xPos = player.position.X + 800 * Main.rand.NextBool(2).ToDirectionInt(); float yPos = player.position.Y + Main.rand.Next(-800, 801); Vector2 startPos = new Vector2(xPos, yPos); diff --git a/Items/Weapons/Melee/DragonPow.cs b/Items/Weapons/Melee/DragonPow.cs index 540e59e277..502c711040 100644 --- a/Items/Weapons/Melee/DragonPow.cs +++ b/Items/Weapons/Melee/DragonPow.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; @@ -37,7 +37,7 @@ Summons a barrage of petals and waterfalls on enemy hits"); item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"); item.channel = true; diff --git a/Items/Weapons/Melee/DragonRage.cs b/Items/Weapons/Melee/DragonRage.cs index 185870139a..f0c4867db7 100644 --- a/Items/Weapons/Melee/DragonRage.cs +++ b/Items/Weapons/Melee/DragonRage.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.useTime = 25; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/Earth.cs b/Items/Weapons/Melee/Earth.cs index cac0c123a2..d523e08913 100644 --- a/Items/Weapons/Melee/Earth.cs +++ b/Items/Weapons/Melee/Earth.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 840; item.melee = true; item.useAnimation = 16; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 16; item.useTurn = true; item.knockBack = 9.5f; diff --git a/Items/Weapons/Melee/EarthenPike.cs b/Items/Weapons/Melee/EarthenPike.cs index fc81f15ceb..c805164c20 100644 --- a/Items/Weapons/Melee/EarthenPike.cs +++ b/Items/Weapons/Melee/EarthenPike.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 25; item.knockBack = 7f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/ElementalExcalibur.cs b/Items/Weapons/Melee/ElementalExcalibur.cs index ae217ee9be..3dffa266cc 100644 --- a/Items/Weapons/Melee/ElementalExcalibur.cs +++ b/Items/Weapons/Melee/ElementalExcalibur.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = BaseDamage; item.crit += 10; item.useAnimation = 14; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 14; item.useTurn = true; item.melee = true; @@ -69,7 +69,7 @@ namespace CalamityMod.Items.Weapons.Melee { if (player.altFunctionUse == 2) { - item.shoot = 0; + item.shoot = ProjectileID.None; item.shootSpeed = 0f; } else diff --git a/Items/Weapons/Melee/ElementalShortsword.cs b/Items/Weapons/Melee/ElementalShortsword.cs index bdaadec96f..98bc836fdb 100644 --- a/Items/Weapons/Melee/ElementalShortsword.cs +++ b/Items/Weapons/Melee/ElementalShortsword.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 10; item.useTime = 10; diff --git a/Items/Weapons/Melee/EmpyreanKnives.cs b/Items/Weapons/Melee/EmpyreanKnives.cs index 279009840b..d2b4690363 100644 --- a/Items/Weapons/Melee/EmpyreanKnives.cs +++ b/Items/Weapons/Melee/EmpyreanKnives.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 3f; item.UseSound = SoundID.Item39; diff --git a/Items/Weapons/Melee/EradicatorMelee.cs b/Items/Weapons/Melee/EradicatorMelee.cs index 7f827c609a..2a6563425c 100644 --- a/Items/Weapons/Melee/EradicatorMelee.cs +++ b/Items/Weapons/Melee/EradicatorMelee.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 19; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 19; item.knockBack = 7f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/EssenceFlayer.cs b/Items/Weapons/Melee/EssenceFlayer.cs index 8618e64136..03438002ab 100644 --- a/Items/Weapons/Melee/EssenceFlayer.cs +++ b/Items/Weapons/Melee/EssenceFlayer.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 450; item.melee = true; item.useAnimation = 19; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 19; item.useTurn = true; item.knockBack = 8f; diff --git a/Items/Weapons/Melee/EutrophicScimitar.cs b/Items/Weapons/Melee/EutrophicScimitar.cs index 907f8f29c2..6ee823c34f 100644 --- a/Items/Weapons/Melee/EutrophicScimitar.cs +++ b/Items/Weapons/Melee/EutrophicScimitar.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 78; item.useTime = 38; item.useAnimation = 38; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 2; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 17; diff --git a/Items/Weapons/Melee/EutrophicShank.cs b/Items/Weapons/Melee/EutrophicShank.cs index acb3e6bcd4..1bba054bde 100644 --- a/Items/Weapons/Melee/EutrophicShank.cs +++ b/Items/Weapons/Melee/EutrophicShank.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 14; item.useTime = 14; diff --git a/Items/Weapons/Melee/EvilSmasher.cs b/Items/Weapons/Melee/EvilSmasher.cs index a9a000ac7c..2617c8eca1 100644 --- a/Items/Weapons/Melee/EvilSmasher.cs +++ b/Items/Weapons/Melee/EvilSmasher.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 55; item.melee = true; item.useAnimation = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 30; item.useTurn = true; item.knockBack = 8f; diff --git a/Items/Weapons/Melee/ExcaliburShortsword.cs b/Items/Weapons/Melee/ExcaliburShortsword.cs index e99e7927fe..801a4024ad 100644 --- a/Items/Weapons/Melee/ExcaliburShortsword.cs +++ b/Items/Weapons/Melee/ExcaliburShortsword.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 10; item.useTime = 10; diff --git a/Items/Weapons/Melee/Excelsus.cs b/Items/Weapons/Melee/Excelsus.cs index 0e785ce60d..45191fba72 100644 --- a/Items/Weapons/Melee/Excelsus.cs +++ b/Items/Weapons/Melee/Excelsus.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 340; item.melee = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.useTurn = true; item.knockBack = 8f; diff --git a/Items/Weapons/Melee/ExoGladius.cs b/Items/Weapons/Melee/ExoGladius.cs index ae76d02137..543f56e7e1 100644 --- a/Items/Weapons/Melee/ExoGladius.cs +++ b/Items/Weapons/Melee/ExoGladius.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 12; item.useTime = 12; diff --git a/Items/Weapons/Melee/ExsanguinationLance.cs b/Items/Weapons/Melee/ExsanguinationLance.cs index 838bf0e9f9..e0bd75f771 100644 --- a/Items/Weapons/Melee/ExsanguinationLance.cs +++ b/Items/Weapons/Melee/ExsanguinationLance.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 22; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 22; item.knockBack = 6.75f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/FeralthornClaymore.cs b/Items/Weapons/Melee/FeralthornClaymore.cs index ec4ee53216..9d24a0b22f 100644 --- a/Items/Weapons/Melee/FeralthornClaymore.cs +++ b/Items/Weapons/Melee/FeralthornClaymore.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 63; item.melee = true; item.useAnimation = 13; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 13; item.useTurn = true; item.knockBack = 7.25f; diff --git a/Items/Weapons/Melee/FlameScytheMelee.cs b/Items/Weapons/Melee/FlameScytheMelee.cs index feca9aa52a..e5abf72199 100644 --- a/Items/Weapons/Melee/FlameScytheMelee.cs +++ b/Items/Weapons/Melee/FlameScytheMelee.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 19; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 19; item.knockBack = 8.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/FlameburstShortsword.cs b/Items/Weapons/Melee/FlameburstShortsword.cs index 1065f8462f..d22f20615d 100644 --- a/Items/Weapons/Melee/FlameburstShortsword.cs +++ b/Items/Weapons/Melee/FlameburstShortsword.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 15; item.useTime = 15; diff --git a/Items/Weapons/Melee/FlarefrostBlade.cs b/Items/Weapons/Melee/FlarefrostBlade.cs index 7493f962a6..f4060cc88d 100644 --- a/Items/Weapons/Melee/FlarefrostBlade.cs +++ b/Items/Weapons/Melee/FlarefrostBlade.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 24; item.useTime = 24; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6.25f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/Floodtide.cs b/Items/Weapons/Melee/Floodtide.cs index c62bf2d458..c7b129b64f 100644 --- a/Items/Weapons/Melee/Floodtide.cs +++ b/Items/Weapons/Melee/Floodtide.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 23; item.useAnimation = 23; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6f; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; diff --git a/Items/Weapons/Melee/ForbiddenOathblade.cs b/Items/Weapons/Melee/ForbiddenOathblade.cs index f3210826b3..0a0e834e27 100644 --- a/Items/Weapons/Melee/ForbiddenOathblade.cs +++ b/Items/Weapons/Melee/ForbiddenOathblade.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.useTime = 25; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/ForsakenSaber.cs b/Items/Weapons/Melee/ForsakenSaber.cs index de304b98f0..788a1d6090 100644 --- a/Items/Weapons/Melee/ForsakenSaber.cs +++ b/Items/Weapons/Melee/ForsakenSaber.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 65; item.melee = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.useTurn = true; item.knockBack = 6; diff --git a/Items/Weapons/Melee/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index 154957f3de..6ba6cbdd1b 100644 --- a/Items/Weapons/Melee/FourSeasonsGalaxia.cs +++ b/Items/Weapons/Melee/FourSeasonsGalaxia.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 17; item.useTime = 17; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 9; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/FulgurationHalberd.cs b/Items/Weapons/Melee/FulgurationHalberd.cs index 016a11e406..dec29f09b8 100644 --- a/Items/Weapons/Melee/FulgurationHalberd.cs +++ b/Items/Weapons/Melee/FulgurationHalberd.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 53; item.melee = true; item.useAnimation = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 22; item.useTurn = true; item.knockBack = 5f; @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Melee { item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.autoReuse = false; item.shoot = ModContent.ProjectileType(); } @@ -53,9 +53,9 @@ namespace CalamityMod.Items.Weapons.Melee { item.noMelee = false; item.noUseGraphic = false; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.autoReuse = true; - item.shoot = 0; + item.shoot = ProjectileID.None; } return base.CanUseItem(player); } diff --git a/Items/Weapons/Melee/GalacticaBlade.cs b/Items/Weapons/Melee/GalacticaBlade.cs index 0dea32d88c..cfc875183d 100644 --- a/Items/Weapons/Melee/GalacticaBlade.cs +++ b/Items/Weapons/Melee/GalacticaBlade.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 110; item.melee = true; item.useAnimation = 17; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 17; item.useTurn = true; item.knockBack = 6f; diff --git a/Items/Weapons/Melee/GalaxySmasherMelee.cs b/Items/Weapons/Melee/GalaxySmasherMelee.cs index 3c7b87bc71..1953455a5e 100644 --- a/Items/Weapons/Melee/GalaxySmasherMelee.cs +++ b/Items/Weapons/Melee/GalaxySmasherMelee.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.rare = 10; diff --git a/Items/Weapons/Melee/GalileoGladius.cs b/Items/Weapons/Melee/GalileoGladius.cs index d0238f7842..ac9aac6711 100644 --- a/Items/Weapons/Melee/GalileoGladius.cs +++ b/Items/Weapons/Melee/GalileoGladius.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 10; item.useTime = 10; diff --git a/Items/Weapons/Melee/GeliticBlade.cs b/Items/Weapons/Melee/GeliticBlade.cs index a0c38d5e50..0e6388920d 100644 --- a/Items/Weapons/Melee/GeliticBlade.cs +++ b/Items/Weapons/Melee/GeliticBlade.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 30; item.useTime = 30; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5.25f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/GildedProboscis.cs b/Items/Weapons/Melee/GildedProboscis.cs index 1f80a37c3c..4e275e09ff 100644 --- a/Items/Weapons/Melee/GildedProboscis.cs +++ b/Items/Weapons/Melee/GildedProboscis.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 19; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 19; item.knockBack = 8.75f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/GlacialCrusher.cs b/Items/Weapons/Melee/GlacialCrusher.cs index 99ca2a4169..d93d32f2a5 100644 --- a/Items/Weapons/Melee/GlacialCrusher.cs +++ b/Items/Weapons/Melee/GlacialCrusher.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 27; item.useTime = 27; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/GoldplumeSpear.cs b/Items/Weapons/Melee/GoldplumeSpear.cs index b60316f56c..9a521df477 100644 --- a/Items/Weapons/Melee/GoldplumeSpear.cs +++ b/Items/Weapons/Melee/GoldplumeSpear.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 23; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 23; item.knockBack = 5.75f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/GrandDad.cs b/Items/Weapons/Melee/GrandDad.cs index 3ea14221fb..de8dd329ad 100644 --- a/Items/Weapons/Melee/GrandDad.cs +++ b/Items/Weapons/Melee/GrandDad.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 777; item.melee = true; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 25; item.useTurn = true; item.knockBack = 77f; diff --git a/Items/Weapons/Melee/GrandGuardian.cs b/Items/Weapons/Melee/GrandGuardian.cs index d60c5e37b6..f2a640c604 100644 --- a/Items/Weapons/Melee/GrandGuardian.cs +++ b/Items/Weapons/Melee/GrandGuardian.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 150; item.melee = true; item.useAnimation = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 22; item.useTurn = true; item.knockBack = 8.5f; diff --git a/Items/Weapons/Melee/GreatswordofBlah.cs b/Items/Weapons/Melee/GreatswordofBlah.cs index 7723ba738b..0ec76c9d6f 100644 --- a/Items/Weapons/Melee/GreatswordofBlah.cs +++ b/Items/Weapons/Melee/GreatswordofBlah.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 300; item.melee = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.useTurn = true; item.knockBack = 7f; diff --git a/Items/Weapons/Melee/GreatswordofJudgement.cs b/Items/Weapons/Melee/GreatswordofJudgement.cs index 2fc24cb7d6..505cbe23f6 100644 --- a/Items/Weapons/Melee/GreatswordofJudgement.cs +++ b/Items/Weapons/Melee/GreatswordofJudgement.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 60; item.melee = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.useTurn = true; item.knockBack = 7f; diff --git a/Items/Weapons/Melee/Greentide.cs b/Items/Weapons/Melee/Greentide.cs index e461536704..a057b746a2 100644 --- a/Items/Weapons/Melee/Greentide.cs +++ b/Items/Weapons/Melee/Greentide.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 24; item.useAnimation = 24; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; diff --git a/Items/Weapons/Melee/HellfireFlamberge.cs b/Items/Weapons/Melee/HellfireFlamberge.cs index 1423a1a1a6..d394a1ad1c 100644 --- a/Items/Weapons/Melee/HellfireFlamberge.cs +++ b/Items/Weapons/Melee/HellfireFlamberge.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 90; item.melee = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.useTurn = true; item.knockBack = 7.75f; @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 20); + Main.PlaySound(SoundID.Item20, player.position); for (int index = 0; index < 3; ++index) { float SpeedX = speedX + (float)Main.rand.Next(-40, 41) * 0.05f; diff --git a/Items/Weapons/Melee/HellionFlowerSpear.cs b/Items/Weapons/Melee/HellionFlowerSpear.cs index c261d3e6e6..bafef201d8 100644 --- a/Items/Weapons/Melee/HellionFlowerSpear.cs +++ b/Items/Weapons/Melee/HellionFlowerSpear.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 20; item.knockBack = 7.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/Hellkite.cs b/Items/Weapons/Melee/Hellkite.cs index c93dfd9550..481d157a65 100644 --- a/Items/Weapons/Melee/Hellkite.cs +++ b/Items/Weapons/Melee/Hellkite.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 100; item.melee = true; item.useAnimation = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 22; item.useTurn = true; item.knockBack = 8f; diff --git a/Items/Weapons/Melee/HolidayHalberd.cs b/Items/Weapons/Melee/HolidayHalberd.cs index 18f62bf8d4..1657fe4757 100644 --- a/Items/Weapons/Melee/HolidayHalberd.cs +++ b/Items/Weapons/Melee/HolidayHalberd.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 98; item.melee = true; item.useAnimation = 17; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 17; item.useTurn = true; item.knockBack = 7.5f; diff --git a/Items/Weapons/Melee/HolyCollider.cs b/Items/Weapons/Melee/HolyCollider.cs index 39ec83b7dd..6c2242bb99 100644 --- a/Items/Weapons/Melee/HolyCollider.cs +++ b/Items/Weapons/Melee/HolyCollider.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 400; item.melee = true; item.useAnimation = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 22; item.useTurn = true; item.knockBack = 7.75f; @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 14); + Main.PlaySound(SoundID.Item14, player.position); for (int num621 = 0; num621 < 30; num621++) { int num622 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 244, 0f, 0f, 100, default, 2f); @@ -71,7 +71,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void OnHitPvp(Player player, Player target, int damage, bool crit) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 14); + Main.PlaySound(SoundID.Item14, player.position); for (int num621 = 0; num621 < 30; num621++) { int num622 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 244, 0f, 0f, 100, default, 2f); diff --git a/Items/Weapons/Melee/InsidiousImpaler.cs b/Items/Weapons/Melee/InsidiousImpaler.cs index 82ca44962d..a30493060e 100644 --- a/Items/Weapons/Melee/InsidiousImpaler.cs +++ b/Items/Weapons/Melee/InsidiousImpaler.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 20; item.knockBack = 8f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/KelvinCatalystMelee.cs b/Items/Weapons/Melee/KelvinCatalystMelee.cs index 4141e27668..cbc7739b66 100644 --- a/Items/Weapons/Melee/KelvinCatalystMelee.cs +++ b/Items/Weapons/Melee/KelvinCatalystMelee.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 30; item.knockBack = 4f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/Lacerator.cs b/Items/Weapons/Melee/Lacerator.cs index 5ac2723a06..f473722f4d 100644 --- a/Items/Weapons/Melee/Lacerator.cs +++ b/Items/Weapons/Melee/Lacerator.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 20; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/LeechingDagger.cs b/Items/Weapons/Melee/LeechingDagger.cs index a8feaf0068..d753a621fb 100644 --- a/Items/Weapons/Melee/LeechingDagger.cs +++ b/Items/Weapons/Melee/LeechingDagger.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 15; item.useTime = 15; diff --git a/Items/Weapons/Melee/LifefruitScythe.cs b/Items/Weapons/Melee/LifefruitScythe.cs index d450027649..49797fa2eb 100644 --- a/Items/Weapons/Melee/LifefruitScythe.cs +++ b/Items/Weapons/Melee/LifefruitScythe.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 250; item.melee = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.useTurn = true; item.knockBack = 7.5f; diff --git a/Items/Weapons/Melee/LionHeart.cs b/Items/Weapons/Melee/LionHeart.cs index 83c22f596b..dd39c675e4 100644 --- a/Items/Weapons/Melee/LionHeart.cs +++ b/Items/Weapons/Melee/LionHeart.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 700; item.knockBack = 5.5f; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useAnimation = 15; item.useTime = 15; item.shootSpeed = 0f; @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons.Melee } else { - item.shoot = 0; + item.shoot = ProjectileID.None; } return base.CanUseItem(player); } diff --git a/Items/Weapons/Melee/Lucrecia.cs b/Items/Weapons/Melee/Lucrecia.cs index ea219d9bd8..0eec0dd93f 100644 --- a/Items/Weapons/Melee/Lucrecia.cs +++ b/Items/Weapons/Melee/Lucrecia.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 25; item.useTime = 25; diff --git a/Items/Weapons/Melee/MajesticGuard.cs b/Items/Weapons/Melee/MajesticGuard.cs index b47f22b9f3..71889588be 100644 --- a/Items/Weapons/Melee/MajesticGuard.cs +++ b/Items/Weapons/Melee/MajesticGuard.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 60; item.melee = true; item.useAnimation = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 22; item.useTurn = true; item.knockBack = 7.5f; diff --git a/Items/Weapons/Melee/MandibleClaws.cs b/Items/Weapons/Melee/MandibleClaws.cs index ba3303b8ca..e321cb025a 100644 --- a/Items/Weapons/Melee/MandibleClaws.cs +++ b/Items/Weapons/Melee/MandibleClaws.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 14; item.melee = true; item.useAnimation = 6; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 6; item.useTurn = true; item.knockBack = 3.5f; diff --git a/Items/Weapons/Melee/MangroveChakramMelee.cs b/Items/Weapons/Melee/MangroveChakramMelee.cs index 765e0701bc..c0be4942a7 100644 --- a/Items/Weapons/Melee/MangroveChakramMelee.cs +++ b/Items/Weapons/Melee/MangroveChakramMelee.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 14; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 14; item.knockBack = 7.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/MantisClaws.cs b/Items/Weapons/Melee/MantisClaws.cs index c03cb1c42c..a999aa626d 100644 --- a/Items/Weapons/Melee/MantisClaws.cs +++ b/Items/Weapons/Melee/MantisClaws.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 120; item.melee = true; item.useAnimation = 6; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 6; item.useTurn = true; item.knockBack = 7f; diff --git a/Items/Weapons/Melee/Mariana.cs b/Items/Weapons/Melee/Mariana.cs index 0693c85d9e..0d0c869f39 100644 --- a/Items/Weapons/Melee/Mariana.cs +++ b/Items/Weapons/Melee/Mariana.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 62; item.melee = true; item.useAnimation = 24; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 24; item.useTurn = true; item.knockBack = 6.5f; diff --git a/Items/Weapons/Melee/MarniteSpear.cs b/Items/Weapons/Melee/MarniteSpear.cs index 4cbf780e06..830da229cf 100644 --- a/Items/Weapons/Melee/MarniteSpear.cs +++ b/Items/Weapons/Melee/MarniteSpear.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 21; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 21; item.knockBack = 5.25f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/MirrorBlade.cs b/Items/Weapons/Melee/MirrorBlade.cs index 1714a27389..13cadae545 100644 --- a/Items/Weapons/Melee/MirrorBlade.cs +++ b/Items/Weapons/Melee/MirrorBlade.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 12; item.useTime = 12; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/Mourningstar.cs b/Items/Weapons/Melee/Mourningstar.cs index b225ad82c4..2bf3449229 100644 --- a/Items/Weapons/Melee/Mourningstar.cs +++ b/Items/Weapons/Melee/Mourningstar.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.melee = true; item.useAnimation = 10; item.useTime = 10; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 2.5f; item.UseSound = SoundID.Item116; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Melee/Murasama.cs b/Items/Weapons/Melee/Murasama.cs index 88e6769f96..97562f52d6 100644 --- a/Items/Weapons/Melee/Murasama.cs +++ b/Items/Weapons/Melee/Murasama.cs @@ -4,6 +4,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Melee { @@ -30,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noUseGraphic = true; item.channel = true; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 5; item.knockBack = 6.5f; item.autoReuse = false; diff --git a/Items/Weapons/Melee/MycelialClaws.cs b/Items/Weapons/Melee/MycelialClaws.cs index 48ebf9f227..a45636ce4b 100644 --- a/Items/Weapons/Melee/MycelialClaws.cs +++ b/Items/Weapons/Melee/MycelialClaws.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 14; item.melee = true; item.useAnimation = 6; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 6; item.useTurn = true; item.knockBack = 3.75f; diff --git a/Items/Weapons/Melee/Nadir.cs b/Items/Weapons/Melee/Nadir.cs index dda4ce7f5d..da7b2637e4 100644 --- a/Items/Weapons/Melee/Nadir.cs +++ b/Items/Weapons/Melee/Nadir.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee item.autoReuse = true; item.noMelee = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.rare = 10; diff --git a/Items/Weapons/Melee/NanoblackReaperMelee.cs b/Items/Weapons/Melee/NanoblackReaperMelee.cs index 1b869aecba..5332cf626b 100644 --- a/Items/Weapons/Melee/NanoblackReaperMelee.cs +++ b/Items/Weapons/Melee/NanoblackReaperMelee.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item18; item.rare = 10; diff --git a/Items/Weapons/Melee/Nebulash.cs b/Items/Weapons/Melee/Nebulash.cs index 8bd1bc30e5..17e5b3f214 100644 --- a/Items/Weapons/Melee/Nebulash.cs +++ b/Items/Weapons/Melee/Nebulash.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee item.melee = true; item.useAnimation = 18; item.useTime = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 2f; item.UseSound = SoundID.Item117; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Melee/NeptunesBounty.cs b/Items/Weapons/Melee/NeptunesBounty.cs index 436b2c29d3..12435c830a 100644 --- a/Items/Weapons/Melee/NeptunesBounty.cs +++ b/Items/Weapons/Melee/NeptunesBounty.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.useTime = 22; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 9f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/NightsStabber.cs b/Items/Weapons/Melee/NightsStabber.cs index e9c167dec8..445f576ddf 100644 --- a/Items/Weapons/Melee/NightsStabber.cs +++ b/Items/Weapons/Melee/NightsStabber.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 15; item.useTime = 15; diff --git a/Items/Weapons/Melee/OldLordOathsword.cs b/Items/Weapons/Melee/OldLordOathsword.cs index 6421e0e31b..9a7ddea88c 100644 --- a/Items/Weapons/Melee/OldLordOathsword.cs +++ b/Items/Weapons/Melee/OldLordOathsword.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 70; item.melee = true; item.useAnimation = 24; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 24; item.useTurn = true; item.knockBack = 7f; diff --git a/Items/Weapons/Melee/OmegaBiomeBlade.cs b/Items/Weapons/Melee/OmegaBiomeBlade.cs index 2c4bb8a4b7..cff0e16ea8 100644 --- a/Items/Weapons/Melee/OmegaBiomeBlade.cs +++ b/Items/Weapons/Melee/OmegaBiomeBlade.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 18; item.useTime = 18; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 8; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/Omniblade.cs b/Items/Weapons/Melee/Omniblade.cs index 4261451c30..aad75f2df4 100644 --- a/Items/Weapons/Melee/Omniblade.cs +++ b/Items/Weapons/Melee/Omniblade.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.crit += 45; item.melee = true; item.useAnimation = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 10; item.useTurn = true; item.knockBack = 6f; diff --git a/Items/Weapons/Melee/Oracle.cs b/Items/Weapons/Melee/Oracle.cs index 747dfefd44..4855ab593d 100644 --- a/Items/Weapons/Melee/Oracle.cs +++ b/Items/Weapons/Melee/Oracle.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Yoyos; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 20; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/PerfectDark.cs b/Items/Weapons/Melee/PerfectDark.cs index 2921616f43..901a31e9f1 100644 --- a/Items/Weapons/Melee/PerfectDark.cs +++ b/Items/Weapons/Melee/PerfectDark.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 22; item.melee = true; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 25; item.useTurn = true; item.knockBack = 4.25f; diff --git a/Items/Weapons/Melee/PhoenixBlade.cs b/Items/Weapons/Melee/PhoenixBlade.cs index 7998b627e0..7a16c00a43 100644 --- a/Items/Weapons/Melee/PhoenixBlade.cs +++ b/Items/Weapons/Melee/PhoenixBlade.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 120; item.melee = true; item.useAnimation = 27; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 27; item.useTurn = true; item.knockBack = 8f; diff --git a/Items/Weapons/Melee/PlagueKeeper.cs b/Items/Weapons/Melee/PlagueKeeper.cs index 7e15c95487..79ec5adbf0 100644 --- a/Items/Weapons/Melee/PlagueKeeper.cs +++ b/Items/Weapons/Melee/PlagueKeeper.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 80; item.melee = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.useTurn = true; item.knockBack = 6f; diff --git a/Items/Weapons/Melee/ProfanedSword.cs b/Items/Weapons/Melee/ProfanedSword.cs index 11c8f3325d..6ed2429af9 100644 --- a/Items/Weapons/Melee/ProfanedSword.cs +++ b/Items/Weapons/Melee/ProfanedSword.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 23; item.useAnimation = 23; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7.5f; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Melee { item.noMelee = false; item.noUseGraphic = false; - item.shoot = 0; + item.shoot = ProjectileID.None; } return base.CanUseItem(player); } diff --git a/Items/Weapons/Melee/PwnagehammerMelee.cs b/Items/Weapons/Melee/PwnagehammerMelee.cs index 9315eac593..357ec3a8dc 100644 --- a/Items/Weapons/Melee/PwnagehammerMelee.cs +++ b/Items/Weapons/Melee/PwnagehammerMelee.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 10f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/Quagmire.cs b/Items/Weapons/Melee/Quagmire.cs index bd2ecd28a2..38902118c6 100644 --- a/Items/Weapons/Melee/Quagmire.cs +++ b/Items/Weapons/Melee/Quagmire.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/RedSun.cs b/Items/Weapons/Melee/RedSun.cs index 5297863e9e..b82929fc9e 100644 --- a/Items/Weapons/Melee/RedSun.cs +++ b/Items/Weapons/Melee/RedSun.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee item.reuseDelay = 20; item.useAnimation = 30; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 4; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/RedtideSword.cs b/Items/Weapons/Melee/RedtideSword.cs index 98b7af3eb5..e13aed66fa 100644 --- a/Items/Weapons/Melee/RedtideSword.cs +++ b/Items/Weapons/Melee/RedtideSword.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 20; item.melee = true; item.useAnimation = 19; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 19; item.useTurn = true; item.knockBack = 4; diff --git a/Items/Weapons/Melee/Roxcalibur.cs b/Items/Weapons/Melee/Roxcalibur.cs index 243fe4e424..1956ae9588 100644 --- a/Items/Weapons/Melee/Roxcalibur.cs +++ b/Items/Weapons/Melee/Roxcalibur.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Terraria; @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee item.knockBack = 13; item.crit += 8; item.melee = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.NPCHit42; item.width = 80; item.height = 80; @@ -75,7 +75,7 @@ namespace CalamityMod.Items.Weapons.Melee Main.dust[d].noGravity = true; Main.dust[d].position = player.Center; } - Main.PlaySound(2, player.position, 70); + Main.PlaySound(SoundID.Item70, player.position); } // Resets the weapon usage if the alt fire collides with the ground if (RoxAlt && player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0) @@ -118,14 +118,14 @@ namespace CalamityMod.Items.Weapons.Melee { player.itemLocation.X -= 32f * player.direction; player.itemLocation.Y -= 60f; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; RoxAlt = true; } //Modifies to use style and hold out of the main fire mode else { player.itemLocation += new Vector2(-7.5f * player.direction, 8.5f * player.gravDir).RotatedBy(player.itemRotation); - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; RoxAlt = false; } } @@ -207,7 +207,7 @@ namespace CalamityMod.Items.Weapons.Melee 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 (item.useStyle == 4) + if (item.useStyle == ItemUseStyleID.HoldingUp) { //Spawns a projectile on the tip of the sword in the alt fire float positionx; @@ -255,7 +255,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) { - if (item.useStyle == 4) + if (item.useStyle == ItemUseStyleID.HoldingUp) { if (player.whoAmI == Main.myPlayer) { @@ -278,7 +278,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void OnHitPvp(Player player, Player target, int damage, bool crit) { - if (item.useStyle == 4) + if (item.useStyle == ItemUseStyleID.HoldingUp) { if (player.whoAmI == Main.myPlayer) { diff --git a/Items/Weapons/Melee/RoyalKnivesMelee.cs b/Items/Weapons/Melee/RoyalKnivesMelee.cs index c502b927d9..fc6cabc9ce 100644 --- a/Items/Weapons/Melee/RoyalKnivesMelee.cs +++ b/Items/Weapons/Melee/RoyalKnivesMelee.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 12; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 12; item.knockBack = 3f; item.UseSound = SoundID.Item39; diff --git a/Items/Weapons/Melee/SausageMaker.cs b/Items/Weapons/Melee/SausageMaker.cs index 97f9d5e6b0..03528cd944 100644 --- a/Items/Weapons/Melee/SausageMaker.cs +++ b/Items/Weapons/Melee/SausageMaker.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 20; item.knockBack = 6.25f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/ScourgeoftheCosmos.cs b/Items/Weapons/Melee/ScourgeoftheCosmos.cs index c7ac6cd59e..543a96349d 100644 --- a/Items/Weapons/Melee/ScourgeoftheCosmos.cs +++ b/Items/Weapons/Melee/ScourgeoftheCosmos.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 20; item.knockBack = 5f; item.UseSound = SoundID.Item109; diff --git a/Items/Weapons/Melee/SeashellBoomerangMelee.cs b/Items/Weapons/Melee/SeashellBoomerangMelee.cs index 841ad4267e..d226d3ca7a 100644 --- a/Items/Weapons/Melee/SeashellBoomerangMelee.cs +++ b/Items/Weapons/Melee/SeashellBoomerangMelee.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 5.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/Shimmerspark.cs b/Items/Weapons/Melee/Shimmerspark.cs index c303468917..783b48dc67 100644 --- a/Items/Weapons/Melee/Shimmerspark.cs +++ b/Items/Weapons/Melee/Shimmerspark.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/SolarFlare.cs b/Items/Weapons/Melee/SolarFlare.cs index 266c7959af..f99be3b328 100644 --- a/Items/Weapons/Melee/SolarFlare.cs +++ b/Items/Weapons/Melee/SolarFlare.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 20; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/SolsticeClaymore.cs b/Items/Weapons/Melee/SolsticeClaymore.cs index 5d9a48ade3..da9697e8bd 100644 --- a/Items/Weapons/Melee/SolsticeClaymore.cs +++ b/Items/Weapons/Melee/SolsticeClaymore.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 520; item.melee = true; item.useAnimation = 16; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 16; item.useTurn = true; item.knockBack = 6.5f; diff --git a/Items/Weapons/Melee/SoulEdge.cs b/Items/Weapons/Melee/SoulEdge.cs index 8705a97247..875f594be7 100644 --- a/Items/Weapons/Melee/SoulEdge.cs +++ b/Items/Weapons/Melee/SoulEdge.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 365; item.melee = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.useTurn = true; item.knockBack = 5.5f; diff --git a/Items/Weapons/Melee/SoulHarvester.cs b/Items/Weapons/Melee/SoulHarvester.cs index 0c493eb12e..93c3ceb364 100644 --- a/Items/Weapons/Melee/SoulHarvester.cs +++ b/Items/Weapons/Melee/SoulHarvester.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 98; item.melee = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.useTurn = true; item.knockBack = 7.5f; @@ -61,7 +61,7 @@ namespace CalamityMod.Items.Weapons.Melee target.AddBuff(BuffID.CursedInferno, 300); if (target.life <= (target.lifeMax * 0.15f)) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 14); + Main.PlaySound(SoundID.Item14, target.position); // DEFECT -- HiveBombExplosion does not exist. // Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)(item.damage * (player.allDamage + player.meleeDamage - 1f)), knockback, Main.myPlayer); @@ -93,7 +93,7 @@ namespace CalamityMod.Items.Weapons.Melee target.AddBuff(BuffID.CursedInferno, 300); if (target.statLife <= (target.statLifeMax * 0.15f)) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 14); + Main.PlaySound(SoundID.Item14, target.position); // DEFECT -- HiveBombExplosion does not exist. // Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)(item.damage * (player.allDamage + player.meleeDamage - 1f)), item.knockBack, Main.myPlayer); diff --git a/Items/Weapons/Melee/SpatialLance.cs b/Items/Weapons/Melee/SpatialLance.cs index 348dfe9479..ac33398c35 100644 --- a/Items/Weapons/Melee/SpatialLance.cs +++ b/Items/Weapons/Melee/SpatialLance.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 30; item.knockBack = 9.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/SporeKnife.cs b/Items/Weapons/Melee/SporeKnife.cs index 83b0f57f32..feb2b1eb20 100644 --- a/Items/Weapons/Melee/SporeKnife.cs +++ b/Items/Weapons/Melee/SporeKnife.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 12; item.useTime = 12; diff --git a/Items/Weapons/Melee/StarnightLance.cs b/Items/Weapons/Melee/StarnightLance.cs index 737ffef31d..0d710c75aa 100644 --- a/Items/Weapons/Melee/StarnightLance.cs +++ b/Items/Weapons/Melee/StarnightLance.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 23; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 23; item.knockBack = 6; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/StellarContemptMelee.cs b/Items/Weapons/Melee/StellarContemptMelee.cs index 49ab290972..cbaa7639c5 100644 --- a/Items/Weapons/Melee/StellarContemptMelee.cs +++ b/Items/Weapons/Melee/StellarContemptMelee.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.rare = 10; diff --git a/Items/Weapons/Melee/StellarStriker.cs b/Items/Weapons/Melee/StellarStriker.cs index b9f097c495..aad8f52610 100644 --- a/Items/Weapons/Melee/StellarStriker.cs +++ b/Items/Weapons/Melee/StellarStriker.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 640; item.melee = true; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 25; item.useTurn = true; item.knockBack = 7.75f; @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Melee { return; } - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 88); + Main.PlaySound(SoundID.Item88, player.position); int i = Main.myPlayer; float num72 = item.shootSpeed; Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); @@ -90,7 +90,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void OnHitPvp(Player player, Player target, int damage, bool crit) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 88); + Main.PlaySound(SoundID.Item88, player.position); int i = Main.myPlayer; float num72 = item.shootSpeed; Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); diff --git a/Items/Weapons/Melee/StormRuler.cs b/Items/Weapons/Melee/StormRuler.cs index 44889f4bbf..ecd1264918 100644 --- a/Items/Weapons/Melee/StormRuler.cs +++ b/Items/Weapons/Melee/StormRuler.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.useTime = 25; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6.25f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/StormSaber.cs b/Items/Weapons/Melee/StormSaber.cs index 9f71a449b8..3afea0d9e3 100644 --- a/Items/Weapons/Melee/StormSaber.cs +++ b/Items/Weapons/Melee/StormSaber.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 23; item.useTime = 23; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/StreamGouge.cs b/Items/Weapons/Melee/StreamGouge.cs index 19c411dd09..4ab2194d10 100644 --- a/Items/Weapons/Melee/StreamGouge.cs +++ b/Items/Weapons/Melee/StreamGouge.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 19; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 19; item.knockBack = 9.75f; item.UseSound = SoundID.Item20; diff --git a/Items/Weapons/Melee/SubmarineShocker.cs b/Items/Weapons/Melee/SubmarineShocker.cs index 8ea6eb405e..1c1e3249c6 100644 --- a/Items/Weapons/Melee/SubmarineShocker.cs +++ b/Items/Weapons/Melee/SubmarineShocker.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 10; item.useTime = 10; diff --git a/Items/Weapons/Melee/SulphurousGrabber.cs b/Items/Weapons/Melee/SulphurousGrabber.cs index c9d64b577d..e03e4d6b21 100644 --- a/Items/Weapons/Melee/SulphurousGrabber.cs +++ b/Items/Weapons/Melee/SulphurousGrabber.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/Swordsplosion.cs b/Items/Weapons/Melee/Swordsplosion.cs index 5f1b235dfe..fd2a34ecaa 100644 --- a/Items/Weapons/Melee/Swordsplosion.cs +++ b/Items/Weapons/Melee/Swordsplosion.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 30; item.useTime = 30; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 15f; item.UseSound = SoundID.Item60; item.autoReuse = true; diff --git a/Items/Weapons/Melee/TeardropCleaver.cs b/Items/Weapons/Melee/TeardropCleaver.cs index 05d8907c4f..734d625898 100644 --- a/Items/Weapons/Melee/TeardropCleaver.cs +++ b/Items/Weapons/Melee/TeardropCleaver.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 18; item.melee = true; item.useAnimation = 24; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 24; item.useTurn = true; item.knockBack = 4.5f; diff --git a/Items/Weapons/Melee/TemporalFloeSword.cs b/Items/Weapons/Melee/TemporalFloeSword.cs index 339acd5767..f60bd4a45f 100644 --- a/Items/Weapons/Melee/TemporalFloeSword.cs +++ b/Items/Weapons/Melee/TemporalFloeSword.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 95; item.melee = true; item.useAnimation = 16; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 16; item.useTurn = true; item.knockBack = 6; diff --git a/Items/Weapons/Melee/TerraDiskMelee.cs b/Items/Weapons/Melee/TerraDiskMelee.cs index 83ff1603bd..cdcfb0e8b1 100644 --- a/Items/Weapons/Melee/TerraDiskMelee.cs +++ b/Items/Weapons/Melee/TerraDiskMelee.cs @@ -32,7 +32,7 @@ A max of three disks can be active at a time"); item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Melee/TerraEdge.cs b/Items/Weapons/Melee/TerraEdge.cs index 30cf8b013d..20f88d21d9 100644 --- a/Items/Weapons/Melee/TerraEdge.cs +++ b/Items/Weapons/Melee/TerraEdge.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 112; item.melee = true; item.useAnimation = 17; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 17; item.useTurn = true; item.knockBack = 6.25f; diff --git a/Items/Weapons/Melee/TerraLance.cs b/Items/Weapons/Melee/TerraLance.cs index c1a9e4bbc0..7355f241e1 100644 --- a/Items/Weapons/Melee/TerraLance.cs +++ b/Items/Weapons/Melee/TerraLance.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 17; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 17; item.knockBack = 8.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/TerraShiv.cs b/Items/Weapons/Melee/TerraShiv.cs index b36c56ad4d..4a39609a7a 100644 --- a/Items/Weapons/Melee/TerraShiv.cs +++ b/Items/Weapons/Melee/TerraShiv.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 13; item.useTime = 13; diff --git a/Items/Weapons/Melee/Terracotta.cs b/Items/Weapons/Melee/Terracotta.cs index 4cf8b287e6..8613959193 100644 --- a/Items/Weapons/Melee/Terracotta.cs +++ b/Items/Weapons/Melee/Terracotta.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 17; item.useTime = 17; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/Terratomere.cs b/Items/Weapons/Melee/Terratomere.cs index b910782777..fa57750bb5 100644 --- a/Items/Weapons/Melee/Terratomere.cs +++ b/Items/Weapons/Melee/Terratomere.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 125; item.melee = true; item.useAnimation = 21; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 21; item.useTurn = true; item.knockBack = 7f; diff --git a/Items/Weapons/Melee/TerrorBlade.cs b/Items/Weapons/Melee/TerrorBlade.cs index e3cbcf53f9..593b852799 100644 --- a/Items/Weapons/Melee/TerrorBlade.cs +++ b/Items/Weapons/Melee/TerrorBlade.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 18; item.useTime = 18; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 8.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/TheBurningSky.cs b/Items/Weapons/Melee/TheBurningSky.cs index 3c7e3163a9..134ba00dc2 100644 --- a/Items/Weapons/Melee/TheBurningSky.cs +++ b/Items/Weapons/Melee/TheBurningSky.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.melee = true; item.useTime = 5; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = true; item.knockBack = 8f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/TheEnforcer.cs b/Items/Weapons/Melee/TheEnforcer.cs index eaf6807a58..01e7eebf04 100644 --- a/Items/Weapons/Melee/TheEnforcer.cs +++ b/Items/Weapons/Melee/TheEnforcer.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 1900; item.melee = true; item.useAnimation = 17; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 17; item.useTurn = true; item.knockBack = 9f; @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 73); + Main.PlaySound(SoundID.Item73, player.position); int i = Main.myPlayer; float num72 = 6f; float num74 = 7f; @@ -93,7 +93,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void OnHitPvp(Player player, Player target, int damage, bool crit) { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 73); + Main.PlaySound(SoundID.Item73, player.position); int i = Main.myPlayer; float num72 = 6f; float num74 = 7f; diff --git a/Items/Weapons/Melee/TheEyeofCalamitas.cs b/Items/Weapons/Melee/TheEyeofCalamitas.cs index 8f21300764..d03fbc0b6b 100644 --- a/Items/Weapons/Melee/TheEyeofCalamitas.cs +++ b/Items/Weapons/Melee/TheEyeofCalamitas.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/TheGodsGambit.cs b/Items/Weapons/Melee/TheGodsGambit.cs index b4860c4b8e..2719abf18d 100644 --- a/Items/Weapons/Melee/TheGodsGambit.cs +++ b/Items/Weapons/Melee/TheGodsGambit.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 21; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/TheLastMourning.cs b/Items/Weapons/Melee/TheLastMourning.cs index d0815c3c7c..70975ce34b 100644 --- a/Items/Weapons/Melee/TheLastMourning.cs +++ b/Items/Weapons/Melee/TheLastMourning.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee item.autoReuse = true; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.rare = 10; diff --git a/Items/Weapons/Melee/TheMicrowave.cs b/Items/Weapons/Melee/TheMicrowave.cs index 8d5eb11ed0..779e884570 100644 --- a/Items/Weapons/Melee/TheMicrowave.cs +++ b/Items/Weapons/Melee/TheMicrowave.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/TheMutilator.cs b/Items/Weapons/Melee/TheMutilator.cs index 7369dbcbb3..1d38a5308e 100644 --- a/Items/Weapons/Melee/TheMutilator.cs +++ b/Items/Weapons/Melee/TheMutilator.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 950; item.melee = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.useTurn = true; item.knockBack = 8f; @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.NewItem((int)target.position.X, (int)target.position.Y, target.width, target.height, 58, 1, false, 0, false, false); } - Main.PlaySound(2, (int)target.position.X, (int)target.position.Y, 14); + Main.PlaySound(SoundID.Item14, target.position); target.position.X += (float)(target.width / 2); target.position.Y += (float)(target.height / 2); target.position.X -= (float)(target.width / 2); diff --git a/Items/Weapons/Melee/TheObliterator.cs b/Items/Weapons/Melee/TheObliterator.cs index 147e967a08..737747f98e 100644 --- a/Items/Weapons/Melee/TheObliterator.cs +++ b/Items/Weapons/Melee/TheObliterator.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 20; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/ThePlaguebringer.cs b/Items/Weapons/Melee/ThePlaguebringer.cs index 64867678b4..8c6cd8417a 100644 --- a/Items/Weapons/Melee/ThePlaguebringer.cs +++ b/Items/Weapons/Melee/ThePlaguebringer.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/TitanArm.cs b/Items/Weapons/Melee/TitanArm.cs index e5c40af72e..cf31e4570f 100644 --- a/Items/Weapons/Melee/TitanArm.cs +++ b/Items/Weapons/Melee/TitanArm.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.melee = true; item.useTurn = true; item.useAnimation = 12; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 12; item.knockBack = 9001f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs b/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs index 849065bc52..1cb1f1e4bd 100644 --- a/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs +++ b/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 10; item.knockBack = 50f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/Trinity.cs b/Items/Weapons/Melee/Trinity.cs index f43f1f7973..f12d436eb6 100644 --- a/Items/Weapons/Melee/Trinity.cs +++ b/Items/Weapons/Melee/Trinity.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.useTime = 25; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 4.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/TrueArkoftheAncients.cs b/Items/Weapons/Melee/TrueArkoftheAncients.cs index 77829cbe2a..75f7020e26 100644 --- a/Items/Weapons/Melee/TrueArkoftheAncients.cs +++ b/Items/Weapons/Melee/TrueArkoftheAncients.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.useTime = 25; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/TrueBiomeBlade.cs b/Items/Weapons/Melee/TrueBiomeBlade.cs index 8eb1ea1d1a..f043fe7c76 100644 --- a/Items/Weapons/Melee/TrueBiomeBlade.cs +++ b/Items/Weapons/Melee/TrueBiomeBlade.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 21; item.useTime = 21; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/TrueBloodyEdge.cs b/Items/Weapons/Melee/TrueBloodyEdge.cs index d11303391d..477a61ae48 100644 --- a/Items/Weapons/Melee/TrueBloodyEdge.cs +++ b/Items/Weapons/Melee/TrueBloodyEdge.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 70; item.melee = true; item.useAnimation = 24; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 24; item.knockBack = 6f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/TrueCausticEdge.cs b/Items/Weapons/Melee/TrueCausticEdge.cs index 17d20b4a2f..1377f73494 100644 --- a/Items/Weapons/Melee/TrueCausticEdge.cs +++ b/Items/Weapons/Melee/TrueCausticEdge.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 100; item.melee = true; item.useAnimation = 28; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 28; item.useTurn = true; item.knockBack = 5.75f; diff --git a/Items/Weapons/Melee/TrueExcaliburShortsword.cs b/Items/Weapons/Melee/TrueExcaliburShortsword.cs index 5d8a402c8a..a3580d3bb1 100644 --- a/Items/Weapons/Melee/TrueExcaliburShortsword.cs +++ b/Items/Weapons/Melee/TrueExcaliburShortsword.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 12; item.useTime = 12; diff --git a/Items/Weapons/Melee/TrueForbiddenOathblade.cs b/Items/Weapons/Melee/TrueForbiddenOathblade.cs index a225427bae..97fcab0849 100644 --- a/Items/Weapons/Melee/TrueForbiddenOathblade.cs +++ b/Items/Weapons/Melee/TrueForbiddenOathblade.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 23; item.useTime = 23; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Melee/TrueNightsStabber.cs b/Items/Weapons/Melee/TrueNightsStabber.cs index 2827f3fceb..3d3970a71c 100644 --- a/Items/Weapons/Melee/TrueNightsStabber.cs +++ b/Items/Weapons/Melee/TrueNightsStabber.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - item.useStyle = 3; + item.useStyle = ItemUseStyleID.Stabbing; item.useTurn = false; item.useAnimation = 16; item.useTime = 16; diff --git a/Items/Weapons/Melee/TruePaladinsHammerMelee.cs b/Items/Weapons/Melee/TruePaladinsHammerMelee.cs index 56e70e350b..bce78402a4 100644 --- a/Items/Weapons/Melee/TruePaladinsHammerMelee.cs +++ b/Items/Weapons/Melee/TruePaladinsHammerMelee.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 13; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 13; item.knockBack = 20f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/TrueTyrantYharimsUltisword.cs b/Items/Weapons/Melee/TrueTyrantYharimsUltisword.cs index d93736f308..ad0f10aab8 100644 --- a/Items/Weapons/Melee/TrueTyrantYharimsUltisword.cs +++ b/Items/Weapons/Melee/TrueTyrantYharimsUltisword.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 185; item.melee = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.useTurn = true; item.knockBack = 7.5f; diff --git a/Items/Weapons/Melee/Tumbleweed.cs b/Items/Weapons/Melee/Tumbleweed.cs index 9159a7683a..44d41224c8 100644 --- a/Items/Weapons/Melee/Tumbleweed.cs +++ b/Items/Weapons/Melee/Tumbleweed.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 10; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.noUseGraphic = true; item.knockBack = 8f; diff --git a/Items/Weapons/Melee/TyphonsGreed.cs b/Items/Weapons/Melee/TyphonsGreed.cs index 8b3c402fdf..402c10ed16 100644 --- a/Items/Weapons/Melee/TyphonsGreed.cs +++ b/Items/Weapons/Melee/TyphonsGreed.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 16; item.useTime = 30; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.noUseGraphic = true; item.knockBack = 5f; diff --git a/Items/Weapons/Melee/TyrantYharimsUltisword.cs b/Items/Weapons/Melee/TyrantYharimsUltisword.cs index 4f63892808..814c08eccc 100644 --- a/Items/Weapons/Melee/TyrantYharimsUltisword.cs +++ b/Items/Weapons/Melee/TyrantYharimsUltisword.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 64; item.melee = true; item.useAnimation = 26; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 26; item.useTurn = true; item.knockBack = 5.5f; diff --git a/Items/Weapons/Melee/UltimusCleaver.cs b/Items/Weapons/Melee/UltimusCleaver.cs index 759dfef726..aeeb85d8d2 100644 --- a/Items/Weapons/Melee/UltimusCleaver.cs +++ b/Items/Weapons/Melee/UltimusCleaver.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 62; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 8f; item.value = Item.buyPrice(0, 80, 0, 0); item.autoReuse = true; diff --git a/Items/Weapons/Melee/UrchinFlail.cs b/Items/Weapons/Melee/UrchinFlail.cs index 100886cf2c..c6e6bef3f9 100644 --- a/Items/Weapons/Melee/UrchinFlail.cs +++ b/Items/Weapons/Melee/UrchinFlail.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.height = 36; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.noUseGraphic = true; item.knockBack = 6f; diff --git a/Items/Weapons/Melee/UrchinSpear.cs b/Items/Weapons/Melee/UrchinSpear.cs index 30a47c0763..e251016645 100644 --- a/Items/Weapons/Melee/UrchinSpear.cs +++ b/Items/Weapons/Melee/UrchinSpear.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 25; item.knockBack = 5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/VeinBurster.cs b/Items/Weapons/Melee/VeinBurster.cs index 49adf7196e..02350c2c5c 100644 --- a/Items/Weapons/Melee/VeinBurster.cs +++ b/Items/Weapons/Melee/VeinBurster.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 22; item.melee = true; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 25; item.useTurn = true; item.knockBack = 4.25f; diff --git a/Items/Weapons/Melee/Verdant.cs b/Items/Weapons/Melee/Verdant.cs index 730ac72254..a649f8c471 100644 --- a/Items/Weapons/Melee/Verdant.cs +++ b/Items/Weapons/Melee/Verdant.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/VirulentKatana.cs b/Items/Weapons/Melee/VirulentKatana.cs index b5a69bb3a9..c1244aaa8b 100644 --- a/Items/Weapons/Melee/VirulentKatana.cs +++ b/Items/Weapons/Melee/VirulentKatana.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 96; item.melee = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.useTurn = true; item.knockBack = 5.5f; diff --git a/Items/Weapons/Melee/Waraxe.cs b/Items/Weapons/Melee/Waraxe.cs index 3b62e391e1..e68f65bbb2 100644 --- a/Items/Weapons/Melee/Waraxe.cs +++ b/Items/Weapons/Melee/Waraxe.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 22; item.useTurn = true; item.axe = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5.25f; item.value = Item.buyPrice(0, 1, 0, 0); item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/Warblade.cs b/Items/Weapons/Melee/Warblade.cs index f577dd8f78..c413967bd7 100644 --- a/Items/Weapons/Melee/Warblade.cs +++ b/Items/Weapons/Melee/Warblade.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useTime = 19; item.useAnimation = 19; item.useTurn = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 4.25f; item.value = Item.buyPrice(0, 1, 0, 0); item.rare = 1; diff --git a/Items/Weapons/Melee/Whirlpool.cs b/Items/Weapons/Melee/Whirlpool.cs index 7a33f3adc7..51685046a2 100644 --- a/Items/Weapons/Melee/Whirlpool.cs +++ b/Items/Weapons/Melee/Whirlpool.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/WindBlade.cs b/Items/Weapons/Melee/WindBlade.cs index 8e666fc6da..5fa592c5b3 100644 --- a/Items/Weapons/Melee/WindBlade.cs +++ b/Items/Weapons/Melee/WindBlade.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 27; item.melee = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.useTurn = true; item.knockBack = 5; diff --git a/Items/Weapons/Melee/WulfrumBlade.cs b/Items/Weapons/Melee/WulfrumBlade.cs index 2b8fb8052b..7dbf7198ae 100644 --- a/Items/Weapons/Melee/WulfrumBlade.cs +++ b/Items/Weapons/Melee/WulfrumBlade.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 12; item.melee = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.useTurn = true; item.knockBack = 3.75f; diff --git a/Items/Weapons/Melee/XerocsGreatsword.cs b/Items/Weapons/Melee/XerocsGreatsword.cs index 48b94e1a84..c12789b316 100644 --- a/Items/Weapons/Melee/XerocsGreatsword.cs +++ b/Items/Weapons/Melee/XerocsGreatsword.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee item.damage = 90; item.melee = true; item.useAnimation = 26; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 26; item.useTurn = true; item.knockBack = 5.25f; diff --git a/Items/Weapons/Melee/YateveoBloom.cs b/Items/Weapons/Melee/YateveoBloom.cs index 8f81f86c68..5488338b04 100644 --- a/Items/Weapons/Melee/YateveoBloom.cs +++ b/Items/Weapons/Melee/YateveoBloom.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee item.autoReuse = false; item.useTurn = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.rare = 2; diff --git a/Items/Weapons/Melee/YinYo.cs b/Items/Weapons/Melee/YinYo.cs index 9f6998ec83..eb29299eaa 100644 --- a/Items/Weapons/Melee/YinYo.cs +++ b/Items/Weapons/Melee/YinYo.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.useAnimation = 25; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = SoundID.Item1; item.channel = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Ranged/AMR.cs b/Items/Weapons/Ranged/AMR.cs index fab41ac3ce..cc26c11ea7 100644 --- a/Items/Weapons/Ranged/AMR.cs +++ b/Items/Weapons/Ranged/AMR.cs @@ -4,6 +4,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Items.Weapons.Ranged { @@ -25,14 +26,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 60; item.useAnimation = 60; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 9.5f; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LargeWeaponFire"); item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 12f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.DarkBlue; diff --git a/Items/Weapons/Ranged/AcesHigh.cs b/Items/Weapons/Ranged/AcesHigh.cs index 2b22d5f43d..5269bf97d6 100644 --- a/Items/Weapons/Ranged/AcesHigh.cs +++ b/Items/Weapons/Ranged/AcesHigh.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 3; item.reuseDelay = 8; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6f; item.value = Item.buyPrice(2, 50, 0, 0); diff --git a/Items/Weapons/Ranged/Aeries.cs b/Items/Weapons/Ranged/Aeries.cs index 2adb159c86..73f1d677d5 100644 --- a/Items/Weapons/Ranged/Aeries.cs +++ b/Items/Weapons/Ranged/Aeries.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 32; item.useTime = 10; item.useAnimation = 10; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Ranged/Alluvion.cs b/Items/Weapons/Ranged/Alluvion.cs index ee8b0de2d3..f35b97d54f 100644 --- a/Items/Weapons/Ranged/Alluvion.cs +++ b/Items/Weapons/Ranged/Alluvion.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 90; item.useTime = 9; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(1, 80, 0, 0); diff --git a/Items/Weapons/Ranged/AngelicShotgun.cs b/Items/Weapons/Ranged/AngelicShotgun.cs index f5cf3a8766..91cfeca001 100644 --- a/Items/Weapons/Ranged/AngelicShotgun.cs +++ b/Items/Weapons/Ranged/AngelicShotgun.cs @@ -34,7 +34,7 @@ Fighting 'til the war's won"); item.useTime = 26; item.useAnimation = 26; item.UseSound = SoundID.Item38; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.rare = 10; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Ranged/Animosity.cs b/Items/Weapons/Ranged/Animosity.cs index 6625e2378d..2caa6c376d 100644 --- a/Items/Weapons/Ranged/Animosity.cs +++ b/Items/Weapons/Ranged/Animosity.cs @@ -24,14 +24,14 @@ Right click to fire a burst of bullets"); item.useTime = 4; item.reuseDelay = 15; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.UseSound = SoundID.Item31; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 11f; item.useAmmo = 97; } diff --git a/Items/Weapons/Ranged/AquashardShotgun.cs b/Items/Weapons/Ranged/AquashardShotgun.cs index 65456aa44e..633d343339 100644 --- a/Items/Weapons/Ranged/AquashardShotgun.cs +++ b/Items/Weapons/Ranged/AquashardShotgun.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.crit += 6; item.useTime = 26; item.useAnimation = 26; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Ranged/Arbalest.cs b/Items/Weapons/Ranged/Arbalest.cs index 67cb7532f5..6998cd5678 100644 --- a/Items/Weapons/Ranged/Arbalest.cs +++ b/Items/Weapons/Ranged/Arbalest.cs @@ -22,14 +22,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 22; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 10f; item.useAmmo = 40; item.Calamity().customRarity = CalamityRarity.RareVariant; diff --git a/Items/Weapons/Ranged/Archerfish.cs b/Items/Weapons/Ranged/Archerfish.cs index eb6427dae9..3645170f9a 100644 --- a/Items/Weapons/Ranged/Archerfish.cs +++ b/Items/Weapons/Ranged/Archerfish.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 36; item.useTime = 10; item.useAnimation = 10; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index 7bc4a3bd7e..5e2db0fb4b 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 3; item.reuseDelay = 10; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4.25f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Ranged/AstralBlaster.cs b/Items/Weapons/Ranged/AstralBlaster.cs index 641edd0b91..076ca3c920 100644 --- a/Items/Weapons/Ranged/AstralBlaster.cs +++ b/Items/Weapons/Ranged/AstralBlaster.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.75f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Ranged/AstralRepeater.cs b/Items/Weapons/Ranged/AstralRepeater.cs index a461ffdc4f..87df0cd217 100644 --- a/Items/Weapons/Ranged/AstralRepeater.cs +++ b/Items/Weapons/Ranged/AstralRepeater.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 5; item.reuseDelay = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 16f; item.useAmmo = 40; } diff --git a/Items/Weapons/Ranged/AstrealDefeat.cs b/Items/Weapons/Ranged/AstrealDefeat.cs index 48a2425001..0eb16611ac 100644 --- a/Items/Weapons/Ranged/AstrealDefeat.cs +++ b/Items/Weapons/Ranged/AstrealDefeat.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 78; item.useTime = 4; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Ranged/Barinade.cs b/Items/Weapons/Ranged/Barinade.cs index 8d74533b68..82a464a341 100644 --- a/Items/Weapons/Ranged/Barinade.cs +++ b/Items/Weapons/Ranged/Barinade.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 44; item.useTime = 26; item.useAnimation = 26; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 14f; item.useAmmo = 40; } diff --git a/Items/Weapons/Ranged/Barinautical.cs b/Items/Weapons/Ranged/Barinautical.cs index 63539ad4f4..9ff306beba 100644 --- a/Items/Weapons/Ranged/Barinautical.cs +++ b/Items/Weapons/Ranged/Barinautical.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 4; item.reuseDelay = 20; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/BarracudaGun.cs b/Items/Weapons/Ranged/BarracudaGun.cs index 7af724d86d..28588e51e6 100644 --- a/Items/Weapons/Ranged/BarracudaGun.cs +++ b/Items/Weapons/Ranged/BarracudaGun.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 28; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Ranged/BladedgeGreatbow.cs b/Items/Weapons/Ranged/BladedgeGreatbow.cs index c783cf4763..adc7c99bcb 100644 --- a/Items/Weapons/Ranged/BladedgeGreatbow.cs +++ b/Items/Weapons/Ranged/BladedgeGreatbow.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 26; item.useAnimation = 26; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 14f; item.useAmmo = 40; } diff --git a/Items/Weapons/Ranged/BlissfulBombardier.cs b/Items/Weapons/Ranged/BlissfulBombardier.cs index 713d9aa80b..6924c37d28 100644 --- a/Items/Weapons/Ranged/BlissfulBombardier.cs +++ b/Items/Weapons/Ranged/BlissfulBombardier.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Ranged/BloodBoiler.cs b/Items/Weapons/Ranged/BloodBoiler.cs index 5d042c5a21..73d60211db 100644 --- a/Items/Weapons/Ranged/BloodBoiler.cs +++ b/Items/Weapons/Ranged/BloodBoiler.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 5; item.useAnimation = 600; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Ranged/BlossomFlux.cs b/Items/Weapons/Ranged/BlossomFlux.cs index efe3e790f5..9952255947 100644 --- a/Items/Weapons/Ranged/BlossomFlux.cs +++ b/Items/Weapons/Ranged/BlossomFlux.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 62; item.useTime = 4; item.useAnimation = 16; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 0.15f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Ranged/BrimstoneFlameblaster.cs b/Items/Weapons/Ranged/BrimstoneFlameblaster.cs index 6d740d05ea..b2c93c6f06 100644 --- a/Items/Weapons/Ranged/BrimstoneFlameblaster.cs +++ b/Items/Weapons/Ranged/BrimstoneFlameblaster.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 18; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.UseSound = SoundID.Item34; diff --git a/Items/Weapons/Ranged/BrimstoneFlamesprayer.cs b/Items/Weapons/Ranged/BrimstoneFlamesprayer.cs index 248dfe8f3c..984d746581 100644 --- a/Items/Weapons/Ranged/BrimstoneFlamesprayer.cs +++ b/Items/Weapons/Ranged/BrimstoneFlamesprayer.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 18; item.useTime = 9; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.UseSound = SoundID.Item34; diff --git a/Items/Weapons/Ranged/BrimstoneFury.cs b/Items/Weapons/Ranged/BrimstoneFury.cs index 64c162a949..d6e9398c30 100644 --- a/Items/Weapons/Ranged/BrimstoneFury.cs +++ b/Items/Weapons/Ranged/BrimstoneFury.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 58; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.75f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/Butcher.cs b/Items/Weapons/Ranged/Butcher.cs index 1827f2bd1d..92e04c5f64 100644 --- a/Items/Weapons/Ranged/Butcher.cs +++ b/Items/Weapons/Ranged/Butcher.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 12; item.useTime = 40; item.useAnimation = 40; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.rare = 5; item.knockBack = 1f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/ChargedDartRifle.cs b/Items/Weapons/Ranged/ChargedDartRifle.cs index f4e46172a8..61f49ceed9 100644 --- a/Items/Weapons/Ranged/ChargedDartRifle.cs +++ b/Items/Weapons/Ranged/ChargedDartRifle.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Ranged/ChickenCannon.cs b/Items/Weapons/Ranged/ChickenCannon.cs index 3f238644d6..d17cfaf6d5 100644 --- a/Items/Weapons/Ranged/ChickenCannon.cs +++ b/Items/Weapons/Ranged/ChickenCannon.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 13; item.useAnimation = 13; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 8.5f; item.value = Item.buyPrice(1, 80, 0, 0); diff --git a/Items/Weapons/Ranged/ClamorRifle.cs b/Items/Weapons/Ranged/ClamorRifle.cs index c014be74a2..df03667b8f 100644 --- a/Items/Weapons/Ranged/ClamorRifle.cs +++ b/Items/Weapons/Ranged/ClamorRifle.cs @@ -2,6 +2,8 @@ using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Weapons.Ranged { public class ClamorRifle : ModItem @@ -20,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 13; item.useAnimation = 13; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/ClaretCannon.cs b/Items/Weapons/Ranged/ClaretCannon.cs index 9c24bfb9e2..8ee1d8d91f 100644 --- a/Items/Weapons/Ranged/ClaretCannon.cs +++ b/Items/Weapons/Ranged/ClaretCannon.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 3; item.reuseDelay = 10; item.useAnimation = 9; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Ranged/CleansingBlaze.cs b/Items/Weapons/Ranged/CleansingBlaze.cs index 79cb7ae596..b56133746c 100644 --- a/Items/Weapons/Ranged/CleansingBlaze.cs +++ b/Items/Weapons/Ranged/CleansingBlaze.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 32; item.useTime = 3; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.UseSound = SoundID.Item34; diff --git a/Items/Weapons/Ranged/ClockGatlignum.cs b/Items/Weapons/Ranged/ClockGatlignum.cs index f90ac552cd..4005ee070b 100644 --- a/Items/Weapons/Ranged/ClockGatlignum.cs +++ b/Items/Weapons/Ranged/ClockGatlignum.cs @@ -24,14 +24,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 3; item.reuseDelay = 12; item.useAnimation = 9; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.75f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.UseSound = SoundID.Item31; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 20f; item.useAmmo = 97; } diff --git a/Items/Weapons/Ranged/ClockworkBow.cs b/Items/Weapons/Ranged/ClockworkBow.cs index a844f963f8..773258218d 100644 --- a/Items/Weapons/Ranged/ClockworkBow.cs +++ b/Items/Weapons/Ranged/ClockworkBow.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 100; item.useTime = 30; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4.25f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 30f; item.useAmmo = 40; item.Calamity().customRarity = CalamityRarity.Turquoise; diff --git a/Items/Weapons/Ranged/ConferenceCall.cs b/Items/Weapons/Ranged/ConferenceCall.cs index 56141a72df..1b5d374212 100644 --- a/Items/Weapons/Ranged/ConferenceCall.cs +++ b/Items/Weapons/Ranged/ConferenceCall.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 26; item.useTime = 26; item.useAnimation = 26; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4.5f; item.value = Item.buyPrice(0, 80, 0, 0); @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.UseSound = SoundID.Item38; item.autoReuse = true; item.shootSpeed = 13f; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.useAmmo = 97; } diff --git a/Items/Weapons/Ranged/Contagion.cs b/Items/Weapons/Ranged/Contagion.cs index a807100e39..e55426048e 100644 --- a/Items/Weapons/Ranged/Contagion.cs +++ b/Items/Weapons/Ranged/Contagion.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 50; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.noUseGraphic = true; item.channel = true; diff --git a/Items/Weapons/Ranged/CoralCannon.cs b/Items/Weapons/Ranged/CoralCannon.cs index 9f226d5c2b..bc12424758 100644 --- a/Items/Weapons/Ranged/CoralCannon.cs +++ b/Items/Weapons/Ranged/CoralCannon.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.crit += 10; item.useTime = 30; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Ranged/CorrodedCaustibow.cs b/Items/Weapons/Ranged/CorrodedCaustibow.cs index 748e92202f..487a68ca53 100644 --- a/Items/Weapons/Ranged/CorrodedCaustibow.cs +++ b/Items/Weapons/Ranged/CorrodedCaustibow.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.crit += 20; item.useTime = 45; item.useAnimation = 45; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/CosmicBolter.cs b/Items/Weapons/Ranged/CosmicBolter.cs index ac01336e13..520971a077 100644 --- a/Items/Weapons/Ranged/CosmicBolter.cs +++ b/Items/Weapons/Ranged/CosmicBolter.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 76; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.75f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Ranged/CursedCapper.cs b/Items/Weapons/Ranged/CursedCapper.cs index d8e224cffa..f4d6636b88 100644 --- a/Items/Weapons/Ranged/CursedCapper.cs +++ b/Items/Weapons/Ranged/CursedCapper.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 32; item.useTime = 10; item.useAnimation = 10; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.25f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/DaemonsFlame.cs b/Items/Weapons/Ranged/DaemonsFlame.cs index c5e2504f85..0840edaa83 100644 --- a/Items/Weapons/Ranged/DaemonsFlame.cs +++ b/Items/Weapons/Ranged/DaemonsFlame.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 128; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 4f; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; diff --git a/Items/Weapons/Ranged/DarkechoGreatbow.cs b/Items/Weapons/Ranged/DarkechoGreatbow.cs index 207225e6f3..21772861cb 100644 --- a/Items/Weapons/Ranged/DarkechoGreatbow.cs +++ b/Items/Weapons/Ranged/DarkechoGreatbow.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 62; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 12f; item.useAmmo = 40; } diff --git a/Items/Weapons/Ranged/Deathwind.cs b/Items/Weapons/Ranged/Deathwind.cs index 9b04611136..b5ee19e731 100644 --- a/Items/Weapons/Ranged/Deathwind.cs +++ b/Items/Weapons/Ranged/Deathwind.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 82; item.useTime = 14; item.useAnimation = 14; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Ranged/DodusHandcannon.cs b/Items/Weapons/Ranged/DodusHandcannon.cs index 439445107c..dd8386ed70 100644 --- a/Items/Weapons/Ranged/DodusHandcannon.cs +++ b/Items/Weapons/Ranged/DodusHandcannon.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.ranged = true; item.useTime = 30; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 10f; diff --git a/Items/Weapons/Ranged/DragonsBreath.cs b/Items/Weapons/Ranged/DragonsBreath.cs index 75d25cade5..42b8c5e8e8 100644 --- a/Items/Weapons/Ranged/DragonsBreath.cs +++ b/Items/Weapons/Ranged/DragonsBreath.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 28; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6.5f; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.UseSound = SoundID.Item36; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 12f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.DarkBlue; diff --git a/Items/Weapons/Ranged/Drataliornus.cs b/Items/Weapons/Ranged/Drataliornus.cs index a8da8a5f06..b6f437caf7 100644 --- a/Items/Weapons/Ranged/Drataliornus.cs +++ b/Items/Weapons/Ranged/Drataliornus.cs @@ -27,7 +27,7 @@ Right click to fire two devastating barrages of five empowered fireballs. item.damage = 700; item.knockBack = 1f; item.shootSpeed = 18f; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useAnimation = 10; item.useTime = 10; item.reuseDelay = 0; diff --git a/Items/Weapons/Ranged/Dualpoon.cs b/Items/Weapons/Ranged/Dualpoon.cs index 32016ec261..5a82517b10 100644 --- a/Items/Weapons/Ranged/Dualpoon.cs +++ b/Items/Weapons/Ranged/Dualpoon.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 28; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6.5f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/EffluviumBow.cs b/Items/Weapons/Ranged/EffluviumBow.cs index fb4397f7fe..3e1e2011b8 100644 --- a/Items/Weapons/Ranged/EffluviumBow.cs +++ b/Items/Weapons/Ranged/EffluviumBow.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 70; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/ElementalBlaster.cs b/Items/Weapons/Ranged/ElementalBlaster.cs index 6f962e4f9b..272df50d82 100644 --- a/Items/Weapons/Ranged/ElementalBlaster.cs +++ b/Items/Weapons/Ranged/ElementalBlaster.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 42; item.useTime = 2; item.useAnimation = 6; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.75f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Ranged/ElementalEruption.cs b/Items/Weapons/Ranged/ElementalEruption.cs index 983132859b..2a1968c3f7 100644 --- a/Items/Weapons/Ranged/ElementalEruption.cs +++ b/Items/Weapons/Ranged/ElementalEruption.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 34; item.useTime = 7; item.useAnimation = 14; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.UseSound = SoundID.Item34; diff --git a/Items/Weapons/Ranged/EternalBlizzard.cs b/Items/Weapons/Ranged/EternalBlizzard.cs index f0bf745c2d..3e321751a6 100644 --- a/Items/Weapons/Ranged/EternalBlizzard.cs +++ b/Items/Weapons/Ranged/EternalBlizzard.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 62; item.useTime = 18; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTurn = false; item.noMelee = true; item.knockBack = 3f; diff --git a/Items/Weapons/Ranged/Eviscerator.cs b/Items/Weapons/Ranged/Eviscerator.cs index c0233eaebc..f2a040e334 100644 --- a/Items/Weapons/Ranged/Eviscerator.cs +++ b/Items/Weapons/Ranged/Eviscerator.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.crit += 25; item.useTime = 60; item.useAnimation = 60; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Ranged/FetidEmesis.cs b/Items/Weapons/Ranged/FetidEmesis.cs index 92462ddbf0..d6b97883e0 100644 --- a/Items/Weapons/Ranged/FetidEmesis.cs +++ b/Items/Weapons/Ranged/FetidEmesis.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.rare = 10; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 16f; item.useAmmo = AmmoID.Bullet; } diff --git a/Items/Weapons/Ranged/FirestormCannon.cs b/Items/Weapons/Ranged/FirestormCannon.cs index fda0b30f0f..a70fae6475 100644 --- a/Items/Weapons/Ranged/FirestormCannon.cs +++ b/Items/Weapons/Ranged/FirestormCannon.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 28; item.useTime = 9; item.useAnimation = 9; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = 163; + item.shoot = ProjectileID.Flare; item.shootSpeed = 5.5f; item.useAmmo = 931; } diff --git a/Items/Weapons/Ranged/FlakKraken.cs b/Items/Weapons/Ranged/FlakKraken.cs index 3c6685cf26..ce2117d615 100644 --- a/Items/Weapons/Ranged/FlakKraken.cs +++ b/Items/Weapons/Ranged/FlakKraken.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 10; item.useAnimation = 10; item.reuseDelay = 5; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.noUseGraphic = true; item.channel = true; diff --git a/Items/Weapons/Ranged/FlakToxicannon.cs b/Items/Weapons/Ranged/FlakToxicannon.cs index 40f669e2ec..4ba63f8dab 100644 --- a/Items/Weapons/Ranged/FlakToxicannon.cs +++ b/Items/Weapons/Ranged/FlakToxicannon.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.width = 88; item.height = 28; item.useTime = item.useAnimation = 13; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTurn = false; item.noMelee = true; item.knockBack = 7f; diff --git a/Items/Weapons/Ranged/FlarewingBow.cs b/Items/Weapons/Ranged/FlarewingBow.cs index be2afe56c7..e84d56e2c8 100644 --- a/Items/Weapons/Ranged/FlarewingBow.cs +++ b/Items/Weapons/Ranged/FlarewingBow.cs @@ -24,14 +24,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 62; item.useTime = 30; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 1; + item.shoot = ProjectileID.WoodenArrowFriendly; item.shootSpeed = 16f; item.useAmmo = 40; } diff --git a/Items/Weapons/Ranged/FlurrystormCannon.cs b/Items/Weapons/Ranged/FlurrystormCannon.cs index 98dea6a3bc..84a3b25bc1 100644 --- a/Items/Weapons/Ranged/FlurrystormCannon.cs +++ b/Items/Weapons/Ranged/FlurrystormCannon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 34; item.useTime = 8; item.useAnimation = 8; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 1.2f; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; diff --git a/Items/Weapons/Ranged/FrostbiteBlaster.cs b/Items/Weapons/Ranged/FrostbiteBlaster.cs index 8f4eb1103d..9bfbb41b24 100644 --- a/Items/Weapons/Ranged/FrostbiteBlaster.cs +++ b/Items/Weapons/Ranged/FrostbiteBlaster.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 7; item.useAnimation = 21; item.reuseDelay = 54; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTurn = false; item.noMelee = true; item.knockBack = 5f; diff --git a/Items/Weapons/Ranged/Fungicide.cs b/Items/Weapons/Ranged/Fungicide.cs index 68b9373d22..a7d097672a 100644 --- a/Items/Weapons/Ranged/Fungicide.cs +++ b/Items/Weapons/Ranged/Fungicide.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 26; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Ranged/Galeforce.cs b/Items/Weapons/Ranged/Galeforce.cs index 83f2673b55..5a943c7e28 100644 --- a/Items/Weapons/Ranged/Galeforce.cs +++ b/Items/Weapons/Ranged/Galeforce.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 52; item.useTime = 17; item.useAnimation = 17; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 3; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 20f; item.useAmmo = 40; } diff --git a/Items/Weapons/Ranged/GoldenEagle.cs b/Items/Weapons/Ranged/GoldenEagle.cs index 38a541081c..7d4db85f6c 100644 --- a/Items/Weapons/Ranged/GoldenEagle.cs +++ b/Items/Weapons/Ranged/GoldenEagle.cs @@ -22,13 +22,13 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 10; item.useAnimation = 10; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 3f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.UseSound = SoundID.Item41; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 20f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.Turquoise; diff --git a/Items/Weapons/Ranged/Goobow.cs b/Items/Weapons/Ranged/Goobow.cs index 537d49b6c8..c3d63b9085 100644 --- a/Items/Weapons/Ranged/Goobow.cs +++ b/Items/Weapons/Ranged/Goobow.cs @@ -22,14 +22,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 50; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(0, 12, 0, 0); item.rare = 4; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 12f; item.useAmmo = 40; } diff --git a/Items/Weapons/Ranged/GreatbowofTurmoil.cs b/Items/Weapons/Ranged/GreatbowofTurmoil.cs index ad58129904..e450153f54 100644 --- a/Items/Weapons/Ranged/GreatbowofTurmoil.cs +++ b/Items/Weapons/Ranged/GreatbowofTurmoil.cs @@ -24,14 +24,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 36; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 17f; item.useAmmo = 40; } diff --git a/Items/Weapons/Ranged/GunkShot.cs b/Items/Weapons/Ranged/GunkShot.cs index fb967e555c..f4f5f43a13 100644 --- a/Items/Weapons/Ranged/GunkShot.cs +++ b/Items/Weapons/Ranged/GunkShot.cs @@ -22,14 +22,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 32; item.useAnimation = 32; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(0, 12, 0, 0); item.rare = 4; item.UseSound = SoundID.Item36; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 5f; item.useAmmo = 97; } diff --git a/Items/Weapons/Ranged/HalibutCannon.cs b/Items/Weapons/Ranged/HalibutCannon.cs index d6bc60d761..464f2bcce8 100644 --- a/Items/Weapons/Ranged/HalibutCannon.cs +++ b/Items/Weapons/Ranged/HalibutCannon.cs @@ -22,14 +22,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 54; item.useTime = 10; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.rare = 10; item.noMelee = true; item.knockBack = 1f; item.value = Item.buyPrice(1, 0, 0, 0); item.UseSound = SoundID.Item38; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 12f; item.useAmmo = 97; } diff --git a/Items/Weapons/Ranged/HalleysInferno.cs b/Items/Weapons/Ranged/HalleysInferno.cs index 9520c9fdc6..483079d09c 100644 --- a/Items/Weapons/Ranged/HalleysInferno.cs +++ b/Items/Weapons/Ranged/HalleysInferno.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 34; item.useTime = 30; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.UseSound = SoundID.Item34; diff --git a/Items/Weapons/Ranged/HandheldTank.cs b/Items/Weapons/Ranged/HandheldTank.cs index 8d3f0e7b60..a06e8e1fab 100644 --- a/Items/Weapons/Ranged/HandheldTank.cs +++ b/Items/Weapons/Ranged/HandheldTank.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useAnimation = 71; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/TankCannon"); item.noMelee = true; diff --git a/Items/Weapons/Ranged/HeavenlyGale.cs b/Items/Weapons/Ranged/HeavenlyGale.cs index 7807f30b9e..e9f0bb684b 100644 --- a/Items/Weapons/Ranged/HeavenlyGale.cs +++ b/Items/Weapons/Ranged/HeavenlyGale.cs @@ -29,14 +29,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 58; item.useTime = 11; item.useAnimation = 22; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(2, 50, 0, 0); item.rare = 10; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 1; + item.shoot = ProjectileID.WoodenArrowFriendly; item.shootSpeed = 17f; item.useAmmo = 40; item.Calamity().customRarity = CalamityRarity.Violet; diff --git a/Items/Weapons/Ranged/Hellborn.cs b/Items/Weapons/Ranged/Hellborn.cs index 5653451a36..a3ba1b9d97 100644 --- a/Items/Weapons/Ranged/Hellborn.cs +++ b/Items/Weapons/Ranged/Hellborn.cs @@ -22,13 +22,13 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 9; item.useAnimation = 9; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 1f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 14f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.RareVariant; diff --git a/Items/Weapons/Ranged/Helstorm.cs b/Items/Weapons/Ranged/Helstorm.cs index 5dc282e178..8abd01de1c 100644 --- a/Items/Weapons/Ranged/Helstorm.cs +++ b/Items/Weapons/Ranged/Helstorm.cs @@ -23,13 +23,13 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 7; item.useAnimation = 7; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 11.5f; item.useAmmo = 97; } diff --git a/Items/Weapons/Ranged/Impaler.cs b/Items/Weapons/Ranged/Impaler.cs index c17a6e0fc7..59314c0b2a 100644 --- a/Items/Weapons/Ranged/Impaler.cs +++ b/Items/Weapons/Ranged/Impaler.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 26; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Ranged/Infinity.cs b/Items/Weapons/Ranged/Infinity.cs index a7d55b5804..822326f822 100644 --- a/Items/Weapons/Ranged/Infinity.cs +++ b/Items/Weapons/Ranged/Infinity.cs @@ -28,14 +28,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 2; item.reuseDelay = 6; item.useAnimation = 1800; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.UseSound = SoundID.Item31; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 12f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.RareVariant; diff --git a/Items/Weapons/Ranged/Interfacer.cs b/Items/Weapons/Ranged/Interfacer.cs index 8865cacdc7..e2ca5b631a 100644 --- a/Items/Weapons/Ranged/Interfacer.cs +++ b/Items/Weapons/Ranged/Interfacer.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 23; item.useAnimation = 23; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4.5f; item.value = Item.buyPrice(1, 20, 0, 0); @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.UseSound = SoundID.Item38; item.autoReuse = true; item.shootSpeed = 13f; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.Turquoise; } diff --git a/Items/Weapons/Ranged/Karasawa.cs b/Items/Weapons/Ranged/Karasawa.cs index b3c2e0ece9..2f4d4081da 100644 --- a/Items/Weapons/Ranged/Karasawa.cs +++ b/Items/Weapons/Ranged/Karasawa.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useAnimation = 52; item.autoReuse = true; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/MechGaussRifle"); item.noMelee = true; diff --git a/Items/Weapons/Ranged/LeadWizard.cs b/Items/Weapons/Ranged/LeadWizard.cs index 8c8aff1999..7c592996ee 100644 --- a/Items/Weapons/Ranged/LeadWizard.cs +++ b/Items/Weapons/Ranged/LeadWizard.cs @@ -24,14 +24,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 3; item.reuseDelay = 12; item.useAnimation = 9; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.UseSound = SoundID.Item31; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 20f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.RareVariant; diff --git a/Items/Weapons/Ranged/Leviatitan.cs b/Items/Weapons/Ranged/Leviatitan.cs index fd7697881e..860f4ecf2a 100644 --- a/Items/Weapons/Ranged/Leviatitan.cs +++ b/Items/Weapons/Ranged/Leviatitan.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 28; item.useTime = 9; item.useAnimation = 9; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Ranged/LunarianBow.cs b/Items/Weapons/Ranged/LunarianBow.cs index 357d639795..38a62c1498 100644 --- a/Items/Weapons/Ranged/LunarianBow.cs +++ b/Items/Weapons/Ranged/LunarianBow.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 62; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 12, 0, 0); diff --git a/Items/Weapons/Ranged/MagnaStriker.cs b/Items/Weapons/Ranged/MagnaStriker.cs index c04ddef551..bada51268d 100644 --- a/Items/Weapons/Ranged/MagnaStriker.cs +++ b/Items/Weapons/Ranged/MagnaStriker.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 5; item.reuseDelay = 6; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.25f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Ranged/MagnomalyCannon.cs b/Items/Weapons/Ranged/MagnomalyCannon.cs index 46b8b7340f..ac425bae1e 100644 --- a/Items/Weapons/Ranged/MagnomalyCannon.cs +++ b/Items/Weapons/Ranged/MagnomalyCannon.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 9.5f; item.UseSound = SoundID.Item11; diff --git a/Items/Weapons/Ranged/Malevolence.cs b/Items/Weapons/Ranged/Malevolence.cs index 2d8577923d..178fe4cafb 100644 --- a/Items/Weapons/Ranged/Malevolence.cs +++ b/Items/Weapons/Ranged/Malevolence.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 58; item.useTime = 18; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Ranged/MandibleBow.cs b/Items/Weapons/Ranged/MandibleBow.cs index 130b862c23..c07ea8e099 100644 --- a/Items/Weapons/Ranged/MandibleBow.cs +++ b/Items/Weapons/Ranged/MandibleBow.cs @@ -20,14 +20,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 40; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 1, 0, 0); item.rare = 1; item.UseSound = SoundID.Item5; item.autoReuse = false; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 30f; item.useAmmo = 40; } diff --git a/Items/Weapons/Ranged/MarniteRifleSpear.cs b/Items/Weapons/Ranged/MarniteRifleSpear.cs index f462e8f6af..c51dad9a98 100644 --- a/Items/Weapons/Ranged/MarniteRifleSpear.cs +++ b/Items/Weapons/Ranged/MarniteRifleSpear.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 20; item.useTime = 28; item.useAnimation = 28; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 2.25f; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.autoReuse = true; item.shootSpeed = 22f; item.useAmmo = 97; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; } public override void AddRecipes() diff --git a/Items/Weapons/Ranged/Megafleet.cs b/Items/Weapons/Ranged/Megafleet.cs index bc000c72d3..b804555cb7 100644 --- a/Items/Weapons/Ranged/Megafleet.cs +++ b/Items/Weapons/Ranged/Megafleet.cs @@ -24,14 +24,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 38; item.useTime = 5; item.useAnimation = 5; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 18f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.Developer; diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index 5bdc398647..c97ada1a85 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 32; item.useTime = 6; item.useAnimation = 6; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 16f; item.useAmmo = 97; } diff --git a/Items/Weapons/Ranged/Meowthrower.cs b/Items/Weapons/Ranged/Meowthrower.cs index a3a7a49b2c..d093097adc 100644 --- a/Items/Weapons/Ranged/Meowthrower.cs +++ b/Items/Weapons/Ranged/Meowthrower.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 10; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.25f; item.UseSound = SoundID.Item34; diff --git a/Items/Weapons/Ranged/MepheticSprayer.cs b/Items/Weapons/Ranged/MepheticSprayer.cs index 323b676624..b81d3cc519 100644 --- a/Items/Weapons/Ranged/MepheticSprayer.cs +++ b/Items/Weapons/Ranged/MepheticSprayer.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 36; item.useTime = 10; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.UseSound = SoundID.Item34; diff --git a/Items/Weapons/Ranged/MineralMortar.cs b/Items/Weapons/Ranged/MineralMortar.cs index be4953ee6a..bb3f6d1a3b 100644 --- a/Items/Weapons/Ranged/MineralMortar.cs +++ b/Items/Weapons/Ranged/MineralMortar.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 26; item.useTime = 33; item.useAnimation = 33; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/Minigun.cs b/Items/Weapons/Ranged/Minigun.cs index e5f29a1062..cdb0dc96c5 100644 --- a/Items/Weapons/Ranged/Minigun.cs +++ b/Items/Weapons/Ranged/Minigun.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 34; item.useTime = 3; item.useAnimation = 3; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.UseSound = SoundID.Item41; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 22f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.DarkBlue; diff --git a/Items/Weapons/Ranged/MolecularManipulator.cs b/Items/Weapons/Ranged/MolecularManipulator.cs index cfc0c3929e..c1ca27efe4 100644 --- a/Items/Weapons/Ranged/MolecularManipulator.cs +++ b/Items/Weapons/Ranged/MolecularManipulator.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 8f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Ranged/Monsoon.cs b/Items/Weapons/Ranged/Monsoon.cs index 6bca8a0224..95b6cb3235 100644 --- a/Items/Weapons/Ranged/Monsoon.cs +++ b/Items/Weapons/Ranged/Monsoon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 78; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Ranged/Needler.cs b/Items/Weapons/Ranged/Needler.cs index 1ab60c3910..d2fd642406 100644 --- a/Items/Weapons/Ranged/Needler.cs +++ b/Items/Weapons/Ranged/Needler.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 26; item.useTime = 18; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/NettlelineGreatbow.cs b/Items/Weapons/Ranged/NettlelineGreatbow.cs index 4d81612587..10efe736e6 100644 --- a/Items/Weapons/Ranged/NettlelineGreatbow.cs +++ b/Items/Weapons/Ranged/NettlelineGreatbow.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 64; item.useTime = 17; item.useAnimation = 17; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 16f; item.useAmmo = 40; item.Calamity().customRarity = CalamityRarity.Turquoise; diff --git a/Items/Weapons/Ranged/Norfleet.cs b/Items/Weapons/Ranged/Norfleet.cs index 475e69dd03..84778f3741 100644 --- a/Items/Weapons/Ranged/Norfleet.cs +++ b/Items/Weapons/Ranged/Norfleet.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.damage = 1000; item.knockBack = 15f; item.shootSpeed = 30f; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useAnimation = 75; item.useTime = 75; item.reuseDelay = 0; diff --git a/Items/Weapons/Ranged/NullificationRifle.cs b/Items/Weapons/Ranged/NullificationRifle.cs index 4c0e8d9019..b04a77e85b 100644 --- a/Items/Weapons/Ranged/NullificationRifle.cs +++ b/Items/Weapons/Ranged/NullificationRifle.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Ranged/OnyxChainBlaster.cs b/Items/Weapons/Ranged/OnyxChainBlaster.cs index edd0d1463d..6c21317f68 100644 --- a/Items/Weapons/Ranged/OnyxChainBlaster.cs +++ b/Items/Weapons/Ranged/OnyxChainBlaster.cs @@ -22,14 +22,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 32; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4.5f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.UseSound = SoundID.Item36; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 24f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.Turquoise; diff --git a/Items/Weapons/Ranged/Onyxia.cs b/Items/Weapons/Ranged/Onyxia.cs index 1d286f5b93..ba192d21bd 100644 --- a/Items/Weapons/Ranged/Onyxia.cs +++ b/Items/Weapons/Ranged/Onyxia.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -26,14 +26,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 34; item.useTime = 9; item.useAnimation = 9; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4.5f; item.value = Item.buyPrice(2, 50, 0, 0); item.rare = 10; item.UseSound = SoundID.Item36; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; // wait why item.shootSpeed = 28f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.Violet; diff --git a/Items/Weapons/Ranged/OpalStriker.cs b/Items/Weapons/Ranged/OpalStriker.cs index 672f5635f7..2334271703 100644 --- a/Items/Weapons/Ranged/OpalStriker.cs +++ b/Items/Weapons/Ranged/OpalStriker.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 5; item.reuseDelay = 25; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 0f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Ranged/OverloadedBlaster.cs b/Items/Weapons/Ranged/OverloadedBlaster.cs index 820db43ae8..bca705351f 100644 --- a/Items/Weapons/Ranged/OverloadedBlaster.cs +++ b/Items/Weapons/Ranged/OverloadedBlaster.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 34; item.useTime = 17; item.useAnimation = 17; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.value = Item.buyPrice(0, 12, 0, 0); diff --git a/Items/Weapons/Ranged/P90.cs b/Items/Weapons/Ranged/P90.cs index ea248f11b0..011b5ff209 100644 --- a/Items/Weapons/Ranged/P90.cs +++ b/Items/Weapons/Ranged/P90.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 28; item.useTime = 2; item.useAnimation = 2; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 18f; item.useAmmo = 97; } diff --git a/Items/Weapons/Ranged/PaintballBlaster.cs b/Items/Weapons/Ranged/PaintballBlaster.cs index aa40eebd21..9ddd9dfc9e 100644 --- a/Items/Weapons/Ranged/PaintballBlaster.cs +++ b/Items/Weapons/Ranged/PaintballBlaster.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useAnimation = 24; item.reuseDelay = 9; item.useTime = 4; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.25f; item.value = Item.buyPrice(0, 36, 0, 0); @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.UseSound = null; item.autoReuse = true; item.shootSpeed = 20f; - item.shoot = 587; + item.shoot = ProjectileID.PainterPaintball; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) @@ -62,7 +62,7 @@ namespace CalamityMod.Items.Weapons.Ranged { vector2 += new Vector2(num208, num209); } - Projectile.NewProjectile(position.X, position.Y - player.gravDir * 4f, num208, num209, 587, damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(12) / 6f); + Projectile.NewProjectile(position.X, position.Y - player.gravDir * 4f, num208, num209, ProjectileID.PainterPaintball, damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(12) / 6f); return false; } diff --git a/Items/Weapons/Ranged/PearlGod.cs b/Items/Weapons/Ranged/PearlGod.cs index 9a7dafaf4a..516e4fc598 100644 --- a/Items/Weapons/Ranged/PearlGod.cs +++ b/Items/Weapons/Ranged/PearlGod.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 32; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Ranged/PestilentDefiler.cs b/Items/Weapons/Ranged/PestilentDefiler.cs index 5d356ae7d5..f800ed5ca8 100644 --- a/Items/Weapons/Ranged/PestilentDefiler.cs +++ b/Items/Weapons/Ranged/PestilentDefiler.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 20; item.useTime = 37; item.useAnimation = 37; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 9.5f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Ranged/Phangasm.cs b/Items/Weapons/Ranged/Phangasm.cs index f18afe61dd..e6ec1a1eee 100644 --- a/Items/Weapons/Ranged/Phangasm.cs +++ b/Items/Weapons/Ranged/Phangasm.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 12; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 3f; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; diff --git a/Items/Weapons/Ranged/PlanetaryAnnihilation.cs b/Items/Weapons/Ranged/PlanetaryAnnihilation.cs index b0c8f47790..0b35ec650a 100644 --- a/Items/Weapons/Ranged/PlanetaryAnnihilation.cs +++ b/Items/Weapons/Ranged/PlanetaryAnnihilation.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 102; item.useTime = 23; item.useAnimation = 23; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Ranged/PrideHuntersPlanarRipper.cs b/Items/Weapons/Ranged/PrideHuntersPlanarRipper.cs index 80f27431fd..61fa7e259e 100644 --- a/Items/Weapons/Ranged/PrideHuntersPlanarRipper.cs +++ b/Items/Weapons/Ranged/PrideHuntersPlanarRipper.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 32; item.useTime = 5; item.useAnimation = 5; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1f; item.value = CalamityGlobalItem.Rarity12BuyPrice; diff --git a/Items/Weapons/Ranged/PristineFury.cs b/Items/Weapons/Ranged/PristineFury.cs index ebac376c63..4976c299d0 100644 --- a/Items/Weapons/Ranged/PristineFury.cs +++ b/Items/Weapons/Ranged/PristineFury.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 44; item.useTime = 3; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.rare = 10; diff --git a/Items/Weapons/Ranged/ProporsePistol.cs b/Items/Weapons/Ranged/ProporsePistol.cs index 02947b9352..d0b2542485 100644 --- a/Items/Weapons/Ranged/ProporsePistol.cs +++ b/Items/Weapons/Ranged/ProporsePistol.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 20; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/Pumpler.cs b/Items/Weapons/Ranged/Pumpler.cs index 365f92a458..1ef6a68d5a 100644 --- a/Items/Weapons/Ranged/Pumpler.cs +++ b/Items/Weapons/Ranged/Pumpler.cs @@ -22,14 +22,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 36; item.useTime = 10; item.useAnimation = 10; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.25f; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 11f; item.useAmmo = 97; } diff --git a/Items/Weapons/Ranged/RaidersGlory.cs b/Items/Weapons/Ranged/RaidersGlory.cs index 0e0b3a749a..ade619b15f 100644 --- a/Items/Weapons/Ranged/RaidersGlory.cs +++ b/Items/Weapons/Ranged/RaidersGlory.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 22; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.25f; item.value = Item.buyPrice(0, 36, 0, 0); item.rare = 5; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 15f; item.useAmmo = 40; } diff --git a/Items/Weapons/Ranged/RealmRavager.cs b/Items/Weapons/Ranged/RealmRavager.cs index 31636ef2d9..9765a18abc 100644 --- a/Items/Weapons/Ranged/RealmRavager.cs +++ b/Items/Weapons/Ranged/RealmRavager.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 32; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(0, 80, 0, 0); @@ -38,7 +38,8 @@ namespace CalamityMod.Items.Weapons.Ranged public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - for (int index = 0; index < Main.rand.Next(3,5); ++index) //3 to 4 bullets + int numBullets = Main.rand.NextBool() ? 4 : 3; + for (int index = 0; index < numBullets; ++index) { float SpeedX = speedX + (float)Main.rand.Next(-75, 76) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-75, 76) * 0.05f; diff --git a/Items/Weapons/Ranged/SDFMG.cs b/Items/Weapons/Ranged/SDFMG.cs index fcae1c8324..e47beef7b9 100644 --- a/Items/Weapons/Ranged/SDFMG.cs +++ b/Items/Weapons/Ranged/SDFMG.cs @@ -27,14 +27,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.crit += 15; item.useTime = 2; item.useAnimation = 2; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.75f; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 16f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.DarkBlue; diff --git a/Items/Weapons/Ranged/SandstormGun.cs b/Items/Weapons/Ranged/SandstormGun.cs index 2d08dff1ef..f07dc2539c 100644 --- a/Items/Weapons/Ranged/SandstormGun.cs +++ b/Items/Weapons/Ranged/SandstormGun.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 26; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Ranged/Scorpion.cs b/Items/Weapons/Ranged/Scorpion.cs index af08c157ad..7febcd2dcb 100644 --- a/Items/Weapons/Ranged/Scorpion.cs +++ b/Items/Weapons/Ranged/Scorpion.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 26; item.useTime = 14; item.useAnimation = 14; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6.5f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Ranged/Seabow.cs b/Items/Weapons/Ranged/Seabow.cs index 83d15e5146..e1f677c778 100644 --- a/Items/Weapons/Ranged/Seabow.cs +++ b/Items/Weapons/Ranged/Seabow.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 46; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 16f; item.useAmmo = 40; } diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index 714c5edd53..5166b370dd 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -25,14 +25,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 26; item.useTime = 5; item.useAnimation = 5; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.UseSound = SoundID.Item11; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 16f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.PureGreen; diff --git a/Items/Weapons/Ranged/SeasSearing.cs b/Items/Weapons/Ranged/SeasSearing.cs index 8683c91dab..f806265a32 100644 --- a/Items/Weapons/Ranged/SeasSearing.cs +++ b/Items/Weapons/Ranged/SeasSearing.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 5; item.useAnimation = 15; item.reuseDelay = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.rare = 5; diff --git a/Items/Weapons/Ranged/SepticSkewer.cs b/Items/Weapons/Ranged/SepticSkewer.cs index 9cb2ab7352..9285eeb90e 100644 --- a/Items/Weapons/Ranged/SepticSkewer.cs +++ b/Items/Weapons/Ranged/SepticSkewer.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Ranged/Shadethrower.cs b/Items/Weapons/Ranged/Shadethrower.cs index 80d3876a84..ccb34cce8a 100644 --- a/Items/Weapons/Ranged/Shadethrower.cs +++ b/Items/Weapons/Ranged/Shadethrower.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 10; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.UseSound = SoundID.Item34; diff --git a/Items/Weapons/Ranged/Shellshooter.cs b/Items/Weapons/Ranged/Shellshooter.cs index 7858e7c7f2..d6d1c91932 100644 --- a/Items/Weapons/Ranged/Shellshooter.cs +++ b/Items/Weapons/Ranged/Shellshooter.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.crit += 15; item.useTime = 70; item.useAnimation = 70; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Ranged/Shredder.cs b/Items/Weapons/Ranged/Shredder.cs index 36579f487f..adfc43918f 100644 --- a/Items/Weapons/Ranged/Shredder.cs +++ b/Items/Weapons/Ranged/Shredder.cs @@ -26,14 +26,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 4; item.reuseDelay = 12; item.useAnimation = 32; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.UseSound = SoundID.Item31; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 12f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.Turquoise; diff --git a/Items/Weapons/Ranged/Shroomer.cs b/Items/Weapons/Ranged/Shroomer.cs index 35de462bed..aa8cd532d0 100644 --- a/Items/Weapons/Ranged/Shroomer.cs +++ b/Items/Weapons/Ranged/Shroomer.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.crit += 35; item.useTime = 27; item.useAnimation = 27; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 9.75f; item.value = Item.buyPrice(0, 95, 0, 0); item.rare = 9; item.UseSound = SoundID.Item40; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 10f; item.useAmmo = 97; } diff --git a/Items/Weapons/Ranged/Skullmasher.cs b/Items/Weapons/Ranged/Skullmasher.cs index 7208b6c37b..e695dd2781 100644 --- a/Items/Weapons/Ranged/Skullmasher.cs +++ b/Items/Weapons/Ranged/Skullmasher.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { @@ -22,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 60; item.useAnimation = 60; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaBlast"); item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 12f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.RareVariant; diff --git a/Items/Weapons/Ranged/SlagMagnum.cs b/Items/Weapons/Ranged/SlagMagnum.cs index 3c2ef5dd32..5ee03954bf 100644 --- a/Items/Weapons/Ranged/SlagMagnum.cs +++ b/Items/Weapons/Ranged/SlagMagnum.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/SomaPrime.cs b/Items/Weapons/Ranged/SomaPrime.cs index 7eb0145fe7..38ed410cb8 100644 --- a/Items/Weapons/Ranged/SomaPrime.cs +++ b/Items/Weapons/Ranged/SomaPrime.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.crit += 40; item.useTime = 2; item.useAnimation = 2; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(5, 0, 0, 0); diff --git a/Items/Weapons/Ranged/SparkSpreader.cs b/Items/Weapons/Ranged/SparkSpreader.cs index 34ad14ba87..5b9e319afc 100644 --- a/Items/Weapons/Ranged/SparkSpreader.cs +++ b/Items/Weapons/Ranged/SparkSpreader.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 20; item.useTime = 10; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1f; item.UseSound = SoundID.Item34; diff --git a/Items/Weapons/Ranged/SpectralstormCannon.cs b/Items/Weapons/Ranged/SpectralstormCannon.cs index 68117e29b6..e6dbb7e5c7 100644 --- a/Items/Weapons/Ranged/SpectralstormCannon.cs +++ b/Items/Weapons/Ranged/SpectralstormCannon.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 26; item.useTime = 4; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 1.5f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Ranged/SpectreRifle.cs b/Items/Weapons/Ranged/SpectreRifle.cs index de4406722f..ff79224e6c 100644 --- a/Items/Weapons/Ranged/SpectreRifle.cs +++ b/Items/Weapons/Ranged/SpectreRifle.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.crit += 22; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.UseSound = SoundID.Item40; item.autoReuse = false; - item.shoot = 297; + item.shoot = ProjectileID.LostSoulFriendly; item.shootSpeed = 24f; item.useAmmo = 97; } @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - int proj = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, 297, damage, knockBack, player.whoAmI, 0f, 0f); + int proj = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ProjectileID.LostSoulFriendly, damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[proj].Calamity().forceRanged = true; return false; } diff --git a/Items/Weapons/Ranged/Spyker.cs b/Items/Weapons/Ranged/Spyker.cs index 4cba9ae60c..63674d439d 100644 --- a/Items/Weapons/Ranged/Spyker.cs +++ b/Items/Weapons/Ranged/Spyker.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 26; item.useTime = 13; item.useAnimation = 13; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Ranged/StarCannonEX.cs b/Items/Weapons/Ranged/StarCannonEX.cs index 3e7337dc1b..4af049b1e6 100644 --- a/Items/Weapons/Ranged/StarCannonEX.cs +++ b/Items/Weapons/Ranged/StarCannonEX.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 22; item.useTime = 10; item.useAnimation = 10; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.rare = 7; item.noMelee = true; item.knockBack = 8f; diff --git a/Items/Weapons/Ranged/StarSputter.cs b/Items/Weapons/Ranged/StarSputter.cs index a39cf362a0..a100ad0ece 100644 --- a/Items/Weapons/Ranged/StarSputter.cs +++ b/Items/Weapons/Ranged/StarSputter.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 8; item.reuseDelay = 15; item.useAnimation = 24; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 15f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Ranged/Starfleet.cs b/Items/Weapons/Ranged/Starfleet.cs index bc079179e5..854eec0872 100644 --- a/Items/Weapons/Ranged/Starfleet.cs +++ b/Items/Weapons/Ranged/Starfleet.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 36; item.useTime = 55; item.useAnimation = 55; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 15f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Ranged/StarfleetMK2.cs b/Items/Weapons/Ranged/StarfleetMK2.cs index f60078e36b..abb70fb3c5 100644 --- a/Items/Weapons/Ranged/StarfleetMK2.cs +++ b/Items/Weapons/Ranged/StarfleetMK2.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.damage = 222; item.knockBack = 15f; item.shootSpeed = 16f; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useAnimation = 27; item.useTime = 27; item.reuseDelay = 0; diff --git a/Items/Weapons/Ranged/StellarCannon.cs b/Items/Weapons/Ranged/StellarCannon.cs index 62b679f2a1..2a7feab749 100644 --- a/Items/Weapons/Ranged/StellarCannon.cs +++ b/Items/Weapons/Ranged/StellarCannon.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 40; item.useAnimation = 40; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Ranged/StormDragoon.cs b/Items/Weapons/Ranged/StormDragoon.cs index 15d5db9778..9bca0f55a4 100644 --- a/Items/Weapons/Ranged/StormDragoon.cs +++ b/Items/Weapons/Ranged/StormDragoon.cs @@ -23,14 +23,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.useTime = 2; item.reuseDelay = 10; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.25f; item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.UseSound = SoundID.Item31; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 18f; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.PureGreen; diff --git a/Items/Weapons/Ranged/StormSurge.cs b/Items/Weapons/Ranged/StormSurge.cs index ffabd498be..79b2aeab93 100644 --- a/Items/Weapons/Ranged/StormSurge.cs +++ b/Items/Weapons/Ranged/StormSurge.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 22; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.UseSound = SoundID.Item122; diff --git a/Items/Weapons/Ranged/SulphuricAcidCannon.cs b/Items/Weapons/Ranged/SulphuricAcidCannon.cs index aba0c12e73..ef3377c279 100644 --- a/Items/Weapons/Ranged/SulphuricAcidCannon.cs +++ b/Items/Weapons/Ranged/SulphuricAcidCannon.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 18; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6f; item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Svantechnical.cs b/Items/Weapons/Ranged/Svantechnical.cs index 8bffd57e93..c33f24268b 100644 --- a/Items/Weapons/Ranged/Svantechnical.cs +++ b/Items/Weapons/Ranged/Svantechnical.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.useAnimation = 24; item.reuseDelay = 10; item.useTime = 2; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(5, 0, 0, 0); @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.UseSound = SoundID.Item31; item.autoReuse = true; item.shootSpeed = 12f; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.ItemSpecific; } diff --git a/Items/Weapons/Ranged/TelluricGlare.cs b/Items/Weapons/Ranged/TelluricGlare.cs index e85901230c..6ced351bc1 100644 --- a/Items/Weapons/Ranged/TelluricGlare.cs +++ b/Items/Weapons/Ranged/TelluricGlare.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 92; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Ranged/TerraFlameburster.cs b/Items/Weapons/Ranged/TerraFlameburster.cs index e038769d50..fd01f97192 100644 --- a/Items/Weapons/Ranged/TerraFlameburster.cs +++ b/Items/Weapons/Ranged/TerraFlameburster.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 22; item.useTime = 3; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.25f; item.UseSound = SoundID.Item34; diff --git a/Items/Weapons/Ranged/TheBallista.cs b/Items/Weapons/Ranged/TheBallista.cs index be663e605b..e2e2446527 100644 --- a/Items/Weapons/Ranged/TheBallista.cs +++ b/Items/Weapons/Ranged/TheBallista.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 70; item.useTime = 22; item.useAnimation = 22; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 8f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Ranged/TheEmpyrean.cs b/Items/Weapons/Ranged/TheEmpyrean.cs index 01c24d0243..0df599984b 100644 --- a/Items/Weapons/Ranged/TheEmpyrean.cs +++ b/Items/Weapons/Ranged/TheEmpyrean.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 6; item.useAnimation = 18; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.UseSound = SoundID.Item34; diff --git a/Items/Weapons/Ranged/TheHive.cs b/Items/Weapons/Ranged/TheHive.cs index ff9cd81e5f..96350ccf26 100644 --- a/Items/Weapons/Ranged/TheHive.cs +++ b/Items/Weapons/Ranged/TheHive.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 30; item.useTime = 21; item.useAnimation = 21; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Ranged/ThePack.cs b/Items/Weapons/Ranged/ThePack.cs index 3df35fcff6..6b4b4744c7 100644 --- a/Items/Weapons/Ranged/ThePack.cs +++ b/Items/Weapons/Ranged/ThePack.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 40; item.useTime = 52; item.useAnimation = 52; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.value = Item.buyPrice(1, 80, 0, 0); diff --git a/Items/Weapons/Ranged/TheStorm.cs b/Items/Weapons/Ranged/TheStorm.cs index 2c043519d2..edda608153 100644 --- a/Items/Weapons/Ranged/TheStorm.cs +++ b/Items/Weapons/Ranged/TheStorm.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 50; item.useTime = 7; item.useAnimation = 14; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Ranged/TitaniumRailgun.cs b/Items/Weapons/Ranged/TitaniumRailgun.cs index ca588121bf..117e1ae47c 100644 --- a/Items/Weapons/Ranged/TitaniumRailgun.cs +++ b/Items/Weapons/Ranged/TitaniumRailgun.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 32; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Ranged/Toxibow.cs b/Items/Weapons/Ranged/Toxibow.cs index ee6d94767b..96f44bd015 100644 --- a/Items/Weapons/Ranged/Toxibow.cs +++ b/Items/Weapons/Ranged/Toxibow.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.rare = 1; item.UseSound = SoundID.Item5; item.autoReuse = true; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 15f; item.useAmmo = AmmoID.Arrow; } diff --git a/Items/Weapons/Ranged/Triploon.cs b/Items/Weapons/Ranged/Triploon.cs index 6d425907f7..8b931de2b6 100644 --- a/Items/Weapons/Ranged/Triploon.cs +++ b/Items/Weapons/Ranged/Triploon.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 24; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 7.5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Ranged/TrueConferenceCall.cs b/Items/Weapons/Ranged/TrueConferenceCall.cs index 1cb6a55de5..e9aa772f86 100644 --- a/Items/Weapons/Ranged/TrueConferenceCall.cs +++ b/Items/Weapons/Ranged/TrueConferenceCall.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 26; item.useTime = 26; item.useAnimation = 26; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 4.5f; item.value = Item.buyPrice(0, 80, 0, 0); @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.UseSound = SoundID.Item38; item.autoReuse = true; item.shootSpeed = 18f; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.useAmmo = 97; item.Calamity().customRarity = CalamityRarity.RareVariant; } diff --git a/Items/Weapons/Ranged/Vortexpopper.cs b/Items/Weapons/Ranged/Vortexpopper.cs index 11a8f353fc..18b875c2f6 100644 --- a/Items/Weapons/Ranged/Vortexpopper.cs +++ b/Items/Weapons/Ranged/Vortexpopper.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 22; item.useTime = 16; item.useAnimation = 16; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3.25f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Ranged/WulfrumBow.cs b/Items/Weapons/Ranged/WulfrumBow.cs index a5b7b24805..6462f3e949 100644 --- a/Items/Weapons/Ranged/WulfrumBow.cs +++ b/Items/Weapons/Ranged/WulfrumBow.cs @@ -21,14 +21,14 @@ namespace CalamityMod.Items.Weapons.Ranged item.height = 56; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2.25f; item.value = Item.buyPrice(0, 1, 0, 0); item.rare = 1; item.UseSound = SoundID.Item5; item.autoReuse = false; - item.shoot = 10; + item.shoot = ProjectileID.PurificationPowder; item.shootSpeed = 12f; item.useAmmo = 40; } diff --git a/Items/Weapons/Rogue/AccretionDisk.cs b/Items/Weapons/Rogue/AccretionDisk.cs index 39fbd1f72d..b9852d9422 100644 --- a/Items/Weapons/Rogue/AccretionDisk.cs +++ b/Items/Weapons/Rogue/AccretionDisk.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 9f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/AdamantiteThrowingAxe.cs b/Items/Weapons/Rogue/AdamantiteThrowingAxe.cs index 0d6c75b87d..771fcdcee7 100644 --- a/Items/Weapons/Rogue/AdamantiteThrowingAxe.cs +++ b/Items/Weapons/Rogue/AdamantiteThrowingAxe.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 12; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 12; item.knockBack = 3.25f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/AlphaVirus.cs b/Items/Weapons/Rogue/AlphaVirus.cs index a2563c0223..fcb64f6b27 100644 --- a/Items/Weapons/Rogue/AlphaVirus.cs +++ b/Items/Weapons/Rogue/AlphaVirus.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 31; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 31; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/AshenStalactite.cs b/Items/Weapons/Rogue/AshenStalactite.cs index a41677b24f..e7ddae13ff 100644 --- a/Items/Weapons/Rogue/AshenStalactite.cs +++ b/Items/Weapons/Rogue/AshenStalactite.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/BallisticPoisonBomb.cs b/Items/Weapons/Rogue/BallisticPoisonBomb.cs index 1715ae47ab..8a896bd3f7 100644 --- a/Items/Weapons/Rogue/BallisticPoisonBomb.cs +++ b/Items/Weapons/Rogue/BallisticPoisonBomb.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 22; item.knockBack = 6.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/BlazingStar.cs b/Items/Weapons/Rogue/BlazingStar.cs index 8e22e2eb93..2426848aad 100644 --- a/Items/Weapons/Rogue/BlazingStar.cs +++ b/Items/Weapons/Rogue/BlazingStar.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.height = 1; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 4f; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = 4; diff --git a/Items/Weapons/Rogue/BloodsoakedCrasher.cs b/Items/Weapons/Rogue/BloodsoakedCrasher.cs index 175fd54ac9..fc756358c2 100644 --- a/Items/Weapons/Rogue/BloodsoakedCrasher.cs +++ b/Items/Weapons/Rogue/BloodsoakedCrasher.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 3f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/BouncySpikyBall.cs b/Items/Weapons/Rogue/BouncySpikyBall.cs index ab8d132080..e7ea6bde8c 100644 --- a/Items/Weapons/Rogue/BouncySpikyBall.cs +++ b/Items/Weapons/Rogue/BouncySpikyBall.cs @@ -23,7 +23,7 @@ Stealth strikes provide a bigger boost after richocheting"); item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/BrackishFlask.cs b/Items/Weapons/Rogue/BrackishFlask.cs index 2ac0c49937..483053e8bb 100644 --- a/Items/Weapons/Rogue/BrackishFlask.cs +++ b/Items/Weapons/Rogue/BrackishFlask.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 35; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 35; item.knockBack = 6.5f; item.UseSound = SoundID.Item106; diff --git a/Items/Weapons/Rogue/Brimblade.cs b/Items/Weapons/Rogue/Brimblade.cs index 3c0f1faf82..c7b2e18b7c 100644 --- a/Items/Weapons/Rogue/Brimblade.cs +++ b/Items/Weapons/Rogue/Brimblade.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 6.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/BurningStrife.cs b/Items/Weapons/Rogue/BurningStrife.cs index de2370dae1..b74e338755 100644 --- a/Items/Weapons/Rogue/BurningStrife.cs +++ b/Items/Weapons/Rogue/BurningStrife.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Items/Weapons/Rogue/Celestus.cs b/Items/Weapons/Rogue/Celestus.cs index 4bfccb67fe..75c4160d02 100644 --- a/Items/Weapons/Rogue/Celestus.cs +++ b/Items/Weapons/Rogue/Celestus.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 21; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 7; item.knockBack = 6f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Cinquedea.cs b/Items/Weapons/Rogue/Cinquedea.cs index cccb5f564d..94dde06ab3 100644 --- a/Items/Weapons/Rogue/Cinquedea.cs +++ b/Items/Weapons/Rogue/Cinquedea.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.autoReuse = true; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.width = 32; item.height = 32; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/CobaltKunai.cs b/Items/Weapons/Rogue/CobaltKunai.cs index f7d71dc102..ce7d94d42c 100644 --- a/Items/Weapons/Rogue/CobaltKunai.cs +++ b/Items/Weapons/Rogue/CobaltKunai.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 12; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 12; item.knockBack = 2.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/CorpusAvertor.cs b/Items/Weapons/Rogue/CorpusAvertor.cs index 3475a96cd1..5429079bfc 100644 --- a/Items/Weapons/Rogue/CorpusAvertor.cs +++ b/Items/Weapons/Rogue/CorpusAvertor.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 3f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/CosmicKunai.cs b/Items/Weapons/Rogue/CosmicKunai.cs index 68dd1c60d6..2f0e296443 100644 --- a/Items/Weapons/Rogue/CosmicKunai.cs +++ b/Items/Weapons/Rogue/CosmicKunai.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useTime = 2; item.useAnimation = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5f; item.UseSound = SoundID.Item109; item.autoReuse = true; @@ -34,7 +34,6 @@ namespace CalamityMod.Items.Weapons.Rogue item.rare = 10; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 28f; - item.rare = 9; item.Calamity().rogue = true; item.Calamity().customRarity = CalamityRarity.PureGreen; } diff --git a/Items/Weapons/Rogue/CraniumSmasher.cs b/Items/Weapons/Rogue/CraniumSmasher.cs index ddea0f89fc..2a1e7a4ca2 100644 --- a/Items/Weapons/Rogue/CraniumSmasher.cs +++ b/Items/Weapons/Rogue/CraniumSmasher.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 4f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/CrushsawCrasher.cs b/Items/Weapons/Rogue/CrushsawCrasher.cs index 7b97756049..ad2dd8e64e 100644 --- a/Items/Weapons/Rogue/CrushsawCrasher.cs +++ b/Items/Weapons/Rogue/CrushsawCrasher.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.width = 38; item.damage = 65; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 7f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/CrystalPiercer.cs b/Items/Weapons/Rogue/CrystalPiercer.cs index 1e5d561b4d..f27d2da7f3 100644 --- a/Items/Weapons/Rogue/CrystalPiercer.cs +++ b/Items/Weapons/Rogue/CrystalPiercer.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 17; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 17; item.knockBack = 6f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Crystalline.cs b/Items/Weapons/Rogue/Crystalline.cs index db54600b47..675602ca33 100644 --- a/Items/Weapons/Rogue/Crystalline.cs +++ b/Items/Weapons/Rogue/Crystalline.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 3f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/CursedDagger.cs b/Items/Weapons/Rogue/CursedDagger.cs index 3e90bd3c16..9cee3f0275 100644 --- a/Items/Weapons/Rogue/CursedDagger.cs +++ b/Items/Weapons/Rogue/CursedDagger.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 16; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 16; item.knockBack = 4.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/DeepSeaDumbbell.cs b/Items/Weapons/Rogue/DeepSeaDumbbell.cs index e0814e9fd0..5beb803159 100644 --- a/Items/Weapons/Rogue/DeepSeaDumbbell.cs +++ b/Items/Weapons/Rogue/DeepSeaDumbbell.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 25; item.knockBack = 16f; item.UseSound = SoundID.Item1; @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons.Rogue { if (player.altFunctionUse == 2) { - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.useAnimation = 45; item.useTime = 45; item.noMelee = false; @@ -62,7 +62,7 @@ namespace CalamityMod.Items.Weapons.Rogue } else { - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useAnimation = 25; item.useTime = 25; item.noMelee = true; diff --git a/Items/Weapons/Rogue/DeepWounder.cs b/Items/Weapons/Rogue/DeepWounder.cs index 9b33d8e8bb..75e9dbdf5c 100644 --- a/Items/Weapons/Rogue/DeepWounder.cs +++ b/Items/Weapons/Rogue/DeepWounder.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 23; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 23; item.knockBack = 3f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/DefectiveSphere.cs b/Items/Weapons/Rogue/DefectiveSphere.cs index d3d5a54a0c..767f45363e 100644 --- a/Items/Weapons/Rogue/DefectiveSphere.cs +++ b/Items/Weapons/Rogue/DefectiveSphere.cs @@ -33,7 +33,7 @@ Stealth strikes launch all 4 sphere types at once"); item.noUseGraphic = true; item.maxStack = 5; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item15; //phaseblade sound effect item.value = Item.buyPrice(0, 16, 0, 0); diff --git a/Items/Weapons/Rogue/DeificThunderbolt.cs b/Items/Weapons/Rogue/DeificThunderbolt.cs index ff69272bda..4647493c50 100644 --- a/Items/Weapons/Rogue/DeificThunderbolt.cs +++ b/Items/Weapons/Rogue/DeificThunderbolt.cs @@ -26,7 +26,7 @@ Stealth strikes summon more lightning and travel faster"); item.width = 56; item.height = 56; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/DukesDecapitator.cs b/Items/Weapons/Rogue/DukesDecapitator.cs index 172f95619b..30bc95c0f8 100644 --- a/Items/Weapons/Rogue/DukesDecapitator.cs +++ b/Items/Weapons/Rogue/DukesDecapitator.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 30; item.knockBack = 2f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/DuneHopper.cs b/Items/Weapons/Rogue/DuneHopper.cs index 3d2a64850a..9c44f3eb67 100644 --- a/Items/Weapons/Rogue/DuneHopper.cs +++ b/Items/Weapons/Rogue/DuneHopper.cs @@ -22,7 +22,7 @@ Stealth strikes throw three high speed spears"); item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 22; item.knockBack = 4f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/DuststormInABottle.cs b/Items/Weapons/Rogue/DuststormInABottle.cs index 9c5cbb4799..a01a81e3f0 100644 --- a/Items/Weapons/Rogue/DuststormInABottle.cs +++ b/Items/Weapons/Rogue/DuststormInABottle.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 25; item.knockBack = 5f; item.UseSound = SoundID.Item106; diff --git a/Items/Weapons/Rogue/EclipsesFall.cs b/Items/Weapons/Rogue/EclipsesFall.cs index 981ad55e52..50ab8f9f39 100644 --- a/Items/Weapons/Rogue/EclipsesFall.cs +++ b/Items/Weapons/Rogue/EclipsesFall.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 21; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 21; item.knockBack = 3.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs b/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs index 878d9b34c2..9a3ad6e804 100644 --- a/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs +++ b/Items/Weapons/Rogue/EmpyreanKnivesThrown.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 3f; item.UseSound = SoundID.Item39; diff --git a/Items/Weapons/Rogue/EnchantedAxe.cs b/Items/Weapons/Rogue/EnchantedAxe.cs index 675f181ad6..f5f217b07c 100644 --- a/Items/Weapons/Rogue/EnchantedAxe.cs +++ b/Items/Weapons/Rogue/EnchantedAxe.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Equanimity.cs b/Items/Weapons/Rogue/Equanimity.cs index 7fa5f35f71..1edee00726 100644 --- a/Items/Weapons/Rogue/Equanimity.cs +++ b/Items/Weapons/Rogue/Equanimity.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Eradicator.cs b/Items/Weapons/Rogue/Eradicator.cs index 0951af189d..5d89e84644 100644 --- a/Items/Weapons/Rogue/Eradicator.cs +++ b/Items/Weapons/Rogue/Eradicator.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 19; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 19; item.knockBack = 7f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/ExecutionersBlade.cs b/Items/Weapons/Rogue/ExecutionersBlade.cs index d2345619d0..3249a74251 100644 --- a/Items/Weapons/Rogue/ExecutionersBlade.cs +++ b/Items/Weapons/Rogue/ExecutionersBlade.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useTime = 3; item.useAnimation = 9; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6.75f; item.UseSound = SoundID.Item73; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/Exorcism.cs b/Items/Weapons/Rogue/Exorcism.cs index c5f92cfc24..8312e6545d 100644 --- a/Items/Weapons/Rogue/Exorcism.cs +++ b/Items/Weapons/Rogue/Exorcism.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/FantasyTalisman.cs b/Items/Weapons/Rogue/FantasyTalisman.cs index 6da32df8f8..22df27c2bb 100644 --- a/Items/Weapons/Rogue/FantasyTalisman.cs +++ b/Items/Weapons/Rogue/FantasyTalisman.cs @@ -26,7 +26,7 @@ Stealth strikes release more souls and leave behind souls as they travel"); item.noUseGraphic = true; item.useAnimation = 16; item.useTime = 16; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 6f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/FeatherKnife.cs b/Items/Weapons/Rogue/FeatherKnife.cs index ae66ad6dda..1db009fbf7 100644 --- a/Items/Weapons/Rogue/FeatherKnife.cs +++ b/Items/Weapons/Rogue/FeatherKnife.cs @@ -24,7 +24,7 @@ Stealth strike throws a volley of knives"); item.consumable = true; item.noUseGraphic = true; item.useAnimation = 11; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 2f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/FlameScythe.cs b/Items/Weapons/Rogue/FlameScythe.cs index 4120edfc13..d56eeac022 100644 --- a/Items/Weapons/Rogue/FlameScythe.cs +++ b/Items/Weapons/Rogue/FlameScythe.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.autoReuse = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 21; item.useAnimation = 21; item.knockBack = 8.5f; diff --git a/Items/Weapons/Rogue/FrostcrushValari.cs b/Items/Weapons/Rogue/FrostcrushValari.cs index 141f26064a..bd9f0a5943 100644 --- a/Items/Weapons/Rogue/FrostcrushValari.cs +++ b/Items/Weapons/Rogue/FrostcrushValari.cs @@ -31,7 +31,7 @@ Stealth strikes throw three short ranged boomerangs along with a spread of icicl item.useAnimation = 19; item.width = 32; item.height = 46; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.autoReuse = true; item.shootSpeed = Speed; diff --git a/Items/Weapons/Rogue/FrostyFlare.cs b/Items/Weapons/Rogue/FrostyFlare.cs index 3ab0ab8e20..8aa60e0f39 100644 --- a/Items/Weapons/Rogue/FrostyFlare.cs +++ b/Items/Weapons/Rogue/FrostyFlare.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.height = 22; item.useTime = 16; item.useAnimation = 16; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTurn = false; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/GalaxySmasherRogue.cs b/Items/Weapons/Rogue/GalaxySmasherRogue.cs index a59b0e4d53..5cdc9bc5e8 100644 --- a/Items/Weapons/Rogue/GalaxySmasherRogue.cs +++ b/Items/Weapons/Rogue/GalaxySmasherRogue.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.rare = 10; diff --git a/Items/Weapons/Rogue/GelDart.cs b/Items/Weapons/Rogue/GelDart.cs index 0099ee01c2..44885c6e9f 100644 --- a/Items/Weapons/Rogue/GelDart.cs +++ b/Items/Weapons/Rogue/GelDart.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 11; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 11; item.knockBack = 2.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/GhoulishGouger.cs b/Items/Weapons/Rogue/GhoulishGouger.cs index d310cb8223..318f5099a1 100644 --- a/Items/Weapons/Rogue/GhoulishGouger.cs +++ b/Items/Weapons/Rogue/GhoulishGouger.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useAnimation = 12; item.useTime = 12; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/GildedDagger.cs b/Items/Weapons/Rogue/GildedDagger.cs index ca9c877ca0..5c9d62a210 100644 --- a/Items/Weapons/Rogue/GildedDagger.cs +++ b/Items/Weapons/Rogue/GildedDagger.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Glaive.cs b/Items/Weapons/Rogue/Glaive.cs index b4b51fe8b8..aba7b11d9a 100644 --- a/Items/Weapons/Rogue/Glaive.cs +++ b/Items/Weapons/Rogue/Glaive.cs @@ -31,7 +31,7 @@ Stealth strikes are super fast and pierce infinitely"); item.height = 1; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = Knockback; item.value = Item.buyPrice(0, 1, 40, 0); item.rare = 3; diff --git a/Items/Weapons/Rogue/GleamingDagger.cs b/Items/Weapons/Rogue/GleamingDagger.cs index d9a9c5f93c..18698a1eae 100644 --- a/Items/Weapons/Rogue/GleamingDagger.cs +++ b/Items/Weapons/Rogue/GleamingDagger.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/GodsParanoia.cs b/Items/Weapons/Rogue/GodsParanoia.cs index ff7aa0d399..de627ee021 100644 --- a/Items/Weapons/Rogue/GodsParanoia.cs +++ b/Items/Weapons/Rogue/GodsParanoia.cs @@ -34,7 +34,7 @@ Right click to delete all existing spiky balls"); item.height = 1; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = knockBack; item.value = Item.buyPrice(0, 18, 0, 0); item.rare = 10; diff --git a/Items/Weapons/Rogue/HardenedHoneycomb.cs b/Items/Weapons/Rogue/HardenedHoneycomb.cs index bd004f53b3..33c9bf8f2e 100644 --- a/Items/Weapons/Rogue/HardenedHoneycomb.cs +++ b/Items/Weapons/Rogue/HardenedHoneycomb.cs @@ -25,7 +25,7 @@ Stealth strikes can bounce off walls and enemies"); item.noUseGraphic = true; item.useAnimation = 21; item.useTime = 21; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 3f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/HeavenfallenStardisk.cs b/Items/Weapons/Rogue/HeavenfallenStardisk.cs index 151d519d3c..95ec66c1ef 100644 --- a/Items/Weapons/Rogue/HeavenfallenStardisk.cs +++ b/Items/Weapons/Rogue/HeavenfallenStardisk.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 25; item.knockBack = 8f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/HellsSun.cs b/Items/Weapons/Rogue/HellsSun.cs index 38c01c5cd8..c578660219 100644 --- a/Items/Weapons/Rogue/HellsSun.cs +++ b/Items/Weapons/Rogue/HellsSun.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.height = 1; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = knockBack; item.value = Item.buyPrice(0, 12, 0, 0); item.rare = 10; diff --git a/Items/Weapons/Rogue/IceStar.cs b/Items/Weapons/Rogue/IceStar.cs index 9f7117c81b..15849d952b 100644 --- a/Items/Weapons/Rogue/IceStar.cs +++ b/Items/Weapons/Rogue/IceStar.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useAnimation = 12; item.crit = 7; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 12; item.knockBack = 2.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Icebreaker.cs b/Items/Weapons/Rogue/Icebreaker.cs index 718e7eff2d..a1aa6a5137 100644 --- a/Items/Weapons/Rogue/Icebreaker.cs +++ b/Items/Weapons/Rogue/Icebreaker.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 14; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 14; item.knockBack = 6.75f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/IchorSpear.cs b/Items/Weapons/Rogue/IchorSpear.cs index c587177e6a..fa902a23b9 100644 --- a/Items/Weapons/Rogue/IchorSpear.cs +++ b/Items/Weapons/Rogue/IchorSpear.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 6f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/InfernalKris.cs b/Items/Weapons/Rogue/InfernalKris.cs index 3809a131e7..7b369ce570 100644 --- a/Items/Weapons/Rogue/InfernalKris.cs +++ b/Items/Weapons/Rogue/InfernalKris.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.consumable = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/IronFrancisca.cs b/Items/Weapons/Rogue/IronFrancisca.cs index 50814bfec6..810a99d3e8 100644 --- a/Items/Weapons/Rogue/IronFrancisca.cs +++ b/Items/Weapons/Rogue/IronFrancisca.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/JawsOfOblivion.cs b/Items/Weapons/Rogue/JawsOfOblivion.cs index f4533bd13c..ec15ef1d98 100644 --- a/Items/Weapons/Rogue/JawsOfOblivion.cs +++ b/Items/Weapons/Rogue/JawsOfOblivion.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/KelvinCatalyst.cs b/Items/Weapons/Rogue/KelvinCatalyst.cs index 7f4b6e90a1..0f170ce3fa 100644 --- a/Items/Weapons/Rogue/KelvinCatalyst.cs +++ b/Items/Weapons/Rogue/KelvinCatalyst.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 30; item.knockBack = 4f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Kylie.cs b/Items/Weapons/Rogue/Kylie.cs index fbb8eb6a17..046cc17f12 100644 --- a/Items/Weapons/Rogue/Kylie.cs +++ b/Items/Weapons/Rogue/Kylie.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.useAnimation = 25; item.width = 32; item.height = 46; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.shootSpeed = Speed; item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Rogue/LeadTomahawk.cs b/Items/Weapons/Rogue/LeadTomahawk.cs index 2d4e6fc3e6..fa1580de50 100644 --- a/Items/Weapons/Rogue/LeadTomahawk.cs +++ b/Items/Weapons/Rogue/LeadTomahawk.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/LeviathanTeeth.cs b/Items/Weapons/Rogue/LeviathanTeeth.cs index 5c8743f064..4bde96dd81 100644 --- a/Items/Weapons/Rogue/LeviathanTeeth.cs +++ b/Items/Weapons/Rogue/LeviathanTeeth.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 10; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Lionfish.cs b/Items/Weapons/Rogue/Lionfish.cs index d56a67f756..28db5d8cd3 100644 --- a/Items/Weapons/Rogue/Lionfish.cs +++ b/Items/Weapons/Rogue/Lionfish.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 22; item.knockBack = 2.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/LuminousStriker.cs b/Items/Weapons/Rogue/LuminousStriker.cs index 94a1f5dc91..c38b52ef9b 100644 --- a/Items/Weapons/Rogue/LuminousStriker.cs +++ b/Items/Weapons/Rogue/LuminousStriker.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Terraria; @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 30; item.knockBack = 6f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/LunarKunai.cs b/Items/Weapons/Rogue/LunarKunai.cs index 9419c1db49..c0c443b2eb 100644 --- a/Items/Weapons/Rogue/LunarKunai.cs +++ b/Items/Weapons/Rogue/LunarKunai.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 10; item.knockBack = 2f; item.UseSound = SoundID.Item39; diff --git a/Items/Weapons/Rogue/Malachite.cs b/Items/Weapons/Rogue/Malachite.cs index 71d9c69bcc..f4094c5815 100644 --- a/Items/Weapons/Rogue/Malachite.cs +++ b/Items/Weapons/Rogue/Malachite.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useTime = 10; item.useAnimation = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 1.25f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/MangroveChakram.cs b/Items/Weapons/Rogue/MangroveChakram.cs index 96d7874b26..e9fbe78f30 100644 --- a/Items/Weapons/Rogue/MangroveChakram.cs +++ b/Items/Weapons/Rogue/MangroveChakram.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 14; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 14; item.knockBack = 7.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/MetalMonstrosity.cs b/Items/Weapons/Rogue/MetalMonstrosity.cs index b1683fed4f..1062543202 100644 --- a/Items/Weapons/Rogue/MetalMonstrosity.cs +++ b/Items/Weapons/Rogue/MetalMonstrosity.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Items/Weapons/Rogue/MeteorFist.cs b/Items/Weapons/Rogue/MeteorFist.cs index d7fa48ea95..52455782c0 100644 --- a/Items/Weapons/Rogue/MeteorFist.cs +++ b/Items/Weapons/Rogue/MeteorFist.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.useTurn = true; item.noUseGraphic = true; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 30; item.knockBack = 5.75f; item.UseSound = SoundID.Item20; diff --git a/Items/Weapons/Rogue/MoltenAmputator.cs b/Items/Weapons/Rogue/MoltenAmputator.cs index 7b3cd734cb..e64c29892c 100644 --- a/Items/Weapons/Rogue/MoltenAmputator.cs +++ b/Items/Weapons/Rogue/MoltenAmputator.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 9f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/MonkeyDarts.cs b/Items/Weapons/Rogue/MonkeyDarts.cs index b6cfcb5c74..4a1025cd8f 100644 --- a/Items/Weapons/Rogue/MonkeyDarts.cs +++ b/Items/Weapons/Rogue/MonkeyDarts.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.maxStack = 999; item.width = 27; item.height = 27; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.useTime = 20; item.useAnimation = 20; diff --git a/Items/Weapons/Rogue/Mycoroot.cs b/Items/Weapons/Rogue/Mycoroot.cs index 3a8af59781..0613df6623 100644 --- a/Items/Weapons/Rogue/Mycoroot.cs +++ b/Items/Weapons/Rogue/Mycoroot.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useTime = 5; item.useAnimation = 5; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 1.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/MythrilKnife.cs b/Items/Weapons/Rogue/MythrilKnife.cs index 51eab369d3..032f75a77d 100644 --- a/Items/Weapons/Rogue/MythrilKnife.cs +++ b/Items/Weapons/Rogue/MythrilKnife.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 10; item.knockBack = 1.75f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/NanoblackReaperRogue.cs b/Items/Weapons/Rogue/NanoblackReaperRogue.cs index 7f0d949771..13cfc320d5 100644 --- a/Items/Weapons/Rogue/NanoblackReaperRogue.cs +++ b/Items/Weapons/Rogue/NanoblackReaperRogue.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item18; item.rare = 10; diff --git a/Items/Weapons/Rogue/NastyCholla.cs b/Items/Weapons/Rogue/NastyCholla.cs index 0cee08e76c..82e85ec8a7 100644 --- a/Items/Weapons/Rogue/NastyCholla.cs +++ b/Items/Weapons/Rogue/NastyCholla.cs @@ -29,7 +29,7 @@ Stealth strikes throw five at once"); item.maxStack = 999; item.consumable = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 3f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/NightsGaze.cs b/Items/Weapons/Rogue/NightsGaze.cs index f8f924b92a..275f6b3f85 100644 --- a/Items/Weapons/Rogue/NightsGaze.cs +++ b/Items/Weapons/Rogue/NightsGaze.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Nychthemeron.cs b/Items/Weapons/Rogue/Nychthemeron.cs index f2d29b7758..687670d704 100644 --- a/Items/Weapons/Rogue/Nychthemeron.cs +++ b/Items/Weapons/Rogue/Nychthemeron.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/OrichalcumSpikedGemstone.cs b/Items/Weapons/Rogue/OrichalcumSpikedGemstone.cs index 08f2fae2a7..55afca0c10 100644 --- a/Items/Weapons/Rogue/OrichalcumSpikedGemstone.cs +++ b/Items/Weapons/Rogue/OrichalcumSpikedGemstone.cs @@ -21,13 +21,13 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 13; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 13; item.knockBack = 2f; item.UseSound = SoundID.Item1; item.autoReuse = true; item.height = 24; - item.shoot = 330; + item.shoot = ProjectileID.StarAnise; item.maxStack = 999; item.value = 1200; item.rare = 4; diff --git a/Items/Weapons/Rogue/PalladiumJavelin.cs b/Items/Weapons/Rogue/PalladiumJavelin.cs index 7f5c32987b..ea6eb6f105 100644 --- a/Items/Weapons/Rogue/PalladiumJavelin.cs +++ b/Items/Weapons/Rogue/PalladiumJavelin.cs @@ -21,13 +21,13 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 19; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 19; item.knockBack = 5.5f; item.UseSound = SoundID.Item1; item.autoReuse = true; item.height = 44; - item.shoot = 330; + item.shoot = ProjectileID.StarAnise; item.maxStack = 999; item.value = 1200; item.rare = 4; diff --git a/Items/Weapons/Rogue/Penumbra.cs b/Items/Weapons/Rogue/Penumbra.cs index dcfde784da..fe3d513609 100644 --- a/Items/Weapons/Rogue/Penumbra.cs +++ b/Items/Weapons/Rogue/Penumbra.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; diff --git a/Items/Weapons/Rogue/PhantasmalRuin.cs b/Items/Weapons/Rogue/PhantasmalRuin.cs index 7b6882864b..f7806b6747 100644 --- a/Items/Weapons/Rogue/PhantasmalRuin.cs +++ b/Items/Weapons/Rogue/PhantasmalRuin.cs @@ -24,7 +24,7 @@ Stealth strikes summon ghost clones instead of lost souls"); item.width = 102; item.height = 98; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/PhantomLance.cs b/Items/Weapons/Rogue/PhantomLance.cs index 7265574da8..616cf7307c 100644 --- a/Items/Weapons/Rogue/PhantomLance.cs +++ b/Items/Weapons/Rogue/PhantomLance.cs @@ -25,7 +25,7 @@ Stealth strikes don't slow down and souls always deal full damage"); item.width = 62; item.height = 68; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/Plaguenade.cs b/Items/Weapons/Rogue/Plaguenade.cs index b181d4091a..8c162bf461 100644 --- a/Items/Weapons/Rogue/Plaguenade.cs +++ b/Items/Weapons/Rogue/Plaguenade.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.consumable = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 1.5f; item.maxStack = 999; diff --git a/Items/Weapons/Rogue/PoisonPack.cs b/Items/Weapons/Rogue/PoisonPack.cs index e26e270cd5..4924a5ac2e 100644 --- a/Items/Weapons/Rogue/PoisonPack.cs +++ b/Items/Weapons/Rogue/PoisonPack.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.height = 14; item.useTime = 19; item.useAnimation = 19; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = knockBack; item.value = Item.buyPrice(0, 0, 33, 0); item.rare = 1; diff --git a/Items/Weapons/Rogue/Prismalline.cs b/Items/Weapons/Rogue/Prismalline.cs index ed28e0d7c6..bb0c0bbc19 100644 --- a/Items/Weapons/Rogue/Prismalline.cs +++ b/Items/Weapons/Rogue/Prismalline.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 14; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 14; item.knockBack = 5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/ProfanedPartisan.cs b/Items/Weapons/Rogue/ProfanedPartisan.cs index f419ac7ed7..39a2dcb009 100644 --- a/Items/Weapons/Rogue/ProfanedPartisan.cs +++ b/Items/Weapons/Rogue/ProfanedPartisan.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using Terraria; using Terraria.ID; @@ -24,7 +24,7 @@ Stealth strikes spawn smaller spears to fly along side it"); item.width = 56; item.height = 56; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/ProfanedTrident.cs b/Items/Weapons/Rogue/ProfanedTrident.cs index 13ca758e8b..2eb6842430 100644 --- a/Items/Weapons/Rogue/ProfanedTrident.cs +++ b/Items/Weapons/Rogue/ProfanedTrident.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 13; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 13; item.knockBack = 8f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Pwnagehammer.cs b/Items/Weapons/Rogue/Pwnagehammer.cs index efc33c2c13..c3a55d46f6 100644 --- a/Items/Weapons/Rogue/Pwnagehammer.cs +++ b/Items/Weapons/Rogue/Pwnagehammer.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 10f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Quasar.cs b/Items/Weapons/Rogue/Quasar.cs index 37a02673c9..18d82acb66 100644 --- a/Items/Weapons/Rogue/Quasar.cs +++ b/Items/Weapons/Rogue/Quasar.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 12; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 12; item.knockBack = 0f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/RadiantStar.cs b/Items/Weapons/Rogue/RadiantStar.cs index 9423226319..144a4ad26a 100644 --- a/Items/Weapons/Rogue/RadiantStar.cs +++ b/Items/Weapons/Rogue/RadiantStar.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 12; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 12; item.knockBack = 5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/RegulusRiot.cs b/Items/Weapons/Rogue/RegulusRiot.cs index b5a5b7294f..f368563906 100644 --- a/Items/Weapons/Rogue/RegulusRiot.cs +++ b/Items/Weapons/Rogue/RegulusRiot.cs @@ -23,7 +23,7 @@ Stealth strikes explode into energy stars"); item.width = 28; item.height = 34; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/RotBall.cs b/Items/Weapons/Rogue/RotBall.cs index b3f9d4383d..66ae3177ef 100644 --- a/Items/Weapons/Rogue/RotBall.cs +++ b/Items/Weapons/Rogue/RotBall.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useAnimation = 13; item.crit = 8; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 13; item.knockBack = 2.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/RoyalKnives.cs b/Items/Weapons/Rogue/RoyalKnives.cs index 4d5499fe89..03098ed750 100644 --- a/Items/Weapons/Rogue/RoyalKnives.cs +++ b/Items/Weapons/Rogue/RoyalKnives.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 12; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 12; item.knockBack = 3f; item.UseSound = SoundID.Item39; diff --git a/Items/Weapons/Rogue/SandDollar.cs b/Items/Weapons/Rogue/SandDollar.cs index 2ca96a4d0f..414cb2eb40 100644 --- a/Items/Weapons/Rogue/SandDollar.cs +++ b/Items/Weapons/Rogue/SandDollar.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.maxStack = 2; item.knockBack = 3.5f; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/Sandslasher.cs b/Items/Weapons/Rogue/Sandslasher.cs index 62169b918c..a5fdd226ff 100644 --- a/Items/Weapons/Rogue/Sandslasher.cs +++ b/Items/Weapons/Rogue/Sandslasher.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/ScarletDevil.cs b/Items/Weapons/Rogue/ScarletDevil.cs index 5f760e2c66..0cfb18d8a9 100644 --- a/Items/Weapons/Rogue/ScarletDevil.cs +++ b/Items/Weapons/Rogue/ScarletDevil.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 60; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 60; item.knockBack = 8f; item.UseSound = SoundID.Item60; diff --git a/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs b/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs index 93641079e8..a126f5de1d 100644 --- a/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs +++ b/Items/Weapons/Rogue/ScourgeoftheCosmosThrown.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 20; item.knockBack = 5f; item.UseSound = SoundID.Item109; diff --git a/Items/Weapons/Rogue/ScourgeoftheDesert.cs b/Items/Weapons/Rogue/ScourgeoftheDesert.cs index 93fbb34f65..f921a3f08b 100644 --- a/Items/Weapons/Rogue/ScourgeoftheDesert.cs +++ b/Items/Weapons/Rogue/ScourgeoftheDesert.cs @@ -22,7 +22,7 @@ Stealth strikes gain damage as they damage enemies"); item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 3.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/ScourgeoftheSeas.cs b/Items/Weapons/Rogue/ScourgeoftheSeas.cs index 723b7a3c03..1ceaa3e5f5 100644 --- a/Items/Weapons/Rogue/ScourgeoftheSeas.cs +++ b/Items/Weapons/Rogue/ScourgeoftheSeas.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 3.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/SeafoamBomb.cs b/Items/Weapons/Rogue/SeafoamBomb.cs index a51080fc3b..3949f42128 100644 --- a/Items/Weapons/Rogue/SeafoamBomb.cs +++ b/Items/Weapons/Rogue/SeafoamBomb.cs @@ -24,7 +24,7 @@ Stealth strikes are faster and explode into 5 bubbles"); item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 25; item.knockBack = 8f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/SeashellBoomerang.cs b/Items/Weapons/Rogue/SeashellBoomerang.cs index 9424e5d6ea..3f5f16ef1f 100644 --- a/Items/Weapons/Rogue/SeashellBoomerang.cs +++ b/Items/Weapons/Rogue/SeashellBoomerang.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 5.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/ShatteredSun.cs b/Items/Weapons/Rogue/ShatteredSun.cs index ec10eaa50e..5bd1692dad 100644 --- a/Items/Weapons/Rogue/ShatteredSun.cs +++ b/Items/Weapons/Rogue/ShatteredSun.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 12; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 12; item.knockBack = 6f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/ShinobiBlade.cs b/Items/Weapons/Rogue/ShinobiBlade.cs index d54227b538..49d9401678 100644 --- a/Items/Weapons/Rogue/ShinobiBlade.cs +++ b/Items/Weapons/Rogue/ShinobiBlade.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/ShockGrenade.cs b/Items/Weapons/Rogue/ShockGrenade.cs index f607055862..17b4a0d402 100644 --- a/Items/Weapons/Rogue/ShockGrenade.cs +++ b/Items/Weapons/Rogue/ShockGrenade.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.consumable = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 1f; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/Shroomerang.cs b/Items/Weapons/Rogue/Shroomerang.cs index da2051445a..77e213a379 100644 --- a/Items/Weapons/Rogue/Shroomerang.cs +++ b/Items/Weapons/Rogue/Shroomerang.cs @@ -23,7 +23,7 @@ Stealth strikes grant the Mushy buff to the user on enemy hits and summon homing item.noUseGraphic = true; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 1.5f; item.UseSound = SoundID.Item1; item.height = 50; diff --git a/Items/Weapons/Rogue/SkyStabber.cs b/Items/Weapons/Rogue/SkyStabber.cs index bf1ae74ec7..97bd386202 100644 --- a/Items/Weapons/Rogue/SkyStabber.cs +++ b/Items/Weapons/Rogue/SkyStabber.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.height = 1; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = knockBack; item.value = Item.buyPrice(0, 1, 0, 0); item.rare = 3; diff --git a/Items/Weapons/Rogue/SkyfinBombers.cs b/Items/Weapons/Rogue/SkyfinBombers.cs index 9179e00dac..a8a04694dd 100644 --- a/Items/Weapons/Rogue/SkyfinBombers.cs +++ b/Items/Weapons/Rogue/SkyfinBombers.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 35; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 35; item.knockBack = 6.5f; item.UseSound = SoundID.Item11; diff --git a/Items/Weapons/Rogue/SludgeSplotch.cs b/Items/Weapons/Rogue/SludgeSplotch.cs index f2bb5e884d..1da1868d16 100644 --- a/Items/Weapons/Rogue/SludgeSplotch.cs +++ b/Items/Weapons/Rogue/SludgeSplotch.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.consumable = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 1f; item.autoReuse = true; @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - Main.PlaySound(4, (int)player.position.X, (int)player.position.Y, 9, 2, 0); + Main.PlaySound(SoundID.NPCKilled, (int)player.position.X, (int)player.position.Y, 9, 2, 0); if (player.Calamity().StealthStrikeAvailable()) { diff --git a/Items/Weapons/Rogue/SnapClam.cs b/Items/Weapons/Rogue/SnapClam.cs index db23091342..4530c9b0c9 100644 --- a/Items/Weapons/Rogue/SnapClam.cs +++ b/Items/Weapons/Rogue/SnapClam.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 3f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/SpearofDestiny.cs b/Items/Weapons/Rogue/SpearofDestiny.cs index 091b67d2f4..8801178ce1 100644 --- a/Items/Weapons/Rogue/SpearofDestiny.cs +++ b/Items/Weapons/Rogue/SpearofDestiny.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 2f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/SpearofPaleolith.cs b/Items/Weapons/Rogue/SpearofPaleolith.cs index d00e413d90..bc6571ad50 100644 --- a/Items/Weapons/Rogue/SpearofPaleolith.cs +++ b/Items/Weapons/Rogue/SpearofPaleolith.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 27; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 27; item.knockBack = 6f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/StarofDestruction.cs b/Items/Weapons/Rogue/StarofDestruction.cs index 7f2eb59c11..98ac50f628 100644 --- a/Items/Weapons/Rogue/StarofDestruction.cs +++ b/Items/Weapons/Rogue/StarofDestruction.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 38; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 38; item.knockBack = 10f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/StellarContemptRogue.cs b/Items/Weapons/Rogue/StellarContemptRogue.cs index f3b4207cc6..2e4725eb2f 100644 --- a/Items/Weapons/Rogue/StellarContemptRogue.cs +++ b/Items/Weapons/Rogue/StellarContemptRogue.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.rare = 10; diff --git a/Items/Weapons/Rogue/StellarKnife.cs b/Items/Weapons/Rogue/StellarKnife.cs index 8593ddf729..1dce4dda87 100644 --- a/Items/Weapons/Rogue/StellarKnife.cs +++ b/Items/Weapons/Rogue/StellarKnife.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 9; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 9; item.knockBack = 4f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/StickySpikyBall.cs b/Items/Weapons/Rogue/StickySpikyBall.cs index 699c5afac6..ae90e4ae8a 100644 --- a/Items/Weapons/Rogue/StickySpikyBall.cs +++ b/Items/Weapons/Rogue/StickySpikyBall.cs @@ -25,7 +25,7 @@ Stealth strikes throw seven at once and last a lot longer"); item.maxStack = 999; item.consumable = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 3f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/StormfrontRazor.cs b/Items/Weapons/Rogue/StormfrontRazor.cs index d728326a52..65e3b12d14 100644 --- a/Items/Weapons/Rogue/StormfrontRazor.cs +++ b/Items/Weapons/Rogue/StormfrontRazor.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.UseSound = SoundID.Item1; item.autoReuse = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.value = Item.buyPrice(0, 30, 0, 0); item.rare = 5; diff --git a/Items/Weapons/Rogue/Supernova.cs b/Items/Weapons/Rogue/Supernova.cs index 7fa1cfc232..b2b02583b7 100644 --- a/Items/Weapons/Rogue/Supernova.cs +++ b/Items/Weapons/Rogue/Supernova.cs @@ -25,7 +25,7 @@ Stealth strikes release energy as they fly"); item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 24; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 24; item.knockBack = 8f; item.UseSound = SoundID.Item15; diff --git a/Items/Weapons/Rogue/SylvanSlasher.cs b/Items/Weapons/Rogue/SylvanSlasher.cs index f05db9a4c8..1f7169befb 100644 --- a/Items/Weapons/Rogue/SylvanSlasher.cs +++ b/Items/Weapons/Rogue/SylvanSlasher.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Rogue { @@ -23,7 +24,7 @@ Does not consume stealth and cannot stealth strike"); item.noUseGraphic = true; item.channel = true; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 5; item.knockBack = 3f; item.autoReuse = false; diff --git a/Items/Weapons/Rogue/TarragonThrowingDart.cs b/Items/Weapons/Rogue/TarragonThrowingDart.cs index cd92a35639..0c40848ac3 100644 --- a/Items/Weapons/Rogue/TarragonThrowingDart.cs +++ b/Items/Weapons/Rogue/TarragonThrowingDart.cs @@ -24,7 +24,7 @@ Stealth strikes erupt into thorns on enemy hits"); item.consumable = true; item.noUseGraphic = true; item.useAnimation = 11; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 11; item.knockBack = 4.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/TerraDisk.cs b/Items/Weapons/Rogue/TerraDisk.cs index 80ab448d5c..6396bcb0ad 100644 --- a/Items/Weapons/Rogue/TerraDisk.cs +++ b/Items/Weapons/Rogue/TerraDisk.cs @@ -31,7 +31,7 @@ A max of three disks can be active at a time"); item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.UseSound = SoundID.Item1; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Rogue/TerrorTalons.cs b/Items/Weapons/Rogue/TerrorTalons.cs index 3c5e2f1516..e465d03bfd 100644 --- a/Items/Weapons/Rogue/TerrorTalons.cs +++ b/Items/Weapons/Rogue/TerrorTalons.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.damage = 47; item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 7; item.useAnimation = 7; item.knockBack = 3f; diff --git a/Items/Weapons/Rogue/TheReaper.cs b/Items/Weapons/Rogue/TheReaper.cs index 7b96d716e7..69bc7cb8c9 100644 --- a/Items/Weapons/Rogue/TheReaper.cs +++ b/Items/Weapons/Rogue/TheReaper.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useAnimation = 22; item.useTime = 22; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 4f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/TheSyringe.cs b/Items/Weapons/Rogue/TheSyringe.cs index 63039ec8e9..ecfd74c10a 100644 --- a/Items/Weapons/Rogue/TheSyringe.cs +++ b/Items/Weapons/Rogue/TheSyringe.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.autoReuse = true; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.width = 14; item.height = 50; item.UseSound = SoundID.Item106; diff --git a/Items/Weapons/Rogue/ThrowingBrick.cs b/Items/Weapons/Rogue/ThrowingBrick.cs index 807a5d198f..66e6d63fcf 100644 --- a/Items/Weapons/Rogue/ThrowingBrick.cs +++ b/Items/Weapons/Rogue/ThrowingBrick.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.height = 20; item.useTime = 20; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5f; item.crit = 20; item.value = Item.buyPrice(0, 0, 0, 50); diff --git a/Items/Weapons/Rogue/TimeBolt.cs b/Items/Weapons/Rogue/TimeBolt.cs index 51e85b6ee3..1303d6996d 100644 --- a/Items/Weapons/Rogue/TimeBolt.cs +++ b/Items/Weapons/Rogue/TimeBolt.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 4f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/TitaniumShuriken.cs b/Items/Weapons/Rogue/TitaniumShuriken.cs index 66b855bc1a..5bf4de4d84 100644 --- a/Items/Weapons/Rogue/TitaniumShuriken.cs +++ b/Items/Weapons/Rogue/TitaniumShuriken.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useAnimation = 9; item.crit = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 9; item.knockBack = 3f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/ToothBall.cs b/Items/Weapons/Rogue/ToothBall.cs index 8cacc713ca..317dc13453 100644 --- a/Items/Weapons/Rogue/ToothBall.cs +++ b/Items/Weapons/Rogue/ToothBall.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useAnimation = 13; item.crit = 8; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 13; item.knockBack = 2.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/TotalityBreakers.cs b/Items/Weapons/Rogue/TotalityBreakers.cs index d8c035c1af..d0c954ec52 100644 --- a/Items/Weapons/Rogue/TotalityBreakers.cs +++ b/Items/Weapons/Rogue/TotalityBreakers.cs @@ -24,7 +24,7 @@ Stealth strikes leak tar as they fly"); item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 28; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 28; item.knockBack = 5f; item.UseSound = SoundID.Item106; diff --git a/Items/Weapons/Rogue/ToxicantTwister.cs b/Items/Weapons/Rogue/ToxicantTwister.cs index 0ddae8e36a..2f3309268c 100644 --- a/Items/Weapons/Rogue/ToxicantTwister.cs +++ b/Items/Weapons/Rogue/ToxicantTwister.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noMelee = true; item.noUseGraphic = true; item.useAnimation = item.useTime = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/TriactisTruePaladinianMageHammerofMight.cs b/Items/Weapons/Rogue/TriactisTruePaladinianMageHammerofMight.cs index b6f1371380..a55ae882c3 100644 --- a/Items/Weapons/Rogue/TriactisTruePaladinianMageHammerofMight.cs +++ b/Items/Weapons/Rogue/TriactisTruePaladinianMageHammerofMight.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 10; item.knockBack = 50f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/TruePaladinsHammer.cs b/Items/Weapons/Rogue/TruePaladinsHammer.cs index bc8087f295..a68434ff8a 100644 --- a/Items/Weapons/Rogue/TruePaladinsHammer.cs +++ b/Items/Weapons/Rogue/TruePaladinsHammer.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.autoReuse = true; item.useAnimation = 13; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 13; item.knockBack = 20f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Turbulance.cs b/Items/Weapons/Rogue/Turbulance.cs index 33af5d8363..89847b3b9d 100644 --- a/Items/Weapons/Rogue/Turbulance.cs +++ b/Items/Weapons/Rogue/Turbulance.cs @@ -24,7 +24,7 @@ Stealth strikes are trailed by homing wind slashes"); item.noMelee = true; item.noUseGraphic = true; item.useAnimation = 18; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 18; item.knockBack = 5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/UrchinStinger.cs b/Items/Weapons/Rogue/UrchinStinger.cs index 9aee33aacc..d70ddd1b2b 100644 --- a/Items/Weapons/Rogue/UrchinStinger.cs +++ b/Items/Weapons/Rogue/UrchinStinger.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 14; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 14; item.knockBack = 1.5f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/UtensilPoker.cs b/Items/Weapons/Rogue/UtensilPoker.cs index d75c63b183..700cb0d61e 100644 --- a/Items/Weapons/Rogue/UtensilPoker.cs +++ b/Items/Weapons/Rogue/UtensilPoker.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.knockBack = 8f; item.noMelee = true; item.noUseGraphic = true; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.reuseDelay = 15; item.useAnimation = 45; diff --git a/Items/Weapons/Rogue/Valediction.cs b/Items/Weapons/Rogue/Valediction.cs index e285772213..f047e1a40b 100644 --- a/Items/Weapons/Rogue/Valediction.cs +++ b/Items/Weapons/Rogue/Valediction.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.noUseGraphic = true; item.useAnimation = 15; item.useTime = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 7f; item.UseSound = SoundID.Item1; item.autoReuse = true; diff --git a/Items/Weapons/Rogue/WebBall.cs b/Items/Weapons/Rogue/WebBall.cs index e8e4c470ef..ae8885868a 100644 --- a/Items/Weapons/Rogue/WebBall.cs +++ b/Items/Weapons/Rogue/WebBall.cs @@ -25,7 +25,7 @@ Stealth strikes slow enemies down longer"); item.maxStack = 999; item.consumable = true; item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 20; item.knockBack = 3f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/WulfrumKnife.cs b/Items/Weapons/Rogue/WulfrumKnife.cs index ada0d3eabd..e3237c91dd 100644 --- a/Items/Weapons/Rogue/WulfrumKnife.cs +++ b/Items/Weapons/Rogue/WulfrumKnife.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 15; item.knockBack = 1f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/XerocPitchfork.cs b/Items/Weapons/Rogue/XerocPitchfork.cs index f028813edd..a395ed989f 100644 --- a/Items/Weapons/Rogue/XerocPitchfork.cs +++ b/Items/Weapons/Rogue/XerocPitchfork.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.consumable = true; item.noUseGraphic = true; item.useAnimation = 19; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.useTime = 19; item.knockBack = 8f; item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Summon/AncientIceChunk.cs b/Items/Weapons/Summon/AncientIceChunk.cs index 3bc8b8d41a..dd0ced89f2 100644 --- a/Items/Weapons/Summon/AncientIceChunk.cs +++ b/Items/Weapons/Summon/AncientIceChunk.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 30; item.height = 30; item.useTime = item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Summon/AngryChickenStaff.cs b/Items/Weapons/Summon/AngryChickenStaff.cs index b82f767b15..e54a19ad9f 100644 --- a/Items/Weapons/Summon/AngryChickenStaff.cs +++ b/Items/Weapons/Summon/AngryChickenStaff.cs @@ -2,6 +2,8 @@ using CalamityMod.Projectiles.Summon; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Weapons.Summon { public class AngryChickenStaff : ModItem @@ -18,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon { item.mana = 50; item.damage = 160; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.width = 32; item.height = 32; item.useTime = item.useAnimation = 10; diff --git a/Items/Weapons/Summon/BensUmbrella.cs b/Items/Weapons/Summon/BensUmbrella.cs index 0132e1a567..c51139a3c6 100644 --- a/Items/Weapons/Summon/BensUmbrella.cs +++ b/Items/Weapons/Summon/BensUmbrella.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Summon { item.mana = 99; item.damage = 963; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.width = 74; item.height = 72; item.useTime = item.useAnimation = 10; diff --git a/Items/Weapons/Summon/BlackHawkRemote.cs b/Items/Weapons/Summon/BlackHawkRemote.cs index 31e2eeca3b..48f63765ad 100644 --- a/Items/Weapons/Summon/BlackHawkRemote.cs +++ b/Items/Weapons/Summon/BlackHawkRemote.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 46; item.height = 28; item.useTime = item.useAnimation = 25; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.noMelee = true; item.knockBack = 1f; item.value = Item.buyPrice(0, 12, 0, 0); diff --git a/Items/Weapons/Summon/BlightedEyeStaff.cs b/Items/Weapons/Summon/BlightedEyeStaff.cs index c1ad10dbd9..85b17abb35 100644 --- a/Items/Weapons/Summon/BlightedEyeStaff.cs +++ b/Items/Weapons/Summon/BlightedEyeStaff.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 62; item.height = 62; item.useTime = item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Summon/BloodClotStaff.cs b/Items/Weapons/Summon/BloodClotStaff.cs index a10b33d628..bc06032153 100644 --- a/Items/Weapons/Summon/BloodClotStaff.cs +++ b/Items/Weapons/Summon/BloodClotStaff.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 58; item.height = 64; item.useTime = item.useAnimation = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2.25f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Summon/BorealisBomber.cs b/Items/Weapons/Summon/BorealisBomber.cs index cf4df4ecd6..62ab1d1dd2 100644 --- a/Items/Weapons/Summon/BorealisBomber.cs +++ b/Items/Weapons/Summon/BorealisBomber.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 48; item.height = 56; item.useTime = item.useAnimation = 20; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Summon/CadaverousCarrion.cs b/Items/Weapons/Summon/CadaverousCarrion.cs index 50ec9f63c8..32a59de547 100644 --- a/Items/Weapons/Summon/CadaverousCarrion.cs +++ b/Items/Weapons/Summon/CadaverousCarrion.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 54; item.height = 56; item.useTime = item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Summon/CalamarisLament.cs b/Items/Weapons/Summon/CalamarisLament.cs index 1933d3f0ab..4a2b7b8f0c 100644 --- a/Items/Weapons/Summon/CalamarisLament.cs +++ b/Items/Weapons/Summon/CalamarisLament.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 62; item.height = 62; item.useTime = item.useAnimation = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2.5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Summon/ColdDivinity.cs b/Items/Weapons/Summon/ColdDivinity.cs index 876789d406..792e9fa1b0 100644 --- a/Items/Weapons/Summon/ColdDivinity.cs +++ b/Items/Weapons/Summon/ColdDivinity.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; using Microsoft.Xna.Framework; using Terraria; @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 52; item.height = 50; item.useTime = item.useAnimation = 25; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.noMelee = true; item.knockBack = 4.5f; item.value = Item.buyPrice(0, 48, 0, 0); diff --git a/Items/Weapons/Summon/CorroslimeStaff.cs b/Items/Weapons/Summon/CorroslimeStaff.cs index 25cbefd23f..3fd764654c 100644 --- a/Items/Weapons/Summon/CorroslimeStaff.cs +++ b/Items/Weapons/Summon/CorroslimeStaff.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 52; item.height = 54; item.useTime = item.useAnimation = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 12, 0, 0); diff --git a/Items/Weapons/Summon/CosmicImmaterializer.cs b/Items/Weapons/Summon/CosmicImmaterializer.cs index 0136f9bd61..052830d109 100644 --- a/Items/Weapons/Summon/CosmicImmaterializer.cs +++ b/Items/Weapons/Summon/CosmicImmaterializer.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Summon { item.mana = 100; item.damage = 3000; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.width = 74; item.height = 72; item.useTime = item.useAnimation = 10; diff --git a/Items/Weapons/Summon/CosmicViperEngine.cs b/Items/Weapons/Summon/CosmicViperEngine.cs index f75752739a..a3674cf226 100644 --- a/Items/Weapons/Summon/CosmicViperEngine.cs +++ b/Items/Weapons/Summon/CosmicViperEngine.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 46; item.height = 28; item.useTime = item.useAnimation = 10; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.noMelee = true; item.knockBack = 6f; item.value = Item.buyPrice(2, 50, 0, 0); diff --git a/Items/Weapons/Summon/Cosmilamp.cs b/Items/Weapons/Summon/Cosmilamp.cs index a99819178c..f041ee5d2c 100644 --- a/Items/Weapons/Summon/Cosmilamp.cs +++ b/Items/Weapons/Summon/Cosmilamp.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 42; item.height = 60; item.useTime = item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Summon/CrimslimeStaff.cs b/Items/Weapons/Summon/CrimslimeStaff.cs index 32c7dc8549..0bc4f464ff 100644 --- a/Items/Weapons/Summon/CrimslimeStaff.cs +++ b/Items/Weapons/Summon/CrimslimeStaff.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 52; item.height = 52; item.useTime = item.useAnimation = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 12, 0, 0); diff --git a/Items/Weapons/Summon/CryogenicStaff.cs b/Items/Weapons/Summon/CryogenicStaff.cs index 04036bc027..c5e872ef1e 100644 --- a/Items/Weapons/Summon/CryogenicStaff.cs +++ b/Items/Weapons/Summon/CryogenicStaff.cs @@ -24,7 +24,7 @@ Fire rate and range increase the longer it targets an enemy"); item.width = 40; item.height = 40; item.useTime = item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(0, 48, 0, 0); diff --git a/Items/Weapons/Summon/DankStaff.cs b/Items/Weapons/Summon/DankStaff.cs index 8ce63f1322..7edaeacbc8 100644 --- a/Items/Weapons/Summon/DankStaff.cs +++ b/Items/Weapons/Summon/DankStaff.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon item.height = 58; item.useTime = item.useAnimation = 30; item.scale = 0.85f; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2.25f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Summon/DeepseaStaff.cs b/Items/Weapons/Summon/DeepseaStaff.cs index f0a0b4a005..5b0e65337e 100644 --- a/Items/Weapons/Summon/DeepseaStaff.cs +++ b/Items/Weapons/Summon/DeepseaStaff.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 46; item.height = 46; item.useTime = item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Summon/DreadmineStaff.cs b/Items/Weapons/Summon/DreadmineStaff.cs index 2b873ac060..b6048dba73 100644 --- a/Items/Weapons/Summon/DreadmineStaff.cs +++ b/Items/Weapons/Summon/DreadmineStaff.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 44; item.height = 44; item.useTime = item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 4.5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Summon/ElementalAxe.cs b/Items/Weapons/Summon/ElementalAxe.cs index caba5b6ccf..37e290680d 100644 --- a/Items/Weapons/Summon/ElementalAxe.cs +++ b/Items/Weapons/Summon/ElementalAxe.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 36; item.height = 36; item.useTime = item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Summon/Endogenesis.cs b/Items/Weapons/Summon/Endogenesis.cs index 10abe1e3a1..76591fac43 100644 --- a/Items/Weapons/Summon/Endogenesis.cs +++ b/Items/Weapons/Summon/Endogenesis.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; diff --git a/Items/Weapons/Summon/EnergyStaff.cs b/Items/Weapons/Summon/EnergyStaff.cs index a4a858dfa5..14e62b75f1 100644 --- a/Items/Weapons/Summon/EnergyStaff.cs +++ b/Items/Weapons/Summon/EnergyStaff.cs @@ -2,6 +2,8 @@ using CalamityMod.Projectiles.Summon; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Weapons.Summon { public class EnergyStaff : ModItem @@ -22,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 66; item.height = 68; item.useTime = item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Summon/EtherealSubjugator.cs b/Items/Weapons/Summon/EtherealSubjugator.cs index bc0779b2f9..139cdae3f3 100644 --- a/Items/Weapons/Summon/EtherealSubjugator.cs +++ b/Items/Weapons/Summon/EtherealSubjugator.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 66; item.height = 70; item.useTime = item.useAnimation = 10; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 1f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Summon/ForgottenApexWand.cs b/Items/Weapons/Summon/ForgottenApexWand.cs index ef200ca91f..447071087b 100644 --- a/Items/Weapons/Summon/ForgottenApexWand.cs +++ b/Items/Weapons/Summon/ForgottenApexWand.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using Terraria.ID; using Terraria; using CalamityMod.Projectiles.Summon; diff --git a/Items/Weapons/Summon/GodspawnHelixStaff.cs b/Items/Weapons/Summon/GodspawnHelixStaff.cs index d1fd6b2773..258c47d857 100644 --- a/Items/Weapons/Summon/GodspawnHelixStaff.cs +++ b/Items/Weapons/Summon/GodspawnHelixStaff.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 50; item.height = 50; item.useTime = item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 1.25f; item.value = Item.buyPrice(0, 95, 0, 0); diff --git a/Items/Weapons/Summon/HauntedScroll.cs b/Items/Weapons/Summon/HauntedScroll.cs index af4814d224..80309f634d 100644 --- a/Items/Weapons/Summon/HauntedScroll.cs +++ b/Items/Weapons/Summon/HauntedScroll.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 52; item.height = 52; item.useTime = item.useAnimation = 25; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Summon/HerringStaff.cs b/Items/Weapons/Summon/HerringStaff.cs index c5b620cd32..82985b8340 100644 --- a/Items/Weapons/Summon/HerringStaff.cs +++ b/Items/Weapons/Summon/HerringStaff.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 46; item.height = 46; item.useTime = item.useAnimation = 30; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 1.25f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Summon/HivePod.cs b/Items/Weapons/Summon/HivePod.cs index fb8d79aa5f..6b4c3d4bc5 100644 --- a/Items/Weapons/Summon/HivePod.cs +++ b/Items/Weapons/Summon/HivePod.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 46; item.height = 50; item.useTime = item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 4f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Summon/InfectedRemote.cs b/Items/Weapons/Summon/InfectedRemote.cs index 6b379cbbb8..2de1cdc0e8 100644 --- a/Items/Weapons/Summon/InfectedRemote.cs +++ b/Items/Weapons/Summon/InfectedRemote.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 46; item.height = 28; item.useTime = item.useAnimation = 20; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.noMelee = true; item.knockBack = 5f; item.UseSound = SoundID.Item15; //phaseblade sound effect diff --git a/Items/Weapons/Summon/LanternoftheSoul.cs b/Items/Weapons/Summon/LanternoftheSoul.cs index 95673a3af0..1da81a352b 100644 --- a/Items/Weapons/Summon/LanternoftheSoul.cs +++ b/Items/Weapons/Summon/LanternoftheSoul.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 42; item.height = 60; item.useTime = item.useAnimation = 15; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Summon/MagicalConch.cs b/Items/Weapons/Summon/MagicalConch.cs index 9ac0054cfa..53303132e1 100644 --- a/Items/Weapons/Summon/MagicalConch.cs +++ b/Items/Weapons/Summon/MagicalConch.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 34; item.height = 24; item.useTime = item.useAnimation = 35; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Summon/PlantationStaff.cs b/Items/Weapons/Summon/PlantationStaff.cs index f22e5764d3..a771cc82c0 100644 --- a/Items/Weapons/Summon/PlantationStaff.cs +++ b/Items/Weapons/Summon/PlantationStaff.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 66; item.height = 70; item.useTime = item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 1f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Summon/ResurrectionButterfly.cs b/Items/Weapons/Summon/ResurrectionButterfly.cs index 01342a29ad..96719a2f54 100644 --- a/Items/Weapons/Summon/ResurrectionButterfly.cs +++ b/Items/Weapons/Summon/ResurrectionButterfly.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 46; item.height = 46; item.useTime = item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 1f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Summon/RustyBeaconPrototype.cs b/Items/Weapons/Summon/RustyBeaconPrototype.cs index c71acf5653..f5b3a70288 100644 --- a/Items/Weapons/Summon/RustyBeaconPrototype.cs +++ b/Items/Weapons/Summon/RustyBeaconPrototype.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 28; item.height = 20; item.useTime = item.useAnimation = 35; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.noMelee = true; item.knockBack = 0.5f; item.value = CalamityGlobalItem.Rarity1BuyPrice; diff --git a/Items/Weapons/Summon/SandSharknadoStaff.cs b/Items/Weapons/Summon/SandSharknadoStaff.cs index 8e82126311..cbe8aed05d 100644 --- a/Items/Weapons/Summon/SandSharknadoStaff.cs +++ b/Items/Weapons/Summon/SandSharknadoStaff.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 48; item.height = 56; item.useTime = item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Weapons/Summon/ScabRipper.cs b/Items/Weapons/Summon/ScabRipper.cs index ab78232363..68a80f92d0 100644 --- a/Items/Weapons/Summon/ScabRipper.cs +++ b/Items/Weapons/Summon/ScabRipper.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 66; item.height = 70; item.useTime = item.useAnimation = 35; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 0.5f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Summon/SeaboundStaff.cs b/Items/Weapons/Summon/SeaboundStaff.cs index 7c1440b5a3..f5ed30b147 100644 --- a/Items/Weapons/Summon/SeaboundStaff.cs +++ b/Items/Weapons/Summon/SeaboundStaff.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.height = 32; item.useTime = item.useAnimation = 35; item.scale = 0.75f; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Summon/ShellfishStaff.cs b/Items/Weapons/Summon/ShellfishStaff.cs index 33fe501073..5d703af829 100644 --- a/Items/Weapons/Summon/ShellfishStaff.cs +++ b/Items/Weapons/Summon/ShellfishStaff.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 50; item.height = 50; item.useTime = item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Summon/SpikecragStaff.cs b/Items/Weapons/Summon/SpikecragStaff.cs index e59accbe2a..2c9a751206 100644 --- a/Items/Weapons/Summon/SpikecragStaff.cs +++ b/Items/Weapons/Summon/SpikecragStaff.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 50; item.height = 50; item.useTime = item.useAnimation = 20; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Summon/SquirrelSquireStaff.cs b/Items/Weapons/Summon/SquirrelSquireStaff.cs index 32da220a04..4212984e80 100644 --- a/Items/Weapons/Summon/SquirrelSquireStaff.cs +++ b/Items/Weapons/Summon/SquirrelSquireStaff.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 52; item.height = 52; item.useTime = item.useAnimation = 35; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 0.5f; item.value = Item.buyPrice(0, 0, 50, 0); diff --git a/Items/Weapons/Summon/StaffoftheMechworm.cs b/Items/Weapons/Summon/StaffoftheMechworm.cs index 291d3d519d..8165469213 100644 --- a/Items/Weapons/Summon/StaffoftheMechworm.cs +++ b/Items/Weapons/Summon/StaffoftheMechworm.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon item.height = 58; item.useTime = 12; item.useAnimation = 12; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Summon/StormjawStaff.cs b/Items/Weapons/Summon/StormjawStaff.cs index a11a056b57..546883a77f 100644 --- a/Items/Weapons/Summon/StormjawStaff.cs +++ b/Items/Weapons/Summon/StormjawStaff.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon item.height = 32; item.useTime = item.useAnimation = 35; item.scale = 0.75f; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Summon/SunGodStaff.cs b/Items/Weapons/Summon/SunGodStaff.cs index dd305b8186..4da962d734 100644 --- a/Items/Weapons/Summon/SunGodStaff.cs +++ b/Items/Weapons/Summon/SunGodStaff.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 50; item.height = 50; item.useTime = item.useAnimation = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 1.25f; item.value = Item.buyPrice(0, 48, 0, 0); diff --git a/Items/Weapons/Summon/SunSpiritStaff.cs b/Items/Weapons/Summon/SunSpiritStaff.cs index a89447ebeb..00f9a88a12 100644 --- a/Items/Weapons/Summon/SunSpiritStaff.cs +++ b/Items/Weapons/Summon/SunSpiritStaff.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 44; item.height = 42; item.useTime = item.useAnimation = 35; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 1.15f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Summon/TacticalPlagueEngine.cs b/Items/Weapons/Summon/TacticalPlagueEngine.cs index b2deaa6b64..fc425782b0 100644 --- a/Items/Weapons/Summon/TacticalPlagueEngine.cs +++ b/Items/Weapons/Summon/TacticalPlagueEngine.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 28; item.height = 20; item.useTime = item.useAnimation = 15; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.noMelee = true; item.knockBack = 0.5f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Summon/VileFeeder.cs b/Items/Weapons/Summon/VileFeeder.cs index b746faaccf..8b4a572c6b 100644 --- a/Items/Weapons/Summon/VileFeeder.cs +++ b/Items/Weapons/Summon/VileFeeder.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 66; item.height = 70; item.useTime = item.useAnimation = 35; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; item.knockBack = 0.5f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Summon/WulfrumController.cs b/Items/Weapons/Summon/WulfrumController.cs index 2bc26dd85b..73811e9ff8 100644 --- a/Items/Weapons/Summon/WulfrumController.cs +++ b/Items/Weapons/Summon/WulfrumController.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon item.width = 28; item.height = 20; item.useTime = item.useAnimation = 35; - item.useStyle = 4; + item.useStyle = ItemUseStyleID.HoldingUp; item.noMelee = true; item.knockBack = 0.5f; item.value = Item.buyPrice(0, 1, 0, 0); diff --git a/Items/Weapons/Typeless/Aestheticus.cs b/Items/Weapons/Typeless/Aestheticus.cs index 257d8cf737..36432205b7 100644 --- a/Items/Weapons/Typeless/Aestheticus.cs +++ b/Items/Weapons/Typeless/Aestheticus.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Typeless item.rare = 3; item.useAnimation = 25; item.useTime = 25; - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 3f; item.UseSound = SoundID.Item109; item.autoReuse = true; diff --git a/Items/Weapons/Typeless/AethersWhisper.cs b/Items/Weapons/Typeless/AethersWhisper.cs index fa581c0416..b4dfa58729 100644 --- a/Items/Weapons/Typeless/AethersWhisper.cs +++ b/Items/Weapons/Typeless/AethersWhisper.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Typeless item.height = 38; item.useTime = 24; item.useAnimation = 24; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5.5f; item.value = Item.buyPrice(1, 40, 0, 0); diff --git a/Items/Weapons/Typeless/FiniteUse/Bazooka.cs b/Items/Weapons/Typeless/FiniteUse/Bazooka.cs index 89ef19bf8c..047b1f6d2a 100644 --- a/Items/Weapons/Typeless/FiniteUse/Bazooka.cs +++ b/Items/Weapons/Typeless/FiniteUse/Bazooka.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse item.height = 26; item.useTime = 30; item.useAnimation = 30; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 10f; item.value = Item.buyPrice(0, 36, 0, 0); diff --git a/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs b/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs index ce4a92d54b..3069600ec9 100644 --- a/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs +++ b/Items/Weapons/Typeless/FiniteUse/ElephantKiller.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse item.height = 26; item.useTime = 19; item.useAnimation = 19; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 8f; item.value = Item.buyPrice(1, 20, 0, 0); diff --git a/Items/Weapons/Typeless/FiniteUse/Hydra.cs b/Items/Weapons/Typeless/FiniteUse/Hydra.cs index ce941f8dc3..0bf0ebd7b2 100644 --- a/Items/Weapons/Typeless/FiniteUse/Hydra.cs +++ b/Items/Weapons/Typeless/FiniteUse/Hydra.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse item.height = 30; item.useTime = 33; item.useAnimation = 33; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 10f; item.value = Item.buyPrice(0, 80, 0, 0); diff --git a/Items/Weapons/Typeless/FiniteUse/LightningHawk.cs b/Items/Weapons/Typeless/FiniteUse/LightningHawk.cs index a847416fbd..c456560ec9 100644 --- a/Items/Weapons/Typeless/FiniteUse/LightningHawk.cs +++ b/Items/Weapons/Typeless/FiniteUse/LightningHawk.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse item.height = 28; item.useTime = 21; item.useAnimation = 21; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 8f; item.value = Item.buyPrice(0, 48, 0, 0); diff --git a/Items/Weapons/Typeless/FiniteUse/Magnum.cs b/Items/Weapons/Typeless/FiniteUse/Magnum.cs index 45dfb0f8bb..3afac8019c 100644 --- a/Items/Weapons/Typeless/FiniteUse/Magnum.cs +++ b/Items/Weapons/Typeless/FiniteUse/Magnum.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse item.height = 24; item.useTime = 25; item.useAnimation = 25; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 8f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Typeless/GoldenGun.cs b/Items/Weapons/Typeless/GoldenGun.cs index f304bfad15..52e34318c6 100644 --- a/Items/Weapons/Typeless/GoldenGun.cs +++ b/Items/Weapons/Typeless/GoldenGun.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Typeless item.height = 36; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 2f; item.value = Item.buyPrice(0, 4, 0, 0); diff --git a/Items/Weapons/Typeless/LunicEye.cs b/Items/Weapons/Typeless/LunicEye.cs index eb8c0c840c..6184c7dffe 100644 --- a/Items/Weapons/Typeless/LunicEye.cs +++ b/Items/Weapons/Typeless/LunicEye.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Typeless item.rare = 5; item.useAnimation = 15; item.useTime = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.knockBack = 4.5f; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LaserCannon"); item.autoReuse = true; diff --git a/Items/Weapons/Typeless/MarkedMagnum.cs b/Items/Weapons/Typeless/MarkedMagnum.cs index 67b152445d..08f95a0fe7 100644 --- a/Items/Weapons/Typeless/MarkedMagnum.cs +++ b/Items/Weapons/Typeless/MarkedMagnum.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Typeless item.height = 20; item.useTime = 15; item.useAnimation = 15; - item.useStyle = 5; + item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 3f; item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Typeless/StarStruckWater.cs b/Items/Weapons/Typeless/StarStruckWater.cs index ebe719a356..35e5af6c2a 100644 --- a/Items/Weapons/Typeless/StarStruckWater.cs +++ b/Items/Weapons/Typeless/StarStruckWater.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Typeless public override void SetDefaults() { - item.useStyle = 1; + item.useStyle = ItemUseStyleID.SwingThrow; item.shootSpeed = 14f; item.rare = 3; item.damage = 20; diff --git a/Localization/CalamityLocalization.cs b/Localization/CalamityLocalization.cs index 83cd81c3f9..1d36e513ef 100644 --- a/Localization/CalamityLocalization.cs +++ b/Localization/CalamityLocalization.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Localization { diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index f6d79f82f3..23b6437d50 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.Events; using CalamityMod.Items; using CalamityMod.Items.Accessories; diff --git a/NPCs/Abyss/Bloatfish.cs b/NPCs/Abyss/Bloatfish.cs index 551d04374f..16d8273463 100644 --- a/NPCs/Abyss/Bloatfish.cs +++ b/NPCs/Abyss/Bloatfish.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Abyss/BobbitWormHead.cs b/NPCs/Abyss/BobbitWormHead.cs index 737f521aac..b6955e59e9 100644 --- a/NPCs/Abyss/BobbitWormHead.cs +++ b/NPCs/Abyss/BobbitWormHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Abyss/BobbitWormSegment.cs b/NPCs/Abyss/BobbitWormSegment.cs index 223736b0b6..b29a1d839f 100644 --- a/NPCs/Abyss/BobbitWormSegment.cs +++ b/NPCs/Abyss/BobbitWormSegment.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/NPCs/Abyss/BoxJellyfish.cs b/NPCs/Abyss/BoxJellyfish.cs index c1ef114b12..141bb88e65 100644 --- a/NPCs/Abyss/BoxJellyfish.cs +++ b/NPCs/Abyss/BoxJellyfish.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Abyss/ChaoticPuffer.cs b/NPCs/Abyss/ChaoticPuffer.cs index fe525c6f94..56d54b9e29 100644 --- a/NPCs/Abyss/ChaoticPuffer.cs +++ b/NPCs/Abyss/ChaoticPuffer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Items.Weapons.Ranged; @@ -118,7 +118,7 @@ namespace CalamityMod.NPCs.Abyss public void Boom() { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 14); + Main.PlaySound(SoundID.NPCDeath14, (int)npc.position.X, (int)npc.position.Y); if (Main.netMode != NetmodeID.MultiplayerClient && puffedUp) { int damageBoom = 100; diff --git a/NPCs/Abyss/ColossalSquid.cs b/NPCs/Abyss/ColossalSquid.cs index 739ff992a4..5bd5615def 100644 --- a/NPCs/Abyss/ColossalSquid.cs +++ b/NPCs/Abyss/ColossalSquid.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; @@ -92,7 +92,7 @@ namespace CalamityMod.NPCs.Abyss } if (Main.rand.NextBool(300)) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 34); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, 34); } npc.noTileCollide = false; if (npc.ai[0] == 0f) @@ -340,7 +340,7 @@ namespace CalamityMod.NPCs.Abyss { if (Main.rand.NextBool(300)) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 34); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, 34); } if (npc.ai[3] > 0f && !Collision.SolidCollision(npc.position, npc.width, npc.height)) { @@ -420,7 +420,7 @@ namespace CalamityMod.NPCs.Abyss { if (Main.rand.NextBool(300)) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 35); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, 35); } npc.localAI[2] = 0f; npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.02f; diff --git a/NPCs/Abyss/Cuttlefish.cs b/NPCs/Abyss/Cuttlefish.cs index db90af3107..5c5be89776 100644 --- a/NPCs/Abyss/Cuttlefish.cs +++ b/NPCs/Abyss/Cuttlefish.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; diff --git a/NPCs/Abyss/DevilFish.cs b/NPCs/Abyss/DevilFish.cs index 55e9ce3829..ce796bb938 100644 --- a/NPCs/Abyss/DevilFish.cs +++ b/NPCs/Abyss/DevilFish.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Abyss/DevilFishAlt.cs b/NPCs/Abyss/DevilFishAlt.cs index 34804ca5a3..d0bce64a95 100644 --- a/NPCs/Abyss/DevilFishAlt.cs +++ b/NPCs/Abyss/DevilFishAlt.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Abyss/EidolonWyrmBody.cs b/NPCs/Abyss/EidolonWyrmBody.cs index b452a26832..32bcbc21f0 100644 --- a/NPCs/Abyss/EidolonWyrmBody.cs +++ b/NPCs/Abyss/EidolonWyrmBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/Abyss/EidolonWyrmBodyAlt.cs b/NPCs/Abyss/EidolonWyrmBodyAlt.cs index 80445f1a6f..4f4d418e2f 100644 --- a/NPCs/Abyss/EidolonWyrmBodyAlt.cs +++ b/NPCs/Abyss/EidolonWyrmBodyAlt.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/Abyss/EidolonWyrmBodyAltHuge.cs b/NPCs/Abyss/EidolonWyrmBodyAltHuge.cs index ed2a89ea59..b14e0c6fc3 100644 --- a/NPCs/Abyss/EidolonWyrmBodyAltHuge.cs +++ b/NPCs/Abyss/EidolonWyrmBodyAltHuge.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/Abyss/EidolonWyrmBodyHuge.cs b/NPCs/Abyss/EidolonWyrmBodyHuge.cs index 65b6664261..c74de819f5 100644 --- a/NPCs/Abyss/EidolonWyrmBodyHuge.cs +++ b/NPCs/Abyss/EidolonWyrmBodyHuge.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/Abyss/EidolonWyrmHead.cs b/NPCs/Abyss/EidolonWyrmHead.cs index 914f799fe8..bcf98857eb 100644 --- a/NPCs/Abyss/EidolonWyrmHead.cs +++ b/NPCs/Abyss/EidolonWyrmHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; @@ -133,7 +133,7 @@ namespace CalamityMod.NPCs.Abyss Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; @@ -156,7 +156,7 @@ namespace CalamityMod.NPCs.Abyss int random = Main.rand.Next(3); if (random == 0) { - Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, 465, damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, ProjectileID.CultistBossLightningOrb, damage, 0f, Main.myPlayer, 0f, 0f); } else if (random == 1) { @@ -169,7 +169,7 @@ namespace CalamityMod.NPCs.Abyss for (int n = 0; n < 1; n++) { Vector2 vector4 = vec * 4f; - Projectile.NewProjectile(vector2.X, vector2.Y, vector4.X, vector4.Y, 464, damage, 0f, Main.myPlayer, 0f, 1f); + Projectile.NewProjectile(vector2.X, vector2.Y, vector4.X, vector4.Y, ProjectileID.CultistBossIceMist, damage, 0f, Main.myPlayer, 0f, 1f); } } else @@ -496,7 +496,7 @@ namespace CalamityMod.NPCs.Abyss { Main.npc[k].life = 0; Main.npc[k].netSkip = -1; - NetMessage.SendData(23, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/Abyss/EidolonWyrmHeadHuge.cs b/NPCs/Abyss/EidolonWyrmHeadHuge.cs index f731084835..95e026dfe2 100644 --- a/NPCs/Abyss/EidolonWyrmHeadHuge.cs +++ b/NPCs/Abyss/EidolonWyrmHeadHuge.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; @@ -138,7 +138,7 @@ namespace CalamityMod.NPCs.Abyss Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; @@ -157,8 +157,8 @@ namespace CalamityMod.NPCs.Abyss int random = Main.rand.Next(3); if (random == 0) { - Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, 465, damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(-vector2.X, -vector2.Y, 0f, 0f, 465, damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, ProjectileID.CultistBossLightningOrb, damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(-vector2.X, -vector2.Y, 0f, 0f, ProjectileID.CultistBossLightningOrb, damage, 0f, Main.myPlayer, 0f, 0f); } else if (random == 1) { @@ -171,8 +171,8 @@ namespace CalamityMod.NPCs.Abyss for (int n = 0; n < 1; n++) { Vector2 vector4 = vec * 4f; - Projectile.NewProjectile(vector2.X, vector2.Y, vector4.X, vector4.Y, 464, damage, 0f, Main.myPlayer, 0f, 1f); - Projectile.NewProjectile(-vector2.X, -vector2.Y, -vector4.X, -vector4.Y, 464, damage, 0f, Main.myPlayer, 0f, 1f); + Projectile.NewProjectile(vector2.X, vector2.Y, vector4.X, vector4.Y, ProjectileID.CultistBossIceMist, damage, 0f, Main.myPlayer, 0f, 1f); + Projectile.NewProjectile(-vector2.X, -vector2.Y, -vector4.X, -vector4.Y, ProjectileID.CultistBossIceMist, damage, 0f, Main.myPlayer, 0f, 1f); } } else @@ -483,7 +483,7 @@ namespace CalamityMod.NPCs.Abyss { Main.npc[k].life = 0; Main.npc[k].netSkip = -1; - NetMessage.SendData(23, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/Abyss/EidolonWyrmTail.cs b/NPCs/Abyss/EidolonWyrmTail.cs index 596881f6d5..f8e6ce9535 100644 --- a/NPCs/Abyss/EidolonWyrmTail.cs +++ b/NPCs/Abyss/EidolonWyrmTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/NPCs/Abyss/EidolonWyrmTailHuge.cs b/NPCs/Abyss/EidolonWyrmTailHuge.cs index e09cc8cb5e..c77d688ed9 100644 --- a/NPCs/Abyss/EidolonWyrmTailHuge.cs +++ b/NPCs/Abyss/EidolonWyrmTailHuge.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/NPCs/Abyss/GiantSquid.cs b/NPCs/Abyss/GiantSquid.cs index ad5f35f5dd..b87541b206 100644 --- a/NPCs/Abyss/GiantSquid.cs +++ b/NPCs/Abyss/GiantSquid.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Abyss/GulperEelBody.cs b/NPCs/Abyss/GulperEelBody.cs index 88d4dad3c8..453fc7e2be 100644 --- a/NPCs/Abyss/GulperEelBody.cs +++ b/NPCs/Abyss/GulperEelBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/Abyss/GulperEelBodyAlt.cs b/NPCs/Abyss/GulperEelBodyAlt.cs index dea59b558a..4bfc45465d 100644 --- a/NPCs/Abyss/GulperEelBodyAlt.cs +++ b/NPCs/Abyss/GulperEelBodyAlt.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/Abyss/GulperEelHead.cs b/NPCs/Abyss/GulperEelHead.cs index c055df6dbd..1a43a13b37 100644 --- a/NPCs/Abyss/GulperEelHead.cs +++ b/NPCs/Abyss/GulperEelHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; @@ -111,7 +111,7 @@ namespace CalamityMod.NPCs.Abyss Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; @@ -383,7 +383,7 @@ namespace CalamityMod.NPCs.Abyss { Main.npc[k].life = 0; Main.npc[k].netSkip = -1; - NetMessage.SendData(23, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/Abyss/GulperEelTail.cs b/NPCs/Abyss/GulperEelTail.cs index 053e70442a..ffa21aeb66 100644 --- a/NPCs/Abyss/GulperEelTail.cs +++ b/NPCs/Abyss/GulperEelTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/Abyss/Laserfish.cs b/NPCs/Abyss/Laserfish.cs index d73890241b..114bbb9a38 100644 --- a/NPCs/Abyss/Laserfish.cs +++ b/NPCs/Abyss/Laserfish.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Ranged; diff --git a/NPCs/Abyss/LuminousCorvina.cs b/NPCs/Abyss/LuminousCorvina.cs index 9716346b52..52fec5e91f 100644 --- a/NPCs/Abyss/LuminousCorvina.cs +++ b/NPCs/Abyss/LuminousCorvina.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; diff --git a/NPCs/Abyss/MirageJelly.cs b/NPCs/Abyss/MirageJelly.cs index bfb7bc187b..75c98426ea 100644 --- a/NPCs/Abyss/MirageJelly.cs +++ b/NPCs/Abyss/MirageJelly.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Abyss/MorayEel.cs b/NPCs/Abyss/MorayEel.cs index f4ff9cf5d4..53ebaca0cf 100644 --- a/NPCs/Abyss/MorayEel.cs +++ b/NPCs/Abyss/MorayEel.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Melee; using CalamityMod.World; diff --git a/NPCs/Abyss/OarfishBody.cs b/NPCs/Abyss/OarfishBody.cs index 056607a01a..23560416c7 100644 --- a/NPCs/Abyss/OarfishBody.cs +++ b/NPCs/Abyss/OarfishBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/NPCs/Abyss/OarfishHead.cs b/NPCs/Abyss/OarfishHead.cs index bfaa2f8da0..ff6e8c1e71 100644 --- a/NPCs/Abyss/OarfishHead.cs +++ b/NPCs/Abyss/OarfishHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Ranged; @@ -100,7 +100,7 @@ namespace CalamityMod.NPCs.Abyss Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; @@ -346,7 +346,7 @@ namespace CalamityMod.NPCs.Abyss { Main.npc[k].life = 0; Main.npc[k].netSkip = -1; - NetMessage.SendData(23, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/Abyss/OarfishTail.cs b/NPCs/Abyss/OarfishTail.cs index 694fc9dc94..69628365d8 100644 --- a/NPCs/Abyss/OarfishTail.cs +++ b/NPCs/Abyss/OarfishTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/NPCs/Abyss/Reaper.cs b/NPCs/Abyss/Reaper.cs index 3e59dba172..d6cb2c4c66 100644 --- a/NPCs/Abyss/Reaper.cs +++ b/NPCs/Abyss/Reaper.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; diff --git a/NPCs/Abyss/ToxicMinnow.cs b/NPCs/Abyss/ToxicMinnow.cs index d006cdadf6..4b9839852d 100644 --- a/NPCs/Abyss/ToxicMinnow.cs +++ b/NPCs/Abyss/ToxicMinnow.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Ranged; @@ -68,7 +68,7 @@ namespace CalamityMod.NPCs.Abyss public override bool CheckDead() { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 14); + Main.PlaySound(SoundID.NPCDeath14, npc.position); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = npc.height = 40; diff --git a/NPCs/Abyss/Viperfish.cs b/NPCs/Abyss/Viperfish.cs index 89cd2d67a7..d8e23409f5 100644 --- a/NPCs/Abyss/Viperfish.cs +++ b/NPCs/Abyss/Viperfish.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/AcidRain/FlakBaby.cs b/NPCs/AcidRain/FlakBaby.cs index 28f64cd604..30b23876fb 100644 --- a/NPCs/AcidRain/FlakBaby.cs +++ b/NPCs/AcidRain/FlakBaby.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Critters; using CalamityMod.Items.Pets; diff --git a/NPCs/AcidRain/FlakCrab.cs b/NPCs/AcidRain/FlakCrab.cs index ada6f36eaa..4ddb9baebd 100644 --- a/NPCs/AcidRain/FlakCrab.cs +++ b/NPCs/AcidRain/FlakCrab.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Ranged; diff --git a/NPCs/AcidRain/GammaSlime.cs b/NPCs/AcidRain/GammaSlime.cs index 229328a357..998805ac23 100644 --- a/NPCs/AcidRain/GammaSlime.cs +++ b/NPCs/AcidRain/GammaSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Buffs.StatDebuffs; diff --git a/NPCs/AcidRain/IrradiatedSlime.cs b/NPCs/AcidRain/IrradiatedSlime.cs index 9b676700b8..82fc30c21d 100644 --- a/NPCs/AcidRain/IrradiatedSlime.cs +++ b/NPCs/AcidRain/IrradiatedSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/AquaticScourge/AquaticParasite.cs b/NPCs/AquaticScourge/AquaticParasite.cs index 81b70b4dbc..b2ea5db3d1 100644 --- a/NPCs/AquaticScourge/AquaticParasite.cs +++ b/NPCs/AquaticScourge/AquaticParasite.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/NPCs/AquaticScourge/AquaticScourgeBody.cs b/NPCs/AquaticScourge/AquaticScourgeBody.cs index 460885df00..8314222576 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBody.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs index db525e20ec..c93e387a4b 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/AquaticScourge/AquaticScourgeHead.cs b/NPCs/AquaticScourge/AquaticScourgeHead.cs index a5952ea92a..da6b731fd6 100644 --- a/NPCs/AquaticScourge/AquaticScourgeHead.cs +++ b/NPCs/AquaticScourge/AquaticScourgeHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Events; using CalamityMod.Items.Accessories; using CalamityMod.Items.LoreItems; @@ -266,7 +266,7 @@ namespace CalamityMod.NPCs.AquaticScourge { Main.npc[k].life = 0; Main.npc[k].netSkip = -1; - NetMessage.SendData(23, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/AquaticScourge/AquaticScourgeTail.cs b/NPCs/AquaticScourge/AquaticScourgeTail.cs index 26bedbf1f2..bf4b41db09 100644 --- a/NPCs/AquaticScourge/AquaticScourgeTail.cs +++ b/NPCs/AquaticScourge/AquaticScourgeTail.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System.IO; using Terraria; using Terraria.ID; diff --git a/NPCs/AquaticScourge/AquaticSeekerBody.cs b/NPCs/AquaticScourge/AquaticSeekerBody.cs index a185d176a8..35c59407be 100644 --- a/NPCs/AquaticScourge/AquaticSeekerBody.cs +++ b/NPCs/AquaticScourge/AquaticSeekerBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; diff --git a/NPCs/AquaticScourge/AquaticSeekerHead.cs b/NPCs/AquaticScourge/AquaticSeekerHead.cs index c2350963c2..58d420a3d8 100644 --- a/NPCs/AquaticScourge/AquaticSeekerHead.cs +++ b/NPCs/AquaticScourge/AquaticSeekerHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.AquaticScourge Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; @@ -297,7 +297,7 @@ namespace CalamityMod.NPCs.AquaticScourge { Main.npc[k].life = 0; Main.npc[k].netSkip = -1; - NetMessage.SendData(23, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/AquaticScourge/AquaticSeekerTail.cs b/NPCs/AquaticScourge/AquaticSeekerTail.cs index 75253344ee..5a18e0422a 100644 --- a/NPCs/AquaticScourge/AquaticSeekerTail.cs +++ b/NPCs/AquaticScourge/AquaticSeekerTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; diff --git a/NPCs/AquaticScourge/AquaticUrchin.cs b/NPCs/AquaticScourge/AquaticUrchin.cs index 6839a8c8c8..73dbb8243d 100644 --- a/NPCs/AquaticScourge/AquaticUrchin.cs +++ b/NPCs/AquaticScourge/AquaticUrchin.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Rogue; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Astral/Aries.cs b/NPCs/Astral/Aries.cs index 798a20ca0d..db1df80ed8 100644 --- a/NPCs/Astral/Aries.cs +++ b/NPCs/Astral/Aries.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Astral/AstralProbe.cs b/NPCs/Astral/AstralProbe.cs index df64942acb..d8d5ef39ca 100644 --- a/NPCs/Astral/AstralProbe.cs +++ b/NPCs/Astral/AstralProbe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; diff --git a/NPCs/Astral/AstralSlime.cs b/NPCs/Astral/AstralSlime.cs index ffb353cfde..1dd8067b76 100644 --- a/NPCs/Astral/AstralSlime.cs +++ b/NPCs/Astral/AstralSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Astral/AstralachneaGround.cs b/NPCs/Astral/AstralachneaGround.cs index 9901d2440c..d8fb0fe039 100644 --- a/NPCs/Astral/AstralachneaGround.cs +++ b/NPCs/Astral/AstralachneaGround.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Astral/AstralachneaWall.cs b/NPCs/Astral/AstralachneaWall.cs index e8db4ad77b..8431559a94 100644 --- a/NPCs/Astral/AstralachneaWall.cs +++ b/NPCs/Astral/AstralachneaWall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Astral/Atlas.cs b/NPCs/Astral/Atlas.cs index 5159f6951e..742571f908 100644 --- a/NPCs/Astral/Atlas.cs +++ b/NPCs/Astral/Atlas.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Astral/BigSightseer.cs b/NPCs/Astral/BigSightseer.cs index 5c27dc930d..fd595ec56f 100644 --- a/NPCs/Astral/BigSightseer.cs +++ b/NPCs/Astral/BigSightseer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Astral/FusionFeeder.cs b/NPCs/Astral/FusionFeeder.cs index 998019408b..0d1a29c9aa 100644 --- a/NPCs/Astral/FusionFeeder.cs +++ b/NPCs/Astral/FusionFeeder.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Astral/Hadarian.cs b/NPCs/Astral/Hadarian.cs index 99eb382df8..8359ba8dba 100644 --- a/NPCs/Astral/Hadarian.cs +++ b/NPCs/Astral/Hadarian.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Astral/Hive.cs b/NPCs/Astral/Hive.cs index 7643451a5a..d19fd83acd 100644 --- a/NPCs/Astral/Hive.cs +++ b/NPCs/Astral/Hive.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Astral/Hiveling.cs b/NPCs/Astral/Hiveling.cs index 491747b89b..13edef2367 100644 --- a/NPCs/Astral/Hiveling.cs +++ b/NPCs/Astral/Hiveling.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Astral/Mantis.cs b/NPCs/Astral/Mantis.cs index cd04642ca5..b779dbdc30 100644 --- a/NPCs/Astral/Mantis.cs +++ b/NPCs/Astral/Mantis.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; @@ -9,6 +9,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.NPCs.Astral @@ -124,7 +125,7 @@ namespace CalamityMod.NPCs.Astral npc.velocity.X *= 0.95f; if (npc.ai[2] == 25f) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 71); + Main.PlaySound(SoundID.Item71, npc.position); Vector2 vector = Main.player[npc.target].Center - npc.Center; vector.Normalize(); int damage = CalamityWorld.downedAstrageldon ? 45 : 55; diff --git a/NPCs/Astral/Nova.cs b/NPCs/Astral/Nova.cs index db273cbbbf..07f67da582 100644 --- a/NPCs/Astral/Nova.cs +++ b/NPCs/Astral/Nova.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Astral/SmallSightseer.cs b/NPCs/Astral/SmallSightseer.cs index e3c7e0a4f6..3235a53658 100644 --- a/NPCs/Astral/SmallSightseer.cs +++ b/NPCs/Astral/SmallSightseer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Astral/StellarCulex.cs b/NPCs/Astral/StellarCulex.cs index 1642b5fe02..d4f8723145 100644 --- a/NPCs/Astral/StellarCulex.cs +++ b/NPCs/Astral/StellarCulex.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Accessories; diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index e47c132305..f03a984e50 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Armor.Vanity; diff --git a/NPCs/AstrumAureus/AureusSpawn.cs b/NPCs/AstrumAureus/AureusSpawn.cs index 5f97122228..9b754f299c 100644 --- a/NPCs/AstrumAureus/AureusSpawn.cs +++ b/NPCs/AstrumAureus/AureusSpawn.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -291,7 +291,7 @@ namespace CalamityMod.NPCs.AstrumAureus public override bool CheckDead() { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 14); + Main.PlaySound(SoundID.Item, (int)npc.position.X, (int)npc.position.Y, 14); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.damage = 150; diff --git a/NPCs/AstrumDeus/AstrumDeusBody.cs b/NPCs/AstrumDeus/AstrumDeusBody.cs index 8a74392812..c5ad4b168e 100644 --- a/NPCs/AstrumDeus/AstrumDeusBody.cs +++ b/NPCs/AstrumDeus/AstrumDeusBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Projectiles.Magic; using CalamityMod.Projectiles.Melee; @@ -138,7 +138,7 @@ namespace CalamityMod.NPCs.AstrumDeus 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); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); } npc.netUpdate = true; } diff --git a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs index 461fe47192..d19ffc1147 100644 --- a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Projectiles.Boss; using CalamityMod.Projectiles.Magic; @@ -184,7 +184,7 @@ namespace CalamityMod.NPCs.AstrumDeus 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); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); } npc.netUpdate = true; } diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index 4951512def..eaafc9ba3d 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Projectiles.Magic; using CalamityMod.Projectiles.Melee; diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs index bc37d9d99a..f7d0b61c09 100644 --- a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; diff --git a/NPCs/AstrumDeus/AstrumDeusProbe.cs b/NPCs/AstrumDeus/AstrumDeusProbe.cs index e283c02000..eec05ef0cf 100644 --- a/NPCs/AstrumDeus/AstrumDeusProbe.cs +++ b/NPCs/AstrumDeus/AstrumDeusProbe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/AstrumDeus/AstrumDeusProbe2.cs b/NPCs/AstrumDeus/AstrumDeusProbe2.cs index 03f2a6c955..c9a3f61418 100644 --- a/NPCs/AstrumDeus/AstrumDeusProbe2.cs +++ b/NPCs/AstrumDeus/AstrumDeusProbe2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/AstrumDeus/AstrumDeusProbe3.cs b/NPCs/AstrumDeus/AstrumDeusProbe3.cs index 9bdffdf84a..730d22a245 100644 --- a/NPCs/AstrumDeus/AstrumDeusProbe3.cs +++ b/NPCs/AstrumDeus/AstrumDeusProbe3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.World; diff --git a/NPCs/AstrumDeus/AstrumDeusTail.cs b/NPCs/AstrumDeus/AstrumDeusTail.cs index b1da58c004..5bb74be2e4 100644 --- a/NPCs/AstrumDeus/AstrumDeusTail.cs +++ b/NPCs/AstrumDeus/AstrumDeusTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Projectiles.Magic; using CalamityMod.Projectiles.Melee; diff --git a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs index 8f345677a9..dc27192828 100644 --- a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Projectiles.Magic; using CalamityMod.Projectiles.Melee; diff --git a/NPCs/BrimstoneElemental/Brimling.cs b/NPCs/BrimstoneElemental/Brimling.cs index 494d44fe18..6df0d07261 100644 --- a/NPCs/BrimstoneElemental/Brimling.cs +++ b/NPCs/BrimstoneElemental/Brimling.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Boss; using CalamityMod.World; diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index 98e46862e9..e5dae4f9fa 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Items.Accessories; diff --git a/NPCs/Bumblebirb/Bumblefuck.cs b/NPCs/Bumblebirb/Bumblefuck.cs index 6584ed016a..79c6b448c8 100644 --- a/NPCs/Bumblebirb/Bumblefuck.cs +++ b/NPCs/Bumblebirb/Bumblefuck.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; diff --git a/NPCs/Bumblebirb/Bumblefuck2.cs b/NPCs/Bumblebirb/Bumblefuck2.cs index dd3ab8562f..0de66932e9 100644 --- a/NPCs/Bumblebirb/Bumblefuck2.cs +++ b/NPCs/Bumblebirb/Bumblefuck2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -223,7 +223,7 @@ namespace CalamityMod.NPCs.Bumblebirb npc.netSpam = 5; if (Main.netMode == NetmodeID.Server) { - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); } return; } diff --git a/NPCs/Calamitas/Calamitas.cs b/NPCs/Calamitas/Calamitas.cs index 6031a3655b..1e80f6cc66 100644 --- a/NPCs/Calamitas/Calamitas.cs +++ b/NPCs/Calamitas/Calamitas.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Projectiles.Boss; diff --git a/NPCs/Calamitas/CalamitasRun.cs b/NPCs/Calamitas/CalamitasRun.cs index 6e5c28cf6f..bf36f460c6 100644 --- a/NPCs/Calamitas/CalamitasRun.cs +++ b/NPCs/Calamitas/CalamitasRun.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Placeables.Furniture.Trophies; diff --git a/NPCs/Calamitas/CalamitasRun2.cs b/NPCs/Calamitas/CalamitasRun2.cs index 9ec03c6fcd..16074fd992 100644 --- a/NPCs/Calamitas/CalamitasRun2.cs +++ b/NPCs/Calamitas/CalamitasRun2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Placeables.Furniture.Trophies; diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasRun3.cs index 908cd94261..9bbd389b67 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasRun3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Accessories; diff --git a/NPCs/Calamitas/LifeSeeker.cs b/NPCs/Calamitas/LifeSeeker.cs index 0c4add9f14..254df4ad94 100644 --- a/NPCs/Calamitas/LifeSeeker.cs +++ b/NPCs/Calamitas/LifeSeeker.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Calamitas/SoulSeeker.cs b/NPCs/Calamitas/SoulSeeker.cs index cf1bbcfdf6..2200db488c 100644 --- a/NPCs/Calamitas/SoulSeeker.cs +++ b/NPCs/Calamitas/SoulSeeker.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Projectiles.Boss; diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 672df00fdf..e0539c0dc2 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs int variable = 10; if (calamityGlobalNPC.newAI[3] % 60f == 0f && npcPosX > variable && npcPosY > variable && npcPosX < Main.maxTilesX - variable && npcPosY < Main.maxTilesY - variable) { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 13); + Main.PlaySound(SoundID.NPCKilled, (int)npc.position.X, (int)npc.position.Y, 13); Vector2 spawnPosition = new Vector2(npcPosX * 16, npcPosY * 16); @@ -148,7 +148,7 @@ namespace CalamityMod.NPCs Main.npc[lol].ai[2] = npc.whoAmI; Main.npc[lol].ai[1] = Previous; Main.npc[Previous].ai[0] = lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } calamityGlobalNPC.newAI[2] = 1f; @@ -179,7 +179,7 @@ namespace CalamityMod.NPCs { npc.localAI[0] = 0f; npc.netUpdate = true; - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 13); + Main.PlaySound(SoundID.NPCKilled, (int)npc.position.X, (int)npc.position.Y, 13); if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -236,7 +236,7 @@ namespace CalamityMod.NPCs npc.TargetClosest(true); if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 17); + Main.PlaySound(SoundID.Item17, (int)npc.position.X, (int)npc.position.Y); Vector2 vector104 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + (npc.height / 2)); float num942 = player.position.X + player.width * 0.5f - vector104.X; float num943 = player.position.Y + player.height * 0.5f - vector104.Y; @@ -1029,7 +1029,7 @@ namespace CalamityMod.NPCs { if (npc.ai[1] == 180f) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 104); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, 104); Vector2 laserVelocity2 = new Vector2(npc.localAI[0], npc.localAI[1]); laserVelocity2.Normalize(); Projectile.NewProjectile(source, laserVelocity2, ModContent.ProjectileType(), 40 + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, npc.whoAmI); @@ -1057,7 +1057,7 @@ namespace CalamityMod.NPCs } if (npc.ai[1] % playSoundTimer == 0f) - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 20); + Main.PlaySound(SoundID.Item20, (int)npc.position.X, (int)npc.position.Y); if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -1131,7 +1131,7 @@ namespace CalamityMod.NPCs { if (Main.netMode != NetmodeID.MultiplayerClient) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)npc.position.X, (int)npc.position.Y); 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)), ModContent.NPCType(), npc.whoAmI, 0, 0, 0, -1); @@ -1831,7 +1831,7 @@ namespace CalamityMod.NPCs if (npc.localAI[2] > 22f) { npc.localAI[2] = 0f; - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 34); + Main.PlaySound(SoundID.Item34, (int)npc.position.X, (int)npc.position.Y); } if (Main.netMode != NetmodeID.MultiplayerClient) @@ -1866,7 +1866,7 @@ namespace CalamityMod.NPCs { if (npc.ai[1] == 1f) { - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y); npc.rotation = num842; float num870 = 14f; @@ -2104,7 +2104,7 @@ namespace CalamityMod.NPCs if (npc.localAI[2] > 36f) { npc.localAI[2] = 0f; - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 34); + Main.PlaySound(SoundID.Item34, (int)npc.position.X, (int)npc.position.Y); } if (Main.netMode != NetmodeID.MultiplayerClient) @@ -2139,7 +2139,7 @@ namespace CalamityMod.NPCs { if (npc.ai[1] == 1f) { - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y); npc.rotation = num842; float num870 = 16f; @@ -2286,7 +2286,7 @@ namespace CalamityMod.NPCs if (npc.localAI[0] >= 180f) { npc.localAI[0] = 0f; - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 33); + Main.PlaySound(SoundID.Item33, (int)npc.position.X, (int)npc.position.Y); int laserDamage = expertMode ? 32 : 37; if (NPC.downedMoonlord && revenge && !CalamityWorld.bossRushActive) laserDamage *= 3; @@ -2647,7 +2647,7 @@ namespace CalamityMod.NPCs if (npc.soundDelay == 0) { npc.soundDelay = 15; - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 109); + Main.PlaySound(SoundID.Item109, (int)npc.position.X, (int)npc.position.Y); } // Emit dust to make the teleport pretty @@ -2690,7 +2690,7 @@ namespace CalamityMod.NPCs if (npc.soundDelay == 0) { npc.soundDelay = 15; - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 109); + Main.PlaySound(SoundID.Item109, (int)npc.position.X, (int)npc.position.Y); } // Emit dust to make the teleport pretty @@ -2812,7 +2812,7 @@ namespace CalamityMod.NPCs Main.npc[lol].ai[2] = npc.whoAmI; Main.npc[lol].ai[1] = Previous; Main.npc[Previous].ai[0] = lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } calamityGlobalNPC.newAI[1] = 1f; @@ -3164,7 +3164,7 @@ namespace CalamityMod.NPCs { if (calamityGlobalNPC.newAI[0] == 0f && Main.netMode != NetmodeID.MultiplayerClient) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)npc.position.X, (int)npc.position.Y); 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)), ModContent.NPCType(), npc.whoAmI, 0, 0, 0, -1); @@ -3179,7 +3179,7 @@ namespace CalamityMod.NPCs { if (calamityGlobalNPC.newAI[0] == 1f && Main.netMode != NetmodeID.MultiplayerClient) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)npc.position.X, (int)npc.position.Y); 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)), ModContent.NPCType(), npc.whoAmI, 0, 0, 0, -1); @@ -3343,7 +3343,7 @@ namespace CalamityMod.NPCs num195 = 20f; npc.soundDelay = (int)num195; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 1); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y); } num193 = (float)Math.Sqrt(num191 * num191 + num192 * num192); @@ -3848,7 +3848,7 @@ namespace CalamityMod.NPCs npc.netSpam = 5; if (Main.netMode == NetmodeID.Server) { - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); } return; } @@ -4021,7 +4021,7 @@ namespace CalamityMod.NPCs npc.netSpam = 5; if (Main.netMode == NetmodeID.Server) { - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } @@ -6030,7 +6030,7 @@ namespace CalamityMod.NPCs { if (npc.ai[1] == 180f) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 104); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, 104); Vector2 laserVelocity2 = new Vector2(npc.localAI[0], npc.localAI[1]); laserVelocity2.Normalize(); @@ -6071,7 +6071,7 @@ namespace CalamityMod.NPCs } if (npc.ai[1] % playSoundTimer == 0f) - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 20); + Main.PlaySound(SoundID.Item20, (int)npc.position.X, (int)npc.position.Y); if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -6401,7 +6401,7 @@ namespace CalamityMod.NPCs npc.velocity.Y -= bounciness; if (npc.type == ModContent.NPCType()) { - Main.PlaySound(2, npc.Center, 14); + Main.PlaySound(SoundID.Item14, npc.Center); for (int k = 0; k < 10; k++) { Dust.NewDust(npc.position, npc.width, npc.height, (int)CalamityDusts.Brimstone, 0f, -1f, 0, default, 1f); @@ -6409,7 +6409,7 @@ namespace CalamityMod.NPCs } if (npc.type == ModContent.NPCType()) { - Main.PlaySound(3, npc.Center, 7); + Main.PlaySound(SoundID.NPCHit, npc.Center, 7); } if (DogPhase2) { diff --git a/NPCs/CalamityGlobalAI.cs b/NPCs/CalamityGlobalAI.cs index d1a11035ac..2e8f812687 100644 --- a/NPCs/CalamityGlobalAI.cs +++ b/NPCs/CalamityGlobalAI.cs @@ -147,7 +147,7 @@ namespace CalamityMod.NPCs Main.dust[num622].fadeIn = 1f + Main.rand.Next(10) * 0.1f; } } - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 38); + Main.PlaySound(SoundID.Item38, (int)npc.position.X, (int)npc.position.Y); NPC.NewNPC((int)vector.X, (int)vector.Y, ModContent.NPCType()); } @@ -552,11 +552,12 @@ namespace CalamityMod.NPCs Main.npc[num255].ai[0] = -1000 * Main.rand.Next(3); Main.npc[num255].ai[1] = 0f; - if (Main.netMode == NetmodeID.Server && num255 < Main.maxNPCs) - NetMessage.SendData(23, -1, -1, null, num255, 0f, 0f, 0f, 0, 0, 0); - } - } - } + if (Main.netMode == NetmodeID.Server && num255 < Main.maxNPCs) + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num255, 0f, 0f, 0f, 0, 0, 0); + } + } + } + } return false; } @@ -727,10 +728,10 @@ namespace CalamityMod.NPCs Main.npc[num23].velocity.Y = vector3.Y; if (Main.netMode == NetmodeID.Server && num23 < Main.maxNPCs) - NetMessage.SendData(23, -1, -1, null, num23, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num23, 0f, 0f, 0f, 0, 0, 0); } - Main.PlaySound(3, (int)vector2.X, (int)vector2.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.NPCHit1, (int)vector2.X, (int)vector2.Y); int num; for (int m = 0; m < 10; m = num + 1) @@ -845,7 +846,7 @@ namespace CalamityMod.NPCs Main.npc[num34].velocity.Y = vector7.Y; if (Main.netMode == NetmodeID.Server && num34 < Main.maxNPCs) - NetMessage.SendData(23, -1, -1, null, num34, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num34, 0f, 0f, 0f, 0, 0, 0); } int num; @@ -865,7 +866,7 @@ namespace CalamityMod.NPCs npc.ai[2] = 0f; else { - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.NPCHit1, (int)npc.position.X, (int)npc.position.Y); int num; for (int num35 = 0; num35 < 2; num35 = num + 1) @@ -882,7 +883,7 @@ namespace CalamityMod.NPCs num = num36; } - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); } } Dust.NewDust(npc.position, npc.width, npc.height, 5, Main.rand.Next(-30, 31) * 0.2f, Main.rand.Next(-30, 31) * 0.2f, 0, default, 1f); @@ -979,7 +980,7 @@ namespace CalamityMod.NPCs else if (npc.ai[1] == 1f) { - Main.PlaySound(36, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.ForceRoar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); npc.rotation = num8; float num42 = ((enraged || configBossRushBoost) ? 9.5f : 6.2f) + 4f * (0.85f - lifeRatio); @@ -1140,7 +1141,7 @@ namespace CalamityMod.NPCs else if (npc.ai[1] == 4f) { if (npc.ai[2] == 0f) - Main.PlaySound(36, (int)npc.position.X, (int)npc.position.Y, -1, 1f, 0f); + Main.PlaySound(SoundID.ForceRoar, (int)npc.position.X, (int)npc.position.Y, -1, 1f, 0f); float num60 = num5; npc.ai[2] += 1f; @@ -1263,7 +1264,7 @@ namespace CalamityMod.NPCs Main.npc[num23].velocity.Y = vector3.Y; if (Main.netMode == NetmodeID.Server && num23 < Main.maxNPCs) - NetMessage.SendData(23, -1, -1, null, num23, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num23, 0f, 0f, 0f, 0, 0, 0); } Main.PlaySound(SoundID.NPCDeath13, npc.position); @@ -1342,7 +1343,7 @@ namespace CalamityMod.NPCs else if (npc.ai[1] == 7f) { if (npc.ai[2] == 0f) - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); float num60 = num5 * 2.5f; npc.ai[2] += 1f; @@ -1513,7 +1514,7 @@ namespace CalamityMod.NPCs npc.HitEffect(0, 10.0); npc.checkDead(); npc.active = false; - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } if (npc.type == NPCID.EaterofWorldsHead && !Main.npc[(int)npc.ai[0]].active) { @@ -1521,7 +1522,7 @@ namespace CalamityMod.NPCs npc.HitEffect(0, 10.0); npc.checkDead(); npc.active = false; - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } if (npc.type == NPCID.EaterofWorldsTail && !Main.npc[(int)npc.ai[1]].active) { @@ -1529,7 +1530,7 @@ namespace CalamityMod.NPCs npc.HitEffect(0, 10.0); npc.checkDead(); npc.active = false; - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } if (npc.type == NPCID.EaterofWorldsBody && (!Main.npc[(int)npc.ai[1]].active || Main.npc[(int)npc.ai[1]].aiStyle != npc.aiStyle)) { @@ -1562,7 +1563,7 @@ namespace CalamityMod.NPCs } if (!npc.active && Main.netMode == NetmodeID.Server) - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } // Movement @@ -1732,7 +1733,7 @@ namespace CalamityMod.NPCs num54 = 20f; npc.soundDelay = (int)num54; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); } num52 = (float)Math.Sqrt(num39 * num39 + num40 * num40); @@ -1767,13 +1768,13 @@ namespace CalamityMod.NPCs npc.life = 0; if (Main.netMode == NetmodeID.Server) - NetMessage.SendData(23, -1, -1, null, num59, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num59, 0f, 0f, 0f, 0, 0, 0); num59 = arg_2853_0; } if (Main.netMode == NetmodeID.Server) - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); } num39 = 0f; num40 = num37; @@ -1906,7 +1907,7 @@ namespace CalamityMod.NPCs npc.life = 0; if (Main.netMode == NetmodeID.Server) - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } @@ -1916,7 +1917,7 @@ namespace CalamityMod.NPCs // Spawn gore if (npc.localAI[2] == 0f) { - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.NPCHit, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); npc.localAI[2] = 1f; @@ -1928,7 +1929,7 @@ namespace CalamityMod.NPCs for (int num794 = 0; num794 < 20; num794++) Dust.NewDust(npc.position, npc.width, npc.height, 5, Main.rand.Next(-30, 31) * 0.2f, Main.rand.Next(-30, 31) * 0.2f, 0, default, 1f); - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); } // Percent life remaining @@ -2007,7 +2008,7 @@ namespace CalamityMod.NPCs else if (npc.ai[1] == 10f) { // Sound - Main.PlaySound(36, (int)npc.position.X, (int)npc.position.Y, -1, 1f, 0f); + Main.PlaySound(SoundID.ForceRoar, (int)npc.position.X, (int)npc.position.Y, -1, 1f, 0f); // Velocity npc.velocity = Vector2.Normalize(Main.player[npc.target].Center - npc.Center) * (CalamityWorld.bossRushActive ? 21f : 14f); @@ -2052,7 +2053,7 @@ namespace CalamityMod.NPCs { // Charge sound if (npc.ai[2] == 0f) - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); // Velocity int var = 120; @@ -2721,7 +2722,7 @@ namespace CalamityMod.NPCs // Face the correct direction and play charge sound npc.spriteDirection = npc.direction; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); return false; } @@ -2970,7 +2971,7 @@ namespace CalamityMod.NPCs // Spawn bees or hornets if (Collision.CanHit(vector76, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) && spawnBee) { - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.NPCHit1, (int)npc.position.X, (int)npc.position.Y); if (Main.netMode != NetmodeID.MultiplayerClient) { int hornetAmt = CalamityMod.hornetList.Count; @@ -3191,10 +3192,10 @@ namespace CalamityMod.NPCs } } - if (Main.netMode == NetmodeID.Server) - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + if (Main.netMode == NetmodeID.Server) + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); - npc.netSpam = 5; + npc.netSpam = 5; return false; } @@ -3243,7 +3244,7 @@ namespace CalamityMod.NPCs { npc.TargetClosest(true); calamityGlobalNPC.newAI[0] = 1f; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, -0.25f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, -0.25f); int num155 = NPC.NewNPC((int)(npc.position.X + (npc.width / 2)), (int)npc.position.Y + npc.height / 2, NPCID.SkeletronHand, npc.whoAmI, 0f, 0f, 0f, 0f, 255); Main.npc[num155].ai[0] = -1f; @@ -3284,7 +3285,7 @@ namespace CalamityMod.NPCs if (Main.dayTime && !CalamityWorld.bossRushActive && npc.ai[1] != 3f && npc.ai[1] != 2f) { npc.ai[1] = 2f; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); } // Hand immunity @@ -3306,7 +3307,6 @@ namespace CalamityMod.NPCs { npc.ai[3] = 0f; - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 66, 1f, -0.25f); Main.PlaySound(SoundID.Item66, npc.position); Vector2 vector10 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f); @@ -3554,7 +3554,7 @@ namespace CalamityMod.NPCs calamityGlobalNPC.newAI[1] += 1f; if (calamityGlobalNPC.newAI[1] == 2f) - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); if (npc.ai[2] >= 300f) { @@ -3926,7 +3926,7 @@ namespace CalamityMod.NPCs if (npc.localAI[3] >= (600 + Main.rand.Next(1000))) { npc.localAI[3] = -Main.rand.Next(200); - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 10, 1f, 0f); + Main.PlaySound(SoundID.NPCDeath10, (int)npc.position.X, (int)npc.position.Y); } // Set whoAmI variable @@ -4051,7 +4051,7 @@ namespace CalamityMod.NPCs // Play roar sound on players nearby if (Main.player[Main.myPlayer].active && !Main.player[Main.myPlayer].dead && Vector2.Distance(Main.player[Main.myPlayer].Center, npc.Center) < 2800f) - Main.PlaySound(4, (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y, 10, 1f, -0.25f); + Main.PlaySound(SoundID.NPCKilled, (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y, 10, 1f, -0.25f); } } else if (distanceFromTarget < distanceBeforeSlowingDown) @@ -4493,7 +4493,7 @@ namespace CalamityMod.NPCs Main.npc[num5].realLife = npc.whoAmI; Main.npc[num5].ai[1] = num2; Main.npc[num2].ai[0] = num5; - NetMessage.SendData(23, -1, -1, null, num5, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num5, 0f, 0f, 0f, 0, 0, 0); num2 = num5; } } @@ -4790,7 +4790,7 @@ namespace CalamityMod.NPCs num24 = 20f; npc.soundDelay = (int)num24; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); } num22 = (float)Math.Sqrt(num20 * num20 + num21 * num21); @@ -5195,7 +5195,7 @@ namespace CalamityMod.NPCs npc.ai[2] = 0f; else { - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.NPCHit1, (int)npc.position.X, (int)npc.position.Y); int num; for (int num397 = 0; num397 < 2; num397 = num + 1) @@ -5212,7 +5212,7 @@ namespace CalamityMod.NPCs num = num398; } - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); } } @@ -5901,7 +5901,7 @@ namespace CalamityMod.NPCs npc.ai[2] = 0f; else { - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.NPCHit, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); int num; for (int num438 = 0; num438 < 2; num438 = num + 1) @@ -5918,7 +5918,7 @@ namespace CalamityMod.NPCs num = num439; } - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); } } @@ -6085,7 +6085,7 @@ namespace CalamityMod.NPCs if (npc.ai[1] == 1f) { // Play charge sound - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); // Set rotation and velocity npc.rotation = num420; @@ -6227,7 +6227,7 @@ namespace CalamityMod.NPCs else if (npc.ai[1] == 4f) { if (npc.ai[2] == 0f) - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); float num60 = (!retAlive && npc.ai[3] == 4f) ? 75f : 50f; if (CalamityWorld.bossRushActive) @@ -6495,7 +6495,7 @@ namespace CalamityMod.NPCs } npc.ai[1] = 2f; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); } // Float near player @@ -6677,7 +6677,7 @@ namespace CalamityMod.NPCs npc.ai[2] += 1f; if (npc.ai[2] == 2f) - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); // Spin for 3 seconds then return to floating phase float phaseTimer = 180f; @@ -6803,7 +6803,7 @@ namespace CalamityMod.NPCs if (npc.ai[2] == 2f) { // Play angry noise - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); // Set spin direction if (Main.player[npc.target].velocity.X > 0f) @@ -8093,7 +8093,7 @@ namespace CalamityMod.NPCs npc.active = false; npc.life = 0; if (Main.netMode == NetmodeID.Server) - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } @@ -9659,7 +9659,7 @@ namespace CalamityMod.NPCs { calamityGlobalNPC.newAI[2] += 1f; - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); return false; } @@ -9749,7 +9749,7 @@ namespace CalamityMod.NPCs } } - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); return false; } @@ -10027,7 +10027,7 @@ namespace CalamityMod.NPCs Main.dust[num21].velocity = Vector2.Normalize(vector2) * 3f; } - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)vector.X, (int)vector.Y, 20, 1f, 0f); } npc.ai[2] += 1f; @@ -10236,11 +10236,11 @@ namespace CalamityMod.NPCs // Play sounds and spawn bubbles if (npc.ai[2] == 0f) - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)vector.X, (int)vector.Y, 20, 1f, 0f); if (npc.ai[2] % num7 == 0f) { - Main.PlaySound(4, (int)npc.Center.X, (int)npc.Center.Y, 19, 1f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)npc.Center.X, (int)npc.Center.Y, 19, 1f, 0f); if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -10278,7 +10278,7 @@ namespace CalamityMod.NPCs // Play sound and spawn sharknadoes if (npc.ai[2] == (float)(num9 - 30)) - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 9, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)vector.X, (int)vector.Y, 9, 1f, 0f); if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[2] == num9 - 30) { @@ -10314,7 +10314,7 @@ namespace CalamityMod.NPCs // Sound if (npc.ai[2] == num10 - 60) - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)vector.X, (int)vector.Y, 20, 1f, 0f); npc.ai[2] += 1f; if (npc.ai[2] >= num10) @@ -10504,11 +10504,11 @@ namespace CalamityMod.NPCs { // Play sounds and spawn bubbles if (npc.ai[2] == 0f) - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)vector.X, (int)vector.Y, 20, 1f, 0f); if (npc.ai[2] % num14 == 0f) { - Main.PlaySound(4, (int)npc.Center.X, (int)npc.Center.Y, 19, 1f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)npc.Center.X, (int)npc.Center.Y, 19, 1f, 0f); if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -10550,7 +10550,7 @@ namespace CalamityMod.NPCs // Play sound and spawn cthulhunado if (npc.ai[2] == num9 - 30) - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)vector.X, (int)vector.Y, 20, 1f, 0f); if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[2] == num9 - 30) Projectile.NewProjectile(vector.X, vector.Y, 0f, 0f, ProjectileID.SharknadoBolt, 0, 0f, Main.myPlayer, 1f, npc.target + 1); @@ -10594,7 +10594,7 @@ namespace CalamityMod.NPCs // Play sound if (npc.ai[2] == num11 - 60) - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)vector.X, (int)vector.Y, 20, 1f, 0f); npc.ai[2] += 1f; if (npc.ai[2] >= num11) @@ -10762,7 +10762,7 @@ namespace CalamityMod.NPCs // Play sound if (npc.ai[2] == num12 / 2) - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)vector.X, (int)vector.Y, 20, 1f, 0f); if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[2] == num12 / 2) { @@ -10822,7 +10822,7 @@ namespace CalamityMod.NPCs // Chant sound if (npc.ai[0] != -1f && Main.rand.NextBool(1000)) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, Main.rand.Next(88, 92), 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, Main.rand.Next(88, 92), 1f, 0f); } // Percent life remaining @@ -10960,19 +10960,19 @@ namespace CalamityMod.NPCs npc.active = false; if (Main.netMode != NetmodeID.MultiplayerClient) { - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } new List().Add(npc.whoAmI); for (int j = 0; j < Main.maxNPCs; j++) { - if (Main.npc[j].active && Main.npc[j].type == 440 && Main.npc[j].ai[3] == npc.whoAmI) + if (Main.npc[j].active && Main.npc[j].type == NPCID.CultistBossClone && Main.npc[j].ai[3] == npc.whoAmI) { Main.npc[j].life = 0; Main.npc[j].HitEffect(0, 10.0); Main.npc[j].active = false; if (Main.netMode != NetmodeID.MultiplayerClient) { - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } } } @@ -10984,7 +10984,7 @@ namespace CalamityMod.NPCs // Spawn and play sound if (npc.localAI[0] == 0f) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 89, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, 89, 1f, 0f); npc.localAI[0] = 1f; npc.alpha = 255; npc.rotation = 0f; @@ -11015,7 +11015,7 @@ namespace CalamityMod.NPCs npc.velocity *= 0.95f; if (npc.localAI[2] != 13f) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 105, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, 105, 1f, 0f); } npc.localAI[2] = 13f; } @@ -11529,7 +11529,7 @@ namespace CalamityMod.NPCs { int num38 = list6[-num35 - 1]; Main.npc[num38].Center = vector11; - NetMessage.SendData(23, -1, -1, null, num38, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num38, 0f, 0f, 0f, 0, 0, 0); } } } @@ -12075,7 +12075,7 @@ namespace CalamityMod.NPCs { // Play a random Moon Lord sound if (npc.ai[0] != -1f && npc.ai[0] != 2f && Main.rand.NextBool(200)) - Main.PlaySound(29, (int)npc.Center.X, (int)npc.Center.Y, Main.rand.Next(93, 100), 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)npc.Center.X, (int)npc.Center.Y, Main.rand.Next(93, 100), 1f, 0f); // Start the AI if (npc.localAI[3] == 0f) @@ -12091,7 +12091,7 @@ namespace CalamityMod.NPCs npc.ai[1] += 1f; if (npc.ai[1] == 30f) - Main.PlaySound(29, (int)npc.Center.X, (int)npc.Center.Y, 92, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)npc.Center.X, (int)npc.Center.Y, 92, 1f, 0f); if (npc.ai[1] < 60f) MoonlordDeathDrama.RequestLight(npc.ai[1] / 30f, npc.Center); @@ -12116,7 +12116,7 @@ namespace CalamityMod.NPCs npc.ai[1] += 1f; if (npc.ai[1] == 30f) - Main.PlaySound(29, (int)npc.Center.X, (int)npc.Center.Y, 92, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)npc.Center.X, (int)npc.Center.Y, 92, 1f, 0f); if (npc.ai[1] < 60f) MoonlordDeathDrama.RequestLight(npc.ai[1] / 30f, npc.Center); @@ -12449,13 +12449,13 @@ namespace CalamityMod.NPCs { nPC5.active = false; if (Main.netMode != NetmodeID.MultiplayerClient) - NetMessage.SendData(23, -1, -1, null, nPC5.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, nPC5.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } npc.active = false; if (Main.netMode != NetmodeID.MultiplayerClient) - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); return false; } @@ -12483,7 +12483,7 @@ namespace CalamityMod.NPCs { projectile2.active = false; if (Main.netMode != NetmodeID.MultiplayerClient) - NetMessage.SendData(27, -1, -1, null, num1171, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncProjectile, -1, -1, null, num1171, 0f, 0f, 0f, 0, 0, 0); } } @@ -12493,8 +12493,8 @@ namespace CalamityMod.NPCs if (nPC4.active && nPC4.type == NPCID.MoonLordFreeEye) { nPC4.active = false; - if (Main.netMode != 1) - NetMessage.SendData(23, -1, -1, null, nPC4.whoAmI, 0f, 0f, 0f, 0, 0, 0); + if (Main.netMode != NetmodeID.MultiplayerClient) + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, nPC4.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } @@ -12515,17 +12515,17 @@ namespace CalamityMod.NPCs { nPC5.active = false; if (Main.netMode != NetmodeID.MultiplayerClient) - NetMessage.SendData(23, -1, -1, null, nPC5.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, nPC5.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } npc.active = false; if (Main.netMode != NetmodeID.MultiplayerClient) - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); NPC.LunarApocalypseIsUp = false; if (Main.netMode == NetmodeID.Server) - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.WorldData, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); return false; } @@ -12928,7 +12928,7 @@ namespace CalamityMod.NPCs npc.localAI[1] = 1f; if (num1207 == num1208 - 35f) - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f); int damage = 40; if (death) @@ -13475,7 +13475,7 @@ namespace CalamityMod.NPCs npc.localAI[1] = 1f; if (num1178 == num1179 - 35f) - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f); int damage = 40; if (death) @@ -13577,7 +13577,7 @@ namespace CalamityMod.NPCs } if (Main.rand.Next(420) == 0) - Main.PlaySound(29, (int)npc.Center.X, (int)npc.Center.Y, Main.rand.Next(100, 101), 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)npc.Center.X, (int)npc.Center.Y, Main.rand.Next(100, 101), 1f, 0f); Vector2 value22 = new Vector2(30f); @@ -13742,7 +13742,7 @@ namespace CalamityMod.NPCs npc.localAI[2] = MathHelper.Lerp(npc.localAI[2], 0.4f, 0.2f); if (num1245 == num1241 - 35f) - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f); if ((num1245 == num1241 - 14f || num1245 == num1241 - 7f || num1245 == num1241) && Main.netMode != NetmodeID.MultiplayerClient) { @@ -13864,7 +13864,7 @@ namespace CalamityMod.NPCs if (num1245 < 120f) { - Main.PlaySound(29, (int)npc.Center.X, (int)npc.Center.Y, 102, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)npc.Center.X, (int)npc.Center.Y, 102, 1f, 0f); if (num1245 == 105f) npc.netUpdate = true; @@ -14287,7 +14287,7 @@ namespace CalamityMod.NPCs if (Main.netMode == NetmodeID.Server) { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.WorldData, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); } } #endregion @@ -14915,7 +14915,7 @@ namespace CalamityMod.NPCs num870 *= num872; num871 *= num872; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, num870, num871, 329, 70, 0f, Main.myPlayer, npc.rotation, (float)npc.spriteDirection); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, num870, num871, ProjectileID.FlamingScythe, 70, 0f, Main.myPlayer, npc.rotation, (float)npc.spriteDirection); } } @@ -15164,7 +15164,7 @@ namespace CalamityMod.NPCs num893 *= num895; num894 *= num895; - Projectile.NewProjectile(vector116.X, vector116.Y, num893, num894, 348, 50, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector116.X, vector116.Y, num893, num894, ProjectileID.FrostWave, 50, 0f, Main.myPlayer, 0f, 0f); } } else if (npc.ai[3] < 0f) @@ -15259,7 +15259,7 @@ namespace CalamityMod.NPCs num902 += 3f; float speedX2 = npc.velocity.X * 0.25f; - Projectile.NewProjectile(vector117.X, vector117.Y, speedX2, num902, 349, 44, 0f, Main.myPlayer, (float)Main.rand.Next(5), 0f); + Projectile.NewProjectile(vector117.X, vector117.Y, speedX2, num902, ProjectileID.FrostShard, 44, 0f, Main.myPlayer, (float)Main.rand.Next(5), 0f); } } } @@ -15304,7 +15304,7 @@ namespace CalamityMod.NPCs if (npc.ai[3] > (float)num908) { npc.ai[3] = 0f; - int num909 = Projectile.NewProjectile(vector118.X, vector118.Y, num904, num905, 349, 40, 0f, Main.myPlayer, 0f, 0f); + int num909 = Projectile.NewProjectile(vector118.X, vector118.Y, num904, num905, ProjectileID.FrostShard, 40, 0f, Main.myPlayer, 0f, 0f); } if (Main.netMode != NetmodeID.MultiplayerClient) @@ -16555,7 +16555,7 @@ namespace CalamityMod.NPCs float time = npc.ai[2] + maxTime + turnToStoneTime; if (time == 1f) { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 17, 1f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)npc.position.X, (int)npc.position.Y, 17, 1f, 0f); } if (time < turnToStoneTime) { @@ -17381,31 +17381,31 @@ namespace CalamityMod.NPCs { if ((npcType == NPCID.Zombie || npcType == NPCID.ZombieXmas || npcType == NPCID.ZombieSweater || npcType == NPCID.Skeleton || (npcType >= NPCID.BoneThrowingSkeleton && npcType <= NPCID.BoneThrowingSkeleton4) || npcType == NPCID.AngryBones || npcType == NPCID.AngryBonesBig || npcType == NPCID.AngryBonesBigHelmet || npcType == NPCID.AngryBonesBigMuscle || npcType == NPCID.ArmoredSkeleton || npcType == NPCID.SkeletonArcher || npcType == NPCID.BaldZombie || npcType == NPCID.UndeadViking || npcType == NPCID.ZombieEskimo || npcType == NPCID.Frankenstein || npcType == NPCID.PincushionZombie || npcType == NPCID.SlimedZombie || npcType == NPCID.SwampZombie || npcType == NPCID.TwiggyZombie || npcType == NPCID.ArmoredViking || npcType == NPCID.FemaleZombie || npcType == NPCID.HeadacheSkeleton || npcType == NPCID.MisassembledSkeleton || npcType == NPCID.PantlessSkeleton || npcType == NPCID.ZombieRaincoat || npcType == NPCID.SkeletonSniper || npcType == NPCID.TacticalSkeleton || npcType == NPCID.SkeletonCommando || npcType == NPCID.ZombieSuperman || npcType == NPCID.ZombiePixie || npcType == NPCID.ZombieDoctor || npcType == NPCID.GreekSkeleton) && Main.rand.Next(1000) == 0) { - Main.PlaySound(14, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.ZombieMoan, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); } if (npcType == NPCID.BloodZombie && Main.rand.Next(800) == 0) { - Main.PlaySound(14, (int)npc.position.X, (int)npc.position.Y, npcType, 1f, 0f); + Main.PlaySound(SoundID.ZombieMoan, (int)npc.position.X, (int)npc.position.Y, npcType, 1f, 0f); } if ((npcType == NPCID.Mummy || npcType == NPCID.DarkMummy || npcType == NPCID.LightMummy) && Main.rand.Next(500) == 0) { - Main.PlaySound(26, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Mummy, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); } if (npcType == NPCID.Vampire && Main.rand.Next(500) == 0) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 7, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, 7, 1f, 0f); } if (npcType == NPCID.Frankenstein && Main.rand.Next(500) == 0) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f); } if (npcType == NPCID.FaceMonster && Main.rand.Next(500) == 0) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 8, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, 8, 1f, 0f); } if (npcType >= 269 && npcType <= 280 && Main.rand.Next(1000) == 0) { - Main.PlaySound(14, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.ZombieMoan, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); } npc.TargetClosest(true); } @@ -18386,7 +18386,7 @@ namespace CalamityMod.NPCs npc.Transform(NPCID.VampireBat); } } - if (Main.netMode != 1 && npc.velocity.Y == 0f) + if (Main.netMode != NetmodeID.MultiplayerClient && npc.velocity.Y == 0f) TryConvertToWallClimber(npc); if (Main.netMode != NetmodeID.MultiplayerClient && Main.expertMode && npc.target >= 0 && (npcType == NPCID.BlackRecluse || npcType == NPCID.BlackRecluseWall) && Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1)) @@ -19211,7 +19211,7 @@ namespace CalamityMod.NPCs Vector2 spawnPosition = new Vector2(npc.position.X + (float)npc.width * 0.5f - (float)(npc.direction * 24), npc.position.Y + 4f); int velocityX = 3 * npc.direction; int velocityY = -5; - int num160 = Projectile.NewProjectile(spawnPosition.X, spawnPosition.Y, velocityX, velocityY, 75, 0, 0f, Main.myPlayer, 0f, 0f); + int num160 = Projectile.NewProjectile(spawnPosition.X, spawnPosition.Y, velocityX, velocityY, ProjectileID.HappyBomb, 0, 0f, Main.myPlayer, 0f, 0f); Main.projectile[num160].timeLeft = 300; npc.ai[2] = 0f; } @@ -19415,7 +19415,7 @@ namespace CalamityMod.NPCs if (npcType == NPCID.GoblinPeon) { WorldGen.KillTile(x, y - 1, false, false, false); - if (Main.netMode == 2) + if (Main.netMode == NetmodeID.Server) { NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, (float)x, (float)(y - 1), 0f, 0, 0, 0); } @@ -19430,7 +19430,7 @@ namespace CalamityMod.NPCs npc.ai[3] = (float)aiGateValue; npc.netUpdate = true; } - if (Main.netMode == 2 & flag24) + if (Main.netMode == NetmodeID.Server & flag24) { NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 0, (float)x, (float)(y - 1), (float)npc.direction, 0, 0, 0); } @@ -19443,7 +19443,7 @@ namespace CalamityMod.NPCs npc.ai[3] = (float)aiGateValue; npc.netUpdate = true; } - if (Main.netMode == 2 & flag25) + if (Main.netMode == NetmodeID.Server & flag25) { NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 4, (float)x, (float)(y - 1), 0f, 0, 0, 0); } @@ -19599,17 +19599,17 @@ namespace CalamityMod.NPCs } float num = 6f; float num2 = 0.05f; - if (npc.type == 6 || npc.type == 173) + if (npc.type == NPCID.EaterofSouls || npc.type == NPCID.Crimera) { num = 4f; num2 = 0.035f; } - else if (npc.type == 94) + else if (npc.type == NPCID.Corruptor) { num = 4.2f; num2 = 0.022f; } - else if (npc.type == 252) + else if (npc.type == NPCID.Parrot) { if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) { @@ -19622,17 +19622,17 @@ namespace CalamityMod.NPCs num = 2f; } } - else if (npc.type == 205) + else if (npc.type == NPCID.Moth) { num = 7f; num2 = 0.06f; } - else if (npc.type == 23) + else if (npc.type == NPCID.MeteorHead) { num = 2f; num2 = 0.05f; } - else if (npc.type == 5) + else if (npc.type == NPCID.ServantofCthulhu) { num = 5f; num2 = 0.03f; @@ -19666,9 +19666,9 @@ namespace CalamityMod.NPCs num4 *= num6; num5 *= num6; } - if (npc.type == 6 || npc.type == 94 || npc.type == 139 || npc.type == 173 || npc.type == 205) + if (npc.type == NPCID.EaterofSouls || npc.type == NPCID.Corruptor || npc.type == NPCID.Probe || npc.type == NPCID.Crimera || npc.type == NPCID.Moth) { - if (num7 > 100f || npc.type == 94) + if (num7 > 100f || npc.type == NPCID.Corruptor) { npc.ai[0] += 1f; if (npc.ai[0] > 0f) @@ -19692,7 +19692,7 @@ namespace CalamityMod.NPCs npc.ai[0] = -200f; } } - if (num7 < 150f && (npc.type == 6 || npc.type == 94 || npc.type == 173)) + if (num7 < 150f && (npc.type == NPCID.EaterofSouls || npc.type == NPCID.Corruptor || npc.type == NPCID.Crimera)) { npc.velocity.X = npc.velocity.X + num4 * 0.009f; npc.velocity.Y = npc.velocity.Y + num5 * 0.009f; @@ -19706,7 +19706,7 @@ namespace CalamityMod.NPCs if (npc.velocity.X < num4) { npc.velocity.X = npc.velocity.X + num2; - if (npc.type != 173 && npc.type != 6 && npc.type != 94 && npc.type != 139 && npc.velocity.X < 0f && num4 > 0f) + if (npc.type != NPCID.Crimera && npc.type != NPCID.EaterofSouls && npc.type != NPCID.Corruptor && npc.type != NPCID.Probe && npc.velocity.X < 0f && num4 > 0f) { npc.velocity.X = npc.velocity.X + num2; } @@ -19714,7 +19714,7 @@ namespace CalamityMod.NPCs else if (npc.velocity.X > num4) { npc.velocity.X = npc.velocity.X - num2; - if (npc.type != 173 && npc.type != 6 && npc.type != 94 && npc.type != 139 && npc.velocity.X > 0f && num4 < 0f) + if (npc.type != NPCID.Crimera && npc.type != NPCID.EaterofSouls && npc.type != NPCID.Corruptor && npc.type != NPCID.Probe && npc.velocity.X > 0f && num4 < 0f) { npc.velocity.X = npc.velocity.X - num2; } @@ -19722,7 +19722,7 @@ namespace CalamityMod.NPCs if (npc.velocity.Y < num5) { npc.velocity.Y = npc.velocity.Y + num2; - if (npc.type != 173 && npc.type != 6 && npc.type != 94 && npc.type != 139 && npc.velocity.Y < 0f && num5 > 0f) + if (npc.type != NPCID.Crimera && npc.type != NPCID.EaterofSouls && npc.type != NPCID.Corruptor && npc.type != NPCID.Probe && npc.velocity.Y < 0f && num5 > 0f) { npc.velocity.Y = npc.velocity.Y + num2; } @@ -19730,12 +19730,12 @@ namespace CalamityMod.NPCs else if (npc.velocity.Y > num5) { npc.velocity.Y = npc.velocity.Y - num2; - if (npc.type != 173 && npc.type != 6 && npc.type != 94 && npc.type != 139 && npc.velocity.Y > 0f && num5 < 0f) + if (npc.type != NPCID.Crimera && npc.type != NPCID.EaterofSouls && npc.type != NPCID.Corruptor && npc.type != NPCID.Probe && npc.velocity.Y > 0f && num5 < 0f) { npc.velocity.Y = npc.velocity.Y - num2; } } - if (npc.type == 23) + if (npc.type == NPCID.MeteorHead) { if (num4 > 0f) { @@ -19748,10 +19748,10 @@ namespace CalamityMod.NPCs npc.rotation = (float)Math.Atan2((double)num5, (double)num4) + MathHelper.Pi; } } - else if (npc.type == 139) + else if (npc.type == NPCID.Probe) { npc.localAI[0] += 1f; - if (Main.netMode != 1 && npc.localAI[0] >= 120f) + if (Main.netMode != NetmodeID.MultiplayerClient && npc.localAI[0] >= 120f) { npc.localAI[0] = 0f; if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) @@ -19780,11 +19780,11 @@ namespace CalamityMod.NPCs npc.rotation = (float)Math.Atan2((double)num5, (double)num4) + MathHelper.Pi; } } - else if (npc.type == 6 || npc.type == 94 || npc.type == 173) + else if (npc.type == NPCID.EaterofSouls || npc.type == NPCID.Corruptor || npc.type == NPCID.Crimera) { npc.rotation = (float)Math.Atan2((double)num5, (double)num4) - MathHelper.PiOver2; } - else if (npc.type == 205) + else if (npc.type == NPCID.Moth) { if (npc.velocity.X > 0f) { @@ -19800,10 +19800,10 @@ namespace CalamityMod.NPCs { npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) - MathHelper.PiOver2; } - if (npc.type == 6 || npc.type == 23 || npc.type == 94 || npc.type == 139 || npc.type == 173 || npc.type == 205) + if (npc.type == NPCID.EaterofSouls || npc.type == NPCID.MeteorHead || npc.type == NPCID.Corruptor || npc.type == NPCID.Probe || npc.type == NPCID.Crimera || npc.type == NPCID.Moth) { float num11 = 0.7f; - if (npc.type == 6 || npc.type == 173) + if (npc.type == NPCID.EaterofSouls || npc.type == NPCID.Crimera) { num11 = 0.4f; } @@ -19833,7 +19833,7 @@ namespace CalamityMod.NPCs npc.velocity.Y = -2f; } } - if (npc.type == 23) + if (npc.type == NPCID.MeteorHead) { int num12 = Dust.NewDust(new Vector2(npc.position.X - npc.velocity.X, npc.position.Y - npc.velocity.Y), npc.width, npc.height, 6, npc.velocity.X * 0.2f, npc.velocity.Y * 0.2f, 100, default(Color), 2f); Dust dust = Main.dust[num12]; @@ -19841,10 +19841,10 @@ namespace CalamityMod.NPCs dust.velocity.X *= 0.3f; dust.velocity.Y *= 0.3f; } - else if (npc.type != 139 && npc.type != 205 && npc.type != 252 && Main.rand.Next(20) == 0) + else if (npc.type != NPCID.Probe && npc.type != NPCID.Moth && npc.type != NPCID.Parrot && Main.rand.Next(20) == 0) { int num13 = 18; - if (npc.type == 173) + if (npc.type == NPCID.Crimera) { num13 = 5; } @@ -19854,14 +19854,14 @@ namespace CalamityMod.NPCs dust.velocity.Y *= 0.1f; } } - else if (npc.type != 252 && Main.rand.Next(40) == 0) + else if (npc.type != NPCID.Parrot && Main.rand.Next(40) == 0) { int num15 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y + (float)npc.height * 0.25f), npc.width, (int)((float)npc.height * 0.5f), 5, npc.velocity.X, 2f, 0, default(Color), 1f); Dust dust = Main.dust[num15]; dust.velocity.X *= 0.5f; dust.velocity.Y *= 0.1f; } - if ((npc.type == 6 || npc.type == 94 || npc.type == 173) && npc.wet) + if ((npc.type == NPCID.EaterofSouls || npc.type == NPCID.Corruptor || npc.type == NPCID.Crimera) && npc.wet) { if (npc.velocity.Y > 0f) { @@ -19873,7 +19873,7 @@ namespace CalamityMod.NPCs npc.velocity.Y = -3f; } } - if (npc.type == 205 && npc.wet) + if (npc.type == NPCID.Moth && npc.wet) { if (npc.velocity.Y > 0f) { @@ -19886,7 +19886,7 @@ namespace CalamityMod.NPCs } npc.TargetClosest(true); } - if (npc.type == 139 & flag) + if (npc.type == NPCID.Probe & flag) { if ((npc.velocity.X > 0f && num4 > 0f) || (npc.velocity.X < 0f && num4 < 0f)) { @@ -19900,7 +19900,7 @@ namespace CalamityMod.NPCs npc.velocity.X = npc.velocity.X * 0.9f; } } - if (Main.netMode != 1 && npc.type == 94 && !Main.player[npc.target].dead) + if (Main.netMode != NetmodeID.MultiplayerClient && npc.type == NPCID.Corruptor && !Main.player[npc.target].dead) { npc.localAI[0] += 1f; if (npc.localAI[0] == 180f) @@ -19912,7 +19912,7 @@ namespace CalamityMod.NPCs npc.localAI[0] = 0f; } } - if ((Main.dayTime && npc.type != 173 && npc.type != 6 && npc.type != 23 && npc.type != 94 && npc.type != 205 && npc.type != 252) || Main.player[npc.target].dead) + if ((Main.dayTime && npc.type != NPCID.Crimera && npc.type != NPCID.EaterofSouls && npc.type != NPCID.MeteorHead && npc.type != NPCID.Corruptor && npc.type != NPCID.Moth && npc.type != NPCID.Parrot) || Main.player[npc.target].dead) { npc.velocity.Y = npc.velocity.Y - num2 * 2f; if (npc.timeLeft > 10) @@ -19993,7 +19993,7 @@ namespace CalamityMod.NPCs } } - if (Main.netMode != 1) + if (Main.netMode != NetmodeID.MultiplayerClient) { if (npc.type == NPCID.WyvernHead && npc.ai[0] == 0f) { @@ -20025,7 +20025,7 @@ namespace CalamityMod.NPCs Main.npc[num8].realLife = npc.whoAmI; Main.npc[num8].ai[1] = (float)num6; Main.npc[num6].ai[0] = (float)num8; - NetMessage.SendData(23, -1, -1, null, num8, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num8, 0f, 0f, 0f, 0, 0, 0); num6 = num8; } } @@ -20048,7 +20048,7 @@ namespace CalamityMod.NPCs Main.npc[num15].realLife = npc.whoAmI; Main.npc[num15].ai[1] = (float)num12; Main.npc[num12].ai[0] = (float)num15; - NetMessage.SendData(23, -1, -1, null, num15, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num15, 0f, 0f, 0f, 0, 0, 0); num12 = num15; } } @@ -20071,7 +20071,7 @@ namespace CalamityMod.NPCs Main.npc[num24].realLife = npc.whoAmI; Main.npc[num24].ai[1] = (float)num20; Main.npc[num20].ai[0] = (float)num24; - NetMessage.SendData(23, -1, -1, null, num24, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num24, 0f, 0f, 0f, 0, 0, 0); num20 = num24; } } @@ -20141,7 +20141,7 @@ namespace CalamityMod.NPCs npc.life = 0; npc.HitEffect(0, 10.0); npc.active = false; - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } } if (npc.ai[0] > 0f && npc.ai[0] < (float)Main.npc.Length) @@ -20151,7 +20151,7 @@ namespace CalamityMod.NPCs npc.life = 0; npc.HitEffect(0, 10.0); npc.active = false; - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } } } @@ -20163,7 +20163,7 @@ namespace CalamityMod.NPCs npc.HitEffect(0, 10.0); npc.checkDead(); npc.active = false; - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } if (isSplittingNPCHead && !Main.npc[(int)npc.ai[0]].active) { @@ -20171,7 +20171,7 @@ namespace CalamityMod.NPCs npc.HitEffect(0, 10.0); npc.checkDead(); npc.active = false; - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } if (isSplittingNPCTail && !Main.npc[(int)npc.ai[1]].active) { @@ -20179,7 +20179,7 @@ namespace CalamityMod.NPCs npc.HitEffect(0, 10.0); npc.checkDead(); npc.active = false; - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } if (isSplittingNPCBody && (!Main.npc[(int)npc.ai[1]].active || Main.npc[(int)npc.ai[1]].aiStyle != npc.aiStyle)) { @@ -20208,9 +20208,9 @@ namespace CalamityMod.NPCs } } - if (!npc.active && Main.netMode == 2) + if (!npc.active && Main.netMode == NetmodeID.Server) { - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } } @@ -20262,7 +20262,7 @@ namespace CalamityMod.NPCs if (npc.position.X + (float)npc.width > vector.X && npc.position.X < vector.X + 16f && npc.position.Y + (float)npc.height > vector.Y && npc.position.Y < vector.Y + 16f) { flag2 = true; - if (Main.rand.Next(100) == 0 && npc.type != 117 && Main.tile[num33, num34].nactive()) + if (Main.rand.Next(100) == 0 && npc.type != NPCID.LeechHead && Main.tile[num33, num34].nactive()) { WorldGen.KillTile(num33, num34, true, true, false); } @@ -20618,7 +20618,7 @@ namespace CalamityMod.NPCs num54 = 20f; } npc.soundDelay = (int)num54; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); } num52 = (float)Math.Sqrt((double)(num39 * num39 + num40 * num40)); @@ -20653,7 +20653,7 @@ namespace CalamityMod.NPCs } if (flag5) { - if (Main.netMode != 1 && (double)(npc.position.Y / 16f) > (Main.rockLayer + (double)Main.maxTilesY) / 2.0) + if (Main.netMode != NetmodeID.MultiplayerClient && (double)(npc.position.Y / 16f) > (Main.rockLayer + (double)Main.maxTilesY) / 2.0) { npc.active = false; int num59 = (int)npc.ai[0]; @@ -20662,15 +20662,15 @@ namespace CalamityMod.NPCs int arg_2853_0 = (int)Main.npc[num59].ai[0]; Main.npc[num59].active = false; npc.life = 0; - if (Main.netMode == 2) + if (Main.netMode == NetmodeID.Server) { - NetMessage.SendData(23, -1, -1, null, num59, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num59, 0f, 0f, 0f, 0, 0, 0); } num59 = arg_2853_0; } - if (Main.netMode == 2) + if (Main.netMode == NetmodeID.Server) { - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } num39 = 0f; @@ -20807,7 +20807,7 @@ namespace CalamityMod.NPCs { npc.ai[0] = 500f; } - if (npc.type == 172) + if (npc.type == NPCID.RuneWizard) { if (npc.alpha < 255) { @@ -20820,7 +20820,7 @@ namespace CalamityMod.NPCs } if (npc.ai[2] != 0f && npc.ai[3] != 0f) { - if (npc.type == 172) + if (npc.type == NPCID.RuneWizard) { npc.alpha = 255; } @@ -21014,7 +21014,7 @@ namespace CalamityMod.NPCs { npc.ai[0] = 650f; } - if (npc.ai[0] >= 650f && Main.netMode != 1) + if (npc.ai[0] >= 650f && Main.netMode != NetmodeID.MultiplayerClient) { npc.ai[0] = 2f; int num86 = (int)Main.player[npc.target].position.X / 16; @@ -21070,7 +21070,7 @@ namespace CalamityMod.NPCs if (npc.ai[1] % 30f == 0f && npc.ai[1] / 30f < 5f) { Main.PlaySound(SoundID.Item8, npc.position); - if (Main.netMode != 1) + if (Main.netMode != NetmodeID.MultiplayerClient) { Point point = npc.Center.ToTileCoordinates(); Point point2 = Main.player[npc.target].Center.ToTileCoordinates(); @@ -21107,7 +21107,7 @@ namespace CalamityMod.NPCs } if (flag7) { - Projectile.NewProjectile((float)(num100 * 16 + 8), (float)(num101 * 16 + 8), 0f, 0f, 596, 0, 1f, Main.myPlayer, (float)npc.target, 0f); + Projectile.NewProjectile((float)(num100 * 16 + 8), (float)(num101 * 16 + 8), 0f, 0f, ProjectileID.DesertDjinnCurse, 0, 1f, Main.myPlayer, (float)npc.target, 0f); break; } } @@ -21119,7 +21119,7 @@ namespace CalamityMod.NPCs { if (npc.type >= NPCID.RaggedCaster && npc.type <= NPCID.DiabolistWhite) { - if (Main.netMode != 1) + if (Main.netMode != NetmodeID.MultiplayerClient) { float num102 = 6f; if (npc.type == NPCID.DiabolistRed || npc.type == NPCID.DiabolistWhite) @@ -21166,7 +21166,7 @@ namespace CalamityMod.NPCs { Main.PlaySound(SoundID.Item8, npc.position); } - if (Main.netMode != 1) + if (Main.netMode != NetmodeID.MultiplayerClient) { if (npc.type == NPCID.GoblinSorcerer || npc.type == NPCID.Tim) { @@ -21211,7 +21211,7 @@ namespace CalamityMod.NPCs dust.velocity.Y = -2f; } } - else if (npc.type == 32) + else if (npc.type == NPCID.DarkCaster) { if (Main.rand.Next(3) != 0) { @@ -21500,12 +21500,12 @@ namespace CalamityMod.NPCs #region Bat AI public static bool BuffedBatAI(NPC npc, Mod mod) { - if (npc.type == 60 || npc.type == 151) + if (npc.type == NPCID.Hellbat || npc.type == NPCID.Lavabat) { int num203 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 6, npc.velocity.X * 0.2f, npc.velocity.Y * 0.2f, 100, default(Color), 2f); Main.dust[num203].noGravity = true; } - if (npc.type == 150 && Main.rand.Next(10) == 0) + if (npc.type == NPCID.IceBat && Main.rand.Next(10) == 0) { int num204 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 67, npc.velocity.X * 0.5f, npc.velocity.Y * 0.5f, 90, default(Color), 1.5f); Main.dust[num204].noGravity = true; @@ -21648,7 +21648,7 @@ namespace CalamityMod.NPCs } DemonEyeBatMovement(npc, maxSpeedX, maxSpeedY, xAccel, xAccelBoost1, xAccelBoost2, yAccel, yAccelBoost1, yAccelBoost2); } - if (npc.type == 48 && npc.wet) + if (npc.type == NPCID.Harpy && npc.wet) { if (npc.velocity.Y > 0f) { @@ -21662,7 +21662,7 @@ namespace CalamityMod.NPCs npc.TargetClosest(true); } // Turn back into a walking bat when possible - if (npc.type == NPCID.VampireBat && Main.netMode != 1) + if (npc.type == NPCID.VampireBat && Main.netMode != NetmodeID.MultiplayerClient) { if (npc.Distance(Main.player[npc.target].Center) < 200f && npc.Center.Y < Main.player[npc.target].Center.Y && @@ -21672,7 +21672,7 @@ namespace CalamityMod.NPCs } } npc.ai[1] += 2f; - if (npc.type == 158) + if (npc.type == NPCID.VampireBat) { npc.ai[1] += 1f; } @@ -22305,7 +22305,7 @@ namespace CalamityMod.NPCs npc.ai[0] -= 1f; } - if (Main.netMode != 1 && flag17 && npc.ai[0] == 0f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + if (Main.netMode != NetmodeID.MultiplayerClient && flag17 && npc.ai[0] == 0f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) { npc.ai[0] = 200f; int num274 = 10; @@ -22323,7 +22323,7 @@ namespace CalamityMod.NPCs Main.projectile[num276].ai[0] = 2f; Main.projectile[num276].timeLeft = 300; Main.projectile[num276].friendly = false; - NetMessage.SendData(27, -1, -1, null, num276, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncProjectile, -1, -1, null, num276, 0f, 0f, 0f, 0, 0, 0); } npc.netUpdate = true; } @@ -22389,7 +22389,7 @@ namespace CalamityMod.NPCs { if (npc.ai[0] == 0f) { - if (Main.netMode != 1) + if (Main.netMode != NetmodeID.MultiplayerClient) { npc.TargetClosest(true); npc.direction *= -1; @@ -22635,7 +22635,7 @@ namespace CalamityMod.NPCs num292 *= num294; num293 *= num294; - if (Main.netMode != 1 && npc.ai[3] == 32f && !Main.player[npc.target].npcTypeNoAggro[npc.type]) + if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[3] == 32f && !Main.player[npc.target].npcTypeNoAggro[npc.type]) { int num295 = 25; int num296 = 84; @@ -22653,7 +22653,7 @@ namespace CalamityMod.NPCs } } - if (Main.netMode != 1 && npc.ai[3] == 0f) + if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[3] == 0f) { npc.localAI[1] += 1f; if (npc.localAI[1] > 120f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) && !Main.player[npc.target].npcTypeNoAggro[npc.type]) @@ -22677,7 +22677,7 @@ namespace CalamityMod.NPCs if (Main.rand.Next(40) == 0) { - Main.PlaySound(27, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Pixie, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); } } else if (npc.type == NPCID.IceElemental) @@ -22724,7 +22724,7 @@ namespace CalamityMod.NPCs npc.rotation = (float)Math.Atan2((double)num302, (double)num301); } - if (Main.netMode != 1 && npc.ai[3] == 16f) + if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[3] == 16f) { int num304 = 45; int num305 = 128; @@ -22742,7 +22742,7 @@ namespace CalamityMod.NPCs } } - if (Main.netMode != 1 && npc.ai[3] == 0f) + if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[3] == 0f) { npc.localAI[1] += 1f; if (npc.localAI[1] > 120f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) @@ -22766,10 +22766,10 @@ namespace CalamityMod.NPCs num290 = 9; } - if (Main.netMode != 1 && !npc.confused) + if (Main.netMode != NetmodeID.MultiplayerClient && !npc.confused) { npc.ai[3] += 1f; - if (Main.netMode != 1 && npc.ai[3] >= 120f) + if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[3] >= 120f) { npc.ai[3] = 0f; if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].head)) @@ -23374,11 +23374,11 @@ namespace CalamityMod.NPCs } } - if (flag5 && Main.netMode != 1) + if (flag5 && Main.netMode != NetmodeID.MultiplayerClient) { for (int k = 0; k < 3; k++) { - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (Main.rand.NextFloat() - 0.5f) * 2f, -4f - 10f * Main.rand.NextFloat(), 538, 50, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (Main.rand.NextFloat() - 0.5f) * 2f, -4f - 10f * Main.rand.NextFloat(), ProjectileID.Twinkle, 50, 0f, Main.myPlayer, 0f, 0f); } npc.HitEffect(9999, 10.0); npc.active = false; @@ -23422,10 +23422,10 @@ namespace CalamityMod.NPCs npc.velocity.X = 0f; } - if (npc.ai[1] == 30f && Main.netMode != 1) + if (npc.ai[1] == 30f && Main.netMode != NetmodeID.MultiplayerClient) { int num5 = Main.expertMode ? 35 : 50; - Projectile.NewProjectile(npc.Center.X + (float)(npc.spriteDirection * -20), npc.Center.Y, (float)(npc.spriteDirection * -7), 0f, 575, num5, 0f, Main.myPlayer, (float)npc.target, 0f); + Projectile.NewProjectile(npc.Center.X + (float)(npc.spriteDirection * -20), npc.Center.Y, (float)(npc.spriteDirection * -7), 0f, ProjectileID.NebulaSphere, num5, 0f, Main.myPlayer, (float)npc.target, 0f); } if (npc.ai[1] >= 60f) @@ -23460,7 +23460,7 @@ namespace CalamityMod.NPCs else if (npc.type == NPCID.Tumbleweed && npc.velocity.Y == 0f && Math.Abs(npc.velocity.X) > 3f && ((npc.Center.X < Main.player[npc.target].Center.X && npc.velocity.X > 0f) || (npc.Center.X > Main.player[npc.target].Center.X && npc.velocity.X < 0f))) { npc.velocity.Y = npc.velocity.Y - 6f; - Main.PlaySound(3, npc.Center, 11); + Main.PlaySound(SoundID.NPCHit, npc.Center, 11); } if (npc.ai[3] < (float)num) @@ -24379,7 +24379,7 @@ namespace CalamityMod.NPCs } float num567 = 3f; float num568 = 0.12f; - if (npc.type == 531) + if (npc.type == NPCID.DesertScorpionWall) { num567 = 6f; num568 = 0.24f; @@ -24506,7 +24506,7 @@ namespace CalamityMod.NPCs } npc.rotation = (float)Math.Atan2((double)num570, (double)num569); } - if (npc.type == 531) + if (npc.type == NPCID.DesertScorpionWall) { npc.rotation += MathHelper.PiOver2; } @@ -24541,9 +24541,9 @@ namespace CalamityMod.NPCs { npc.netUpdate = true; } - if (Main.netMode != 1) + if (Main.netMode != NetmodeID.MultiplayerClient) { - if (Main.netMode != 1 && npc.target >= 0 && (npc.type == 163 || npc.type == 238) && Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1)) + if (Main.netMode != NetmodeID.MultiplayerClient && npc.target >= 0 && (npc.type == NPCID.BlackRecluse || npc.type == NPCID.BlackRecluseWall) && Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1)) { npc.localAI[0] += 1f; if (npc.localAI[0] > (float)Main.rand.Next(180, 600)) @@ -24552,7 +24552,7 @@ namespace CalamityMod.NPCs Vector2 vector71 = Main.player[npc.target].Center - npc.Center; vector71.Normalize(); vector71 *= 8f; - int num573 = Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector71.X, vector71.Y, 472, 18, 0f, Main.myPlayer, 0f, 0f); + int num573 = Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector71.X, vector71.Y, ProjectileID.WebSpit, 18, 0f, Main.myPlayer, 0f, 0f); } } int num574 = (int)npc.Center.X / 16; @@ -25719,7 +25719,7 @@ namespace CalamityMod.NPCs npc.noGravity = true; npc.noTileCollide = false; npc.defense = npc.defDefense; - if (npc.justHit && Main.netMode != 1 && Main.rand.Next(10) == 0) + if (npc.justHit && Main.netMode != NetmodeID.MultiplayerClient && Main.rand.Next(10) == 0) { npc.netUpdate = true; npc.ai[0] = -1f; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index cfc12251b7..0e545b50c3 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3778,7 +3778,7 @@ namespace CalamityMod.NPCs #region Check Dead public override bool CheckDead(NPC npc) { - if (npc.lifeMax > 1000 && npc.type != 288 && + if (npc.lifeMax > 1000 && npc.type != NPCID.DungeonSpirit && npc.type != NPCType() && npc.type != NPCType() && npc.type != NPCType() && @@ -3849,7 +3849,7 @@ namespace CalamityMod.NPCs if (Main.netMode == NetmodeID.Server && num263 < 200) { - NetMessage.SendData(23, -1, -1, null, num263, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num263, 0f, 0f, 0f, 0, 0, 0); } num = num262; @@ -6112,7 +6112,7 @@ namespace CalamityMod.NPCs } else { - NetMessage.SendData(61, -1, -1, null, plr, (float)type, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, plr, (float)type, 0f, 0f, 0, 0, 0); } } diff --git a/NPCs/CeaselessVoid/CeaselessVoid.cs b/NPCs/CeaselessVoid/CeaselessVoid.cs index 470e72f160..612c9823f8 100644 --- a/NPCs/CeaselessVoid/CeaselessVoid.cs +++ b/NPCs/CeaselessVoid/CeaselessVoid.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; diff --git a/NPCs/CeaselessVoid/DarkEnergy.cs b/NPCs/CeaselessVoid/DarkEnergy.cs index 8d950437c8..f1f43ab960 100644 --- a/NPCs/CeaselessVoid/DarkEnergy.cs +++ b/NPCs/CeaselessVoid/DarkEnergy.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Rogue; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/CeaselessVoid/DarkEnergy2.cs b/NPCs/CeaselessVoid/DarkEnergy2.cs index d8a50f1e32..4ccdac2ea0 100644 --- a/NPCs/CeaselessVoid/DarkEnergy2.cs +++ b/NPCs/CeaselessVoid/DarkEnergy2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Rogue; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/CeaselessVoid/DarkEnergy3.cs b/NPCs/CeaselessVoid/DarkEnergy3.cs index 4288c4e321..0bb855b4ad 100644 --- a/NPCs/CeaselessVoid/DarkEnergy3.cs +++ b/NPCs/CeaselessVoid/DarkEnergy3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Rogue; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Crabulon/CrabShroom.cs b/NPCs/Crabulon/CrabShroom.cs index d33f5aee09..1bd591bf49 100644 --- a/NPCs/Crabulon/CrabShroom.cs +++ b/NPCs/Crabulon/CrabShroom.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/NPCs/Crabulon/CrabulonIdle.cs b/NPCs/Crabulon/CrabulonIdle.cs index 5e50e22318..f0dc2cf159 100644 --- a/NPCs/Crabulon/CrabulonIdle.cs +++ b/NPCs/Crabulon/CrabulonIdle.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatBuffs; +using CalamityMod.Buffs.StatBuffs; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; @@ -165,7 +165,7 @@ namespace CalamityMod.NPCs.Crabulon float num353 = 10f; int num354 = expertMode ? 12 : 16; int num355 = ModContent.ProjectileType(); - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42); + Main.PlaySound(SoundID.Item42, (int)npc.position.X, (int)npc.position.Y); if (CalamityWorld.bossRushActive) { num353 += 3f; @@ -525,7 +525,7 @@ namespace CalamityMod.NPCs.Crabulon Main.npc[num664].velocity.Y = (float)Main.rand.Next(-50, -31) * 0.1f; if (Main.netMode == NetmodeID.Server && num664 < 200) { - NetMessage.SendData(23, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/Crags/CalamityEye.cs b/NPCs/Crags/CalamityEye.cs index 54f2fd78ab..d34343b087 100644 --- a/NPCs/Crags/CalamityEye.cs +++ b/NPCs/Crags/CalamityEye.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Crags/CharredSlime.cs b/NPCs/Crags/CharredSlime.cs index 4d1ddd6901..58a3c729ea 100644 --- a/NPCs/Crags/CharredSlime.cs +++ b/NPCs/Crags/CharredSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Crags/CultistAssassin.cs b/NPCs/Crags/CultistAssassin.cs index e258a8cadd..724a9d55a8 100644 --- a/NPCs/Crags/CultistAssassin.cs +++ b/NPCs/Crags/CultistAssassin.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; diff --git a/NPCs/Crags/DespairStone.cs b/NPCs/Crags/DespairStone.cs index eeed497276..43dff17e74 100644 --- a/NPCs/Crags/DespairStone.cs +++ b/NPCs/Crags/DespairStone.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Crags/Scryllar.cs b/NPCs/Crags/Scryllar.cs index b303137fd9..e626cc9ebf 100644 --- a/NPCs/Crags/Scryllar.cs +++ b/NPCs/Crags/Scryllar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Crags/ScryllarRage.cs b/NPCs/Crags/ScryllarRage.cs index 4150d8c190..2728702026 100644 --- a/NPCs/Crags/ScryllarRage.cs +++ b/NPCs/Crags/ScryllarRage.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Crags/SoulSlurper.cs b/NPCs/Crags/SoulSlurper.cs index cbd0631b4a..455172b3ae 100644 --- a/NPCs/Crags/SoulSlurper.cs +++ b/NPCs/Crags/SoulSlurper.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/Cryogen/Cryocore.cs b/NPCs/Cryogen/Cryocore.cs index bc215da442..f8b4e9f821 100644 --- a/NPCs/Cryogen/Cryocore.cs +++ b/NPCs/Cryogen/Cryocore.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/NPCs/Cryogen/Cryocore2.cs b/NPCs/Cryogen/Cryocore2.cs index ebaad17782..b5cad284eb 100644 --- a/NPCs/Cryogen/Cryocore2.cs +++ b/NPCs/Cryogen/Cryocore2.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index 20046193a3..85fb1f8edb 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; @@ -955,7 +955,7 @@ namespace CalamityMod.NPCs.Cryogen int num664 = NPC.NewNPC(x, y, randomSpawn, 0, 0f, 0f, 0f, 0f, 255); if (Main.netMode == NetmodeID.Server && num664 < 200) { - NetMessage.SendData(23, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); } } } @@ -972,7 +972,7 @@ namespace CalamityMod.NPCs.Cryogen Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CryoChipGore" + i), 1f); } currentPhase = newPhase; - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 15); + Main.PlaySound(SoundID.NPCDeath14, (int)npc.position.X, (int)npc.position.Y); } diff --git a/NPCs/Cryogen/CryogenIce.cs b/NPCs/Cryogen/CryogenIce.cs index fe68a082c0..3d0f61a4a9 100644 --- a/NPCs/Cryogen/CryogenIce.cs +++ b/NPCs/Cryogen/CryogenIce.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/Cryogen/IceMass.cs b/NPCs/Cryogen/IceMass.cs index 2680500612..e403f21701 100644 --- a/NPCs/Cryogen/IceMass.cs +++ b/NPCs/Cryogen/IceMass.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using System; using Terraria; using Terraria.ID; diff --git a/NPCs/DesertScourge/DesertScourgeBody.cs b/NPCs/DesertScourge/DesertScourgeBody.cs index c725145118..476a75b4e7 100644 --- a/NPCs/DesertScourge/DesertScourgeBody.cs +++ b/NPCs/DesertScourge/DesertScourgeBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using System; @@ -150,7 +150,7 @@ namespace CalamityMod.NPCs.DesertScourge 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); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, seeker, 0f, 0f, 0f, 0, 0, 0); } npc.netUpdate = true; } diff --git a/NPCs/DesertScourge/DesertScourgeBodySmall.cs b/NPCs/DesertScourge/DesertScourgeBodySmall.cs index 8a8cfd2ed7..0316dfaa82 100644 --- a/NPCs/DesertScourge/DesertScourgeBodySmall.cs +++ b/NPCs/DesertScourge/DesertScourgeBodySmall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 6bc5d371f4..bd42919b14 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; @@ -138,7 +138,7 @@ namespace CalamityMod.NPCs.DesertScourge Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; @@ -306,7 +306,7 @@ namespace CalamityMod.NPCs.DesertScourge num195 = 20f; } npc.soundDelay = (int)num195; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 1); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 1); } num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); float num196 = System.Math.Abs(num191); diff --git a/NPCs/DesertScourge/DesertScourgeHeadSmall.cs b/NPCs/DesertScourge/DesertScourgeHeadSmall.cs index 15da651fb8..aa8e5e76d0 100644 --- a/NPCs/DesertScourge/DesertScourgeHeadSmall.cs +++ b/NPCs/DesertScourge/DesertScourgeHeadSmall.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.DesertScourge Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; @@ -245,7 +245,7 @@ namespace CalamityMod.NPCs.DesertScourge num195 = 20f; } npc.soundDelay = (int)num195; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 1); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 1); } num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); float num196 = System.Math.Abs(num191); diff --git a/NPCs/DesertScourge/DesertScourgeTail.cs b/NPCs/DesertScourge/DesertScourgeTail.cs index 1e82edee6e..d68de66dc9 100644 --- a/NPCs/DesertScourge/DesertScourgeTail.cs +++ b/NPCs/DesertScourge/DesertScourgeTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System.IO; using Terraria; diff --git a/NPCs/DesertScourge/DesertScourgeTailSmall.cs b/NPCs/DesertScourge/DesertScourgeTailSmall.cs index 851ef0dee4..a297c75b41 100644 --- a/NPCs/DesertScourge/DesertScourgeTailSmall.cs +++ b/NPCs/DesertScourge/DesertScourgeTailSmall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; diff --git a/NPCs/DesertScourge/DriedSeekerBody.cs b/NPCs/DesertScourge/DriedSeekerBody.cs index ed7c199ef0..e9e86211b6 100644 --- a/NPCs/DesertScourge/DriedSeekerBody.cs +++ b/NPCs/DesertScourge/DriedSeekerBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/NPCs/DesertScourge/DriedSeekerHead.cs b/NPCs/DesertScourge/DriedSeekerHead.cs index 129dd243f0..27683c9688 100644 --- a/NPCs/DesertScourge/DriedSeekerHead.cs +++ b/NPCs/DesertScourge/DriedSeekerHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -57,7 +57,7 @@ namespace CalamityMod.NPCs.DesertScourge Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; diff --git a/NPCs/DesertScourge/DriedSeekerTail.cs b/NPCs/DesertScourge/DriedSeekerTail.cs index f70424130b..e457c5fbc6 100644 --- a/NPCs/DesertScourge/DriedSeekerTail.cs +++ b/NPCs/DesertScourge/DriedSeekerTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/NPCs/DevourerofGods/DevourerofGodsBody.cs b/NPCs/DevourerofGods/DevourerofGodsBody.cs index d41181a173..02dcbad27f 100644 --- a/NPCs/DevourerofGods/DevourerofGodsBody.cs +++ b/NPCs/DevourerofGods/DevourerofGodsBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Boss; using CalamityMod.World; diff --git a/NPCs/DevourerofGods/DevourerofGodsBody2.cs b/NPCs/DevourerofGods/DevourerofGodsBody2.cs index 1e100a2eb9..8b50af9d4a 100644 --- a/NPCs/DevourerofGods/DevourerofGodsBody2.cs +++ b/NPCs/DevourerofGods/DevourerofGodsBody2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; diff --git a/NPCs/DevourerofGods/DevourerofGodsBodyS.cs b/NPCs/DevourerofGods/DevourerofGodsBodyS.cs index 00aa11b5da..ce825d239e 100644 --- a/NPCs/DevourerofGods/DevourerofGodsBodyS.cs +++ b/NPCs/DevourerofGods/DevourerofGodsBodyS.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index 2c4b5c6d84..03666b48e3 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -192,7 +192,7 @@ namespace CalamityMod.NPCs.DevourerofGods Main.npc[segment].ai[2] = (float)npc.whoAmI; Main.npc[segment].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)segment; - NetMessage.SendData(23, -1, -1, null, segment, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, segment, 0f, 0f, 0f, 0); Previous = segment; } tail = true; diff --git a/NPCs/DevourerofGods/DevourerofGodsHead2.cs b/NPCs/DevourerofGods/DevourerofGodsHead2.cs index 909c6114c2..4f0c63cc1e 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead2.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -127,7 +127,7 @@ namespace CalamityMod.NPCs.DevourerofGods } if (!npc.active && Main.netMode == NetmodeID.Server) { - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } } if (CalamityGlobalNPC.DoGHead < 0 || !Main.npc[CalamityGlobalNPC.DoGHead].active) @@ -301,7 +301,7 @@ namespace CalamityMod.NPCs.DevourerofGods num195 = 20f; } npc.soundDelay = (int)num195; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 1); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 1); } num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); float num196 = System.Math.Abs(num191); diff --git a/NPCs/DevourerofGods/DevourerofGodsHeadS.cs b/NPCs/DevourerofGods/DevourerofGodsHeadS.cs index 0a8fcc8143..d81c9fbdf6 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHeadS.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHeadS.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; @@ -265,7 +265,7 @@ namespace CalamityMod.NPCs.DevourerofGods Main.npc[segment].ai[2] = (float)npc.whoAmI; Main.npc[segment].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)segment; - NetMessage.SendData(23, -1, -1, null, segment, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, segment, 0f, 0f, 0f, 0); Previous = segment; } tail = true; @@ -312,10 +312,10 @@ namespace CalamityMod.NPCs.DevourerofGods int divisor = CalamityWorld.bossRushActive ? 90 : 120; if (laserShoot % divisor == 0) - { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 12); + { + Main.PlaySound(SoundID.Item12, (int)npc.position.X, (int)npc.position.Y); - float targetPosY = player.position.Y + (Main.rand.NextBool(2) ? 50f : 0f); + float targetPosY = player.position.Y + (Main.rand.NextBool(2) ? 50f : 0f); // Side walls for (int x = 0; x < totalShots; x++) diff --git a/NPCs/DevourerofGods/DevourerofGodsTail.cs b/NPCs/DevourerofGods/DevourerofGodsTail.cs index 48e1692ff4..c071c63cb2 100644 --- a/NPCs/DevourerofGods/DevourerofGodsTail.cs +++ b/NPCs/DevourerofGods/DevourerofGodsTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/DevourerofGods/DevourerofGodsTail2.cs b/NPCs/DevourerofGods/DevourerofGodsTail2.cs index 807acfabde..6437ac5230 100644 --- a/NPCs/DevourerofGods/DevourerofGodsTail2.cs +++ b/NPCs/DevourerofGods/DevourerofGodsTail2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; diff --git a/NPCs/DevourerofGods/DevourerofGodsTailS.cs b/NPCs/DevourerofGods/DevourerofGodsTailS.cs index a56aa64f80..5148d7a86f 100644 --- a/NPCs/DevourerofGods/DevourerofGodsTailS.cs +++ b/NPCs/DevourerofGods/DevourerofGodsTailS.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/GreatSandShark/GreatSandShark.cs b/NPCs/GreatSandShark/GreatSandShark.cs index 41b23eab7b..5bbd77bb29 100644 --- a/NPCs/GreatSandShark/GreatSandShark.cs +++ b/NPCs/GreatSandShark/GreatSandShark.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; @@ -434,7 +434,7 @@ namespace CalamityMod.NPCs.GreatSandShark { if (npc.localAI[0] == 0f) { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 15); + Main.PlaySound(SoundID.NPCDeath15, npc.position); npc.localAI[0] = -1f; for (int num621 = 0; num621 < 25; num621++) { diff --git a/NPCs/HiveMind/DankCreeper.cs b/NPCs/HiveMind/DankCreeper.cs index b0d436e06f..2fb82d76c4 100644 --- a/NPCs/HiveMind/DankCreeper.cs +++ b/NPCs/HiveMind/DankCreeper.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/HiveMind/DarkHeart.cs b/NPCs/HiveMind/DarkHeart.cs index 3a394c09e0..0f936cba83 100644 --- a/NPCs/HiveMind/DarkHeart.cs +++ b/NPCs/HiveMind/DarkHeart.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/HiveMind/HiveBlob.cs b/NPCs/HiveMind/HiveBlob.cs index 6a829dd76d..6b2cd83b00 100644 --- a/NPCs/HiveMind/HiveBlob.cs +++ b/NPCs/HiveMind/HiveBlob.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/HiveMind/HiveBlob2.cs b/NPCs/HiveMind/HiveBlob2.cs index 54ab17d024..e475cb30fe 100644 --- a/NPCs/HiveMind/HiveBlob2.cs +++ b/NPCs/HiveMind/HiveBlob2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/HiveMind/HiveCyst.cs b/NPCs/HiveMind/HiveCyst.cs index 7e7bf044b6..254ba0bc61 100644 --- a/NPCs/HiveMind/HiveCyst.cs +++ b/NPCs/HiveMind/HiveCyst.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 9593334f92..fdd9a5e195 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; using System.IO; @@ -180,7 +180,7 @@ namespace CalamityMod.NPCs.HiveMind Main.npc[num664].velocity.Y = (float)Main.rand.Next(-30, 1) * 0.1f; if (Main.netMode == NetmodeID.Server && num664 < 200) { - NetMessage.SendData(23, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); } } return; @@ -311,7 +311,7 @@ namespace CalamityMod.NPCs.HiveMind if (NPC.CountNPCS(ModContent.NPCType()) < 1) { 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); + Main.PlaySound(SoundID.Roar, (int)npc.Center.X, (int)npc.Center.Y, 0); } } } diff --git a/NPCs/HiveMind/HiveMindP2.cs b/NPCs/HiveMind/HiveMindP2.cs index ebe7dfa5b5..cba3ab3fb7 100644 --- a/NPCs/HiveMind/HiveMindP2.cs +++ b/NPCs/HiveMind/HiveMindP2.cs @@ -279,7 +279,7 @@ namespace CalamityMod.NPCs.HiveMind if (CalamityWorld.revenge || CalamityWorld.bossRushActive) { state = 2; - Main.PlaySound(36, (int)npc.Center.X, (int)npc.Center.Y, -1, 1f, 0f); + Main.PlaySound(SoundID.ForceRoar, (int)npc.Center.X, (int)npc.Center.Y, -1, 1f, 0f); } else { @@ -289,11 +289,11 @@ namespace CalamityMod.NPCs.HiveMind nextState = 0; if (state == 2) { - Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); + Main.PlaySound(SoundID.Roar, (int)npc.Center.X, (int)npc.Center.Y, 0); } else { - Main.PlaySound(36, (int)npc.Center.X, (int)npc.Center.Y, -1, 1f, 0f); + Main.PlaySound(SoundID.ForceRoar, (int)npc.Center.X, (int)npc.Center.Y, -1, 1f, 0f); } } } @@ -517,7 +517,7 @@ namespace CalamityMod.NPCs.HiveMind npc.velocity.Normalize(); npc.velocity *= teleportRadius / lungeTime; dashStarted = true; - Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); + Main.PlaySound(SoundID.Roar, (int)npc.Center.X, (int)npc.Center.Y, 0); } else { @@ -555,7 +555,7 @@ namespace CalamityMod.NPCs.HiveMind if (!dashStarted) { dashStarted = true; - Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); + Main.PlaySound(SoundID.Roar, (int)npc.Center.X, (int)npc.Center.Y, 0); npc.velocity.X = 3.14159265f * teleportRadius / arcTime; npc.velocity *= rotationDirection; npc.netUpdate = true; @@ -611,7 +611,7 @@ namespace CalamityMod.NPCs.HiveMind if (!dashStarted) { dashStarted = true; - Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); + Main.PlaySound(SoundID.Roar, (int)npc.Center.X, (int)npc.Center.Y, 0); npc.velocity.X = teleportRadius / arcTime * 3; npc.velocity *= -rotationDirection; npc.netUpdate = true; diff --git a/NPCs/Leviathan/AquaticAberration.cs b/NPCs/Leviathan/AquaticAberration.cs index 819a51e37d..9418c4ebbb 100644 --- a/NPCs/Leviathan/AquaticAberration.cs +++ b/NPCs/Leviathan/AquaticAberration.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index 73bdd0b73f..1ef3c86bf7 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; @@ -133,7 +133,7 @@ namespace CalamityMod.NPCs.Leviathan } if (Main.rand.NextBool(600)) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, (sirenAlive && !death) ? soundChoice : soundChoiceRage); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, (sirenAlive && !death) ? soundChoice : soundChoiceRage); } if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead || !Main.player[npc.target].active) @@ -326,7 +326,7 @@ namespace CalamityMod.NPCs.Leviathan if (flag103 && (spawnParasea || spawnAberration)) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, soundChoice); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, soundChoice); if (Main.netMode != NetmodeID.MultiplayerClient) { int type = spawnAberration ? ModContent.NPCType() : ModContent.NPCType(); @@ -464,7 +464,7 @@ namespace CalamityMod.NPCs.Leviathan npc.velocity.X = num1045 * num1047; npc.velocity.Y = num1046 * num1047; npc.spriteDirection = npc.direction; - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, soundChoiceRage); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, soundChoiceRage); return; } diff --git a/NPCs/Leviathan/LeviathanStart.cs b/NPCs/Leviathan/LeviathanStart.cs index 33058b34b4..794bd507c7 100644 --- a/NPCs/Leviathan/LeviathanStart.cs +++ b/NPCs/Leviathan/LeviathanStart.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.World; using Terraria; using Terraria.ID; diff --git a/NPCs/Leviathan/Parasea.cs b/NPCs/Leviathan/Parasea.cs index d4f460208b..78bf59499f 100644 --- a/NPCs/Leviathan/Parasea.cs +++ b/NPCs/Leviathan/Parasea.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/Leviathan/Siren.cs b/NPCs/Leviathan/Siren.cs index 655efca8b6..c47e3005e9 100644 --- a/NPCs/Leviathan/Siren.cs +++ b/NPCs/Leviathan/Siren.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.TreasureBags; using CalamityMod.Projectiles.Boss; @@ -208,7 +208,7 @@ namespace CalamityMod.NPCs.Leviathan // Play sound if (Main.rand.NextBool(300)) - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 35); + Main.PlaySound(SoundID.Zombie, (int)npc.position.X, (int)npc.position.Y, 35); // Time left if (npc.timeLeft < 1800) @@ -370,7 +370,7 @@ namespace CalamityMod.NPCs.Leviathan if (Collision.CanHit(vector119, 1, 1, player.position, player.width, player.height) && flag103) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 85); + Main.PlaySound(SoundID.Item85, npc.position); if (Main.netMode != NetmodeID.MultiplayerClient) { int num1061 = 371; diff --git a/NPCs/Leviathan/SirenClone.cs b/NPCs/Leviathan/SirenClone.cs index 131ffdfc0d..4a891a1c89 100644 --- a/NPCs/Leviathan/SirenClone.cs +++ b/NPCs/Leviathan/SirenClone.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/Leviathan/SirenIce.cs b/NPCs/Leviathan/SirenIce.cs index effa17dbd1..a22ee90e66 100644 --- a/NPCs/Leviathan/SirenIce.cs +++ b/NPCs/Leviathan/SirenIce.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Projectiles.Ranged; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; diff --git a/NPCs/NormalNPCs/AeroSlime.cs b/NPCs/NormalNPCs/AeroSlime.cs index 454ee1ecd7..11e8df88bc 100644 --- a/NPCs/NormalNPCs/AeroSlime.cs +++ b/NPCs/NormalNPCs/AeroSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Placeables.Ores; using CalamityMod.World; using Terraria; diff --git a/NPCs/NormalNPCs/AngryDog.cs b/NPCs/NormalNPCs/AngryDog.cs index 0ca9383703..08246b50b5 100644 --- a/NPCs/NormalNPCs/AngryDog.cs +++ b/NPCs/NormalNPCs/AngryDog.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Materials; using CalamityMod.World; diff --git a/NPCs/NormalNPCs/ArmoredDiggerBody.cs b/NPCs/NormalNPCs/ArmoredDiggerBody.cs index 71ccf4d4bc..bd17315df7 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerBody.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/NormalNPCs/ArmoredDiggerHead.cs b/NPCs/NormalNPCs/ArmoredDiggerHead.cs index fbd2da14f3..0df0ae2e4f 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerHead.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.SummonItems; using CalamityMod.World; @@ -76,7 +76,7 @@ namespace CalamityMod.NPCs.NormalNPCs Main.npc[num5].realLife = npc.whoAmI; Main.npc[num5].ai[1] = (float)num2; Main.npc[num2].ai[0] = (float)num5; - NetMessage.SendData(23, -1, -1, null, num5, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num5, 0f, 0f, 0f, 0, 0, 0); num2 = num5; } TailSpawned = true; @@ -243,7 +243,7 @@ namespace CalamityMod.NPCs.NormalNPCs num24 = 20f; } npc.soundDelay = (int)num24; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); } num22 = (float)Math.Sqrt((double)(num20 * num20 + num21 * num21)); float num25 = Math.Abs(num20); diff --git a/NPCs/NormalNPCs/ArmoredDiggerTail.cs b/NPCs/NormalNPCs/ArmoredDiggerTail.cs index 2d92669e11..48eb47a6f9 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerTail.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/NormalNPCs/BlightedEye.cs b/NPCs/NormalNPCs/BlightedEye.cs index 60323f76fc..eba03f078a 100644 --- a/NPCs/NormalNPCs/BlightedEye.cs +++ b/NPCs/NormalNPCs/BlightedEye.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Terraria; using Terraria.ID; diff --git a/NPCs/NormalNPCs/BloomSlime.cs b/NPCs/NormalNPCs/BloomSlime.cs index 1fd4007cfe..6e13b87c8f 100644 --- a/NPCs/NormalNPCs/BloomSlime.cs +++ b/NPCs/NormalNPCs/BloomSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Placeables.Ores; using CalamityMod.World; diff --git a/NPCs/NormalNPCs/Bohldohr.cs b/NPCs/NormalNPCs/Bohldohr.cs index fe3ac2c3df..caeb75f5e2 100644 --- a/NPCs/NormalNPCs/Bohldohr.cs +++ b/NPCs/NormalNPCs/Bohldohr.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/NormalNPCs/Cnidrion.cs b/NPCs/NormalNPCs/Cnidrion.cs index d49b9e1c89..2b75df0750 100644 --- a/NPCs/NormalNPCs/Cnidrion.cs +++ b/NPCs/NormalNPCs/Cnidrion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Projectiles.Enemy; diff --git a/NPCs/NormalNPCs/CosmicElemental.cs b/NPCs/NormalNPCs/CosmicElemental.cs index a62ead81f7..6cee0687c6 100644 --- a/NPCs/NormalNPCs/CosmicElemental.cs +++ b/NPCs/NormalNPCs/CosmicElemental.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Terraria; diff --git a/NPCs/NormalNPCs/CrawlerAmber.cs b/NPCs/NormalNPCs/CrawlerAmber.cs index 8454328a1f..b1d1a77a29 100644 --- a/NPCs/NormalNPCs/CrawlerAmber.cs +++ b/NPCs/NormalNPCs/CrawlerAmber.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/NormalNPCs/CrawlerAmethyst.cs b/NPCs/NormalNPCs/CrawlerAmethyst.cs index c9b3ba2135..82994d0446 100644 --- a/NPCs/NormalNPCs/CrawlerAmethyst.cs +++ b/NPCs/NormalNPCs/CrawlerAmethyst.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/NormalNPCs/CrawlerCrystal.cs b/NPCs/NormalNPCs/CrawlerCrystal.cs index f3f59d49ca..cfb8e25290 100644 --- a/NPCs/NormalNPCs/CrawlerCrystal.cs +++ b/NPCs/NormalNPCs/CrawlerCrystal.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; diff --git a/NPCs/NormalNPCs/CrawlerDiamond.cs b/NPCs/NormalNPCs/CrawlerDiamond.cs index 81b21ec950..10732d75b6 100644 --- a/NPCs/NormalNPCs/CrawlerDiamond.cs +++ b/NPCs/NormalNPCs/CrawlerDiamond.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/NormalNPCs/CrawlerEmerald.cs b/NPCs/NormalNPCs/CrawlerEmerald.cs index 636963f40f..4ac8f5491f 100644 --- a/NPCs/NormalNPCs/CrawlerEmerald.cs +++ b/NPCs/NormalNPCs/CrawlerEmerald.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/NormalNPCs/CrawlerRuby.cs b/NPCs/NormalNPCs/CrawlerRuby.cs index 35a8e21fe7..25fb9026e4 100644 --- a/NPCs/NormalNPCs/CrawlerRuby.cs +++ b/NPCs/NormalNPCs/CrawlerRuby.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/NormalNPCs/CrawlerSapphire.cs b/NPCs/NormalNPCs/CrawlerSapphire.cs index a4a83177f6..de9f6b54d3 100644 --- a/NPCs/NormalNPCs/CrawlerSapphire.cs +++ b/NPCs/NormalNPCs/CrawlerSapphire.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/NormalNPCs/CrawlerTopaz.cs b/NPCs/NormalNPCs/CrawlerTopaz.cs index f308b5f77a..4eb3035379 100644 --- a/NPCs/NormalNPCs/CrawlerTopaz.cs +++ b/NPCs/NormalNPCs/CrawlerTopaz.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/NormalNPCs/CrimulanBlightSlime.cs b/NPCs/NormalNPCs/CrimulanBlightSlime.cs index 1ee625d81f..be666662c0 100644 --- a/NPCs/NormalNPCs/CrimulanBlightSlime.cs +++ b/NPCs/NormalNPCs/CrimulanBlightSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Melee; using Terraria; diff --git a/NPCs/NormalNPCs/CryoSlime.cs b/NPCs/NormalNPCs/CryoSlime.cs index 4ccead5df9..f280c59aaf 100644 --- a/NPCs/NormalNPCs/CryoSlime.cs +++ b/NPCs/NormalNPCs/CryoSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Placeables.Ores; using CalamityMod.World; using Terraria; diff --git a/NPCs/NormalNPCs/Cryon.cs b/NPCs/NormalNPCs/Cryon.cs index f1c4e0e2e8..88cc552504 100644 --- a/NPCs/NormalNPCs/Cryon.cs +++ b/NPCs/NormalNPCs/Cryon.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; diff --git a/NPCs/NormalNPCs/EbonianBlightSlime.cs b/NPCs/NormalNPCs/EbonianBlightSlime.cs index ba182feb66..d297573336 100644 --- a/NPCs/NormalNPCs/EbonianBlightSlime.cs +++ b/NPCs/NormalNPCs/EbonianBlightSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Terraria; using Terraria.ID; diff --git a/NPCs/NormalNPCs/Eidolist.cs b/NPCs/NormalNPCs/Eidolist.cs index 014d2d13dd..2abfd1978f 100644 --- a/NPCs/NormalNPCs/Eidolist.cs +++ b/NPCs/NormalNPCs/Eidolist.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.SummonItems; using CalamityMod.World; diff --git a/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs b/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs index 554efac7fe..9c066e63d5 100644 --- a/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs +++ b/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -292,7 +292,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode == NetmodeID.Server & flag24) { - NetMessage.SendData(19, -1, -1, null, 0, (float)num170, (float)(num171 - 1), (float)npc.direction, 0, 0, 0); + NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 0, (float)num170, (float)(num171 - 1), (float)npc.direction, 0, 0, 0); } } if (Main.tile[num170, num171 - 1].type == 388) @@ -305,7 +305,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode == NetmodeID.Server & flag25) { - NetMessage.SendData(19, -1, -1, null, 4, (float)num170, (float)(num171 - 1), 0f, 0, 0, 0); + NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 4, (float)num170, (float)(num171 - 1), 0f, 0, 0, 0); } } } diff --git a/NPCs/NormalNPCs/Frogfish.cs b/NPCs/NormalNPCs/Frogfish.cs index 073e021146..ccf9c3f9da 100644 --- a/NPCs/NormalNPCs/Frogfish.cs +++ b/NPCs/NormalNPCs/Frogfish.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; diff --git a/NPCs/NormalNPCs/HeatSpirit.cs b/NPCs/NormalNPCs/HeatSpirit.cs index 838888ebaf..4564954fe6 100644 --- a/NPCs/NormalNPCs/HeatSpirit.cs +++ b/NPCs/NormalNPCs/HeatSpirit.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/NormalNPCs/Horse.cs b/NPCs/NormalNPCs/Horse.cs index c5d1f509db..a9b30b1ea8 100644 --- a/NPCs/NormalNPCs/Horse.cs +++ b/NPCs/NormalNPCs/Horse.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Tools.ClimateChange; using CalamityMod.Items.Weapons.Melee; @@ -111,7 +111,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (npc.life <= 0) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 14); + Main.PlaySound(SoundID.Item14, npc.position); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 160; @@ -176,7 +176,7 @@ namespace CalamityMod.NPCs.NormalNPCs if (npc.localAI[0] >= 300f) { npc.localAI[0] = 0f; - Main.PlaySound(3, (int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)(npc.height / 2)), 41); + Main.PlaySound(SoundID.NPCHit43, npc.Center); npc.TargetClosest(true); if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) { diff --git a/NPCs/NormalNPCs/IceClasper.cs b/NPCs/NormalNPCs/IceClasper.cs index 38c7f1ea33..3f5a1133fe 100644 --- a/NPCs/NormalNPCs/IceClasper.cs +++ b/NPCs/NormalNPCs/IceClasper.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; diff --git a/NPCs/NormalNPCs/ImpiousImmolator.cs b/NPCs/NormalNPCs/ImpiousImmolator.cs index e7f7337063..220d8c8551 100644 --- a/NPCs/NormalNPCs/ImpiousImmolator.cs +++ b/NPCs/NormalNPCs/ImpiousImmolator.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Summon; using CalamityMod.Projectiles.Enemy; diff --git a/NPCs/NormalNPCs/KingSlimeJewel.cs b/NPCs/NormalNPCs/KingSlimeJewel.cs index d5e7e1dd12..f30708ce37 100644 --- a/NPCs/NormalNPCs/KingSlimeJewel.cs +++ b/NPCs/NormalNPCs/KingSlimeJewel.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using System; @@ -138,7 +138,7 @@ namespace CalamityMod.NPCs.NormalNPCs Main.dust[ruby].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; } } - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 8); + Main.PlaySound(SoundID.Item8, npc.position); int proj = Projectile.NewProjectile(npcPos, projVector, type, damage, 0f, Main.myPlayer, 0f, 0f); } diff --git a/NPCs/NormalNPCs/MantisShrimp.cs b/NPCs/NormalNPCs/MantisShrimp.cs index e10ab7c0a0..a20513cfc0 100644 --- a/NPCs/NormalNPCs/MantisShrimp.cs +++ b/NPCs/NormalNPCs/MantisShrimp.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Melee; using CalamityMod.World; using Terraria; @@ -81,7 +81,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (Main.netMode != NetmodeID.MultiplayerClient) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, 612, 0, 0f, Main.myPlayer); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ProjectileID.SolarWhipSwordExplosion, 0, 0f, Main.myPlayer); } } diff --git a/NPCs/NormalNPCs/OverloadedSoldier.cs b/NPCs/NormalNPCs/OverloadedSoldier.cs index ff10efbeff..acf4b9cdb9 100644 --- a/NPCs/NormalNPCs/OverloadedSoldier.cs +++ b/NPCs/NormalNPCs/OverloadedSoldier.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; @@ -325,7 +325,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode == NetmodeID.Server & flag24) { - NetMessage.SendData(19, -1, -1, null, 0, (float)num170, (float)(num171 - 1), (float)npc.direction, 0, 0, 0); + NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 0, (float)num170, (float)(num171 - 1), (float)npc.direction, 0, 0, 0); } } if (Main.tile[num170, num171 - 1].type == 388) @@ -338,7 +338,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode == NetmodeID.Server & flag25) { - NetMessage.SendData(19, -1, -1, null, 4, (float)num170, (float)(num171 - 1), 0f, 0, 0, 0); + NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 4, (float)num170, (float)(num171 - 1), 0f, 0, 0, 0); } } } diff --git a/NPCs/NormalNPCs/PerennialSlime.cs b/NPCs/NormalNPCs/PerennialSlime.cs index 80365d7de9..529ea759e7 100644 --- a/NPCs/NormalNPCs/PerennialSlime.cs +++ b/NPCs/NormalNPCs/PerennialSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Placeables.Ores; using Terraria; using Terraria.ID; diff --git a/NPCs/NormalNPCs/PhantomDebris.cs b/NPCs/NormalNPCs/PhantomDebris.cs index 0ae93eed05..e979d637b9 100644 --- a/NPCs/NormalNPCs/PhantomDebris.cs +++ b/NPCs/NormalNPCs/PhantomDebris.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; @@ -319,7 +319,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode == NetmodeID.Server & flag24) { - NetMessage.SendData(19, -1, -1, null, 0, (float)num170, (float)(num171 - 1), (float)npc.direction, 0, 0, 0); + NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 0, (float)num170, (float)(num171 - 1), (float)npc.direction, 0, 0, 0); } } if (Main.tile[num170, num171 - 1].type == 388) @@ -332,7 +332,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode == NetmodeID.Server & flag25) { - NetMessage.SendData(19, -1, -1, null, 4, (float)num170, (float)(num171 - 1), 0f, 0, 0, 0); + NetMessage.SendData(MessageID.ChangeDoor, -1, -1, null, 4, (float)num170, (float)(num171 - 1), 0f, 0, 0, 0); } } } diff --git a/NPCs/NormalNPCs/PhantomSpirit.cs b/NPCs/NormalNPCs/PhantomSpirit.cs index 1a87bcf443..2bed679ee3 100644 --- a/NPCs/NormalNPCs/PhantomSpirit.cs +++ b/NPCs/NormalNPCs/PhantomSpirit.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; diff --git a/NPCs/NormalNPCs/PhantomSpiritL.cs b/NPCs/NormalNPCs/PhantomSpiritL.cs index aadd91eebb..fbff645d43 100644 --- a/NPCs/NormalNPCs/PhantomSpiritL.cs +++ b/NPCs/NormalNPCs/PhantomSpiritL.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Projectiles.Boss; diff --git a/NPCs/NormalNPCs/PhantomSpiritM.cs b/NPCs/NormalNPCs/PhantomSpiritM.cs index b87a1d4903..0a0ab65bb3 100644 --- a/NPCs/NormalNPCs/PhantomSpiritM.cs +++ b/NPCs/NormalNPCs/PhantomSpiritM.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; diff --git a/NPCs/NormalNPCs/PhantomSpiritS.cs b/NPCs/NormalNPCs/PhantomSpiritS.cs index 59fb3ebd52..040a2dd2bc 100644 --- a/NPCs/NormalNPCs/PhantomSpiritS.cs +++ b/NPCs/NormalNPCs/PhantomSpiritS.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; diff --git a/NPCs/NormalNPCs/Piggy.cs b/NPCs/NormalNPCs/Piggy.cs index 17220b7cde..6fd3803528 100644 --- a/NPCs/NormalNPCs/Piggy.cs +++ b/NPCs/NormalNPCs/Piggy.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Critters; using System; using Terraria; diff --git a/NPCs/NormalNPCs/Pitbull.cs b/NPCs/NormalNPCs/Pitbull.cs index 2d681fc606..e2a2fba6a4 100644 --- a/NPCs/NormalNPCs/Pitbull.cs +++ b/NPCs/NormalNPCs/Pitbull.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Terraria; using Terraria.ID; diff --git a/NPCs/NormalNPCs/PlagueBee.cs b/NPCs/NormalNPCs/PlagueBee.cs index 10f5f879dd..094b2d45e0 100644 --- a/NPCs/NormalNPCs/PlagueBee.cs +++ b/NPCs/NormalNPCs/PlagueBee.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; diff --git a/NPCs/NormalNPCs/PlagueBeeLarge.cs b/NPCs/NormalNPCs/PlagueBeeLarge.cs index c1c9c01b83..c8a22346a4 100644 --- a/NPCs/NormalNPCs/PlagueBeeLarge.cs +++ b/NPCs/NormalNPCs/PlagueBeeLarge.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; diff --git a/NPCs/NormalNPCs/PlaguedDerpling.cs b/NPCs/NormalNPCs/PlaguedDerpling.cs index 8e04409ddf..4d1bf5158c 100644 --- a/NPCs/NormalNPCs/PlaguedDerpling.cs +++ b/NPCs/NormalNPCs/PlaguedDerpling.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; diff --git a/NPCs/NormalNPCs/PlaguedFlyingFox.cs b/NPCs/NormalNPCs/PlaguedFlyingFox.cs index 74e0885bdc..0e6c836e9d 100644 --- a/NPCs/NormalNPCs/PlaguedFlyingFox.cs +++ b/NPCs/NormalNPCs/PlaguedFlyingFox.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Terraria; diff --git a/NPCs/NormalNPCs/PlaguedJungleSlime.cs b/NPCs/NormalNPCs/PlaguedJungleSlime.cs index 8651394bcb..1708341dfa 100644 --- a/NPCs/NormalNPCs/PlaguedJungleSlime.cs +++ b/NPCs/NormalNPCs/PlaguedJungleSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Projectiles.Boss; @@ -67,7 +67,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode != NetmodeID.MultiplayerClient && spikeTimer == 0f) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42); + Main.PlaySound(SoundID.Item42, npc.position); for (int n = 0; n < 5; n++) { Vector2 vector4 = new Vector2((float)(n - 2), -4f); @@ -89,7 +89,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode != NetmodeID.MultiplayerClient && spikeTimer == 0f) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42); + Main.PlaySound(SoundID.Item42, npc.position); num15 = Main.player[npc.target].position.Y - vector3.Y - (float)Main.rand.Next(0, 200); num16 = (float)Math.Sqrt((double)(num14 * num14 + num15 * num15)); num16 = 6.5f / num16; diff --git a/NPCs/NormalNPCs/PlaguedTortoise.cs b/NPCs/NormalNPCs/PlaguedTortoise.cs index 08164a87c6..d4cadecabf 100644 --- a/NPCs/NormalNPCs/PlaguedTortoise.cs +++ b/NPCs/NormalNPCs/PlaguedTortoise.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Terraria; diff --git a/NPCs/NormalNPCs/ProfanedEnergyBody.cs b/NPCs/NormalNPCs/ProfanedEnergyBody.cs index 66d98187e3..4a67af7417 100644 --- a/NPCs/NormalNPCs/ProfanedEnergyBody.cs +++ b/NPCs/NormalNPCs/ProfanedEnergyBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Terraria; using Terraria.ID; diff --git a/NPCs/NormalNPCs/ProfanedEnergyLantern.cs b/NPCs/NormalNPCs/ProfanedEnergyLantern.cs index 940d89409f..d4cc3fcc53 100644 --- a/NPCs/NormalNPCs/ProfanedEnergyLantern.cs +++ b/NPCs/NormalNPCs/ProfanedEnergyLantern.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/NPCs/NormalNPCs/SandTortoise.cs b/NPCs/NormalNPCs/SandTortoise.cs index f57e8568d5..776d409b8e 100644 --- a/NPCs/NormalNPCs/SandTortoise.cs +++ b/NPCs/NormalNPCs/SandTortoise.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/NPCs/NormalNPCs/ScornEater.cs b/NPCs/NormalNPCs/ScornEater.cs index 4dc15764e3..b4493130b5 100644 --- a/NPCs/NormalNPCs/ScornEater.cs +++ b/NPCs/NormalNPCs/ScornEater.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using System; diff --git a/NPCs/NormalNPCs/SeaUrchin.cs b/NPCs/NormalNPCs/SeaUrchin.cs index 1c7ad00001..59f132edc7 100644 --- a/NPCs/NormalNPCs/SeaUrchin.cs +++ b/NPCs/NormalNPCs/SeaUrchin.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/NormalNPCs/ShockstormShuttle.cs b/NPCs/NormalNPCs/ShockstormShuttle.cs index a3a866540a..5390e4c091 100644 --- a/NPCs/NormalNPCs/ShockstormShuttle.cs +++ b/NPCs/NormalNPCs/ShockstormShuttle.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; @@ -475,7 +475,7 @@ namespace CalamityMod.NPCs.NormalNPCs } } } - Main.PlaySound(2, (int)npc.Center.X, (int)npc.Center.Y, 12); + Main.PlaySound(SoundID.Item12, npc.position); } npc.netUpdate = true; } diff --git a/NPCs/NormalNPCs/StormlionCharger.cs b/NPCs/NormalNPCs/StormlionCharger.cs index 35e829f2ae..78954750dc 100644 --- a/NPCs/NormalNPCs/StormlionCharger.cs +++ b/NPCs/NormalNPCs/StormlionCharger.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Summon; using CalamityMod.World; diff --git a/NPCs/NormalNPCs/SunBat.cs b/NPCs/NormalNPCs/SunBat.cs index 2dcb9cbcba..3738c615ef 100644 --- a/NPCs/NormalNPCs/SunBat.cs +++ b/NPCs/NormalNPCs/SunBat.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Terraria; diff --git a/NPCs/NormalNPCs/Sunskater.cs b/NPCs/NormalNPCs/Sunskater.cs index f6ab96e2f4..22a827bbf5 100644 --- a/NPCs/NormalNPCs/Sunskater.cs +++ b/NPCs/NormalNPCs/Sunskater.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using System; diff --git a/NPCs/NormalNPCs/ThiccWaifu.cs b/NPCs/NormalNPCs/ThiccWaifu.cs index 9309c90dd6..45de24678f 100644 --- a/NPCs/NormalNPCs/ThiccWaifu.cs +++ b/NPCs/NormalNPCs/ThiccWaifu.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Magic; diff --git a/NPCs/NormalNPCs/WulfrumDrone.cs b/NPCs/NormalNPCs/WulfrumDrone.cs index ddd37ad72e..126d245e90 100644 --- a/NPCs/NormalNPCs/WulfrumDrone.cs +++ b/NPCs/NormalNPCs/WulfrumDrone.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.Banners; using Terraria; diff --git a/NPCs/NormalNPCs/WulfrumSlime.cs b/NPCs/NormalNPCs/WulfrumSlime.cs index 01227d0823..e222977360 100644 --- a/NPCs/NormalNPCs/WulfrumSlime.cs +++ b/NPCs/NormalNPCs/WulfrumSlime.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Terraria; using Terraria.ID; diff --git a/NPCs/OldDuke/OldDuke.cs b/NPCs/OldDuke/OldDuke.cs index 77993c29e4..b848bbe201 100644 --- a/NPCs/OldDuke/OldDuke.cs +++ b/NPCs/OldDuke/OldDuke.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; diff --git a/NPCs/OldDuke/OldDukeSharkron.cs b/NPCs/OldDuke/OldDukeSharkron.cs index 029140b609..38dce7aa93 100644 --- a/NPCs/OldDuke/OldDukeSharkron.cs +++ b/NPCs/OldDuke/OldDukeSharkron.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using System; using System.IO; using Microsoft.Xna.Framework; @@ -92,7 +92,7 @@ namespace CalamityMod.NPCs.OldDuke else npc.velocity = new Vector2(npc.ai[2], npc.ai[3]); - Main.PlaySound(4, (int)npc.Center.X, (int)npc.Center.Y, 19, 1f, 0f); + Main.PlaySound(SoundID.NPCDeath19, npc.position); } npc.ai[1] += 1f; @@ -201,10 +201,10 @@ namespace CalamityMod.NPCs.OldDuke } public override bool CheckDead() - { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 12); + { + Main.PlaySound(SoundID.NPCDeath12, npc.position); - npc.position.X = npc.position.X + (npc.width / 2); + npc.position.X = npc.position.X + (npc.width / 2); npc.position.Y = npc.position.Y + (npc.height / 2); npc.width = npc.height = 96; npc.position.X = npc.position.X - (npc.width / 2); diff --git a/NPCs/OldDuke/OldDukeToothBall.cs b/NPCs/OldDuke/OldDukeToothBall.cs index ef7bca6f13..f8b53ba23f 100644 --- a/NPCs/OldDuke/OldDukeToothBall.cs +++ b/NPCs/OldDuke/OldDukeToothBall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Boss; using System; using System.IO; @@ -171,7 +171,7 @@ namespace CalamityMod.NPCs.OldDuke public override bool CheckDead() { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 12); + Main.PlaySound(SoundID.Item14, npc.position); npc.position.X = npc.position.X + (npc.width / 2); npc.position.Y = npc.position.Y + (npc.height / 2); diff --git a/NPCs/Perforator/PerforatorBodyLarge.cs b/NPCs/Perforator/PerforatorBodyLarge.cs index eb2965af08..17749ad826 100644 --- a/NPCs/Perforator/PerforatorBodyLarge.cs +++ b/NPCs/Perforator/PerforatorBodyLarge.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.Projectiles.Boss; diff --git a/NPCs/Perforator/PerforatorBodyMedium.cs b/NPCs/Perforator/PerforatorBodyMedium.cs index 7c1378e576..500aee5ca1 100644 --- a/NPCs/Perforator/PerforatorBodyMedium.cs +++ b/NPCs/Perforator/PerforatorBodyMedium.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.Projectiles.Boss; diff --git a/NPCs/Perforator/PerforatorBodySmall.cs b/NPCs/Perforator/PerforatorBodySmall.cs index 2ee3619aa9..b05f8c6a78 100644 --- a/NPCs/Perforator/PerforatorBodySmall.cs +++ b/NPCs/Perforator/PerforatorBodySmall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.Projectiles.Boss; diff --git a/NPCs/Perforator/PerforatorCyst.cs b/NPCs/Perforator/PerforatorCyst.cs index 049bc41fbe..57972202bc 100644 --- a/NPCs/Perforator/PerforatorCyst.cs +++ b/NPCs/Perforator/PerforatorCyst.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/NPCs/Perforator/PerforatorHeadLarge.cs b/NPCs/Perforator/PerforatorHeadLarge.cs index abefdd659e..4ce9248fbb 100644 --- a/NPCs/Perforator/PerforatorHeadLarge.cs +++ b/NPCs/Perforator/PerforatorHeadLarge.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.Potions; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; @@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.Perforator Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; @@ -265,7 +265,7 @@ namespace CalamityMod.NPCs.Perforator num195 = 20f; } npc.soundDelay = (int)num195; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 1); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 1); } num193 = (float)Math.Sqrt((double)(num191 * num191 + num192 * num192)); float num196 = Math.Abs(num191); diff --git a/NPCs/Perforator/PerforatorHeadMedium.cs b/NPCs/Perforator/PerforatorHeadMedium.cs index 8882bb537c..b97d7a77b6 100644 --- a/NPCs/Perforator/PerforatorHeadMedium.cs +++ b/NPCs/Perforator/PerforatorHeadMedium.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; @@ -97,7 +97,7 @@ namespace CalamityMod.NPCs.Perforator Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; @@ -261,7 +261,7 @@ namespace CalamityMod.NPCs.Perforator num195 = 20f; } npc.soundDelay = (int)num195; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 1); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 1); } num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); float num196 = System.Math.Abs(num191); diff --git a/NPCs/Perforator/PerforatorHeadSmall.cs b/NPCs/Perforator/PerforatorHeadSmall.cs index c8ebcab0e9..5ff19579d0 100644 --- a/NPCs/Perforator/PerforatorHeadSmall.cs +++ b/NPCs/Perforator/PerforatorHeadSmall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.Items.Materials; @@ -15,6 +15,7 @@ namespace CalamityMod.NPCs.Perforator [AutoloadBossHead] public class PerforatorHeadSmall : ModNPC { + private const int MsgType = 23; private bool flies = false; private float speed = 21f; private float turnSpeed = 0.19f; @@ -95,7 +96,7 @@ namespace CalamityMod.NPCs.Perforator Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MsgType, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; @@ -259,7 +260,7 @@ namespace CalamityMod.NPCs.Perforator num195 = 20f; } npc.soundDelay = (int)num195; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 1); + Main.PlaySound(SoundID.Roar, (int)npc.position.X, (int)npc.position.Y, 1); } num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); float num196 = System.Math.Abs(num191); diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index fbec41d482..ce68a5eefc 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; @@ -135,7 +135,7 @@ namespace CalamityMod.NPCs.Perforator if (npc.localAI[0] >= (float)Main.rand.Next(300, 901) && npc.position.Y + (float)npc.height < player.position.Y && Vector2.Distance(player.Center, npc.Center) > 80f) { npc.localAI[0] = 0f; - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 20); + Main.PlaySound(SoundID.NPCHit20, npc.position); for (int num621 = 0; num621 < 8; num621++) { diff --git a/NPCs/Perforator/PerforatorTailLarge.cs b/NPCs/Perforator/PerforatorTailLarge.cs index 94de9c8080..e3786f8c32 100644 --- a/NPCs/Perforator/PerforatorTailLarge.cs +++ b/NPCs/Perforator/PerforatorTailLarge.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.World; diff --git a/NPCs/Perforator/PerforatorTailMedium.cs b/NPCs/Perforator/PerforatorTailMedium.cs index 2d82fee146..b81c0dfd6e 100644 --- a/NPCs/Perforator/PerforatorTailMedium.cs +++ b/NPCs/Perforator/PerforatorTailMedium.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.World; diff --git a/NPCs/Perforator/PerforatorTailSmall.cs b/NPCs/Perforator/PerforatorTailSmall.cs index 9748c62e77..985289870f 100644 --- a/NPCs/Perforator/PerforatorTailSmall.cs +++ b/NPCs/Perforator/PerforatorTailSmall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.World; diff --git a/NPCs/PlaguebringerGoliath/PlagueBeeG.cs b/NPCs/PlaguebringerGoliath/PlagueBeeG.cs index dee7d3f5d4..4e5c059cc2 100644 --- a/NPCs/PlaguebringerGoliath/PlagueBeeG.cs +++ b/NPCs/PlaguebringerGoliath/PlagueBeeG.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs b/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs index 4b5933d4ba..c2c4fb5221 100644 --- a/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs +++ b/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs index 6bdca368de..8297cd1eaf 100644 --- a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs +++ b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -209,7 +209,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override bool CheckDead() { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 14); + Main.PlaySound(SoundID.Item14, npc.position); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = npc.height = 216; diff --git a/NPCs/PlaguebringerGoliath/PlagueMine.cs b/NPCs/PlaguebringerGoliath/PlagueMine.cs index 3c5911f59f..432e2133e6 100644 --- a/NPCs/PlaguebringerGoliath/PlagueMine.cs +++ b/NPCs/PlaguebringerGoliath/PlagueMine.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -144,7 +144,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override bool CheckDead() { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 14); + Main.PlaySound(SoundID.Item14, npc.position); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.damage = 200; diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index f5558ebedb..ce56c47126 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; @@ -340,7 +340,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath if (npc.spriteDirection != 1) npc.rotation += (float)Math.PI; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0); + Main.PlaySound(SoundID.Roar, npc.position); return; } @@ -534,7 +534,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath if (flag103) { - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 8); + Main.PlaySound(SoundID.NPCHit8, npc.position); if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -612,7 +612,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath if (flag103) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 88); + Main.PlaySound(SoundID.Item88, npc.position); if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -673,7 +673,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath if (npc.ai[1] % (float)num650 == (float)(num650 - 1) && vectorCenter.Y < player.position.Y) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42); + Main.PlaySound(SoundID.Item42, npc.position); if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -759,7 +759,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath { if (MissileCountdown == 1) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 116); + Main.PlaySound(SoundID.Item116, npc.position); if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -922,7 +922,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath if (Main.netMode == NetmodeID.Server) { - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs b/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs index 8a4a6b5cbb..dfdc06ecd0 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; @@ -187,7 +187,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.velocity.X = num1045 * num1047; npc.velocity.Y = num1046 * num1047; npc.spriteDirection = npc.direction; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0); + Main.PlaySound(SoundID.Roar, npc.position); return; } npc.localAI[0] = 0f; @@ -364,7 +364,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath } if (Collision.CanHit(vector119, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) && flag103) { - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 8); + Main.PlaySound(SoundID.NPCHit8, npc.position); if (Main.netMode != NetmodeID.MultiplayerClient) { int num1061; @@ -472,7 +472,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath } if (flag104 && npc.position.Y + (float)npc.height < Main.player[npc.target].position.Y && Collision.CanHit(vector121, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42); + Main.PlaySound(SoundID.Item42, npc.position); if (Main.netMode != NetmodeID.MultiplayerClient) { float num1070 = 6f; @@ -583,7 +583,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath if (Main.netMode == NetmodeID.Server) { - NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); } } diff --git a/NPCs/Polterghast/PhantomFuckYou.cs b/NPCs/Polterghast/PhantomFuckYou.cs index c5293bcfa1..8df46d0cd3 100644 --- a/NPCs/Polterghast/PhantomFuckYou.cs +++ b/NPCs/Polterghast/PhantomFuckYou.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/Polterghast/PolterPhantom.cs b/NPCs/Polterghast/PolterPhantom.cs index 23b57bdd04..bbb668602e 100644 --- a/NPCs/Polterghast/PolterPhantom.cs +++ b/NPCs/Polterghast/PolterPhantom.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index 7a8b222ab1..c2ad59f934 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -1,4 +1,4 @@ -using CalamityMod; +using CalamityMod; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Events; @@ -443,7 +443,7 @@ namespace CalamityMod.NPCs.Polterghast { npc.ai[0] += 1f; - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); + Main.PlaySound(SoundID.Item122, npc.position); Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt"), 1f); Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt2"), 1f); @@ -586,7 +586,7 @@ namespace CalamityMod.NPCs.Polterghast } } - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); + Main.PlaySound(SoundID.Item122, npc.position); Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt"), 1f); Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt2"), 1f); diff --git a/NPCs/Polterghast/PolterghastHook.cs b/NPCs/Polterghast/PolterghastHook.cs index c1b0cb56f2..e130910366 100644 --- a/NPCs/Polterghast/PolterghastHook.cs +++ b/NPCs/Polterghast/PolterghastHook.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs b/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs index 1ae31e8fd7..50695177f6 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Armor.Vanity; diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianBoss2.cs b/NPCs/ProfanedGuardians/ProfanedGuardianBoss2.cs index 26ae268aad..23ab8ff350 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianBoss2.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianBoss2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Weapons.Typeless; diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianBoss3.cs b/NPCs/ProfanedGuardians/ProfanedGuardianBoss3.cs index 8fe6427d42..9292bfa01c 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianBoss3.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianBoss3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items; diff --git a/NPCs/Providence/ProvSpawnDefense.cs b/NPCs/Providence/ProvSpawnDefense.cs index 792ec416e6..3df06fb346 100644 --- a/NPCs/Providence/ProvSpawnDefense.cs +++ b/NPCs/Providence/ProvSpawnDefense.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Providence/ProvSpawnHealer.cs b/NPCs/Providence/ProvSpawnHealer.cs index 904120f137..54a1d9ecff 100644 --- a/NPCs/Providence/ProvSpawnHealer.cs +++ b/NPCs/Providence/ProvSpawnHealer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Providence/ProvSpawnOffense.cs b/NPCs/Providence/ProvSpawnOffense.cs index 7b4515a340..4d0b95745a 100644 --- a/NPCs/Providence/ProvSpawnOffense.cs +++ b/NPCs/Providence/ProvSpawnOffense.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Boss; using CalamityMod.World; diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index c9a6c11447..8c62ec9ab9 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Accessories; diff --git a/NPCs/Ravager/FlamePillar.cs b/NPCs/Ravager/FlamePillar.cs index 6e3706c2fa..6eaba2a7f5 100644 --- a/NPCs/Ravager/FlamePillar.cs +++ b/NPCs/Ravager/FlamePillar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/Ravager/RavagerBody.cs b/NPCs/Ravager/RavagerBody.cs index e2743f7e04..700d8645de 100644 --- a/NPCs/Ravager/RavagerBody.cs +++ b/NPCs/Ravager/RavagerBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; @@ -267,7 +267,7 @@ namespace CalamityMod.NPCs.Ravager Vector2 shootFromVector = new Vector2(npc.Center.X + 80f, npc.Center.Y + 45f); int damage = 40; float velocity = CalamityWorld.bossRushActive ? 18f : 12f; - int laser = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, velocity, 0f, 258, damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); + int laser = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, velocity, 0f, ProjectileID.Fireball, damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); } } } @@ -304,7 +304,7 @@ namespace CalamityMod.NPCs.Ravager Vector2 shootFromVector = new Vector2(npc.Center.X - 80f, npc.Center.Y + 45f); int damage = 40; float velocity = CalamityWorld.bossRushActive ? -18f : -12f; - int laser = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, velocity, 0f, 258, damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); + int laser = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, velocity, 0f, ProjectileID.Fireball, damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); } } } diff --git a/NPCs/Ravager/RavagerClawLeft.cs b/NPCs/Ravager/RavagerClawLeft.cs index 89d752bed3..cac8eec39d 100644 --- a/NPCs/Ravager/RavagerClawLeft.cs +++ b/NPCs/Ravager/RavagerClawLeft.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Ravager/RavagerClawRight.cs b/NPCs/Ravager/RavagerClawRight.cs index 91ba1e81d7..53699dc731 100644 --- a/NPCs/Ravager/RavagerClawRight.cs +++ b/NPCs/Ravager/RavagerClawRight.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Ravager/RavagerHead.cs b/NPCs/Ravager/RavagerHead.cs index 8334960d29..0b77493ecb 100644 --- a/NPCs/Ravager/RavagerHead.cs +++ b/NPCs/Ravager/RavagerHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Boss; using CalamityMod.World; diff --git a/NPCs/Ravager/RavagerHead2.cs b/NPCs/Ravager/RavagerHead2.cs index dc6da13f62..646e48ef76 100644 --- a/NPCs/Ravager/RavagerHead2.cs +++ b/NPCs/Ravager/RavagerHead2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/Ravager/RavagerLegLeft.cs b/NPCs/Ravager/RavagerLegLeft.cs index 6cad414234..d65ead0ac0 100644 --- a/NPCs/Ravager/RavagerLegLeft.cs +++ b/NPCs/Ravager/RavagerLegLeft.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Ravager/RavagerLegRight.cs b/NPCs/Ravager/RavagerLegRight.cs index 9f84d4d5d0..1cde647f1d 100644 --- a/NPCs/Ravager/RavagerLegRight.cs +++ b/NPCs/Ravager/RavagerLegRight.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/Ravager/RockPillar.cs b/NPCs/Ravager/RockPillar.cs index 2fb055fb57..0a7fbb636e 100644 --- a/NPCs/Ravager/RockPillar.cs +++ b/NPCs/Ravager/RockPillar.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/NPCs/Signus/CosmicLantern.cs b/NPCs/Signus/CosmicLantern.cs index 28b619d659..6fcb3c5dc2 100644 --- a/NPCs/Signus/CosmicLantern.cs +++ b/NPCs/Signus/CosmicLantern.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/Signus/Signus.cs b/NPCs/Signus/Signus.cs index 7df77f7d7a..dc9d7d3491 100644 --- a/NPCs/Signus/Signus.cs +++ b/NPCs/Signus/Signus.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; @@ -311,18 +311,18 @@ namespace CalamityMod.NPCs.Signus npc.alpha -= 50; if (npc.alpha <= lifeToAlpha) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); + Main.PlaySound(SoundID.Item122, npc.position); if (Main.netMode != NetmodeID.MultiplayerClient && revenge) { int num660 = NPC.NewNPC((int)(player.position.X + 750f), (int)player.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); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); } int num661 = NPC.NewNPC((int)(player.position.X - 750f), (int)player.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); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num661, 0f, 0f, 0f, 0, 0, 0); } for (int num621 = 0; num621 < 5; num621++) { @@ -492,12 +492,12 @@ namespace CalamityMod.NPCs.Signus int num660 = NPC.NewNPC((int)(player.position.X + (float)spawnX), (int)(player.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); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); } int num661 = NPC.NewNPC((int)(player.position.X - (float)spawnX), (int)(player.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); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num661, 0f, 0f, 0f, 0, 0, 0); } spawnY -= 60; } diff --git a/NPCs/Signus/SignusBomb.cs b/NPCs/Signus/SignusBomb.cs index e790e18208..b47299b3e5 100644 --- a/NPCs/Signus/SignusBomb.cs +++ b/NPCs/Signus/SignusBomb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/NPCs/SlimeGod/SlimeGod.cs b/NPCs/SlimeGod/SlimeGod.cs index 0fd646eeda..6b01292329 100644 --- a/NPCs/SlimeGod/SlimeGod.cs +++ b/NPCs/SlimeGod/SlimeGod.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.Items.TreasureBags; using CalamityMod.Projectiles.Boss; @@ -110,7 +110,7 @@ namespace CalamityMod.NPCs.SlimeGod if ((double)npc.life <= (double)npc.lifeMax * 0.5 && Main.netMode != NetmodeID.MultiplayerClient) { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 1); + Main.PlaySound(SoundID.NPCDeath1, npc.position); Vector2 spawnAt = vector + new Vector2(0f, (float)npc.height / 2f); NPC.NewNPC((int)spawnAt.X - 30, (int)spawnAt.Y, ModContent.NPCType()); NPC.NewNPC((int)spawnAt.X + 30, (int)spawnAt.Y, ModContent.NPCType()); @@ -537,7 +537,7 @@ namespace CalamityMod.NPCs.SlimeGod Main.npc[num664].ai[1] = 0f; if (Main.netMode == NetmodeID.Server && num664 < 200) { - NetMessage.SendData(23, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index e34674ac77..f8c0fc64d1 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; diff --git a/NPCs/SlimeGod/SlimeGodRun.cs b/NPCs/SlimeGod/SlimeGodRun.cs index be8a22d675..466f5da7bc 100644 --- a/NPCs/SlimeGod/SlimeGodRun.cs +++ b/NPCs/SlimeGod/SlimeGodRun.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.Items.TreasureBags; using CalamityMod.Projectiles.Boss; @@ -113,7 +113,7 @@ namespace CalamityMod.NPCs.SlimeGod if ((double)npc.life <= (double)npc.lifeMax * 0.5 && Main.netMode != NetmodeID.MultiplayerClient) { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 1); + Main.PlaySound(SoundID.NPCDeath1, npc.position); Vector2 spawnAt = vector + new Vector2(0f, (float)npc.height / 2f); NPC.NewNPC((int)spawnAt.X - 30, (int)spawnAt.Y, ModContent.NPCType()); NPC.NewNPC((int)spawnAt.X + 30, (int)spawnAt.Y, ModContent.NPCType()); @@ -550,7 +550,7 @@ namespace CalamityMod.NPCs.SlimeGod Main.npc[num664].ai[1] = 0f; if (Main.netMode == NetmodeID.Server && num664 < 200) { - NetMessage.SendData(23, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/SlimeGod/SlimeGodRunSplit.cs b/NPCs/SlimeGod/SlimeGodRunSplit.cs index a6ae831a56..38bed8fbbc 100644 --- a/NPCs/SlimeGod/SlimeGodRunSplit.cs +++ b/NPCs/SlimeGod/SlimeGodRunSplit.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.Items.TreasureBags; using CalamityMod.Projectiles.Boss; @@ -526,7 +526,7 @@ namespace CalamityMod.NPCs.SlimeGod Main.npc[num664].ai[1] = 0f; if (Main.netMode == NetmodeID.Server && num664 < 200) { - NetMessage.SendData(23, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/SlimeGod/SlimeGodSplit.cs b/NPCs/SlimeGod/SlimeGodSplit.cs index a68d7c5fd9..19e6c27825 100644 --- a/NPCs/SlimeGod/SlimeGodSplit.cs +++ b/NPCs/SlimeGod/SlimeGodSplit.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.Items.TreasureBags; using CalamityMod.Projectiles.Boss; @@ -516,7 +516,7 @@ namespace CalamityMod.NPCs.SlimeGod Main.npc[num664].ai[1] = 0f; if (Main.netMode == NetmodeID.Server && num664 < 200) { - NetMessage.SendData(23, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num664, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/SlimeGod/SlimeSpawnCorrupt.cs b/NPCs/SlimeGod/SlimeSpawnCorrupt.cs index 2e64bb8fe1..7a1d77fc94 100644 --- a/NPCs/SlimeGod/SlimeSpawnCorrupt.cs +++ b/NPCs/SlimeGod/SlimeSpawnCorrupt.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs b/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs index d9816fc655..d1d6cf5c9f 100644 --- a/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs +++ b/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/NPCs/SlimeGod/SlimeSpawnCrimson.cs b/NPCs/SlimeGod/SlimeSpawnCrimson.cs index 7db713c745..b32e6a5628 100644 --- a/NPCs/SlimeGod/SlimeSpawnCrimson.cs +++ b/NPCs/SlimeGod/SlimeSpawnCrimson.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/NPCs/SlimeGod/SlimeSpawnCrimson2.cs b/NPCs/SlimeGod/SlimeSpawnCrimson2.cs index a5b7ab0616..cf24a872bd 100644 --- a/NPCs/SlimeGod/SlimeSpawnCrimson2.cs +++ b/NPCs/SlimeGod/SlimeSpawnCrimson2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Enemy; +using CalamityMod.Projectiles.Enemy; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/NPCs/StormWeaver/StasisProbe.cs b/NPCs/StormWeaver/StasisProbe.cs index 735c6edbd1..ba6b8f8bc8 100644 --- a/NPCs/StormWeaver/StasisProbe.cs +++ b/NPCs/StormWeaver/StasisProbe.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/NPCs/StormWeaver/StasisProbeNaked.cs b/NPCs/StormWeaver/StasisProbeNaked.cs index 52160abba8..8bc5f31d93 100644 --- a/NPCs/StormWeaver/StasisProbeNaked.cs +++ b/NPCs/StormWeaver/StasisProbeNaked.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/NPCs/StormWeaver/StormWeaverBody.cs b/NPCs/StormWeaver/StormWeaverBody.cs index 86795f1350..18fba5d6e6 100644 --- a/NPCs/StormWeaver/StormWeaverBody.cs +++ b/NPCs/StormWeaver/StormWeaverBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -241,7 +241,7 @@ namespace CalamityMod.NPCs.StormWeaver 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); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); } npc.netUpdate = true; } diff --git a/NPCs/StormWeaver/StormWeaverBodyNaked.cs b/NPCs/StormWeaver/StormWeaverBodyNaked.cs index 6585d8c743..079874f36c 100644 --- a/NPCs/StormWeaver/StormWeaverBodyNaked.cs +++ b/NPCs/StormWeaver/StormWeaverBodyNaked.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -288,7 +288,7 @@ namespace CalamityMod.NPCs.StormWeaver 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); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); } npc.netUpdate = true; } diff --git a/NPCs/StormWeaver/StormWeaverHead.cs b/NPCs/StormWeaver/StormWeaverHead.cs index 77b5dae334..6c6457c0d9 100644 --- a/NPCs/StormWeaver/StormWeaverHead.cs +++ b/NPCs/StormWeaver/StormWeaverHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using System.IO; @@ -154,7 +154,7 @@ namespace CalamityMod.NPCs.StormWeaver npc.netUpdate = true; float xPos = Main.rand.NextBool(2) ? npc.position.X + 300f : npc.position.X - 300f; Vector2 vector2 = new Vector2(xPos, npc.position.Y + Main.rand.Next(-300, 301)); - Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, 465, damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, ProjectileID.CultistBossLightningOrb, damage, 0f, Main.myPlayer, 0f, 0f); } if (BoltCountdown == 0) { @@ -185,7 +185,7 @@ namespace CalamityMod.NPCs.StormWeaver velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; Vector2 vector94 = Main.player[npc.target].Center - spawn2; float ai = (float)Main.rand.Next(100); - Projectile.NewProjectile(spawn2.X, spawn2.Y, velocity.X, velocity.Y, 466, damage, 0f, Main.myPlayer, vector94.ToRotation(), ai); + Projectile.NewProjectile(spawn2.X, spawn2.Y, velocity.X, velocity.Y, ProjectileID.CultistBossLightningOrbArc, damage, 0f, Main.myPlayer, vector94.ToRotation(), ai); } } } diff --git a/NPCs/StormWeaver/StormWeaverHeadNaked.cs b/NPCs/StormWeaver/StormWeaverHeadNaked.cs index 13473f9169..e40e2b87fb 100644 --- a/NPCs/StormWeaver/StormWeaverHeadNaked.cs +++ b/NPCs/StormWeaver/StormWeaverHeadNaked.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Armor.Vanity; +using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Furniture.Trophies; @@ -177,7 +177,7 @@ namespace CalamityMod.NPCs.StormWeaver npc.netUpdate = true; float xPos = Main.rand.NextBool(2) ? npc.position.X + 300f : npc.position.X - 300f; Vector2 vector2 = new Vector2(xPos, npc.position.Y + Main.rand.Next(-300, 301)); - Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, 465, damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, ProjectileID.CultistBossLightningOrb, damage, 0f, Main.myPlayer, 0f, 0f); } if (BoltCountdown == 0) { @@ -207,7 +207,7 @@ namespace CalamityMod.NPCs.StormWeaver velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; Vector2 vector94 = Main.player[npc.target].Center - spawn2; float ai = (float)Main.rand.Next(100); - Projectile.NewProjectile(spawn2.X, spawn2.Y, velocity.X, velocity.Y, 466, damage, 0f, Main.myPlayer, vector94.ToRotation(), ai); + Projectile.NewProjectile(spawn2.X, spawn2.Y, velocity.X, velocity.Y, ProjectileID.CultistBossLightningOrbArc, damage, 0f, Main.myPlayer, vector94.ToRotation(), ai); } } } diff --git a/NPCs/StormWeaver/StormWeaverTail.cs b/NPCs/StormWeaver/StormWeaverTail.cs index 313ec75c47..e50a87355d 100644 --- a/NPCs/StormWeaver/StormWeaverTail.cs +++ b/NPCs/StormWeaver/StormWeaverTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Projectiles.Rogue; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; diff --git a/NPCs/StormWeaver/StormWeaverTailNaked.cs b/NPCs/StormWeaver/StormWeaverTailNaked.cs index 673beadc96..6ab8e7e791 100644 --- a/NPCs/StormWeaver/StormWeaverTailNaked.cs +++ b/NPCs/StormWeaver/StormWeaverTailNaked.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/SulphurousSea/AnthozoanCrab.cs b/NPCs/SulphurousSea/AnthozoanCrab.cs index 850e505827..73a305996c 100644 --- a/NPCs/SulphurousSea/AnthozoanCrab.cs +++ b/NPCs/SulphurousSea/AnthozoanCrab.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Projectiles.Enemy; using CalamityMod.Items.Materials; diff --git a/NPCs/SulphurousSea/BelchingCoral.cs b/NPCs/SulphurousSea/BelchingCoral.cs index a6532b7e3a..3ddf28bd1a 100644 --- a/NPCs/SulphurousSea/BelchingCoral.cs +++ b/NPCs/SulphurousSea/BelchingCoral.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Projectiles.Enemy; using CalamityMod.Items.Materials; diff --git a/NPCs/SulphurousSea/Catfish.cs b/NPCs/SulphurousSea/Catfish.cs index 76db0652df..5cd5e84006 100644 --- a/NPCs/SulphurousSea/Catfish.cs +++ b/NPCs/SulphurousSea/Catfish.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Materials; using CalamityMod.World; using System; diff --git a/NPCs/SulphurousSea/Flounder.cs b/NPCs/SulphurousSea/Flounder.cs index 24ae839dd8..32dc41276b 100644 --- a/NPCs/SulphurousSea/Flounder.cs +++ b/NPCs/SulphurousSea/Flounder.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Projectiles.Enemy; using CalamityMod.World; diff --git a/NPCs/SulphurousSea/Gnasher.cs b/NPCs/SulphurousSea/Gnasher.cs index 3e9ab503d7..3192aa74a6 100644 --- a/NPCs/SulphurousSea/Gnasher.cs +++ b/NPCs/SulphurousSea/Gnasher.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Terraria; diff --git a/NPCs/SulphurousSea/Mauler.cs b/NPCs/SulphurousSea/Mauler.cs index 9d6ddfba90..220801c871 100644 --- a/NPCs/SulphurousSea/Mauler.cs +++ b/NPCs/SulphurousSea/Mauler.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Ranged; @@ -284,7 +284,7 @@ namespace CalamityMod.NPCs.SulphurousSea public void BlowUp() { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 60); + Main.PlaySound(SoundID.NPCDeath60, npc.Center); if (Main.netMode != NetmodeID.MultiplayerClient) { Vector2 valueBoom = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); diff --git a/NPCs/SulphurousSea/MicrobialCluster.cs b/NPCs/SulphurousSea/MicrobialCluster.cs index 3e809a2e6d..b7ef5b48f1 100644 --- a/NPCs/SulphurousSea/MicrobialCluster.cs +++ b/NPCs/SulphurousSea/MicrobialCluster.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Projectiles.Enemy; using CalamityMod.Items.Materials; diff --git a/NPCs/SulphurousSea/Trasher.cs b/NPCs/SulphurousSea/Trasher.cs index d55430cfe6..ec47b8647b 100644 --- a/NPCs/SulphurousSea/Trasher.cs +++ b/NPCs/SulphurousSea/Trasher.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; diff --git a/NPCs/SunkenSea/BlindedAngler.cs b/NPCs/SunkenSea/BlindedAngler.cs index cde9ece8c1..0e47ef20bb 100644 --- a/NPCs/SunkenSea/BlindedAngler.cs +++ b/NPCs/SunkenSea/BlindedAngler.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables; +using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; diff --git a/NPCs/SunkenSea/Clam.cs b/NPCs/SunkenSea/Clam.cs index 2da9967774..41f205a3d5 100644 --- a/NPCs/SunkenSea/Clam.cs +++ b/NPCs/SunkenSea/Clam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Banners; using System.IO; diff --git a/NPCs/SunkenSea/EutrophicRay.cs b/NPCs/SunkenSea/EutrophicRay.cs index 9e9fb8ae5a..05e024bc22 100644 --- a/NPCs/SunkenSea/EutrophicRay.cs +++ b/NPCs/SunkenSea/EutrophicRay.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Melee; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/SunkenSea/GhostBell.cs b/NPCs/SunkenSea/GhostBell.cs index 70c52d53e9..8f43df710d 100644 --- a/NPCs/SunkenSea/GhostBell.cs +++ b/NPCs/SunkenSea/GhostBell.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Accessories; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/SunkenSea/GhostBellSmall.cs b/NPCs/SunkenSea/GhostBellSmall.cs index 3445818d55..45cd962756 100644 --- a/NPCs/SunkenSea/GhostBellSmall.cs +++ b/NPCs/SunkenSea/GhostBellSmall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Critters; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/SunkenSea/GiantClam.cs b/NPCs/SunkenSea/GiantClam.cs index 86f7a413dc..af0cbde325 100644 --- a/NPCs/SunkenSea/GiantClam.cs +++ b/NPCs/SunkenSea/GiantClam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; diff --git a/NPCs/SunkenSea/PrismTurtle.cs b/NPCs/SunkenSea/PrismTurtle.cs index 14abaa841b..6a99bf808f 100644 --- a/NPCs/SunkenSea/PrismTurtle.cs +++ b/NPCs/SunkenSea/PrismTurtle.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables; +using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/SunkenSea/SeaFloaty.cs b/NPCs/SunkenSea/SeaFloaty.cs index 33ebd19221..9f1495467e 100644 --- a/NPCs/SunkenSea/SeaFloaty.cs +++ b/NPCs/SunkenSea/SeaFloaty.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using System.IO; using Terraria; using Terraria.ID; diff --git a/NPCs/SunkenSea/SeaMinnow.cs b/NPCs/SunkenSea/SeaMinnow.cs index 0d07144f69..0c9f8ceac4 100644 --- a/NPCs/SunkenSea/SeaMinnow.cs +++ b/NPCs/SunkenSea/SeaMinnow.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Critters; using System; using Terraria; diff --git a/NPCs/SunkenSea/SeaSerpent1.cs b/NPCs/SunkenSea/SeaSerpent1.cs index ad4a79c985..c084e3269b 100644 --- a/NPCs/SunkenSea/SeaSerpent1.cs +++ b/NPCs/SunkenSea/SeaSerpent1.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Magic; using Microsoft.Xna.Framework; using System; @@ -83,7 +83,7 @@ namespace CalamityMod.NPCs.SunkenSea Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous; Main.npc[Previous].ai[0] = (float)lol; - NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, lol, 0f, 0f, 0f, 0); Previous = lol; } TailSpawned = true; @@ -307,7 +307,7 @@ namespace CalamityMod.NPCs.SunkenSea { Main.npc[k].life = 0; Main.npc[k].netSkip = -1; - NetMessage.SendData(23, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/NPCs/SunkenSea/SeaSerpent2.cs b/NPCs/SunkenSea/SeaSerpent2.cs index afb0259d2e..6534de15c5 100644 --- a/NPCs/SunkenSea/SeaSerpent2.cs +++ b/NPCs/SunkenSea/SeaSerpent2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/NPCs/SunkenSea/SeaSerpent3.cs b/NPCs/SunkenSea/SeaSerpent3.cs index ed96037da1..cb4b02cc7d 100644 --- a/NPCs/SunkenSea/SeaSerpent3.cs +++ b/NPCs/SunkenSea/SeaSerpent3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/NPCs/SunkenSea/SeaSerpent4.cs b/NPCs/SunkenSea/SeaSerpent4.cs index 4a1047a659..faddc7c362 100644 --- a/NPCs/SunkenSea/SeaSerpent4.cs +++ b/NPCs/SunkenSea/SeaSerpent4.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/NPCs/SunkenSea/SeaSerpent5.cs b/NPCs/SunkenSea/SeaSerpent5.cs index e6361fef6c..ddb07b0079 100644 --- a/NPCs/SunkenSea/SeaSerpent5.cs +++ b/NPCs/SunkenSea/SeaSerpent5.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/NPCs/SupremeCalamitas/SCalWormBody.cs b/NPCs/SupremeCalamitas/SCalWormBody.cs index 74a7abf591..f9ef65298e 100644 --- a/NPCs/SupremeCalamitas/SCalWormBody.cs +++ b/NPCs/SupremeCalamitas/SCalWormBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/SupremeCalamitas/SCalWormBodyWeak.cs b/NPCs/SupremeCalamitas/SCalWormBodyWeak.cs index bce91df87d..ba61be3cae 100644 --- a/NPCs/SupremeCalamitas/SCalWormBodyWeak.cs +++ b/NPCs/SupremeCalamitas/SCalWormBodyWeak.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.World; using System.IO; using Terraria; diff --git a/NPCs/SupremeCalamitas/SCalWormHead.cs b/NPCs/SupremeCalamitas/SCalWormHead.cs index 7b84c4810f..696bdf7583 100644 --- a/NPCs/SupremeCalamitas/SCalWormHead.cs +++ b/NPCs/SupremeCalamitas/SCalWormHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -136,7 +136,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas } if (!npc.active && Main.netMode == NetmodeID.Server) { - NetMessage.SendData(28, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, npc.whoAmI, -1f, 0f, 0f, 0, 0, 0); } } if (Main.player[npc.target].dead) diff --git a/NPCs/SupremeCalamitas/SCalWormHeart.cs b/NPCs/SupremeCalamitas/SCalWormHeart.cs index bba5e562b1..80987a2ea2 100644 --- a/NPCs/SupremeCalamitas/SCalWormHeart.cs +++ b/NPCs/SupremeCalamitas/SCalWormHeart.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Projectiles.Rogue; using CalamityMod.World; using Terraria; using Terraria.ID; diff --git a/NPCs/SupremeCalamitas/SCalWormTail.cs b/NPCs/SupremeCalamitas/SCalWormTail.cs index 75edcb310e..8b6fded520 100644 --- a/NPCs/SupremeCalamitas/SCalWormTail.cs +++ b/NPCs/SupremeCalamitas/SCalWormTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs index fa3bcb42fe..469c5369e3 100644 --- a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs +++ b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Boss; using CalamityMod.Dusts; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index a9b76ac438..24c2c16fca 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Items.Accessories; @@ -1037,7 +1037,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas } if (Main.netMode != NetmodeID.MultiplayerClient) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); + Main.PlaySound(SoundID.Item74, npc.position); for (int I = 0; I < 20; I++) { int FireEye = NPC.NewNPC((int)(vectorCenter.X + (Math.Sin(I * 18) * 300)), (int)(vectorCenter.Y + (Math.Cos(I * 18) * 300)), ModContent.NPCType(), npc.whoAmI, 0, 0, 0, -1); @@ -1631,7 +1631,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas for (int num388 = 0; num388 < 50; num388++) Dust.NewDust(npc.position, npc.width, npc.height, (int)CalamityDusts.Brimstone, Main.rand.Next(-30, 31) * 0.2f, Main.rand.Next(-30, 31) * 0.2f, 0, default, 1f); - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + Main.PlaySound(SoundID.Roar, npc.position); } } diff --git a/NPCs/SupremeCalamitas/SupremeCataclysm.cs b/NPCs/SupremeCalamitas/SupremeCataclysm.cs index 1070946f59..527ad2d805 100644 --- a/NPCs/SupremeCalamitas/SupremeCataclysm.cs +++ b/NPCs/SupremeCalamitas/SupremeCataclysm.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Projectiles.Boss; using CalamityMod.Projectiles.Summon; using CalamityMod.World; @@ -171,7 +171,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.ai[2] = 0f; float num689 = 7f; int num690 = expertMode ? 150 : 200; //600 500 - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 20); + Main.PlaySound(SoundID.Item20, npc.position); float spread = 45f * 0.0174f; double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; double deltaAngle = spread / 8f; diff --git a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs index 4618f0018c..f287ad9f39 100644 --- a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs +++ b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Projectiles.Boss; using CalamityMod.Projectiles.Summon; using CalamityMod.World; @@ -171,7 +171,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.ai[2] = 0f; float num689 = 7f; int num690 = expertMode ? 150 : 200; //600 500 - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 20); + Main.PlaySound(SoundID.Item20, npc.position); float spread = 45f * 0.0174f; double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; double deltaAngle = spread / 8f; diff --git a/NPCs/TownNPCs/THIEF.cs b/NPCs/TownNPCs/THIEF.cs index 31e18bf172..e7d0e8556a 100644 --- a/NPCs/TownNPCs/THIEF.cs +++ b/NPCs/TownNPCs/THIEF.cs @@ -198,7 +198,7 @@ namespace CalamityMod.NPCs.TownNPCs Main.LocalPlayer.SellItem((int)Main.LocalPlayer.Calamity().moneyStolenByBandit, 1); Main.LocalPlayer.Calamity().moneyStolenByBandit = 0; NPC goblinFucker = Main.npc[goblinIndex]; - Main.PlaySound(18, -1, -1, 1, 1f, 0f); //money dink sound + Main.PlaySound(SoundID.Coins, -1, -1, 1, 1f, 0f); //money dink sound switch (Main.rand.Next(2)) { case 0: diff --git a/NPCs/Yharon/DetonatingFlare.cs b/NPCs/Yharon/DetonatingFlare.cs index d01da9fbb5..ec5cc4efe7 100644 --- a/NPCs/Yharon/DetonatingFlare.cs +++ b/NPCs/Yharon/DetonatingFlare.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/NPCs/Yharon/DetonatingFlare2.cs b/NPCs/Yharon/DetonatingFlare2.cs index ecb9f459ef..fecd5618db 100644 --- a/NPCs/Yharon/DetonatingFlare2.cs +++ b/NPCs/Yharon/DetonatingFlare2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 9d92548304..d76cce7a3c 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Accessories.Wings; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; diff --git a/Projectiles/BaseProjectiles/BaseSpearProjectile.cs b/Projectiles/BaseProjectiles/BaseSpearProjectile.cs index 593e0e6da1..e766d1ed90 100644 --- a/Projectiles/BaseProjectiles/BaseSpearProjectile.cs +++ b/Projectiles/BaseProjectiles/BaseSpearProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/BaseProjectiles/BaseWhipProjectile.cs b/Projectiles/BaseProjectiles/BaseWhipProjectile.cs index f6479045e9..b99eefe670 100644 --- a/Projectiles/BaseProjectiles/BaseWhipProjectile.cs +++ b/Projectiles/BaseProjectiles/BaseWhipProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Boss/AbyssBallVolley.cs b/Projectiles/Boss/AbyssBallVolley.cs index f7d74023b4..ea803bc3ee 100644 --- a/Projectiles/Boss/AbyssBallVolley.cs +++ b/Projectiles/Boss/AbyssBallVolley.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 33); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 33); } if (Main.rand.NextBool(2)) { diff --git a/Projectiles/Boss/AbyssBallVolley2.cs b/Projectiles/Boss/AbyssBallVolley2.cs index a38a67caac..0e15ff0238 100644 --- a/Projectiles/Boss/AbyssBallVolley2.cs +++ b/Projectiles/Boss/AbyssBallVolley2.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 33); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 33); } if (Main.rand.NextBool(2)) { diff --git a/Projectiles/Boss/AbyssMine.cs b/Projectiles/Boss/AbyssMine.cs index 80c33359fd..6373ffd5a8 100644 --- a/Projectiles/Boss/AbyssMine.cs +++ b/Projectiles/Boss/AbyssMine.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 33); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 33); } if (Main.rand.NextBool(6)) { @@ -40,7 +40,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 14); projectile.position = projectile.Center; projectile.width = projectile.height = 96; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Boss/AbyssMine2.cs b/Projectiles/Boss/AbyssMine2.cs index 0f3af77d1c..e6533fd0c8 100644 --- a/Projectiles/Boss/AbyssMine2.cs +++ b/Projectiles/Boss/AbyssMine2.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 33); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 33); } if (Main.rand.NextBool(6)) { @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 14); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = projectile.height = 96; diff --git a/Projectiles/Boss/AstralFlame.cs b/Projectiles/Boss/AstralFlame.cs index f6b9284896..8e8a1ea3ef 100644 --- a/Projectiles/Boss/AstralFlame.cs +++ b/Projectiles/Boss/AstralFlame.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 103, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)projectile.position.X, (int)projectile.position.Y, 103, 1f, 0f); projectile.position = projectile.Center; projectile.width = projectile.height = 96; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Boss/AstralLaser.cs b/Projectiles/Boss/AstralLaser.cs index 5b1f536120..cfb5c07228 100644 --- a/Projectiles/Boss/AstralLaser.cs +++ b/Projectiles/Boss/AstralLaser.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Boss/AstralShot2.cs b/Projectiles/Boss/AstralShot2.cs index c157f11aa7..bc1812f7ac 100644 --- a/Projectiles/Boss/AstralShot2.cs +++ b/Projectiles/Boss/AstralShot2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[0] == 0f) { projectile.ai[0] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 12); } if (projectile.alpha > 0) { diff --git a/Projectiles/Boss/BigFlare.cs b/Projectiles/Boss/BigFlare.cs index 57ba185e96..e051c8af75 100644 --- a/Projectiles/Boss/BigFlare.cs +++ b/Projectiles/Boss/BigFlare.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -112,7 +112,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { bool revenge = CalamityWorld.revenge || CalamityWorld.bossRushActive; - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 20); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Boss/BigFlare2.cs b/Projectiles/Boss/BigFlare2.cs index e00325d4f9..29911c0713 100644 --- a/Projectiles/Boss/BigFlare2.cs +++ b/Projectiles/Boss/BigFlare2.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -112,7 +112,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { bool revenge = CalamityWorld.revenge || CalamityWorld.bossRushActive; - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 20); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Boss/BirbAura.cs b/Projectiles/Boss/BirbAura.cs index 02ea715c1d..3fcc363dee 100644 --- a/Projectiles/Boss/BirbAura.cs +++ b/Projectiles/Boss/BirbAura.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.NPCs.BrimstoneElemental; using CalamityMod.Dusts; using CalamityMod.World; diff --git a/Projectiles/Boss/BirbAuraFlare.cs b/Projectiles/Boss/BirbAuraFlare.cs index 95046b04b2..adf58bf2bb 100644 --- a/Projectiles/Boss/BirbAuraFlare.cs +++ b/Projectiles/Boss/BirbAuraFlare.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Boss/BloodClot.cs b/Projectiles/Boss/BloodClot.cs index 0f522879db..22cdc226b7 100644 --- a/Projectiles/Boss/BloodClot.cs +++ b/Projectiles/Boss/BloodClot.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Boss/BloodGeyser.cs b/Projectiles/Boss/BloodGeyser.cs index be5a381b1f..791e10fc55 100644 --- a/Projectiles/Boss/BloodGeyser.cs +++ b/Projectiles/Boss/BloodGeyser.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Boss/BrimstoneBall.cs b/Projectiles/Boss/BrimstoneBall.cs index 6cd0ea8190..8bdf9df0af 100644 --- a/Projectiles/Boss/BrimstoneBall.cs +++ b/Projectiles/Boss/BrimstoneBall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Boss/BrimstoneBarrage.cs b/Projectiles/Boss/BrimstoneBarrage.cs index 4bfd3b5c77..7fbd17087d 100644 --- a/Projectiles/Boss/BrimstoneBarrage.cs +++ b/Projectiles/Boss/BrimstoneBarrage.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Boss/BrimstoneFire.cs b/Projectiles/Boss/BrimstoneFire.cs index f9ff6f101c..d06dabb736 100644 --- a/Projectiles/Boss/BrimstoneFire.cs +++ b/Projectiles/Boss/BrimstoneFire.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Boss/BrimstoneFireblast.cs b/Projectiles/Boss/BrimstoneFireblast.cs index 245f83dfb9..93483613f7 100644 --- a/Projectiles/Boss/BrimstoneFireblast.cs +++ b/Projectiles/Boss/BrimstoneFireblast.cs @@ -1,10 +1,12 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Boss { public class BrimstoneFireblast : ModProjectile @@ -48,7 +50,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); } int num103 = (int)Player.FindClosest(projectile.Center, 1, 1); projectile.ai[1] += 1f; @@ -86,7 +88,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); float spread = 12f * 0.0174f; double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2; double deltaAngle = spread / 30f; diff --git a/Projectiles/Boss/BrimstoneGigaBlast.cs b/Projectiles/Boss/BrimstoneGigaBlast.cs index ecb68f0039..3d75dbe0cf 100644 --- a/Projectiles/Boss/BrimstoneGigaBlast.cs +++ b/Projectiles/Boss/BrimstoneGigaBlast.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -6,6 +6,8 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Boss { public class BrimstoneGigaBlast : ModProjectile @@ -46,7 +48,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); } float num953 = revenge ? 100f : 80f; //100 float scaleFactor12 = revenge ? 20f : 15f; //5 @@ -96,7 +98,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); float spread = 45f * 0.0174f; double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2; double deltaAngle = spread / 8f; diff --git a/Projectiles/Boss/BrimstoneHellblast.cs b/Projectiles/Boss/BrimstoneHellblast.cs index 22c4d3cad6..9e32ff51ac 100644 --- a/Projectiles/Boss/BrimstoneHellblast.cs +++ b/Projectiles/Boss/BrimstoneHellblast.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); } projectile.velocity.X *= 1.03f; projectile.velocity.Y *= 1.03f; @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); for (int dust = 0; dust <= 5; dust++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, (int)CalamityDusts.Brimstone, 0f, 0f); diff --git a/Projectiles/Boss/BrimstoneHellblast2.cs b/Projectiles/Boss/BrimstoneHellblast2.cs index 819ba0a176..cb78339772 100644 --- a/Projectiles/Boss/BrimstoneHellblast2.cs +++ b/Projectiles/Boss/BrimstoneHellblast2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Boss/BrimstoneHellfireball.cs b/Projectiles/Boss/BrimstoneHellfireball.cs index 300a6ab167..2df891bf27 100644 --- a/Projectiles/Boss/BrimstoneHellfireball.cs +++ b/Projectiles/Boss/BrimstoneHellfireball.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Boss Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.05f / 255f, (255 - projectile.alpha) * 0.05f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.localAI[0] += 1f; } diff --git a/Projectiles/Boss/BrimstoneLaser.cs b/Projectiles/Boss/BrimstoneLaser.cs index 99c91a4c69..556e438a16 100644 --- a/Projectiles/Boss/BrimstoneLaser.cs +++ b/Projectiles/Boss/BrimstoneLaser.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using System.IO; diff --git a/Projectiles/Boss/BrimstoneLaserSplit.cs b/Projectiles/Boss/BrimstoneLaserSplit.cs index 1a859ce543..6010bc38c3 100644 --- a/Projectiles/Boss/BrimstoneLaserSplit.cs +++ b/Projectiles/Boss/BrimstoneLaserSplit.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Boss/BrimstoneMonster.cs b/Projectiles/Boss/BrimstoneMonster.cs index 6b0ddf35cb..4e67bf40b0 100644 --- a/Projectiles/Boss/BrimstoneMonster.cs +++ b/Projectiles/Boss/BrimstoneMonster.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.World; diff --git a/Projectiles/Boss/BrimstoneRay.cs b/Projectiles/Boss/BrimstoneRay.cs index 9b9962edb0..f2fe1a1245 100644 --- a/Projectiles/Boss/BrimstoneRay.cs +++ b/Projectiles/Boss/BrimstoneRay.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.NPCs.BrimstoneElemental; using CalamityMod.Dusts; using CalamityMod.World; diff --git a/Projectiles/Boss/BrimstoneTargetRay.cs b/Projectiles/Boss/BrimstoneTargetRay.cs index 22ba609b66..253dcd1714 100644 --- a/Projectiles/Boss/BrimstoneTargetRay.cs +++ b/Projectiles/Boss/BrimstoneTargetRay.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.NPCs.BrimstoneElemental; using CalamityMod.Dusts; using CalamityMod.World; diff --git a/Projectiles/Boss/BrimstoneWave.cs b/Projectiles/Boss/BrimstoneWave.cs index 6e48536398..d5c0cd46e0 100644 --- a/Projectiles/Boss/BrimstoneWave.cs +++ b/Projectiles/Boss/BrimstoneWave.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Boss/CosmicFlameBurst.cs b/Projectiles/Boss/CosmicFlameBurst.cs index 0146e86a1a..e8ae26ea24 100644 --- a/Projectiles/Boss/CosmicFlameBurst.cs +++ b/Projectiles/Boss/CosmicFlameBurst.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -25,7 +26,7 @@ namespace CalamityMod.Projectiles.Boss { if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 73); + Main.PlaySound(SoundID.Item73, (int)projectile.position.X, (int)projectile.position.Y); projectile.localAI[0] += 1f; } projectile.localAI[0] += 1f; @@ -42,7 +43,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)projectile.position.X, (int)projectile.position.Y); projectile.position = projectile.Center; projectile.width = projectile.height = 48; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Boss/DarkEnergyBall.cs b/Projectiles/Boss/DarkEnergyBall.cs index 977e0fc38a..f174260fcc 100644 --- a/Projectiles/Boss/DarkEnergyBall.cs +++ b/Projectiles/Boss/DarkEnergyBall.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/Projectiles/Boss/DarkEnergyBall2.cs b/Projectiles/Boss/DarkEnergyBall2.cs index d737512fcd..d3d79bf651 100644 --- a/Projectiles/Boss/DarkEnergyBall2.cs +++ b/Projectiles/Boss/DarkEnergyBall2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/Projectiles/Boss/DarkOrb.cs b/Projectiles/Boss/DarkOrb.cs index 4dc786231b..67272b90c9 100644 --- a/Projectiles/Boss/DarkOrb.cs +++ b/Projectiles/Boss/DarkOrb.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Boss/DestroyerHomingLaser.cs b/Projectiles/Boss/DestroyerHomingLaser.cs index 4a12062637..b1fa30dc76 100644 --- a/Projectiles/Boss/DestroyerHomingLaser.cs +++ b/Projectiles/Boss/DestroyerHomingLaser.cs @@ -1,7 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -48,7 +49,7 @@ namespace CalamityMod.Projectiles.Boss } if (projectile.localAI[1] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 33); + Main.PlaySound(SoundID.Item33, (int)projectile.position.X, (int)projectile.position.Y); } projectile.localAI[1] += 1f; if (projectile.localAI[1] >= 180f) diff --git a/Projectiles/Boss/DeusMine.cs b/Projectiles/Boss/DeusMine.cs index 2c74d10bcc..a6749b1243 100644 --- a/Projectiles/Boss/DeusMine.cs +++ b/Projectiles/Boss/DeusMine.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -80,7 +81,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); projectile.position = projectile.Center; projectile.width = projectile.height = 96; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Boss/DoGBeam.cs b/Projectiles/Boss/DoGBeam.cs index da22da8ed5..2a4bac8ce4 100644 --- a/Projectiles/Boss/DoGBeam.cs +++ b/Projectiles/Boss/DoGBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Boss/DoGBeamPortal.cs b/Projectiles/Boss/DoGBeamPortal.cs index c734564014..844466f5c0 100644 --- a/Projectiles/Boss/DoGBeamPortal.cs +++ b/Projectiles/Boss/DoGBeamPortal.cs @@ -1,8 +1,9 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -54,7 +55,7 @@ namespace CalamityMod.Projectiles.Boss beamTimer--; if (beamTimer <= 0) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 33); + Main.PlaySound(SoundID.Item33, (int)projectile.position.X, (int)projectile.position.Y); float spread = 30f * 0.0174f; double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2; double deltaAngle = spread / 8f; @@ -103,7 +104,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 92); + Main.PlaySound(SoundID.Item92, (int)projectile.Center.X, (int)projectile.Center.Y); for (int num621 = 0; num621 < 30; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default, 1.2f); diff --git a/Projectiles/Boss/DoGDeath.cs b/Projectiles/Boss/DoGDeath.cs index 377cb4acbb..97125619f8 100644 --- a/Projectiles/Boss/DoGDeath.cs +++ b/Projectiles/Boss/DoGDeath.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Boss/DoGFire.cs b/Projectiles/Boss/DoGFire.cs index af7ab54a02..f93343d7cc 100644 --- a/Projectiles/Boss/DoGFire.cs +++ b/Projectiles/Boss/DoGFire.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)projectile.Center.X, (int)projectile.Center.Y); projectile.position = projectile.Center; projectile.width = projectile.height = 64; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Boss/DoGNebulaShot.cs b/Projectiles/Boss/DoGNebulaShot.cs index 628660c0cd..5c1e55803b 100644 --- a/Projectiles/Boss/DoGNebulaShot.cs +++ b/Projectiles/Boss/DoGNebulaShot.cs @@ -1,7 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -40,7 +41,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[0] == 0f) { projectile.ai[0] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12); + Main.PlaySound(SoundID.Item12, (int)projectile.Center.X, (int)projectile.Center.Y); } if (projectile.alpha > 0) { diff --git a/Projectiles/Boss/EssenceDust.cs b/Projectiles/Boss/EssenceDust.cs index e37f080997..72cee558a4 100644 --- a/Projectiles/Boss/EssenceDust.cs +++ b/Projectiles/Boss/EssenceDust.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -37,7 +38,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)projectile.position.X, (int)projectile.position.Y); projectile.position = projectile.Center; projectile.width = projectile.height = 96; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Boss/Flare.cs b/Projectiles/Boss/Flare.cs index 6d58ddbdb0..f0795219c9 100644 --- a/Projectiles/Boss/Flare.cs +++ b/Projectiles/Boss/Flare.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { bool revenge = CalamityWorld.revenge || CalamityWorld.bossRushActive; - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Boss/FlareBomb.cs b/Projectiles/Boss/FlareBomb.cs index ea566b0ab9..10d95675dd 100644 --- a/Projectiles/Boss/FlareBomb.cs +++ b/Projectiles/Boss/FlareBomb.cs @@ -1,7 +1,8 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -127,7 +128,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 48; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Boss/FlareDust.cs b/Projectiles/Boss/FlareDust.cs index 3560d62f37..18d25bdd90 100644 --- a/Projectiles/Boss/FlareDust.cs +++ b/Projectiles/Boss/FlareDust.cs @@ -1,8 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -122,7 +123,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 48; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Boss/FlareDust2.cs b/Projectiles/Boss/FlareDust2.cs index 16839a0373..1c8fe85f2b 100644 --- a/Projectiles/Boss/FlareDust2.cs +++ b/Projectiles/Boss/FlareDust2.cs @@ -1,8 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -127,7 +128,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 48; projectile.position.X = projectile.position.X - (projectile.width / 2); diff --git a/Projectiles/Boss/Flarenado.cs b/Projectiles/Boss/Flarenado.cs index df018e3556..14b84be335 100644 --- a/Projectiles/Boss/Flarenado.cs +++ b/Projectiles/Boss/Flarenado.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/Projectiles/Boss/FrostMist.cs b/Projectiles/Boss/FrostMist.cs index a7620d5d3f..74a0e0b614 100644 --- a/Projectiles/Boss/FrostMist.cs +++ b/Projectiles/Boss/FrostMist.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Boss } } projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 30); + Main.PlaySound(SoundID.Item30, projectile.position); } projectile.localAI[1] += 1f; if (projectile.localAI[1] == 16f) diff --git a/Projectiles/Boss/GreatSandBlast.cs b/Projectiles/Boss/GreatSandBlast.cs index 2332ebe6f7..ef3482c5ef 100644 --- a/Projectiles/Boss/GreatSandBlast.cs +++ b/Projectiles/Boss/GreatSandBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; @@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 32; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Boss/HealOrbProv.cs b/Projectiles/Boss/HealOrbProv.cs index 14831333a0..a2d6712868 100644 --- a/Projectiles/Boss/HealOrbProv.cs +++ b/Projectiles/Boss/HealOrbProv.cs @@ -1,8 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Projectiles.Boss { @@ -47,7 +48,7 @@ namespace CalamityMod.Projectiles.Boss { Main.player[num487].KillMe(PlayerDeathReason.ByCustomReason(Main.player[Main.myPlayer].name + " burst into sinless ash."), 1000.0, 0, false); } - NetMessage.SendData(66, -1, -1, null, num487, (float)num492, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SpiritHeal, -1, -1, null, num487, (float)num492, 0f, 0f, 0, 0, 0); } projectile.Kill(); } diff --git a/Projectiles/Boss/HellfireExplosion.cs b/Projectiles/Boss/HellfireExplosion.cs index 8051dbf562..aff72a6587 100644 --- a/Projectiles/Boss/HellfireExplosion.cs +++ b/Projectiles/Boss/HellfireExplosion.cs @@ -1,9 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -40,7 +41,7 @@ namespace CalamityMod.Projectiles.Boss Lighting.AddLight(projectile.Center, 0.75f, 0f, 0f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Boss/HiveBombGoliath.cs b/Projectiles/Boss/HiveBombGoliath.cs index 48e0f5f16d..d8caa973cb 100644 --- a/Projectiles/Boss/HiveBombGoliath.cs +++ b/Projectiles/Boss/HiveBombGoliath.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Boss projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 8; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 89, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Boss/HolyBlast.cs b/Projectiles/Boss/HolyBlast.cs index 6fb98462e3..0316013bf6 100644 --- a/Projectiles/Boss/HolyBlast.cs +++ b/Projectiles/Boss/HolyBlast.cs @@ -1,9 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -55,7 +56,7 @@ namespace CalamityMod.Projectiles.Boss } } projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); } if (Math.Abs(projectile.velocity.X) > 0.2) { @@ -102,9 +103,9 @@ namespace CalamityMod.Projectiles.Boss 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); - int dustType = Main.dayTime ? (int)CalamityDusts.ProfanedFire : (int)CalamityDusts.Nightwither; - for (int num193 = 0; num193 < 6; num193++) + Main.PlaySound(SoundID.Item20, projectile.Center); + int dustType = Main.dayTime ? (int)CalamityDusts.ProfanedFire : (int)CalamityDusts.Nightwither; + for (int num193 = 0; num193 < 6; num193++) { Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, dustType, 0f, 0f, 50, default, 1.5f); } diff --git a/Projectiles/Boss/HolyBomb.cs b/Projectiles/Boss/HolyBomb.cs index b521ae0237..89831baf08 100644 --- a/Projectiles/Boss/HolyBomb.cs +++ b/Projectiles/Boss/HolyBomb.cs @@ -1,9 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -44,9 +45,9 @@ namespace CalamityMod.Projectiles.Boss flareShootTimer--; if (flareShootTimer <= 0) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); - projectile.position.X = projectile.position.X + (projectile.width / 2); - projectile.position.Y = projectile.position.Y + (projectile.height / 2); + Main.PlaySound(SoundID.Item20, projectile.Center); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; projectile.height = 50; projectile.position.X = projectile.position.X - (projectile.width / 2); @@ -60,7 +61,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.Center); } projectile.velocity *= 0.975f; projectile.frameCounter++; @@ -91,9 +92,9 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); - projectile.position.X = projectile.position.X + (projectile.width / 2); - projectile.position.Y = projectile.position.Y + (projectile.height / 2); + Main.PlaySound(SoundID.Item20, projectile.Center); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 150; projectile.height = 150; projectile.position.X = projectile.position.X - (projectile.width / 2); diff --git a/Projectiles/Boss/HolyBurnOrb.cs b/Projectiles/Boss/HolyBurnOrb.cs index 39e45b9d5a..27e188950b 100644 --- a/Projectiles/Boss/HolyBurnOrb.cs +++ b/Projectiles/Boss/HolyBurnOrb.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -7,6 +7,8 @@ using System; using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Boss { public class HolyBurnOrb : ModProjectile @@ -64,7 +66,7 @@ namespace CalamityMod.Projectiles.Boss { Main.player[num487].KillMe(PlayerDeathReason.ByCustomReason(Main.player[Main.myPlayer].name + " burst into sinless ash."), 1000.0, 0, false); } - NetMessage.SendData(66, -1, -1, null, num487, num492, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SpiritHeal, -1, -1, null, num487, num492, 0f, 0f, 0, 0, 0); projectile.Kill(); } } @@ -107,7 +109,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.Center); projectile.position.X = projectile.position.X + (projectile.width / 2); projectile.position.Y = projectile.position.Y + (projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Boss/HolyFire.cs b/Projectiles/Boss/HolyFire.cs index ccca0e7846..4062d3e6cf 100644 --- a/Projectiles/Boss/HolyFire.cs +++ b/Projectiles/Boss/HolyFire.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -32,7 +33,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); } projectile.alpha -= 5; if (projectile.alpha <= 0) @@ -84,7 +85,7 @@ namespace CalamityMod.Projectiles.Boss 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); + Main.PlaySound(SoundID.Item20, projectile.Center); projectile.position.X = projectile.position.X + (projectile.width / 2); projectile.position.Y = projectile.position.Y + (projectile.height / 2); projectile.width = 150; diff --git a/Projectiles/Boss/HolyFire2.cs b/Projectiles/Boss/HolyFire2.cs index cb6fc777f7..b3b977ca39 100644 --- a/Projectiles/Boss/HolyFire2.cs +++ b/Projectiles/Boss/HolyFire2.cs @@ -1,9 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -73,7 +74,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.Center); projectile.position.X = projectile.position.X + (projectile.width / 2); projectile.position.Y = projectile.position.Y + (projectile.height / 2); projectile.width = 150; diff --git a/Projectiles/Boss/HolyFlare.cs b/Projectiles/Boss/HolyFlare.cs index b4bd36ae31..32d29b08be 100644 --- a/Projectiles/Boss/HolyFlare.cs +++ b/Projectiles/Boss/HolyFlare.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -81,7 +82,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.Center); projectile.position.X = projectile.position.X + (projectile.width / 2); projectile.position.Y = projectile.position.Y + (projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Boss/HolyLight.cs b/Projectiles/Boss/HolyLight.cs index 6bd41b956d..2285425b82 100644 --- a/Projectiles/Boss/HolyLight.cs +++ b/Projectiles/Boss/HolyLight.cs @@ -1,8 +1,10 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Boss { public class HolyLight : ModProjectile @@ -50,7 +52,8 @@ namespace CalamityMod.Projectiles.Boss { Main.player[num487].statLife = Main.player[num487].statLifeMax2; } - NetMessage.SendData(66, -1, -1, null, num487, num492, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SpiritHeal, -1, -1, null, num487, num492, 0f, 0f, 0, 0, 0); + z projectile.Kill(); } } @@ -93,7 +96,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.Center); projectile.position.X = projectile.position.X + (projectile.width / 2); projectile.position.Y = projectile.position.Y + (projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Boss/HolySpear.cs b/Projectiles/Boss/HolySpear.cs index 27bd3afa89..6cc0ed7544 100644 --- a/Projectiles/Boss/HolySpear.cs +++ b/Projectiles/Boss/HolySpear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Boss/IceBlast.cs b/Projectiles/Boss/IceBlast.cs index 361da94387..fa151dc770 100644 --- a/Projectiles/Boss/IceBlast.cs +++ b/Projectiles/Boss/IceBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Boss/IceBomb.cs b/Projectiles/Boss/IceBomb.cs index 78823307d6..bab1c3acbd 100644 --- a/Projectiles/Boss/IceBomb.cs +++ b/Projectiles/Boss/IceBomb.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using System; using Terraria; using Terraria.ID; @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { Lighting.AddLight((int)((projectile.position.X + (float)(projectile.width / 2)) / 16f), (int)((projectile.position.Y + (float)(projectile.height / 2)) / 16f), 0.01f, 0.25f, 0.25f); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); float spread = 60f * 0.0174f; double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2; double deltaAngle = spread / 8f; diff --git a/Projectiles/Boss/IceRain.cs b/Projectiles/Boss/IceRain.cs index 86e93a70ad..3aa809f122 100644 --- a/Projectiles/Boss/IceRain.cs +++ b/Projectiles/Boss/IceRain.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; @@ -82,7 +82,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 27, 0.25f); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 27, 0.25f); for (int num373 = 0; num373 < 3; num373++) { int num374 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 76, 0f, 0f, 0, default, 1f); diff --git a/Projectiles/Boss/IchorShot.cs b/Projectiles/Boss/IchorShot.cs index b0ab5ba3a8..e33da37af9 100644 --- a/Projectiles/Boss/IchorShot.cs +++ b/Projectiles/Boss/IchorShot.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Boss/Infernado.cs b/Projectiles/Boss/Infernado.cs index 9b3252ef6f..8a2fca38b2 100644 --- a/Projectiles/Boss/Infernado.cs +++ b/Projectiles/Boss/Infernado.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/Projectiles/Boss/Infernado2.cs b/Projectiles/Boss/Infernado2.cs index da7f460967..891030de8f 100644 --- a/Projectiles/Boss/Infernado2.cs +++ b/Projectiles/Boss/Infernado2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/Projectiles/Boss/InfernadoRevenge.cs b/Projectiles/Boss/InfernadoRevenge.cs index ac365efa49..ffa2e253ae 100644 --- a/Projectiles/Boss/InfernadoRevenge.cs +++ b/Projectiles/Boss/InfernadoRevenge.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Boss/JewelProjectile.cs b/Projectiles/Boss/JewelProjectile.cs index 85cf65a83a..ef72f0b9ce 100644 --- a/Projectiles/Boss/JewelProjectile.cs +++ b/Projectiles/Boss/JewelProjectile.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); for (int index1 = 0; index1 < 15; ++index1) { int ruby = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 90, projectile.oldVelocity.X, projectile.oldVelocity.Y, 50, new Color(), 1.2f); diff --git a/Projectiles/Boss/LeviathanBomb.cs b/Projectiles/Boss/LeviathanBomb.cs index e59d739ffd..ef87549899 100644 --- a/Projectiles/Boss/LeviathanBomb.cs +++ b/Projectiles/Boss/LeviathanBomb.cs @@ -1,7 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -47,7 +48,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 73); + Main.PlaySound(SoundID.Item73, projectile.position); } projectile.localAI[0] += 1f; if (projectile.localAI[0] == 12f) @@ -65,7 +66,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.Damage(); for (int num621 = 0; num621 < 20; num621++) { diff --git a/Projectiles/Boss/MoltenBlast.cs b/Projectiles/Boss/MoltenBlast.cs index a00aef3307..4900203289 100644 --- a/Projectiles/Boss/MoltenBlast.cs +++ b/Projectiles/Boss/MoltenBlast.cs @@ -1,10 +1,11 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -67,7 +68,7 @@ namespace CalamityMod.Projectiles.Boss } } projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); } projectile.localAI[0] += 1f; if (projectile.localAI[0] == 30f) @@ -120,10 +121,10 @@ namespace CalamityMod.Projectiles.Boss 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); + Main.PlaySound(SoundID.Item20, projectile.Center); - int dustType = Main.dayTime ? (int)CalamityDusts.ProfanedFire : (int)CalamityDusts.Nightwither; - for (int num193 = 0; num193 < 3; num193++) + int dustType = Main.dayTime ? (int)CalamityDusts.ProfanedFire : (int)CalamityDusts.Nightwither; + for (int num193 = 0; num193 < 3; num193++) { Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, dustType, 0f, 0f, 50, default, 1.5f); } diff --git a/Projectiles/Boss/MoltenBlob.cs b/Projectiles/Boss/MoltenBlob.cs index 78c1d38c0d..ba33c7918b 100644 --- a/Projectiles/Boss/MoltenBlob.cs +++ b/Projectiles/Boss/MoltenBlob.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -83,7 +84,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.Center); projectile.position.X = projectile.position.X + (projectile.width / 2); projectile.position.Y = projectile.position.Y + (projectile.height / 2); projectile.width = 10; diff --git a/Projectiles/Boss/MushBomb.cs b/Projectiles/Boss/MushBomb.cs index d14f549908..567f2809bc 100644 --- a/Projectiles/Boss/MushBomb.cs +++ b/Projectiles/Boss/MushBomb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 1); + Main.PlaySound(SoundID.NPCDeath1, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 20; diff --git a/Projectiles/Boss/MushBombFall.cs b/Projectiles/Boss/MushBombFall.cs index fc8492233b..244bfa9449 100644 --- a/Projectiles/Boss/MushBombFall.cs +++ b/Projectiles/Boss/MushBombFall.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -80,7 +80,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 1); + Main.PlaySound(SoundID.NPCDeath1, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 20; diff --git a/Projectiles/Boss/Mushmash.cs b/Projectiles/Boss/Mushmash.cs index 396e2a56ef..c18ad09ed6 100644 --- a/Projectiles/Boss/Mushmash.cs +++ b/Projectiles/Boss/Mushmash.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { public class Mushmash : ModProjectile diff --git a/Projectiles/Boss/OldDukeGore.cs b/Projectiles/Boss/OldDukeGore.cs index 1c91e308a0..0c1567d4df 100644 --- a/Projectiles/Boss/OldDukeGore.cs +++ b/Projectiles/Boss/OldDukeGore.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -62,10 +62,10 @@ namespace CalamityMod.Projectiles.Boss } public override void Kill(int timeLeft) - { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 12); + { + Main.PlaySound(SoundID.NPCDeath12, projectile.position); - int num226 = 8; + int num226 = 8; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; diff --git a/Projectiles/Boss/OldDukeSummonDrop.cs b/Projectiles/Boss/OldDukeSummonDrop.cs index 7df94b7a8f..6a1a7b01a1 100644 --- a/Projectiles/Boss/OldDukeSummonDrop.cs +++ b/Projectiles/Boss/OldDukeSummonDrop.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Boss/OldDukeVortex.cs b/Projectiles/Boss/OldDukeVortex.cs index f7fe1385c5..9feea5e40b 100644 --- a/Projectiles/Boss/OldDukeVortex.cs +++ b/Projectiles/Boss/OldDukeVortex.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/Projectiles/Boss/OverlyDramaticDukeSummoner.cs b/Projectiles/Boss/OverlyDramaticDukeSummoner.cs index 27bdabc719..551badccfa 100644 --- a/Projectiles/Boss/OverlyDramaticDukeSummoner.cs +++ b/Projectiles/Boss/OverlyDramaticDukeSummoner.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Events; using CalamityMod.NPCs.OldDuke; diff --git a/Projectiles/Boss/PhantomBlast.cs b/Projectiles/Boss/PhantomBlast.cs index 0b599141d4..52c95df3f1 100644 --- a/Projectiles/Boss/PhantomBlast.cs +++ b/Projectiles/Boss/PhantomBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; @@ -101,7 +101,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 125); + Main.PlaySound(SoundID.Item125, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Boss/PhantomBlast2.cs b/Projectiles/Boss/PhantomBlast2.cs index d0301057f9..dcd5a44830 100644 --- a/Projectiles/Boss/PhantomBlast2.cs +++ b/Projectiles/Boss/PhantomBlast2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; @@ -101,7 +101,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 125); + Main.PlaySound(SoundID.Item125, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Boss/PhantomGhostShot.cs b/Projectiles/Boss/PhantomGhostShot.cs index 48b0226b62..bd7c433b0b 100644 --- a/Projectiles/Boss/PhantomGhostShot.cs +++ b/Projectiles/Boss/PhantomGhostShot.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; diff --git a/Projectiles/Boss/PhantomHookShot.cs b/Projectiles/Boss/PhantomHookShot.cs index 48fa03acc9..f7354d7961 100644 --- a/Projectiles/Boss/PhantomHookShot.cs +++ b/Projectiles/Boss/PhantomHookShot.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; diff --git a/Projectiles/Boss/PhantomMine.cs b/Projectiles/Boss/PhantomMine.cs index f2cf472631..a65b2afbba 100644 --- a/Projectiles/Boss/PhantomMine.cs +++ b/Projectiles/Boss/PhantomMine.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -38,7 +39,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 150; diff --git a/Projectiles/Boss/PhantomShot.cs b/Projectiles/Boss/PhantomShot.cs index bc22e50508..6c3074cffa 100644 --- a/Projectiles/Boss/PhantomShot.cs +++ b/Projectiles/Boss/PhantomShot.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; diff --git a/Projectiles/Boss/PhantomShot2.cs b/Projectiles/Boss/PhantomShot2.cs index 01f54b720a..620988d1ed 100644 --- a/Projectiles/Boss/PhantomShot2.cs +++ b/Projectiles/Boss/PhantomShot2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; diff --git a/Projectiles/Boss/PlagueExplosion.cs b/Projectiles/Boss/PlagueExplosion.cs index c6d3b28710..d96878a30d 100644 --- a/Projectiles/Boss/PlagueExplosion.cs +++ b/Projectiles/Boss/PlagueExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Boss/PlagueStingerGoliath.cs b/Projectiles/Boss/PlagueStingerGoliath.cs index 1049da53db..b7a4a8a5d7 100644 --- a/Projectiles/Boss/PlagueStingerGoliath.cs +++ b/Projectiles/Boss/PlagueStingerGoliath.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Boss/PlagueStingerGoliathV2.cs b/Projectiles/Boss/PlagueStingerGoliathV2.cs index e4fe78d9f1..46be68fdc6 100644 --- a/Projectiles/Boss/PlagueStingerGoliathV2.cs +++ b/Projectiles/Boss/PlagueStingerGoliathV2.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -56,7 +57,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); if (projectile.owner == Main.myPlayer) { 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 ddcfe40e6e..062f25ed52 100644 --- a/Projectiles/Boss/ProfanedSpear.cs +++ b/Projectiles/Boss/ProfanedSpear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Boss/ProvidenceCrystal.cs b/Projectiles/Boss/ProvidenceCrystal.cs index 7efad65207..a1751ddb0b 100644 --- a/Projectiles/Boss/ProvidenceCrystal.cs +++ b/Projectiles/Boss/ProvidenceCrystal.cs @@ -1,10 +1,11 @@ -using CalamityMod.NPCs.Providence; +using CalamityMod.NPCs.Providence; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -87,7 +88,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.localAI[0] >= (Main.dayTime ? 300f : 30f)) { projectile.localAI[0] = 0f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 109); + Main.PlaySound(SoundID.Item109, projectile.position); projectile.netUpdate = true; if (projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Boss/ProvidenceCrystalShard.cs b/Projectiles/Boss/ProvidenceCrystalShard.cs index b5014f3d86..d95955e4c7 100644 --- a/Projectiles/Boss/ProvidenceCrystalShard.cs +++ b/Projectiles/Boss/ProvidenceCrystalShard.cs @@ -1,8 +1,9 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -151,7 +152,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); Vector2 spinningpoint = new Vector2(0f, -3f).RotatedByRandom(3.1415927410125732); float num69 = Main.rand.Next(7, 13); Vector2 value5 = new Vector2(2.1f, 2f); diff --git a/Projectiles/Boss/ProvidenceHolyRay.cs b/Projectiles/Boss/ProvidenceHolyRay.cs index 8a33dff998..f69f4c8af3 100644 --- a/Projectiles/Boss/ProvidenceHolyRay.cs +++ b/Projectiles/Boss/ProvidenceHolyRay.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.NPCs.Providence; using CalamityMod.World; diff --git a/Projectiles/Boss/RavagerFlame.cs b/Projectiles/Boss/RavagerFlame.cs index 3642da1765..7bbbeeb4f9 100644 --- a/Projectiles/Boss/RavagerFlame.cs +++ b/Projectiles/Boss/RavagerFlame.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); } } diff --git a/Projectiles/Boss/RedLightning.cs b/Projectiles/Boss/RedLightning.cs index a53b1b96fb..38436e6db6 100644 --- a/Projectiles/Boss/RedLightning.cs +++ b/Projectiles/Boss/RedLightning.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.NPCs.BrimstoneElemental; using CalamityMod.Dusts; using CalamityMod.World; diff --git a/Projectiles/Boss/RedLightningFeather.cs b/Projectiles/Boss/RedLightningFeather.cs index c3ce24c99e..9a7a601c22 100644 --- a/Projectiles/Boss/RedLightningFeather.cs +++ b/Projectiles/Boss/RedLightningFeather.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -118,9 +118,9 @@ namespace CalamityMod.Projectiles.Boss } private void EmitDust() - { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 109, 1f, 0f); - for (int num193 = 0; num193 < 6; num193++) + { + Main.PlaySound(SoundID.Item109, projectile.position); + for (int num193 = 0; num193 < 6; num193++) { Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 60, 0f, 0f, 100, default, 1.5f); } diff --git a/Projectiles/Boss/SandBlast.cs b/Projectiles/Boss/SandBlast.cs index f38d82234b..b335bf7163 100644 --- a/Projectiles/Boss/SandBlast.cs +++ b/Projectiles/Boss/SandBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Boss } } projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.Item21, projectile.position); } projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; projectile.alpha -= 50; @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int dust = 0; dust <= 10; dust++) { float num463 = (float)Main.rand.Next(-10, 11); diff --git a/Projectiles/Boss/SandPoisonCloud.cs b/Projectiles/Boss/SandPoisonCloud.cs index 1e62200597..1c4e00283e 100644 --- a/Projectiles/Boss/SandPoisonCloud.cs +++ b/Projectiles/Boss/SandPoisonCloud.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Boss/SandTooth.cs b/Projectiles/Boss/SandTooth.cs index 2c2143d97d..4accbc05e5 100644 --- a/Projectiles/Boss/SandTooth.cs +++ b/Projectiles/Boss/SandTooth.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Boss/ScavengerLaser.cs b/Projectiles/Boss/ScavengerLaser.cs index 382c825016..d5d713b30a 100644 --- a/Projectiles/Boss/ScavengerLaser.cs +++ b/Projectiles/Boss/ScavengerLaser.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; @@ -180,7 +180,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 103, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)projectile.position.X, (int)projectile.position.Y, 103, 1f, 0f); projectile.position = projectile.Center; projectile.width = projectile.height = 64; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Boss/ScavengerNuke.cs b/Projectiles/Boss/ScavengerNuke.cs index 102b2ec433..c93b901a56 100644 --- a/Projectiles/Boss/ScavengerNuke.cs +++ b/Projectiles/Boss/ScavengerNuke.cs @@ -1,7 +1,8 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -95,7 +96,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 160; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Boss/ShadeNimbusHostile.cs b/Projectiles/Boss/ShadeNimbusHostile.cs index 3c8caf0d39..99f97fd8b6 100644 --- a/Projectiles/Boss/ShadeNimbusHostile.cs +++ b/Projectiles/Boss/ShadeNimbusHostile.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { diff --git a/Projectiles/Boss/ShaderainHostile.cs b/Projectiles/Boss/ShaderainHostile.cs index 03211cf64d..ec37178598 100644 --- a/Projectiles/Boss/ShaderainHostile.cs +++ b/Projectiles/Boss/ShaderainHostile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Boss/ShadowflameFireball.cs b/Projectiles/Boss/ShadowflameFireball.cs index ad7d0637d4..05edeffdc7 100644 --- a/Projectiles/Boss/ShadowflameFireball.cs +++ b/Projectiles/Boss/ShadowflameFireball.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Boss/Shadowflamethrower.cs b/Projectiles/Boss/Shadowflamethrower.cs index 12a5a257d7..8fd05b46d6 100644 --- a/Projectiles/Boss/Shadowflamethrower.cs +++ b/Projectiles/Boss/Shadowflamethrower.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Boss/SignusScythe.cs b/Projectiles/Boss/SignusScythe.cs index bed8a96238..b367ebcf9b 100644 --- a/Projectiles/Boss/SignusScythe.cs +++ b/Projectiles/Boss/SignusScythe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -124,7 +124,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, projectile.position); for (int num621 = 0; num621 < 5; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default, 1f); diff --git a/Projectiles/Boss/SirenSong.cs b/Projectiles/Boss/SirenSong.cs index 990a4ef8d2..8aa5ed76aa 100644 --- a/Projectiles/Boss/SirenSong.cs +++ b/Projectiles/Boss/SirenSong.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System.IO; using Terraria; using Terraria.ID; diff --git a/Projectiles/Boss/SkyFlare.cs b/Projectiles/Boss/SkyFlare.cs index da67a400f2..457fdc6e5f 100644 --- a/Projectiles/Boss/SkyFlare.cs +++ b/Projectiles/Boss/SkyFlare.cs @@ -1,7 +1,8 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -63,7 +64,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { bool revenge = CalamityWorld.revenge; - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Boss/SkyFlareRevenge.cs b/Projectiles/Boss/SkyFlareRevenge.cs index 8940726140..7a65e48579 100644 --- a/Projectiles/Boss/SkyFlareRevenge.cs +++ b/Projectiles/Boss/SkyFlareRevenge.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { @@ -52,7 +53,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Boss/SporeGasPlantera.cs b/Projectiles/Boss/SporeGasPlantera.cs index 6444c7a562..e2e5736f50 100644 --- a/Projectiles/Boss/SporeGasPlantera.cs +++ b/Projectiles/Boss/SporeGasPlantera.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; diff --git a/Projectiles/Boss/VileClot.cs b/Projectiles/Boss/VileClot.cs index f575ef347c..f7b5d088ef 100644 --- a/Projectiles/Boss/VileClot.cs +++ b/Projectiles/Boss/VileClot.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Boss/WaterSpear.cs b/Projectiles/Boss/WaterSpear.cs index ee41032925..8d18da7a01 100644 --- a/Projectiles/Boss/WaterSpear.cs +++ b/Projectiles/Boss/WaterSpear.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Boss } } projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.Item21, projectile.position); } if (projectile.localAI[0] == 0f) { diff --git a/Projectiles/Boss/YharonFireball.cs b/Projectiles/Boss/YharonFireball.cs index b438b1d8e3..df0d29dfa6 100644 --- a/Projectiles/Boss/YharonFireball.cs +++ b/Projectiles/Boss/YharonFireball.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; diff --git a/Projectiles/Boss/YharonFireball2.cs b/Projectiles/Boss/YharonFireball2.cs index c5dc40fb48..ac3295f599 100644 --- a/Projectiles/Boss/YharonFireball2.cs +++ b/Projectiles/Boss/YharonFireball2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; @@ -103,7 +103,7 @@ namespace CalamityMod.Projectiles.Boss public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14, 0.5f, 0f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 14, 0.5f, 0f); projectile.position = projectile.Center; projectile.width = projectile.height = 144; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index f1a3579ccd..0dafb80ce2 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -397,7 +397,7 @@ namespace CalamityMod.Projectiles if (projectile.localAI[0] == 0f) { - Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 104, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)projectile.position.X, (int)projectile.position.Y, 104, 1f, 0f); } float num801 = 1f; @@ -866,7 +866,7 @@ namespace CalamityMod.Projectiles } value15.Normalize(); value15 *= Main.rand.Next(70, 101) * 0.1f; - int shard = Projectile.NewProjectile(projectile.oldPosition.X + (projectile.width / 2), projectile.oldPosition.Y + (projectile.height / 2), value15.X, value15.Y, 90, (int)(projectile.damage * 0.25), 0f, projectile.owner, 0f, 0f); + int shard = Projectile.NewProjectile(projectile.oldPosition + projectile.Size * 0.5f, value15, ProjectileID.CrystalShard, (int)(projectile.damage * 0.25), 0f, projectile.owner, 0f, 0f); Main.projectile[shard].ranged = false; } } @@ -1140,9 +1140,9 @@ namespace CalamityMod.Projectiles int nebulaBooster = Item.NewItem((int)target.position.X, (int)target.position.Y, target.width, target.height, boosterType, 1, false, 0, false, false); Main.item[nebulaBooster].velocity.Y = Main.rand.Next(-20, 1) * 0.2f; Main.item[nebulaBooster].velocity.X = Main.rand.Next(10, 31) * 0.2f * projectile.direction; - if (Main.netMode == 1) + if (Main.netMode == NetmodeID.MultiplayerClient) { - NetMessage.SendData(21, -1, -1, null, nebulaBooster, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncItem, -1, -1, null, nebulaBooster, 0f, 0f, 0f, 0, 0, 0); } } } @@ -1285,7 +1285,7 @@ namespace CalamityMod.Projectiles { if (modPlayer.silvaMage && projectile.penetrate == 1 && Main.rand.Next(0, 100) >= 97) { - Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 103); + Main.PlaySound(SoundID.Zombie, (int)projectile.position.X, (int)projectile.position.Y, 103); projectile.position = projectile.Center; projectile.width = projectile.height = 96; projectile.position.X -= projectile.width / 2; @@ -1854,7 +1854,7 @@ namespace CalamityMod.Projectiles { if (modPlayer.providenceLore && projectile.friendly && projectile.damage > 0 && (projectile.melee || projectile.ranged || projectile.magic || rogue)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, (int)projectile.position.X, (int)projectile.position.Y); for (int dustIndex = 0; dustIndex < 3; dustIndex++) { int dust = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, (int)CalamityDusts.ProfanedFire, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f, 0, default, 1f); @@ -2126,7 +2126,7 @@ namespace CalamityMod.Projectiles { player.statLife = player.statLifeMax2; } - NetMessage.SendData(66, -1, -1, null, target, healAmt, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SpiritHeal, -1, -1, null, target, healAmt, 0f, 0f, 0, 0, 0); } projectile.Kill(); } diff --git a/Projectiles/Damageable/ArtifactOfResilienceBulwark.cs b/Projectiles/Damageable/ArtifactOfResilienceBulwark.cs index dcf0fe3527..61bb60130d 100644 --- a/Projectiles/Damageable/ArtifactOfResilienceBulwark.cs +++ b/Projectiles/Damageable/ArtifactOfResilienceBulwark.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; diff --git a/Projectiles/DraedonsArsenal/GatlingLaserProj.cs b/Projectiles/DraedonsArsenal/GatlingLaserProj.cs index dc73b8464b..44f2f370b3 100644 --- a/Projectiles/DraedonsArsenal/GatlingLaserProj.cs +++ b/Projectiles/DraedonsArsenal/GatlingLaserProj.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Terraria; diff --git a/Projectiles/DraedonsArsenal/GatlingLaserShot.cs b/Projectiles/DraedonsArsenal/GatlingLaserShot.cs index 13cbfae232..3743955ec1 100644 --- a/Projectiles/DraedonsArsenal/GatlingLaserShot.cs +++ b/Projectiles/DraedonsArsenal/GatlingLaserShot.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/DraedonsArsenal/LaserRifleShot.cs b/Projectiles/DraedonsArsenal/LaserRifleShot.cs index 83b69a99fd..e7d9e3873d 100644 --- a/Projectiles/DraedonsArsenal/LaserRifleShot.cs +++ b/Projectiles/DraedonsArsenal/LaserRifleShot.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/DraedonsArsenal/PlasmaCasterShot.cs b/Projectiles/DraedonsArsenal/PlasmaCasterShot.cs index bd68a8744e..952a61c26c 100644 --- a/Projectiles/DraedonsArsenal/PlasmaCasterShot.cs +++ b/Projectiles/DraedonsArsenal/PlasmaCasterShot.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/DraedonsArsenal/PulseRifleShot.cs b/Projectiles/DraedonsArsenal/PulseRifleShot.cs index 5ff8b812ed..f501dd16a5 100644 --- a/Projectiles/DraedonsArsenal/PulseRifleShot.cs +++ b/Projectiles/DraedonsArsenal/PulseRifleShot.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/DraedonsArsenal/TeslaCannonShot.cs b/Projectiles/DraedonsArsenal/TeslaCannonShot.cs index 3e98af10a2..b951f4a9ad 100644 --- a/Projectiles/DraedonsArsenal/TeslaCannonShot.cs +++ b/Projectiles/DraedonsArsenal/TeslaCannonShot.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Enemy/AstralShot.cs b/Projectiles/Enemy/AstralShot.cs index d42ffde574..f120d45fad 100644 --- a/Projectiles/Enemy/AstralShot.cs +++ b/Projectiles/Enemy/AstralShot.cs @@ -1,7 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Enemy { public class AstralShot : ModProjectile @@ -29,7 +31,7 @@ namespace CalamityMod.Projectiles.Enemy if (projectile.ai[0] == 0f) { projectile.ai[0] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 12); } if (projectile.alpha > 0) { diff --git a/Projectiles/Enemy/BelchingCoralSpike.cs b/Projectiles/Enemy/BelchingCoralSpike.cs index 470ee34328..45b275bbfa 100644 --- a/Projectiles/Enemy/BelchingCoralSpike.cs +++ b/Projectiles/Enemy/BelchingCoralSpike.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Enemy/CrabBoulder.cs b/Projectiles/Enemy/CrabBoulder.cs index b571513d75..5d18ac21a0 100644 --- a/Projectiles/Enemy/CrabBoulder.cs +++ b/Projectiles/Enemy/CrabBoulder.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Enemy/CragmawBeam.cs b/Projectiles/Enemy/CragmawBeam.cs index baba926e2c..a61e2a6847 100644 --- a/Projectiles/Enemy/CragmawBeam.cs +++ b/Projectiles/Enemy/CragmawBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Enemy/CragmawBubble.cs b/Projectiles/Enemy/CragmawBubble.cs index 5ca8c64578..f8e5bc38c7 100644 --- a/Projectiles/Enemy/CragmawBubble.cs +++ b/Projectiles/Enemy/CragmawBubble.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Enemy/CragmawSpike.cs b/Projectiles/Enemy/CragmawSpike.cs index 696bbf3f0b..efec0d5e92 100644 --- a/Projectiles/Enemy/CragmawSpike.cs +++ b/Projectiles/Enemy/CragmawSpike.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Enemy/CragmawVibeCheckChain.cs b/Projectiles/Enemy/CragmawVibeCheckChain.cs index ab1efa67da..8aca72cbba 100644 --- a/Projectiles/Enemy/CragmawVibeCheckChain.cs +++ b/Projectiles/Enemy/CragmawVibeCheckChain.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; diff --git a/Projectiles/Enemy/CrimsonSpike.cs b/Projectiles/Enemy/CrimsonSpike.cs index 8f6730b379..5fca704356 100644 --- a/Projectiles/Enemy/CrimsonSpike.cs +++ b/Projectiles/Enemy/CrimsonSpike.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Enemy if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 17); + Main.PlaySound(SoundID.Item17, (int)projectile.position.X, (int)projectile.position.Y); } projectile.ai[0] += 1f; if (projectile.ai[0] >= 5f) diff --git a/Projectiles/Enemy/EarthRockBig.cs b/Projectiles/Enemy/EarthRockBig.cs index 9cad47333e..8b12ba1d48 100644 --- a/Projectiles/Enemy/EarthRockBig.cs +++ b/Projectiles/Enemy/EarthRockBig.cs @@ -1,7 +1,8 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Enemy { @@ -51,7 +52,7 @@ namespace CalamityMod.Projectiles.Enemy public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.NPCDeath14, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 60; diff --git a/Projectiles/Enemy/EarthRockSmall.cs b/Projectiles/Enemy/EarthRockSmall.cs index ee4b128017..f9fc694331 100644 --- a/Projectiles/Enemy/EarthRockSmall.cs +++ b/Projectiles/Enemy/EarthRockSmall.cs @@ -1,7 +1,8 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Enemy { @@ -30,7 +31,7 @@ namespace CalamityMod.Projectiles.Enemy public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.NPCDeath14, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Enemy/FlakAcid.cs b/Projectiles/Enemy/FlakAcid.cs index 86299a8d41..ea1941e212 100644 --- a/Projectiles/Enemy/FlakAcid.cs +++ b/Projectiles/Enemy/FlakAcid.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Enemy/FlameBurstHostile.cs b/Projectiles/Enemy/FlameBurstHostile.cs index e272b6d0ab..87073736b7 100644 --- a/Projectiles/Enemy/FlameBurstHostile.cs +++ b/Projectiles/Enemy/FlameBurstHostile.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Enemy { @@ -26,7 +27,7 @@ namespace CalamityMod.Projectiles.Enemy { if (count == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 73); + Main.PlaySound(SoundID.Item73, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 20; diff --git a/Projectiles/Enemy/GammaAcid.cs b/Projectiles/Enemy/GammaAcid.cs index 607a89dbdf..3afba2d30d 100644 --- a/Projectiles/Enemy/GammaAcid.cs +++ b/Projectiles/Enemy/GammaAcid.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Enemy/GammaBeam.cs b/Projectiles/Enemy/GammaBeam.cs index fd079e6dea..48cb0dd6f9 100644 --- a/Projectiles/Enemy/GammaBeam.cs +++ b/Projectiles/Enemy/GammaBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Enemy/HorsWaterBlast.cs b/Projectiles/Enemy/HorsWaterBlast.cs index 062afd791d..a23aaa5cc1 100644 --- a/Projectiles/Enemy/HorsWaterBlast.cs +++ b/Projectiles/Enemy/HorsWaterBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Enemy } } projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.Item21, projectile.position); } Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.35f / 255f); for (int num457 = 0; num457 < 10; num457++) @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Enemy public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.Item21, projectile.position); for (int dust = 0; dust <= 40; dust++) { float num463 = (float)Main.rand.Next(-10, 11); diff --git a/Projectiles/Enemy/InkBomb.cs b/Projectiles/Enemy/InkBomb.cs index 40e60358ac..4328710d49 100644 --- a/Projectiles/Enemy/InkBomb.cs +++ b/Projectiles/Enemy/InkBomb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Enemy public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 28); + Main.PlaySound(SoundID.NPCDeath28, projectile.position); int num251 = Main.rand.Next(5, 8); if (projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Enemy/InkPoisonCloud.cs b/Projectiles/Enemy/InkPoisonCloud.cs index d9bc656bd4..b959629ee3 100644 --- a/Projectiles/Enemy/InkPoisonCloud.cs +++ b/Projectiles/Enemy/InkPoisonCloud.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Enemy/InkPoisonCloud2.cs b/Projectiles/Enemy/InkPoisonCloud2.cs index 467b45b6ec..8bf7f57d92 100644 --- a/Projectiles/Enemy/InkPoisonCloud2.cs +++ b/Projectiles/Enemy/InkPoisonCloud2.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Enemy/InkPoisonCloud3.cs b/Projectiles/Enemy/InkPoisonCloud3.cs index 40b43c2d32..2950babbc5 100644 --- a/Projectiles/Enemy/InkPoisonCloud3.cs +++ b/Projectiles/Enemy/InkPoisonCloud3.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Enemy/MantisRing.cs b/Projectiles/Enemy/MantisRing.cs index f52d0cc5a2..29fe90f655 100644 --- a/Projectiles/Enemy/MantisRing.cs +++ b/Projectiles/Enemy/MantisRing.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; diff --git a/Projectiles/Enemy/NuclearBulletLarge.cs b/Projectiles/Enemy/NuclearBulletLarge.cs index d9bc147081..fdf3d549d9 100644 --- a/Projectiles/Enemy/NuclearBulletLarge.cs +++ b/Projectiles/Enemy/NuclearBulletLarge.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Terraria; diff --git a/Projectiles/Enemy/NuclearBulletMedium.cs b/Projectiles/Enemy/NuclearBulletMedium.cs index 14b354b27f..71ab545c3c 100644 --- a/Projectiles/Enemy/NuclearBulletMedium.cs +++ b/Projectiles/Enemy/NuclearBulletMedium.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using System; diff --git a/Projectiles/Enemy/NuclearToadGoo.cs b/Projectiles/Enemy/NuclearToadGoo.cs index 443a006389..aab0150aad 100644 --- a/Projectiles/Enemy/NuclearToadGoo.cs +++ b/Projectiles/Enemy/NuclearToadGoo.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Enemy/OrthoceraStream.cs b/Projectiles/Enemy/OrthoceraStream.cs index a95a587c36..919ecb6881 100644 --- a/Projectiles/Enemy/OrthoceraStream.cs +++ b/Projectiles/Enemy/OrthoceraStream.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Enemy/PearlBurst.cs b/Projectiles/Enemy/PearlBurst.cs index cd5912482b..640e29cf15 100644 --- a/Projectiles/Enemy/PearlBurst.cs +++ b/Projectiles/Enemy/PearlBurst.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Enemy/PearlRain.cs b/Projectiles/Enemy/PearlRain.cs index bc14eec908..ad0959721b 100644 --- a/Projectiles/Enemy/PearlRain.cs +++ b/Projectiles/Enemy/PearlRain.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Enemy/PufferExplosion.cs b/Projectiles/Enemy/PufferExplosion.cs index 955cc605e7..01606b0e4b 100644 --- a/Projectiles/Enemy/PufferExplosion.cs +++ b/Projectiles/Enemy/PufferExplosion.cs @@ -2,6 +2,7 @@ using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Enemy { @@ -31,7 +32,7 @@ namespace CalamityMod.Projectiles.Enemy Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.75f / 255f, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.01f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Enemy/StormMarkHostile.cs b/Projectiles/Enemy/StormMarkHostile.cs index 9fedc828f4..7cad2705ee 100644 --- a/Projectiles/Enemy/StormMarkHostile.cs +++ b/Projectiles/Enemy/StormMarkHostile.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Enemy { @@ -29,7 +30,7 @@ namespace CalamityMod.Projectiles.Enemy if (projectile.soundDelay == 0) { projectile.soundDelay = -1; - Main.PlaySound(2, projectile.Center, 60); + Main.PlaySound(SoundID.Item60, projectile.Center); } if (projectile.localAI[1] < 30f) { diff --git a/Projectiles/Enemy/SulphuricAcidBubble.cs b/Projectiles/Enemy/SulphuricAcidBubble.cs index f05cc9bd78..b1790cb1b5 100644 --- a/Projectiles/Enemy/SulphuricAcidBubble.cs +++ b/Projectiles/Enemy/SulphuricAcidBubble.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Enemy/SulphuricAcidMist.cs b/Projectiles/Enemy/SulphuricAcidMist.cs index e3bef3ad7e..62fd008508 100644 --- a/Projectiles/Enemy/SulphuricAcidMist.cs +++ b/Projectiles/Enemy/SulphuricAcidMist.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Enemy if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 111); + Main.PlaySound(SoundID.Item111, projectile.position); } if (projectile.velocity.X < 0f) { diff --git a/Projectiles/Enemy/TornadoHostile.cs b/Projectiles/Enemy/TornadoHostile.cs index b837275777..2bc4b6be9a 100644 --- a/Projectiles/Enemy/TornadoHostile.cs +++ b/Projectiles/Enemy/TornadoHostile.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Enemy { @@ -27,7 +28,7 @@ namespace CalamityMod.Projectiles.Enemy if (projectile.soundDelay == 0) { projectile.soundDelay = -1; - Main.PlaySound(2, projectile.Center, 122); + Main.PlaySound(SoundID.Item122, projectile.position); } projectile.ai[0] += 1f; if (projectile.ai[0] >= num1125) diff --git a/Projectiles/Enemy/ToxicMinnowCloud.cs b/Projectiles/Enemy/ToxicMinnowCloud.cs index 4670a6e322..f4feb53ef0 100644 --- a/Projectiles/Enemy/ToxicMinnowCloud.cs +++ b/Projectiles/Enemy/ToxicMinnowCloud.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Enemy/TrilobiteSpike.cs b/Projectiles/Enemy/TrilobiteSpike.cs index dd3dc20e5f..fb324324ab 100644 --- a/Projectiles/Enemy/TrilobiteSpike.cs +++ b/Projectiles/Enemy/TrilobiteSpike.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Environment/AcidDrop.cs b/Projectiles/Environment/AcidDrop.cs index 0385ff1f5d..3496186427 100644 --- a/Projectiles/Environment/AcidDrop.cs +++ b/Projectiles/Environment/AcidDrop.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Environment/GeyserTelegraph.cs b/Projectiles/Environment/GeyserTelegraph.cs index 1bb545e351..8be843512e 100644 --- a/Projectiles/Environment/GeyserTelegraph.cs +++ b/Projectiles/Environment/GeyserTelegraph.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Environment/HotSteam.cs b/Projectiles/Environment/HotSteam.cs index fd57ffbdff..09143d06b0 100644 --- a/Projectiles/Environment/HotSteam.cs +++ b/Projectiles/Environment/HotSteam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Environment/LavaChunk.cs b/Projectiles/Environment/LavaChunk.cs index 9bee03d02d..b0a8da37ea 100644 --- a/Projectiles/Environment/LavaChunk.cs +++ b/Projectiles/Environment/LavaChunk.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Environment/LightningMark.cs b/Projectiles/Environment/LightningMark.cs index b3971032e5..b9efe5b114 100644 --- a/Projectiles/Environment/LightningMark.cs +++ b/Projectiles/Environment/LightningMark.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Healing/AtaxiaHealOrb.cs b/Projectiles/Healing/AtaxiaHealOrb.cs index 98aa375101..0d5eadef98 100644 --- a/Projectiles/Healing/AtaxiaHealOrb.cs +++ b/Projectiles/Healing/AtaxiaHealOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/AuricOrb.cs b/Projectiles/Healing/AuricOrb.cs index 74adb60d7d..0c606dc07f 100644 --- a/Projectiles/Healing/AuricOrb.cs +++ b/Projectiles/Healing/AuricOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/BurntSiennaProj.cs b/Projectiles/Healing/BurntSiennaProj.cs index c9a3d5e548..e9f19513d6 100644 --- a/Projectiles/Healing/BurntSiennaProj.cs +++ b/Projectiles/Healing/BurntSiennaProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/CactusHealOrb.cs b/Projectiles/Healing/CactusHealOrb.cs index 4d919c5b6a..e9777b88a7 100644 --- a/Projectiles/Healing/CactusHealOrb.cs +++ b/Projectiles/Healing/CactusHealOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/EarthHealOrb.cs b/Projectiles/Healing/EarthHealOrb.cs index 1b0f469446..74f56b35d0 100644 --- a/Projectiles/Healing/EarthHealOrb.cs +++ b/Projectiles/Healing/EarthHealOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/EssenceFlame.cs b/Projectiles/Healing/EssenceFlame.cs index 4b628fbf2a..079c36c396 100644 --- a/Projectiles/Healing/EssenceFlame.cs +++ b/Projectiles/Healing/EssenceFlame.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Healing { @@ -44,7 +45,7 @@ namespace CalamityMod.Projectiles.Healing public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Healing/Exoheal.cs b/Projectiles/Healing/Exoheal.cs index f2e6e2b59d..1f9885494a 100644 --- a/Projectiles/Healing/Exoheal.cs +++ b/Projectiles/Healing/Exoheal.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/FungalHeal.cs b/Projectiles/Healing/FungalHeal.cs index 8b064add99..411b98ceda 100644 --- a/Projectiles/Healing/FungalHeal.cs +++ b/Projectiles/Healing/FungalHeal.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/GodSlayerHealOrb.cs b/Projectiles/Healing/GodSlayerHealOrb.cs index 76ab25d25d..ac18118026 100644 --- a/Projectiles/Healing/GodSlayerHealOrb.cs +++ b/Projectiles/Healing/GodSlayerHealOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/ManaOverloaderHealOrb.cs b/Projectiles/Healing/ManaOverloaderHealOrb.cs index 4a6a1773a8..c2fc3d32bb 100644 --- a/Projectiles/Healing/ManaOverloaderHealOrb.cs +++ b/Projectiles/Healing/ManaOverloaderHealOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/PhoenixHeal.cs b/Projectiles/Healing/PhoenixHeal.cs index d876795420..c75c5c8f2d 100644 --- a/Projectiles/Healing/PhoenixHeal.cs +++ b/Projectiles/Healing/PhoenixHeal.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/RainHeal.cs b/Projectiles/Healing/RainHeal.cs index 492030d13b..f760a723e5 100644 --- a/Projectiles/Healing/RainHeal.cs +++ b/Projectiles/Healing/RainHeal.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/RoyalHeal.cs b/Projectiles/Healing/RoyalHeal.cs index a5f7a0fea3..8f3c52a8f9 100644 --- a/Projectiles/Healing/RoyalHeal.cs +++ b/Projectiles/Healing/RoyalHeal.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/ShinobiHealOrb.cs b/Projectiles/Healing/ShinobiHealOrb.cs index 0361dfd5df..c4f103f7a6 100644 --- a/Projectiles/Healing/ShinobiHealOrb.cs +++ b/Projectiles/Healing/ShinobiHealOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Healing/SilvaOrb.cs b/Projectiles/Healing/SilvaOrb.cs index 4da5cec31c..23d3f2052b 100644 --- a/Projectiles/Healing/SilvaOrb.cs +++ b/Projectiles/Healing/SilvaOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/TerracottaProj.cs b/Projectiles/Healing/TerracottaProj.cs index d6c26b2ae1..e080fec2f2 100644 --- a/Projectiles/Healing/TerracottaProj.cs +++ b/Projectiles/Healing/TerracottaProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/TransfusionTrail.cs b/Projectiles/Healing/TransfusionTrail.cs index 741959f1e7..47405b9284 100644 --- a/Projectiles/Healing/TransfusionTrail.cs +++ b/Projectiles/Healing/TransfusionTrail.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Healing/XerocHealOrb.cs b/Projectiles/Healing/XerocHealOrb.cs index 5ab79c1a15..f82838b713 100644 --- a/Projectiles/Healing/XerocHealOrb.cs +++ b/Projectiles/Healing/XerocHealOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Hybrid/AccretionDisk2.cs b/Projectiles/Hybrid/AccretionDisk2.cs index 427416d322..e104373475 100644 --- a/Projectiles/Hybrid/AccretionDisk2.cs +++ b/Projectiles/Hybrid/AccretionDisk2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Hybrid/AccretionDiskProj.cs b/Projectiles/Hybrid/AccretionDiskProj.cs index 5c91e8fadb..f35fc1b399 100644 --- a/Projectiles/Hybrid/AccretionDiskProj.cs +++ b/Projectiles/Hybrid/AccretionDiskProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Hybrid/AetherBeam.cs b/Projectiles/Hybrid/AetherBeam.cs index 442f59ad43..e945b3dcff 100644 --- a/Projectiles/Hybrid/AetherBeam.cs +++ b/Projectiles/Hybrid/AetherBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Hybrid/CorpusAvertorClone.cs b/Projectiles/Hybrid/CorpusAvertorClone.cs index 1210f3270e..13776d6916 100644 --- a/Projectiles/Hybrid/CorpusAvertorClone.cs +++ b/Projectiles/Hybrid/CorpusAvertorClone.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Hybrid/CorpusAvertorProj.cs b/Projectiles/Hybrid/CorpusAvertorProj.cs index 4e41dfb165..ffc580247e 100644 --- a/Projectiles/Hybrid/CorpusAvertorProj.cs +++ b/Projectiles/Hybrid/CorpusAvertorProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Hybrid/EmpyreanKnife.cs b/Projectiles/Hybrid/EmpyreanKnife.cs index 17908efb24..ddd8abd06d 100644 --- a/Projectiles/Hybrid/EmpyreanKnife.cs +++ b/Projectiles/Hybrid/EmpyreanKnife.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Hybrid/EradicatorProjectile.cs b/Projectiles/Hybrid/EradicatorProjectile.cs index c5d6093ea1..92739c3305 100644 --- a/Projectiles/Hybrid/EradicatorProjectile.cs +++ b/Projectiles/Hybrid/EradicatorProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Melee; +using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Hybrid/FlameScytheProjectile.cs b/Projectiles/Hybrid/FlameScytheProjectile.cs index 5faaa6cf46..b2426aba4d 100644 --- a/Projectiles/Hybrid/FlameScytheProjectile.cs +++ b/Projectiles/Hybrid/FlameScytheProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Hybrid/GalaxySmasherHammer.cs b/Projectiles/Hybrid/GalaxySmasherHammer.cs index 39f836e272..6bf63941db 100644 --- a/Projectiles/Hybrid/GalaxySmasherHammer.cs +++ b/Projectiles/Hybrid/GalaxySmasherHammer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; @@ -164,7 +164,7 @@ namespace CalamityMod.Projectiles.Hybrid } // Makes an explosion sound. - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); // Applies God Slayer Inferno on contact. target.AddBuff(ModContent.BuffType(), 480); @@ -224,7 +224,7 @@ namespace CalamityMod.Projectiles.Hybrid } // Makes an explosion sound. - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); // Applies God Slayer Inferno on contact. target.AddBuff(ModContent.BuffType(), 480); diff --git a/Projectiles/Hybrid/IllustriousKnife.cs b/Projectiles/Hybrid/IllustriousKnife.cs index 843ec6fe90..af48e7b922 100644 --- a/Projectiles/Hybrid/IllustriousKnife.cs +++ b/Projectiles/Hybrid/IllustriousKnife.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Healing; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Hybrid/KelvinCatalystBoomerang.cs b/Projectiles/Hybrid/KelvinCatalystBoomerang.cs index ddbc6a3144..529d3089a2 100644 --- a/Projectiles/Hybrid/KelvinCatalystBoomerang.cs +++ b/Projectiles/Hybrid/KelvinCatalystBoomerang.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -162,7 +162,7 @@ namespace CalamityMod.Projectiles.Hybrid 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); + Main.PlaySound(SoundID.Item30, projectile.position); } public override void OnHitPvp(Player target, int damage, bool crit) @@ -186,7 +186,7 @@ namespace CalamityMod.Projectiles.Hybrid 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); + Main.PlaySound(SoundID.Item30, projectile.position); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Hybrid/MangroveChakramProjectile.cs b/Projectiles/Hybrid/MangroveChakramProjectile.cs index a1e11f2486..1a9266d340 100644 --- a/Projectiles/Hybrid/MangroveChakramProjectile.cs +++ b/Projectiles/Hybrid/MangroveChakramProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Hybrid/NanoblackMain.cs b/Projectiles/Hybrid/NanoblackMain.cs index b3b27c092f..8bab65c856 100644 --- a/Projectiles/Hybrid/NanoblackMain.cs +++ b/Projectiles/Hybrid/NanoblackMain.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Hybrid/NanoblackSplit.cs b/Projectiles/Hybrid/NanoblackSplit.cs index bae91bf90e..61fb2a7bae 100644 --- a/Projectiles/Hybrid/NanoblackSplit.cs +++ b/Projectiles/Hybrid/NanoblackSplit.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Hybrid/OPHammer.cs b/Projectiles/Hybrid/OPHammer.cs index 8cd41f666b..b262e027f2 100644 --- a/Projectiles/Hybrid/OPHammer.cs +++ b/Projectiles/Hybrid/OPHammer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Hybrid/PwnagehammerProj.cs b/Projectiles/Hybrid/PwnagehammerProj.cs index a973c87a60..4f9bf797e2 100644 --- a/Projectiles/Hybrid/PwnagehammerProj.cs +++ b/Projectiles/Hybrid/PwnagehammerProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Hybrid/ScourgeoftheCosmosMini.cs b/Projectiles/Hybrid/ScourgeoftheCosmosMini.cs index 468eae73a4..cc1587a8a1 100644 --- a/Projectiles/Hybrid/ScourgeoftheCosmosMini.cs +++ b/Projectiles/Hybrid/ScourgeoftheCosmosMini.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Hybrid/ScourgeoftheCosmosProj.cs b/Projectiles/Hybrid/ScourgeoftheCosmosProj.cs index fe4711abc4..fec3401f15 100644 --- a/Projectiles/Hybrid/ScourgeoftheCosmosProj.cs +++ b/Projectiles/Hybrid/ScourgeoftheCosmosProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -87,7 +87,7 @@ namespace CalamityMod.Projectiles.Hybrid } else { - Main.PlaySound(3, (int)projectile.position.X, (int)projectile.position.Y, 4, 1f, 0f); + Main.PlaySound(SoundID.NPCHit4, projectile.position); if (projectile.velocity.X != oldVelocity.X) { projectile.velocity.X = -oldVelocity.X; @@ -127,7 +127,7 @@ namespace CalamityMod.Projectiles.Hybrid public override void Kill(int timeLeft) { - Main.PlaySound(3, (int)projectile.position.X, (int)projectile.position.Y, 4, 1f, 0f); + Main.PlaySound(SoundID.NPCHit4, projectile.position); int num3; for (int num622 = 0; num622 < 10; num622 = num3 + 1) { diff --git a/Projectiles/Hybrid/SeashellBoomerangProjectile.cs b/Projectiles/Hybrid/SeashellBoomerangProjectile.cs index f6f6a7c8aa..2586510f85 100644 --- a/Projectiles/Hybrid/SeashellBoomerangProjectile.cs +++ b/Projectiles/Hybrid/SeashellBoomerangProjectile.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Hybrid { diff --git a/Projectiles/Hybrid/StellarContemptHammer.cs b/Projectiles/Hybrid/StellarContemptHammer.cs index 8391f02918..0eef764290 100644 --- a/Projectiles/Hybrid/StellarContemptHammer.cs +++ b/Projectiles/Hybrid/StellarContemptHammer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -146,7 +146,7 @@ namespace CalamityMod.Projectiles.Hybrid // Play the Lunar Flare sound centered on the user, not the target (consistent with Lunar Flare and Stellar Striker) Player user = Main.player[projectile.owner]; - Main.PlaySound(2, (int)user.position.X, (int)user.position.Y, 88); + Main.PlaySound(SoundID.Item88, projectile.position); projectile.netUpdate = true; int numFlares = 2; @@ -212,7 +212,7 @@ namespace CalamityMod.Projectiles.Hybrid // Play the Lunar Flare sound centered on the user, not the target (consistent with Lunar Flare and Stellar Striker) Player user = Main.player[projectile.owner]; - Main.PlaySound(2, (int)user.position.X, (int)user.position.Y, 88); + Main.PlaySound(SoundID.Item88, projectile.position); projectile.netUpdate = true; int numFlares = 2; diff --git a/Projectiles/Hybrid/TriactisOPHammer.cs b/Projectiles/Hybrid/TriactisOPHammer.cs index 4a59c7ab85..1c0dae274f 100644 --- a/Projectiles/Hybrid/TriactisOPHammer.cs +++ b/Projectiles/Hybrid/TriactisOPHammer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -118,7 +118,7 @@ namespace CalamityMod.Projectiles.Hybrid { 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); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 40; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, Main.rand.NextBool(2) ? 89 : 229, 0f, 0f, 100, default, 2f); @@ -145,7 +145,7 @@ namespace CalamityMod.Projectiles.Hybrid { 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); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 40; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, Main.rand.NextBool(2) ? 89 : 229, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Magic/AbyssBall.cs b/Projectiles/Magic/AbyssBall.cs index 1884b215dd..7c257e8a44 100644 --- a/Projectiles/Magic/AbyssBall.cs +++ b/Projectiles/Magic/AbyssBall.cs @@ -1,6 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Magic { public class AbyssBall : ModProjectile @@ -40,7 +42,7 @@ namespace CalamityMod.Projectiles.Magic projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 14); for (int num621 = 0; num621 < 30; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default, 1.2f); diff --git a/Projectiles/Magic/AcidGunStream.cs b/Projectiles/Magic/AcidGunStream.cs index 6decda2f2d..f39de0662b 100644 --- a/Projectiles/Magic/AcidGunStream.cs +++ b/Projectiles/Magic/AcidGunStream.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/AcidicReed.cs b/Projectiles/Magic/AcidicReed.cs index 41491b40b9..cc4307ee28 100644 --- a/Projectiles/Magic/AcidicReed.cs +++ b/Projectiles/Magic/AcidicReed.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Magic/AcidicSaxBubble.cs b/Projectiles/Magic/AcidicSaxBubble.cs index 927dcad260..cdb82843ab 100644 --- a/Projectiles/Magic/AcidicSaxBubble.cs +++ b/Projectiles/Magic/AcidicSaxBubble.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/AcidicSaxMist.cs b/Projectiles/Magic/AcidicSaxMist.cs index 90d407e7de..27bcc47185 100644 --- a/Projectiles/Magic/AcidicSaxMist.cs +++ b/Projectiles/Magic/AcidicSaxMist.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 111); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 111); } if (projectile.velocity.X < 0f) { diff --git a/Projectiles/Magic/Ancient.cs b/Projectiles/Magic/Ancient.cs index 85686900da..baaea73836 100644 --- a/Projectiles/Magic/Ancient.cs +++ b/Projectiles/Magic/Ancient.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/Ancient2.cs b/Projectiles/Magic/Ancient2.cs index ac3cbc2292..dcba2cd1e3 100644 --- a/Projectiles/Magic/Ancient2.cs +++ b/Projectiles/Magic/Ancient2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/AquamarineBolt.cs b/Projectiles/Magic/AquamarineBolt.cs index fa855a7ebe..e683df01cd 100644 --- a/Projectiles/Magic/AquamarineBolt.cs +++ b/Projectiles/Magic/AquamarineBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/Asteroid.cs b/Projectiles/Magic/Asteroid.cs index 2322acee60..9b9b6d8fae 100644 --- a/Projectiles/Magic/Asteroid.cs +++ b/Projectiles/Magic/Asteroid.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/AsteroidMolten.cs b/Projectiles/Magic/AsteroidMolten.cs index b08eb0328b..d57eabad06 100644 --- a/Projectiles/Magic/AsteroidMolten.cs +++ b/Projectiles/Magic/AsteroidMolten.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatBuffs; +using CalamityMod.Buffs.StatBuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Magic/AstralCrystal.cs b/Projectiles/Magic/AstralCrystal.cs index 265d54aa7f..9f2b8e3ce2 100644 --- a/Projectiles/Magic/AstralCrystal.cs +++ b/Projectiles/Magic/AstralCrystal.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Magic/AstralCrystalInvisibleExplosion.cs b/Projectiles/Magic/AstralCrystalInvisibleExplosion.cs index 2a782f09e6..4ed5b81000 100644 --- a/Projectiles/Magic/AstralCrystalInvisibleExplosion.cs +++ b/Projectiles/Magic/AstralCrystalInvisibleExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Magic/AstralStarMagic.cs b/Projectiles/Magic/AstralStarMagic.cs index f2316fd98a..6d1f5337c2 100644 --- a/Projectiles/Magic/AstralStarMagic.cs +++ b/Projectiles/Magic/AstralStarMagic.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Magic projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 9); } } projectile.alpha -= 15; diff --git a/Projectiles/Magic/AstralachneaFang.cs b/Projectiles/Magic/AstralachneaFang.cs index 510d2c19d3..06f099f567 100644 --- a/Projectiles/Magic/AstralachneaFang.cs +++ b/Projectiles/Magic/AstralachneaFang.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Magic/AtlantisSpear.cs b/Projectiles/Magic/AtlantisSpear.cs index 520170fd89..2c753aa87b 100644 --- a/Projectiles/Magic/AtlantisSpear.cs +++ b/Projectiles/Magic/AtlantisSpear.cs @@ -1,8 +1,10 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Magic { public class AtlantisSpear : ModProjectile @@ -50,7 +52,7 @@ namespace CalamityMod.Projectiles.Magic int dmg = projectile.damage; float kBack = projectile.knockBack; int number = Projectile.NewProjectile(projectile.position.X + projectile.velocity.X + (float)(projectile.width / 2), projectile.position.Y + projectile.velocity.Y + (float)(projectile.height / 2), projectile.velocity.X, projectile.velocity.Y, projType, dmg, kBack, projectile.owner, 0f, projectile.ai[1] + 1f); - NetMessage.SendData(27, -1, -1, null, number, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncProjectile, -1, -1, null, number, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/Projectiles/Magic/AtlantisSpear2.cs b/Projectiles/Magic/AtlantisSpear2.cs index 4ac98ae888..1939696977 100644 --- a/Projectiles/Magic/AtlantisSpear2.cs +++ b/Projectiles/Magic/AtlantisSpear2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/AuraRain.cs b/Projectiles/Magic/AuraRain.cs index 962db31aef..5d44f37cde 100644 --- a/Projectiles/Magic/AuraRain.cs +++ b/Projectiles/Magic/AuraRain.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/BeamingBolt.cs b/Projectiles/Magic/BeamingBolt.cs index 2c275ea636..d73e0d7aaf 100644 --- a/Projectiles/Magic/BeamingBolt.cs +++ b/Projectiles/Magic/BeamingBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/BeamingBolt2.cs b/Projectiles/Magic/BeamingBolt2.cs index 98692f6227..f5a6d529da 100644 --- a/Projectiles/Magic/BeamingBolt2.cs +++ b/Projectiles/Magic/BeamingBolt2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/BeastScythe.cs b/Projectiles/Magic/BeastScythe.cs index 99fe1d3193..f35e05d828 100644 --- a/Projectiles/Magic/BeastScythe.cs +++ b/Projectiles/Magic/BeastScythe.cs @@ -154,7 +154,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 14); projectile.position = projectile.Center; projectile.width = projectile.height = 100; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Magic/BigBeamofDeath.cs b/Projectiles/Magic/BigBeamofDeath.cs index 38c81d0612..5aa7d47319 100644 --- a/Projectiles/Magic/BigBeamofDeath.cs +++ b/Projectiles/Magic/BigBeamofDeath.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/BigBeamofDeath2.cs b/Projectiles/Magic/BigBeamofDeath2.cs index b268a8add1..6eef268817 100644 --- a/Projectiles/Magic/BigBeamofDeath2.cs +++ b/Projectiles/Magic/BigBeamofDeath2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/BlackAnurianBubble.cs b/Projectiles/Magic/BlackAnurianBubble.cs index 10d2eaf02a..5dd510596e 100644 --- a/Projectiles/Magic/BlackAnurianBubble.cs +++ b/Projectiles/Magic/BlackAnurianBubble.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Magic/BlackAnurianPlankton.cs b/Projectiles/Magic/BlackAnurianPlankton.cs index 639bda17f7..713fc39733 100644 --- a/Projectiles/Magic/BlackAnurianPlankton.cs +++ b/Projectiles/Magic/BlackAnurianPlankton.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/BlindingLight.cs b/Projectiles/Magic/BlindingLight.cs index 4c2bcb7e5c..1e1581e782 100644 --- a/Projectiles/Magic/BlindingLight.cs +++ b/Projectiles/Magic/BlindingLight.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.Graphics.Effects; diff --git a/Projectiles/Magic/BloodBeam.cs b/Projectiles/Magic/BloodBeam.cs index a06b8f6c3e..1dfb9db6b3 100644 --- a/Projectiles/Magic/BloodBeam.cs +++ b/Projectiles/Magic/BloodBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/BloodBlast.cs b/Projectiles/Magic/BloodBlast.cs index 61ccc5e742..9d1e71845d 100644 --- a/Projectiles/Magic/BloodBlast.cs +++ b/Projectiles/Magic/BloodBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/BloodBolt.cs b/Projectiles/Magic/BloodBolt.cs index 21837f8750..ff515b4f02 100644 --- a/Projectiles/Magic/BloodBolt.cs +++ b/Projectiles/Magic/BloodBolt.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/BloodOrb.cs b/Projectiles/Magic/BloodOrb.cs index 21597178c0..02d00230c7 100644 --- a/Projectiles/Magic/BloodOrb.cs +++ b/Projectiles/Magic/BloodOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/BloodRay.cs b/Projectiles/Magic/BloodRay.cs index 0ef97d720f..45cc4ba436 100644 --- a/Projectiles/Magic/BloodRay.cs +++ b/Projectiles/Magic/BloodRay.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/BlueBubble.cs b/Projectiles/Magic/BlueBubble.cs index f680b30f3f..cc9a841af3 100644 --- a/Projectiles/Magic/BlueBubble.cs +++ b/Projectiles/Magic/BlueBubble.cs @@ -1,7 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Magic { public class BlueBubble : ModProjectile @@ -60,7 +62,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 54); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 54); int num190 = Main.rand.Next(5, 9); for (int num191 = 0; num191 < num190; num191++) { diff --git a/Projectiles/Magic/BrimstoneBeam.cs b/Projectiles/Magic/BrimstoneBeam.cs index fd570d8ff0..af28d92c43 100644 --- a/Projectiles/Magic/BrimstoneBeam.cs +++ b/Projectiles/Magic/BrimstoneBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/BrimstoneBeam2.cs b/Projectiles/Magic/BrimstoneBeam2.cs index af4528083c..3abfde2659 100644 --- a/Projectiles/Magic/BrimstoneBeam2.cs +++ b/Projectiles/Magic/BrimstoneBeam2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/BrimstoneBeam3.cs b/Projectiles/Magic/BrimstoneBeam3.cs index a54104a93b..bd9aa8ddd4 100644 --- a/Projectiles/Magic/BrimstoneBeam3.cs +++ b/Projectiles/Magic/BrimstoneBeam3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/BrimstoneBeam4.cs b/Projectiles/Magic/BrimstoneBeam4.cs index 6cec726c04..a81fe645c5 100644 --- a/Projectiles/Magic/BrimstoneBeam4.cs +++ b/Projectiles/Magic/BrimstoneBeam4.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/BrimstoneBeam5.cs b/Projectiles/Magic/BrimstoneBeam5.cs index c8d4210a07..f91b48980e 100644 --- a/Projectiles/Magic/BrimstoneBeam5.cs +++ b/Projectiles/Magic/BrimstoneBeam5.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/BrimstoneFireball.cs b/Projectiles/Magic/BrimstoneFireball.cs index 6a796fb74c..6ec4a621cf 100644 --- a/Projectiles/Magic/BrimstoneFireball.cs +++ b/Projectiles/Magic/BrimstoneFireball.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Magic public override bool OnTileCollide(Vector2 oldVelocity) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.penetrate--; if (projectile.penetrate <= 0) { @@ -109,7 +109,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) diff --git a/Projectiles/Magic/BrimstoneHellfireballFriendly.cs b/Projectiles/Magic/BrimstoneHellfireballFriendly.cs index 2a104cafb5..7c434089d7 100644 --- a/Projectiles/Magic/BrimstoneHellfireballFriendly.cs +++ b/Projectiles/Magic/BrimstoneHellfireballFriendly.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.localAI[0] += 1f; } } diff --git a/Projectiles/Magic/BrimstoneHomer.cs b/Projectiles/Magic/BrimstoneHomer.cs index ce8707b029..bee448a8d3 100644 --- a/Projectiles/Magic/BrimstoneHomer.cs +++ b/Projectiles/Magic/BrimstoneHomer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Magic/BrimstoneTentacle.cs b/Projectiles/Magic/BrimstoneTentacle.cs index e4e5f9d4c1..80915bf57b 100644 --- a/Projectiles/Magic/BrimstoneTentacle.cs +++ b/Projectiles/Magic/BrimstoneTentacle.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Magic/ClamorNoctusStar.cs b/Projectiles/Magic/ClamorNoctusStar.cs index 5bc0005438..b5d986abac 100644 --- a/Projectiles/Magic/ClamorNoctusStar.cs +++ b/Projectiles/Magic/ClamorNoctusStar.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Magic projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, (int)projectile.position.X, (int)projectile.position.Y); } } if (Main.rand.NextBool(3)) @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Magic/ClamorNoctusWyvern.cs b/Projectiles/Magic/ClamorNoctusWyvern.cs index 10569ea78f..33c17a014e 100644 --- a/Projectiles/Magic/ClamorNoctusWyvern.cs +++ b/Projectiles/Magic/ClamorNoctusWyvern.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(3, (int)projectile.position.X, (int)projectile.position.Y, 7); + Main.PlaySound(SoundID.NPCHit7, (int)projectile.position.X, (int)projectile.position.Y); for (int i = 0; i <= 10; i++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 126, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Magic/Climax2.cs b/Projectiles/Magic/Climax2.cs index 662fd26625..721d7ddd32 100644 --- a/Projectiles/Magic/Climax2.cs +++ b/Projectiles/Magic/Climax2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/ClimaxBeam.cs b/Projectiles/Magic/ClimaxBeam.cs index 693fc75790..12b872eb5f 100644 --- a/Projectiles/Magic/ClimaxBeam.cs +++ b/Projectiles/Magic/ClimaxBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/ClimaxProj.cs b/Projectiles/Magic/ClimaxProj.cs index 6a0285d9b2..24c196528a 100644 --- a/Projectiles/Magic/ClimaxProj.cs +++ b/Projectiles/Magic/ClimaxProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/CoralSpike.cs b/Projectiles/Magic/CoralSpike.cs index 334435f379..c67f916a44 100644 --- a/Projectiles/Magic/CoralSpike.cs +++ b/Projectiles/Magic/CoralSpike.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { diff --git a/Projectiles/Magic/CosmicTentacle.cs b/Projectiles/Magic/CosmicTentacle.cs index 2169e6c53f..990c73fed5 100644 --- a/Projectiles/Magic/CosmicTentacle.cs +++ b/Projectiles/Magic/CosmicTentacle.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/CryoBlast.cs b/Projectiles/Magic/CryoBlast.cs index 6c644a4565..1c823439dc 100644 --- a/Projectiles/Magic/CryoBlast.cs +++ b/Projectiles/Magic/CryoBlast.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Magic/DarkSparkBeam.cs b/Projectiles/Magic/DarkSparkBeam.cs index b7703a22af..123ee4eb20 100644 --- a/Projectiles/Magic/DarkSparkBeam.cs +++ b/Projectiles/Magic/DarkSparkBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/Projectiles/Magic/DarkSparkPrism.cs b/Projectiles/Magic/DarkSparkPrism.cs index d3638d596b..b23e0c9d86 100644 --- a/Projectiles/Magic/DarkSparkPrism.cs +++ b/Projectiles/Magic/DarkSparkPrism.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/Projectiles/Magic/DemonicPitchforkProj.cs b/Projectiles/Magic/DemonicPitchforkProj.cs index 604645523e..950e990e64 100644 --- a/Projectiles/Magic/DemonicPitchforkProj.cs +++ b/Projectiles/Magic/DemonicPitchforkProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/DivineRetributionSpear.cs b/Projectiles/Magic/DivineRetributionSpear.cs index 0bf105abfc..d1182f6a79 100644 --- a/Projectiles/Magic/DivineRetributionSpear.cs +++ b/Projectiles/Magic/DivineRetributionSpear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Magic projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 74, 1f, 0f); + Main.PlaySound(SoundID.Item74, (int)projectile.Center.X, (int)projectile.Center.Y); for (int num193 = 0; num193 < 6; num193++) { Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0, 0); diff --git a/Projectiles/Magic/DustProjectile.cs b/Projectiles/Magic/DustProjectile.cs index 1c313160d9..23cab8e791 100644 --- a/Projectiles/Magic/DustProjectile.cs +++ b/Projectiles/Magic/DustProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/EelDrop.cs b/Projectiles/Magic/EelDrop.cs index e6609a9a17..343379a522 100644 --- a/Projectiles/Magic/EelDrop.cs +++ b/Projectiles/Magic/EelDrop.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/EidolicWailSoundwave.cs b/Projectiles/Magic/EidolicWailSoundwave.cs index a095f73028..f071e356a9 100644 --- a/Projectiles/Magic/EidolicWailSoundwave.cs +++ b/Projectiles/Magic/EidolicWailSoundwave.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Magic/EldritchTentacle.cs b/Projectiles/Magic/EldritchTentacle.cs index 22ca7df952..d79d073875 100644 --- a/Projectiles/Magic/EldritchTentacle.cs +++ b/Projectiles/Magic/EldritchTentacle.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/ElementBolt.cs b/Projectiles/Magic/ElementBolt.cs index fafca19a86..e5c22c235f 100644 --- a/Projectiles/Magic/ElementBolt.cs +++ b/Projectiles/Magic/ElementBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/ElementBolt2.cs b/Projectiles/Magic/ElementBolt2.cs index 09c2309267..9a155cdd78 100644 --- a/Projectiles/Magic/ElementBolt2.cs +++ b/Projectiles/Magic/ElementBolt2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/ElementOrb.cs b/Projectiles/Magic/ElementOrb.cs index d264190678..440bb9fa2e 100644 --- a/Projectiles/Magic/ElementOrb.cs +++ b/Projectiles/Magic/ElementOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/ElementOrb2.cs b/Projectiles/Magic/ElementOrb2.cs index b950d639ac..89c4591513 100644 --- a/Projectiles/Magic/ElementOrb2.cs +++ b/Projectiles/Magic/ElementOrb2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/ElementTentacle.cs b/Projectiles/Magic/ElementTentacle.cs index 3db33a9ecc..e7c808b252 100644 --- a/Projectiles/Magic/ElementTentacle.cs +++ b/Projectiles/Magic/ElementTentacle.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Magic/ElementalRayBeam.cs b/Projectiles/Magic/ElementalRayBeam.cs index 8e554902df..12433c8b39 100644 --- a/Projectiles/Magic/ElementalRayBeam.cs +++ b/Projectiles/Magic/ElementalRayBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Magic/EternityBook.cs b/Projectiles/Magic/EternityBook.cs index 6b0a36baff..8ba24e6a68 100644 --- a/Projectiles/Magic/EternityBook.cs +++ b/Projectiles/Magic/EternityBook.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/EventHorizonBlackhole.cs b/Projectiles/Magic/EventHorizonBlackhole.cs index ecedc4a842..88ae32d007 100644 --- a/Projectiles/Magic/EventHorizonBlackhole.cs +++ b/Projectiles/Magic/EventHorizonBlackhole.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/EventHorizonStar.cs b/Projectiles/Magic/EventHorizonStar.cs index 7b907b373d..45a8c88f6d 100644 --- a/Projectiles/Magic/EventHorizonStar.cs +++ b/Projectiles/Magic/EventHorizonStar.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -41,9 +41,9 @@ namespace CalamityMod.Projectiles.Magic { projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); - } + { + Main.PlaySound(SoundID.Item9, (int)projectile.position.X, (int)projectile.position.Y); + } } //dust effects diff --git a/Projectiles/Magic/EvergladeSprayProjectile.cs b/Projectiles/Magic/EvergladeSprayProjectile.cs index 5f148f2805..f6676b6489 100644 --- a/Projectiles/Magic/EvergladeSprayProjectile.cs +++ b/Projectiles/Magic/EvergladeSprayProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/FabBolt.cs b/Projectiles/Magic/FabBolt.cs index f5424a6bf5..cfbd639b34 100644 --- a/Projectiles/Magic/FabBolt.cs +++ b/Projectiles/Magic/FabBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/FabOrb.cs b/Projectiles/Magic/FabOrb.cs index bf8c330a45..042a0ddce0 100644 --- a/Projectiles/Magic/FabOrb.cs +++ b/Projectiles/Magic/FabOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/FabRay.cs b/Projectiles/Magic/FabRay.cs index f8f454aa61..55c9ed27ad 100644 --- a/Projectiles/Magic/FabRay.cs +++ b/Projectiles/Magic/FabRay.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/FatesRevealFlame.cs b/Projectiles/Magic/FatesRevealFlame.cs index b661b6d6e8..23548918c4 100644 --- a/Projectiles/Magic/FatesRevealFlame.cs +++ b/Projectiles/Magic/FatesRevealFlame.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Magic/FlameBeamTip.cs b/Projectiles/Magic/FlameBeamTip.cs index 5fe267103d..f862965897 100644 --- a/Projectiles/Magic/FlameBeamTip.cs +++ b/Projectiles/Magic/FlameBeamTip.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Magic int number = Projectile.NewProjectile(projectile.position.X + projectile.velocity.X + (float)(projectile.width / 2), projectile.position.Y + projectile.velocity.Y + (float)(projectile.height / 2), projectile.velocity.X, projectile.velocity.Y, num48, projectile.damage, projectile.knockBack, projectile.owner, 0f, projectile.ai[1] + 1f); - NetMessage.SendData(27, -1, -1, null, number, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncProjectile, -1, -1, null, number, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/Projectiles/Magic/FlameBeamTip2.cs b/Projectiles/Magic/FlameBeamTip2.cs index d1b0c79f75..5c67f54258 100644 --- a/Projectiles/Magic/FlameBeamTip2.cs +++ b/Projectiles/Magic/FlameBeamTip2.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Magic/FlareBoltProjectile.cs b/Projectiles/Magic/FlareBoltProjectile.cs index a274b117aa..f8063b51ee 100644 --- a/Projectiles/Magic/FlareBoltProjectile.cs +++ b/Projectiles/Magic/FlareBoltProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -81,14 +81,14 @@ namespace CalamityMod.Projectiles.Magic { projectile.velocity.Y = -oldVelocity.Y; } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } return false; } public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Magic/ForbiddenAxeBlade.cs b/Projectiles/Magic/ForbiddenAxeBlade.cs index f020086bb1..a986a73e2b 100644 --- a/Projectiles/Magic/ForbiddenAxeBlade.cs +++ b/Projectiles/Magic/ForbiddenAxeBlade.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/ForbiddenSunProjectile.cs b/Projectiles/Magic/ForbiddenSunProjectile.cs index e038c35b7a..69dc6f03c5 100644 --- a/Projectiles/Magic/ForbiddenSunProjectile.cs +++ b/Projectiles/Magic/ForbiddenSunProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Magic } if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.localAI[0] += 1f; } if (Main.rand.NextBool(4)) diff --git a/Projectiles/Magic/ForbiddenSunburst.cs b/Projectiles/Magic/ForbiddenSunburst.cs index 7fb386a91a..73600c0ddf 100644 --- a/Projectiles/Magic/ForbiddenSunburst.cs +++ b/Projectiles/Magic/ForbiddenSunburst.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Magic } if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.localAI[0] += 1f; } float num461 = 25f; diff --git a/Projectiles/Magic/FrigidflashBoltProjectile.cs b/Projectiles/Magic/FrigidflashBoltProjectile.cs index bb7a46ad26..e9e5fc4756 100644 --- a/Projectiles/Magic/FrigidflashBoltProjectile.cs +++ b/Projectiles/Magic/FrigidflashBoltProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -101,14 +101,14 @@ namespace CalamityMod.Projectiles.Magic { projectile.velocity.Y = -oldVelocity.Y; } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } return false; } public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 3; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 174, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Magic/FrostBoltProjectile.cs b/Projectiles/Magic/FrostBoltProjectile.cs index c34ac48be7..8dc84cbcdf 100644 --- a/Projectiles/Magic/FrostBoltProjectile.cs +++ b/Projectiles/Magic/FrostBoltProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -82,14 +82,14 @@ namespace CalamityMod.Projectiles.Magic { projectile.velocity.Y = -oldVelocity.Y; } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } return false; } public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 92, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Magic/GammaLaser.cs b/Projectiles/Magic/GammaLaser.cs index 7424f9dd7d..b8fd95d0ba 100644 --- a/Projectiles/Magic/GammaLaser.cs +++ b/Projectiles/Magic/GammaLaser.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/GhastlyBlast.cs b/Projectiles/Magic/GhastlyBlast.cs index 881e97db47..9d634abeb2 100644 --- a/Projectiles/Magic/GhastlyBlast.cs +++ b/Projectiles/Magic/GhastlyBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/GhastlyExplosion.cs b/Projectiles/Magic/GhastlyExplosion.cs index 34e7b09ce4..f5ceb28200 100644 --- a/Projectiles/Magic/GhastlyExplosion.cs +++ b/Projectiles/Magic/GhastlyExplosion.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Magic/GhastlyExplosionShard.cs b/Projectiles/Magic/GhastlyExplosionShard.cs index 4d0a5c284f..5b13254d52 100644 --- a/Projectiles/Magic/GhastlyExplosionShard.cs +++ b/Projectiles/Magic/GhastlyExplosionShard.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/GhastlySubBlast.cs b/Projectiles/Magic/GhastlySubBlast.cs index 4ec6cbd4b3..0636f7a965 100644 --- a/Projectiles/Magic/GhastlySubBlast.cs +++ b/Projectiles/Magic/GhastlySubBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/GhastlyVisageProj.cs b/Projectiles/Magic/GhastlyVisageProj.cs index 1ee6267dcb..00386b307a 100644 --- a/Projectiles/Magic/GhastlyVisageProj.cs +++ b/Projectiles/Magic/GhastlyVisageProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/GleamingBolt.cs b/Projectiles/Magic/GleamingBolt.cs index e5521a429b..44e0aa1684 100644 --- a/Projectiles/Magic/GleamingBolt.cs +++ b/Projectiles/Magic/GleamingBolt.cs @@ -1,5 +1,6 @@ -using System; +using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -61,7 +62,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)(projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); } } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 105); + Main.PlaySound(SoundID.Item105, projectile.position); } } } diff --git a/Projectiles/Magic/GleamingBolt2.cs b/Projectiles/Magic/GleamingBolt2.cs index 6e9532b445..a8d0633ee3 100644 --- a/Projectiles/Magic/GleamingBolt2.cs +++ b/Projectiles/Magic/GleamingBolt2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/GraniteEnergy.cs b/Projectiles/Magic/GraniteEnergy.cs index b924ca6b51..7c2308e3e9 100644 --- a/Projectiles/Magic/GraniteEnergy.cs +++ b/Projectiles/Magic/GraniteEnergy.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/GranitePulse.cs b/Projectiles/Magic/GranitePulse.cs index 349bc7bda1..7aaecbf6db 100644 --- a/Projectiles/Magic/GranitePulse.cs +++ b/Projectiles/Magic/GranitePulse.cs @@ -1,7 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -86,7 +87,7 @@ namespace CalamityMod.Projectiles.Magic } if (count == 0f) { - Main.PlaySound(3, (int)projectile.position.X, (int)projectile.position.Y, 53); + Main.PlaySound(SoundID.NPCHit53, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 20; @@ -115,7 +116,7 @@ namespace CalamityMod.Projectiles.Magic } if (projectile.timeLeft % 50 == 49) { - Main.PlaySound(3, (int)projectile.position.X, (int)projectile.position.Y, 53); + Main.PlaySound(SoundID.NPCHit53, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 20; diff --git a/Projectiles/Magic/HadopelagicEcho2.cs b/Projectiles/Magic/HadopelagicEcho2.cs index 80f50a1998..44ba8e87b2 100644 --- a/Projectiles/Magic/HadopelagicEcho2.cs +++ b/Projectiles/Magic/HadopelagicEcho2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Magic/HadopelagicEchoSoundwave.cs b/Projectiles/Magic/HadopelagicEchoSoundwave.cs index 69b758804c..d44310dde1 100644 --- a/Projectiles/Magic/HadopelagicEchoSoundwave.cs +++ b/Projectiles/Magic/HadopelagicEchoSoundwave.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Magic/HeliumFlashBlast.cs b/Projectiles/Magic/HeliumFlashBlast.cs index 7946e62696..b7964ece9c 100644 --- a/Projectiles/Magic/HeliumFlashBlast.cs +++ b/Projectiles/Magic/HeliumFlashBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/HellfireExplosionFriendly.cs b/Projectiles/Magic/HellfireExplosionFriendly.cs index 415ef0e59a..5d93265066 100644 --- a/Projectiles/Magic/HellfireExplosionFriendly.cs +++ b/Projectiles/Magic/HellfireExplosionFriendly.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -32,7 +33,7 @@ namespace CalamityMod.Projectiles.Magic Lighting.AddLight(projectile.Center, 0.9f, 0f, 0f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.localAI[0] += 1f; } float num461 = 25f; diff --git a/Projectiles/Magic/HellwingPillar.cs b/Projectiles/Magic/HellwingPillar.cs index db0af81273..0ebaa25551 100644 --- a/Projectiles/Magic/HellwingPillar.cs +++ b/Projectiles/Magic/HellwingPillar.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/HolyFlame.cs b/Projectiles/Magic/HolyFlame.cs index 894b921ab4..c9ae5b511a 100644 --- a/Projectiles/Magic/HolyFlame.cs +++ b/Projectiles/Magic/HolyFlame.cs @@ -1,6 +1,7 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -46,7 +47,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Magic/HolyLaser.cs b/Projectiles/Magic/HolyLaser.cs index e723022d10..97df80133e 100644 --- a/Projectiles/Magic/HolyLaser.cs +++ b/Projectiles/Magic/HolyLaser.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/IceBarrageMain.cs b/Projectiles/Magic/IceBarrageMain.cs index 5c73582f71..c8b926209a 100644 --- a/Projectiles/Magic/IceBarrageMain.cs +++ b/Projectiles/Magic/IceBarrageMain.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using Terraria.ID; diff --git a/Projectiles/Magic/IceBlock.cs b/Projectiles/Magic/IceBlock.cs index 97038953c2..cd6f7918a1 100644 --- a/Projectiles/Magic/IceBlock.cs +++ b/Projectiles/Magic/IceBlock.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; using Terraria.ID; using Microsoft.Xna.Framework; diff --git a/Projectiles/Magic/IceBlockIcicle.cs b/Projectiles/Magic/IceBlockIcicle.cs index 93e0b7d34f..b0fdc30606 100644 --- a/Projectiles/Magic/IceBlockIcicle.cs +++ b/Projectiles/Magic/IceBlockIcicle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; using Terraria.ID; using Microsoft.Xna.Framework; diff --git a/Projectiles/Magic/IceCluster.cs b/Projectiles/Magic/IceCluster.cs index d6b2d3d494..ab34bb945e 100644 --- a/Projectiles/Magic/IceCluster.cs +++ b/Projectiles/Magic/IceCluster.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.localAI[1] == 0f) { projectile.localAI[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 120); + Main.PlaySound(SoundID.Item120, projectile.position); } projectile.ai[0] += 1f; if (projectile.ai[1] == 1f) diff --git a/Projectiles/Magic/IceSpike.cs b/Projectiles/Magic/IceSpike.cs index dab2eb5eb7..2da39cf1cb 100644 --- a/Projectiles/Magic/IceSpike.cs +++ b/Projectiles/Magic/IceSpike.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 67, 0f, 0f); diff --git a/Projectiles/Magic/IcicleStaffProj.cs b/Projectiles/Magic/IcicleStaffProj.cs index 653f482c69..4c49846feb 100644 --- a/Projectiles/Magic/IcicleStaffProj.cs +++ b/Projectiles/Magic/IcicleStaffProj.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -40,7 +41,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 67, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Magic/InfernadoFriendly.cs b/Projectiles/Magic/InfernadoFriendly.cs index f85cdf646d..bb3b9ea766 100644 --- a/Projectiles/Magic/InfernadoFriendly.cs +++ b/Projectiles/Magic/InfernadoFriendly.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/InfernadoMarkFriendly.cs b/Projectiles/Magic/InfernadoMarkFriendly.cs index 7e507eb301..9955f7dc44 100644 --- a/Projectiles/Magic/InfernadoMarkFriendly.cs +++ b/Projectiles/Magic/InfernadoMarkFriendly.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -91,7 +92,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Magic/InfernalBlade.cs b/Projectiles/Magic/InfernalBlade.cs index cc1ba229aa..a7fd668903 100644 --- a/Projectiles/Magic/InfernalBlade.cs +++ b/Projectiles/Magic/InfernalBlade.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Magic Utils.PlotTileLine(projectile.Center, projectile.Center + projectile.velocity * 10f, 8f, new Utils.PerLinePoint(DelegateMethods.CastLightOpen)); if (projectile.alpha > 0) { - Main.PlaySound(2, projectile.Center, 9); + Main.PlaySound(SoundID.Item9, projectile.Center); projectile.alpha = 0; projectile.scale = 1.1f; projectile.frame = Main.rand.Next(14); @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); int num487 = Main.rand.Next(4, 10); for (int num488 = 0; num488 < num487; num488++) { diff --git a/Projectiles/Magic/InfernalBlade2.cs b/Projectiles/Magic/InfernalBlade2.cs index 8e060ee103..22530b77c6 100644 --- a/Projectiles/Magic/InfernalBlade2.cs +++ b/Projectiles/Magic/InfernalBlade2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Magic Utils.PlotTileLine(projectile.Center, projectile.Center + projectile.velocity * 10f, 8f, new Utils.PerLinePoint(DelegateMethods.CastLightOpen)); if (projectile.alpha > 0) { - Main.PlaySound(2, projectile.Center, 9); + Main.PlaySound(SoundID.Item9, projectile.Center); projectile.alpha = 0; projectile.scale = 1.1f; projectile.frame = Main.rand.Next(14); @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); int num487 = Main.rand.Next(4, 10); for (int num488 = 0; num488 < num487; num488++) { diff --git a/Projectiles/Magic/IonBlast.cs b/Projectiles/Magic/IonBlast.cs index 1a13ca1d51..8215cd5cb6 100644 --- a/Projectiles/Magic/IonBlast.cs +++ b/Projectiles/Magic/IonBlast.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Magic projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 92); + Main.PlaySound(SoundID.Item92, projectile.Center); int num212 = Main.rand.Next(15, 30); for (int num213 = 0; num213 < num212; num213++) { diff --git a/Projectiles/Magic/KeelhaulBubble.cs b/Projectiles/Magic/KeelhaulBubble.cs index 11803c4852..84159f45e6 100644 --- a/Projectiles/Magic/KeelhaulBubble.cs +++ b/Projectiles/Magic/KeelhaulBubble.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { diff --git a/Projectiles/Magic/KeelhaulGeyserBottom.cs b/Projectiles/Magic/KeelhaulGeyserBottom.cs index 170d9bc032..0cd9ab5d5f 100644 --- a/Projectiles/Magic/KeelhaulGeyserBottom.cs +++ b/Projectiles/Magic/KeelhaulGeyserBottom.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { diff --git a/Projectiles/Magic/KeelhaulGeyserTop.cs b/Projectiles/Magic/KeelhaulGeyserTop.cs index 95e52c7503..43e9326ec2 100644 --- a/Projectiles/Magic/KeelhaulGeyserTop.cs +++ b/Projectiles/Magic/KeelhaulGeyserTop.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { diff --git a/Projectiles/Magic/LightBall.cs b/Projectiles/Magic/LightBall.cs index 666fe062c3..15b95e91ff 100644 --- a/Projectiles/Magic/LightBall.cs +++ b/Projectiles/Magic/LightBall.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -36,7 +37,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 300; diff --git a/Projectiles/Magic/LightBallExplosion.cs b/Projectiles/Magic/LightBallExplosion.cs index 4aa8be71f4..c425dc446a 100644 --- a/Projectiles/Magic/LightBallExplosion.cs +++ b/Projectiles/Magic/LightBallExplosion.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { public class LightBallExplosion : ModProjectile diff --git a/Projectiles/Magic/LightBead.cs b/Projectiles/Magic/LightBead.cs index 07c6ba41a1..065fc0728e 100644 --- a/Projectiles/Magic/LightBead.cs +++ b/Projectiles/Magic/LightBead.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/LightBeadSplit.cs b/Projectiles/Magic/LightBeadSplit.cs index cbe9368173..27905807ff 100644 --- a/Projectiles/Magic/LightBeadSplit.cs +++ b/Projectiles/Magic/LightBeadSplit.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { diff --git a/Projectiles/Magic/LightBlade.cs b/Projectiles/Magic/LightBlade.cs index 71c43ec66b..cd69b4018c 100644 --- a/Projectiles/Magic/LightBlade.cs +++ b/Projectiles/Magic/LightBlade.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Weapons.Magic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -128,7 +128,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(3, (int)projectile.Center.X, (int)projectile.Center.Y, 3); + Main.PlaySound(SoundID.NPCHit3, projectile.position); int numDust = Main.rand.Next(4, 10); for (int i = 0; i < numDust; i++) { diff --git a/Projectiles/Magic/LightningArc.cs b/Projectiles/Magic/LightningArc.cs index fdaceac136..f657f594c3 100644 --- a/Projectiles/Magic/LightningArc.cs +++ b/Projectiles/Magic/LightningArc.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using Terraria; diff --git a/Projectiles/Magic/LiquidBlade.cs b/Projectiles/Magic/LiquidBlade.cs index c4e6b3ee3c..60307c5c29 100644 --- a/Projectiles/Magic/LiquidBlade.cs +++ b/Projectiles/Magic/LiquidBlade.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Magic Utils.PlotTileLine(projectile.Center, projectile.Center + projectile.velocity * 10f, 8f, new Utils.PerLinePoint(DelegateMethods.CastLightOpen)); if (projectile.alpha > 0) { - Main.PlaySound(2, projectile.Center, 9); + Main.PlaySound(SoundID.Item9, projectile.position); projectile.alpha = 0; projectile.scale = 1.1f; projectile.frame = Main.rand.Next(14); @@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); int num487 = Main.rand.Next(4, 10); for (int num488 = 0; num488 < num487; num488++) { diff --git a/Projectiles/Magic/LiquidBlade2.cs b/Projectiles/Magic/LiquidBlade2.cs index 6280fdc6e9..6f33106fb0 100644 --- a/Projectiles/Magic/LiquidBlade2.cs +++ b/Projectiles/Magic/LiquidBlade2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Magic Utils.PlotTileLine(projectile.Center, projectile.Center + projectile.velocity * 10f, 8f, new Utils.PerLinePoint(DelegateMethods.CastLightOpen)); if (projectile.alpha > 0) { - Main.PlaySound(2, projectile.Center, 9); + Main.PlaySound(SoundID.Item9, projectile.position); projectile.alpha = 0; projectile.scale = 1.1f; projectile.frame = Main.rand.Next(14); @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); int num487 = Main.rand.Next(4, 10); for (int num488 = 0; num488 < num487; num488++) { diff --git a/Projectiles/Magic/LuxorsGiftMagic.cs b/Projectiles/Magic/LuxorsGiftMagic.cs index c631247b9e..7b8b3cd489 100644 --- a/Projectiles/Magic/LuxorsGiftMagic.cs +++ b/Projectiles/Magic/LuxorsGiftMagic.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/MadAlchemistsCocktailAlt.cs b/Projectiles/Magic/MadAlchemistsCocktailAlt.cs index 3a2afdbdc8..088187bc54 100644 --- a/Projectiles/Magic/MadAlchemistsCocktailAlt.cs +++ b/Projectiles/Magic/MadAlchemistsCocktailAlt.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Magic float num52 = 2.5f; Vector2 value3 = (0f - 1.57079637f).ToRotationVector2(); Vector2 value4 = value3 * projectile.velocity.Length() * (float)projectile.MaxUpdates; - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 20, 1f, 0f); + Main.PlaySound(SoundID.Item20, projectile.Center); projectile.position = projectile.Center; projectile.width = projectile.height = height; projectile.Center = projectile.position; diff --git a/Projectiles/Magic/MadAlchemistsCocktailBlue.cs b/Projectiles/Magic/MadAlchemistsCocktailBlue.cs index 19794bc64e..801fa20a18 100644 --- a/Projectiles/Magic/MadAlchemistsCocktailBlue.cs +++ b/Projectiles/Magic/MadAlchemistsCocktailBlue.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/MadAlchemistsCocktailGasCloud.cs b/Projectiles/Magic/MadAlchemistsCocktailGasCloud.cs index 5ee9716152..d4d16ef5e5 100644 --- a/Projectiles/Magic/MadAlchemistsCocktailGasCloud.cs +++ b/Projectiles/Magic/MadAlchemistsCocktailGasCloud.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/MadAlchemistsCocktailGreen.cs b/Projectiles/Magic/MadAlchemistsCocktailGreen.cs index 14348260e6..dc1add9ccf 100644 --- a/Projectiles/Magic/MadAlchemistsCocktailGreen.cs +++ b/Projectiles/Magic/MadAlchemistsCocktailGreen.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/MadAlchemistsCocktailPurple.cs b/Projectiles/Magic/MadAlchemistsCocktailPurple.cs index fa51ee75d0..7188ea80f2 100644 --- a/Projectiles/Magic/MadAlchemistsCocktailPurple.cs +++ b/Projectiles/Magic/MadAlchemistsCocktailPurple.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/MadAlchemistsCocktailRed.cs b/Projectiles/Magic/MadAlchemistsCocktailRed.cs index eb608d1b4e..b7946e54e1 100644 --- a/Projectiles/Magic/MadAlchemistsCocktailRed.cs +++ b/Projectiles/Magic/MadAlchemistsCocktailRed.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Magic float num52 = 3.8f; Vector2 value3 = (0f - 1.57079637f).ToRotationVector2(); Vector2 value4 = value3 * projectile.velocity.Length() * (float)projectile.MaxUpdates; - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 20, 2f, 0f); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 20, 2f, 0f); Main.PlaySound(SoundID.Item107, projectile.position); Gore.NewGore(projectile.Center, -projectile.oldVelocity * 0.2f, 704, 1f); Gore.NewGore(projectile.Center, -projectile.oldVelocity * 0.2f, 705, 1f); diff --git a/Projectiles/Magic/MagicNebulaShot.cs b/Projectiles/Magic/MagicNebulaShot.cs index 1f9affab8c..43293cf1d2 100644 --- a/Projectiles/Magic/MagicNebulaShot.cs +++ b/Projectiles/Magic/MagicNebulaShot.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12); + Main.PlaySound(SoundID.Item12, projectile.position); } if (projectile.alpha > 0) { diff --git a/Projectiles/Magic/MagnaBlast.cs b/Projectiles/Magic/MagnaBlast.cs index 7ac033a780..6f12b10dac 100644 --- a/Projectiles/Magic/MagnaBlast.cs +++ b/Projectiles/Magic/MagnaBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/MagneticBeam.cs b/Projectiles/Magic/MagneticBeam.cs index d7ff75620b..453164ab0d 100644 --- a/Projectiles/Magic/MagneticBeam.cs +++ b/Projectiles/Magic/MagneticBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/MagneticOrb.cs b/Projectiles/Magic/MagneticOrb.cs index 6270b2948d..799b640ce6 100644 --- a/Projectiles/Magic/MagneticOrb.cs +++ b/Projectiles/Magic/MagneticOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/MagnusBeam.cs b/Projectiles/Magic/MagnusBeam.cs index 718b82efce..d3a4e48a0d 100644 --- a/Projectiles/Magic/MagnusBeam.cs +++ b/Projectiles/Magic/MagnusBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/ManaBolt.cs b/Projectiles/Magic/ManaBolt.cs index 184255ed6f..86627663b3 100644 --- a/Projectiles/Magic/ManaBolt.cs +++ b/Projectiles/Magic/ManaBolt.cs @@ -1,5 +1,6 @@ -using System; +using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -54,7 +55,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)(projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); } } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } } } diff --git a/Projectiles/Magic/ManaBoltSmall.cs b/Projectiles/Magic/ManaBoltSmall.cs index 1559d3ffb0..435e130b22 100644 --- a/Projectiles/Magic/ManaBoltSmall.cs +++ b/Projectiles/Magic/ManaBoltSmall.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -37,7 +38,7 @@ namespace CalamityMod.Projectiles.Magic { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 15, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } } } diff --git a/Projectiles/Magic/ManaBoltSmall2.cs b/Projectiles/Magic/ManaBoltSmall2.cs index 66162cb947..8a01866544 100644 --- a/Projectiles/Magic/ManaBoltSmall2.cs +++ b/Projectiles/Magic/ManaBoltSmall2.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -37,7 +38,7 @@ namespace CalamityMod.Projectiles.Magic { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 107, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } } } diff --git a/Projectiles/Magic/MelterAmp.cs b/Projectiles/Magic/MelterAmp.cs index ece39897a6..defab26993 100644 --- a/Projectiles/Magic/MelterAmp.cs +++ b/Projectiles/Magic/MelterAmp.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/MelterNote1.cs b/Projectiles/Magic/MelterNote1.cs index 40f1923371..661f494e19 100644 --- a/Projectiles/Magic/MelterNote1.cs +++ b/Projectiles/Magic/MelterNote1.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { diff --git a/Projectiles/Magic/MelterNote2.cs b/Projectiles/Magic/MelterNote2.cs index 22907e9d84..6da02af0a4 100644 --- a/Projectiles/Magic/MelterNote2.cs +++ b/Projectiles/Magic/MelterNote2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { diff --git a/Projectiles/Magic/MiasmaGas.cs b/Projectiles/Magic/MiasmaGas.cs index 3dbb75fdef..29fb35f4ee 100644 --- a/Projectiles/Magic/MiasmaGas.cs +++ b/Projectiles/Magic/MiasmaGas.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/NightBolt.cs b/Projectiles/Magic/NightBolt.cs index 45ba8f5b56..c40e79b84f 100644 --- a/Projectiles/Magic/NightBolt.cs +++ b/Projectiles/Magic/NightBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/NightOrb.cs b/Projectiles/Magic/NightOrb.cs index 15429d5a0c..b00fcd9167 100644 --- a/Projectiles/Magic/NightOrb.cs +++ b/Projectiles/Magic/NightOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/NightsRayBeam.cs b/Projectiles/Magic/NightsRayBeam.cs index 7733b371fc..bfcfe17a55 100644 --- a/Projectiles/Magic/NightsRayBeam.cs +++ b/Projectiles/Magic/NightsRayBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/NuclearFuryProjectile.cs b/Projectiles/Magic/NuclearFuryProjectile.cs index ced7da82de..128fd4c314 100644 --- a/Projectiles/Magic/NuclearFuryProjectile.cs +++ b/Projectiles/Magic/NuclearFuryProjectile.cs @@ -123,7 +123,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); for (int k = 0; k < 5; k++) { int dust = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 34, 0f, 0f); diff --git a/Projectiles/Magic/ParticleBeamofDoom.cs b/Projectiles/Magic/ParticleBeamofDoom.cs index 85ce9140a5..ba6f47b6c3 100644 --- a/Projectiles/Magic/ParticleBeamofDoom.cs +++ b/Projectiles/Magic/ParticleBeamofDoom.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/PhantasmalFuryProj.cs b/Projectiles/Magic/PhantasmalFuryProj.cs index 0a5f132992..14b2a4819d 100644 --- a/Projectiles/Magic/PhantasmalFuryProj.cs +++ b/Projectiles/Magic/PhantasmalFuryProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 43); + Main.PlaySound(SoundID.Item43, projectile.position); for (int j = 0; j <= 10; j++) { Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 175, 0f, 0f, 100, default, 1f); diff --git a/Projectiles/Magic/Phantom.cs b/Projectiles/Magic/Phantom.cs index 4533c69cba..452bf074ae 100644 --- a/Projectiles/Magic/Phantom.cs +++ b/Projectiles/Magic/Phantom.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/PlagueFang.cs b/Projectiles/Magic/PlagueFang.cs index 901e4eb0f2..8368ed6e6a 100644 --- a/Projectiles/Magic/PlagueFang.cs +++ b/Projectiles/Magic/PlagueFang.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Magic { public class PlagueFang : ModProjectile @@ -59,7 +61,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 27); for (int num301 = 0; num301 < 7; num301++) { int num302 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 163, 0f, 0f, 100, default, 1f); diff --git a/Projectiles/Magic/PlasmaBolt.cs b/Projectiles/Magic/PlasmaBolt.cs index 45e37efbd0..600a9f8e2c 100644 --- a/Projectiles/Magic/PlasmaBolt.cs +++ b/Projectiles/Magic/PlasmaBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/PlasmaRay.cs b/Projectiles/Magic/PlasmaRay.cs index 9855922413..4fe4328338 100644 --- a/Projectiles/Magic/PlasmaRay.cs +++ b/Projectiles/Magic/PlasmaRay.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/PlasmaRay2.cs b/Projectiles/Magic/PlasmaRay2.cs index e5c31a2119..37ab35b144 100644 --- a/Projectiles/Magic/PlasmaRay2.cs +++ b/Projectiles/Magic/PlasmaRay2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/PlasmaShot.cs b/Projectiles/Magic/PlasmaShot.cs index 15bb4c7bae..b92b6586f9 100644 --- a/Projectiles/Magic/PlasmaShot.cs +++ b/Projectiles/Magic/PlasmaShot.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -40,7 +41,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); int num220 = Main.rand.Next(20, 31); if (projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Magic/PoseidonTyphoon.cs b/Projectiles/Magic/PoseidonTyphoon.cs index e3031e0875..69ed1a7e0d 100644 --- a/Projectiles/Magic/PoseidonTyphoon.cs +++ b/Projectiles/Magic/PoseidonTyphoon.cs @@ -1,6 +1,7 @@ using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -31,7 +32,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Magic/PurgeLaser.cs b/Projectiles/Magic/PurgeLaser.cs index 64894fc023..4f8cf505d6 100644 --- a/Projectiles/Magic/PurgeLaser.cs +++ b/Projectiles/Magic/PurgeLaser.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/PurgeProj.cs b/Projectiles/Magic/PurgeProj.cs index b14f401183..7e74f57e6a 100644 --- a/Projectiles/Magic/PurgeProj.cs +++ b/Projectiles/Magic/PurgeProj.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -57,7 +58,7 @@ namespace CalamityMod.Projectiles.Magic projectile.soundDelay = num3 - num4 * num2; if (projectile.ai[0] != 1f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 91); + Main.PlaySound(SoundID.Item91, projectile.position); } } if (projectile.ai[1] == 1f && projectile.ai[0] != 1f) diff --git a/Projectiles/Magic/RougeSlashLarge.cs b/Projectiles/Magic/RougeSlashLarge.cs index 402509b7f9..c59f932ab1 100644 --- a/Projectiles/Magic/RougeSlashLarge.cs +++ b/Projectiles/Magic/RougeSlashLarge.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/RougeSlashMedium.cs b/Projectiles/Magic/RougeSlashMedium.cs index ce5dfc25af..b20d87f399 100644 --- a/Projectiles/Magic/RougeSlashMedium.cs +++ b/Projectiles/Magic/RougeSlashMedium.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/RougeSlashSmall.cs b/Projectiles/Magic/RougeSlashSmall.cs index 588f131ffc..40381f5745 100644 --- a/Projectiles/Magic/RougeSlashSmall.cs +++ b/Projectiles/Magic/RougeSlashSmall.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/SHPB.cs b/Projectiles/Magic/SHPB.cs index daf9fed6b7..a95dd71891 100644 --- a/Projectiles/Magic/SHPB.cs +++ b/Projectiles/Magic/SHPB.cs @@ -1,7 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -106,7 +107,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 105); + Main.PlaySound(SoundID.Item105, projectile.position); if (projectile.owner == Main.myPlayer) { 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 9472252545..4b7c1646a1 100644 --- a/Projectiles/Magic/SHPExplosion.cs +++ b/Projectiles/Magic/SHPExplosion.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/SHPL.cs b/Projectiles/Magic/SHPL.cs index 7055a528c4..af8553ca67 100644 --- a/Projectiles/Magic/SHPL.cs +++ b/Projectiles/Magic/SHPL.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/SanguineFlareProj.cs b/Projectiles/Magic/SanguineFlareProj.cs index 3ed0304e57..536dcf5ad5 100644 --- a/Projectiles/Magic/SanguineFlareProj.cs +++ b/Projectiles/Magic/SanguineFlareProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 10; diff --git a/Projectiles/Magic/SeethingDischargeBrimstoneBarrage.cs b/Projectiles/Magic/SeethingDischargeBrimstoneBarrage.cs index ddcb54418f..937b9a9b5d 100644 --- a/Projectiles/Magic/SeethingDischargeBrimstoneBarrage.cs +++ b/Projectiles/Magic/SeethingDischargeBrimstoneBarrage.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/SeethingDischargeBrimstoneHellblast.cs b/Projectiles/Magic/SeethingDischargeBrimstoneHellblast.cs index e8844e2635..37e3b42014 100644 --- a/Projectiles/Magic/SeethingDischargeBrimstoneHellblast.cs +++ b/Projectiles/Magic/SeethingDischargeBrimstoneHellblast.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); } projectile.velocity.X *= 1.03f; projectile.velocity.Y *= 1.03f; @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); for (int dust = 0; dust <= 5; dust++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, (int)CalamityDusts.Brimstone, 0f, 0f); diff --git a/Projectiles/Magic/SerpentineBody.cs b/Projectiles/Magic/SerpentineBody.cs index 27134eaf2f..41f38f1958 100644 --- a/Projectiles/Magic/SerpentineBody.cs +++ b/Projectiles/Magic/SerpentineBody.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Magic/SerpentineHead.cs b/Projectiles/Magic/SerpentineHead.cs index bab40332fe..4b9a562481 100644 --- a/Projectiles/Magic/SerpentineHead.cs +++ b/Projectiles/Magic/SerpentineHead.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/SerpentineTail.cs b/Projectiles/Magic/SerpentineTail.cs index 011a9eb155..cc1b97f6aa 100644 --- a/Projectiles/Magic/SerpentineTail.cs +++ b/Projectiles/Magic/SerpentineTail.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Magic/ShadeNimbus.cs b/Projectiles/Magic/ShadeNimbus.cs index 7a53cb21e9..7dd735cb8c 100644 --- a/Projectiles/Magic/ShadeNimbus.cs +++ b/Projectiles/Magic/ShadeNimbus.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { diff --git a/Projectiles/Magic/ShadeNimbusCloud.cs b/Projectiles/Magic/ShadeNimbusCloud.cs index 491a97ad04..0197c14da6 100644 --- a/Projectiles/Magic/ShadeNimbusCloud.cs +++ b/Projectiles/Magic/ShadeNimbusCloud.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { diff --git a/Projectiles/Magic/ShadecrystalProjectile.cs b/Projectiles/Magic/ShadecrystalProjectile.cs index 36739b240b..cc755143c4 100644 --- a/Projectiles/Magic/ShadecrystalProjectile.cs +++ b/Projectiles/Magic/ShadecrystalProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Magic/Shaderain.cs b/Projectiles/Magic/Shaderain.cs index f64b1040a4..ee94a7cf7d 100644 --- a/Projectiles/Magic/Shaderain.cs +++ b/Projectiles/Magic/Shaderain.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/Shadowbolt.cs b/Projectiles/Magic/Shadowbolt.cs index d5a6231820..b3ac1cf886 100644 --- a/Projectiles/Magic/Shadowbolt.cs +++ b/Projectiles/Magic/Shadowbolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Magic/ShiftingSandsProj.cs b/Projectiles/Magic/ShiftingSandsProj.cs index 409ada1f6e..9e729a55f0 100644 --- a/Projectiles/Magic/ShiftingSandsProj.cs +++ b/Projectiles/Magic/ShiftingSandsProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -147,7 +147,7 @@ namespace CalamityMod.Projectiles.Magic projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Magic/SirensSongNote.cs b/Projectiles/Magic/SirensSongNote.cs index 451f39bcfa..1d467872d6 100644 --- a/Projectiles/Magic/SirensSongNote.cs +++ b/Projectiles/Magic/SirensSongNote.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/SlitheringEelProjectile.cs b/Projectiles/Magic/SlitheringEelProjectile.cs index 59bc79e249..67cf9464a7 100644 --- a/Projectiles/Magic/SlitheringEelProjectile.cs +++ b/Projectiles/Magic/SlitheringEelProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Magic/Snowflake.cs b/Projectiles/Magic/Snowflake.cs index d19df9a15c..5a147f7d12 100644 --- a/Projectiles/Magic/Snowflake.cs +++ b/Projectiles/Magic/Snowflake.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 67, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Magic/SolarBeam2.cs b/Projectiles/Magic/SolarBeam2.cs index f6ca159be3..b2aac58b0c 100644 --- a/Projectiles/Magic/SolarBeam2.cs +++ b/Projectiles/Magic/SolarBeam2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/SoulPiercerBeam.cs b/Projectiles/Magic/SoulPiercerBeam.cs index 13016c38b3..04b790a956 100644 --- a/Projectiles/Magic/SoulPiercerBeam.cs +++ b/Projectiles/Magic/SoulPiercerBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/SoulPiercerBolt.cs b/Projectiles/Magic/SoulPiercerBolt.cs index af7215af00..0af21367ae 100644 --- a/Projectiles/Magic/SoulPiercerBolt.cs +++ b/Projectiles/Magic/SoulPiercerBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/SparkInfernal.cs b/Projectiles/Magic/SparkInfernal.cs index 4d3cb2f059..e39041825e 100644 --- a/Projectiles/Magic/SparkInfernal.cs +++ b/Projectiles/Magic/SparkInfernal.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items.Weapons.Magic; diff --git a/Projectiles/Magic/SparklingBeam.cs b/Projectiles/Magic/SparklingBeam.cs index c36d09d386..5d0d1a0383 100644 --- a/Projectiles/Magic/SparklingBeam.cs +++ b/Projectiles/Magic/SparklingBeam.cs @@ -6,6 +6,7 @@ using Terraria.Enums; using Terraria.ModLoader; using CalamityMod.Projectiles.Ranged; using CalamityMod.Items.Fishing.SunkenSeaCatches; +using Terraria.ID; namespace CalamityMod.Projectiles.Magic { @@ -169,7 +170,7 @@ namespace CalamityMod.Projectiles.Magic //Play cool sound when fully charged if (playedSound == false) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 68); + Main.PlaySound(SoundID.Item68, projectile.position); playedSound = true; } diff --git a/Projectiles/Magic/SpiritFlameCurse.cs b/Projectiles/Magic/SpiritFlameCurse.cs index d767983891..792c5b454d 100644 --- a/Projectiles/Magic/SpiritFlameCurse.cs +++ b/Projectiles/Magic/SpiritFlameCurse.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Magic projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 20; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 160, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Magic/Starblast.cs b/Projectiles/Magic/Starblast.cs index 4d34d770e5..1aebb67f06 100644 --- a/Projectiles/Magic/Starblast.cs +++ b/Projectiles/Magic/Starblast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/StickyFeather.cs b/Projectiles/Magic/StickyFeather.cs index caff08f993..7f8eedd116 100644 --- a/Projectiles/Magic/StickyFeather.cs +++ b/Projectiles/Magic/StickyFeather.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Magic/SupremeDustFlakProjectile.cs b/Projectiles/Magic/SupremeDustFlakProjectile.cs index a45db701e3..2005850339 100644 --- a/Projectiles/Magic/SupremeDustFlakProjectile.cs +++ b/Projectiles/Magic/SupremeDustFlakProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/SupremeDustProjectile.cs b/Projectiles/Magic/SupremeDustProjectile.cs index 6ecf7f4eb9..bc992ba6ed 100644 --- a/Projectiles/Magic/SupremeDustProjectile.cs +++ b/Projectiles/Magic/SupremeDustProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/T1000Laser.cs b/Projectiles/Magic/T1000Laser.cs index aa5f97fa7d..abdecd9dc4 100644 --- a/Projectiles/Magic/T1000Laser.cs +++ b/Projectiles/Magic/T1000Laser.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/T1000Proj.cs b/Projectiles/Magic/T1000Proj.cs index 99104817dc..94d68ec45c 100644 --- a/Projectiles/Magic/T1000Proj.cs +++ b/Projectiles/Magic/T1000Proj.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -57,7 +58,7 @@ namespace CalamityMod.Projectiles.Magic projectile.soundDelay = num3 - num4 * num2; if (projectile.ai[0] != 1f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 91); + Main.PlaySound(SoundID.Item91, projectile.position); } } if (projectile.ai[1] == 1f && projectile.ai[0] != 1f) diff --git a/Projectiles/Magic/TearsofHeavenProjectile.cs b/Projectiles/Magic/TearsofHeavenProjectile.cs index ad6eb2d5f9..ca83e44d56 100644 --- a/Projectiles/Magic/TearsofHeavenProjectile.cs +++ b/Projectiles/Magic/TearsofHeavenProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Magic/TerraBeam.cs b/Projectiles/Magic/TerraBeam.cs index b5b9291a93..b5e9dbd158 100644 --- a/Projectiles/Magic/TerraBeam.cs +++ b/Projectiles/Magic/TerraBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/TerraBolt.cs b/Projectiles/Magic/TerraBolt.cs index 0d7ac5cf39..b724da7432 100644 --- a/Projectiles/Magic/TerraBolt.cs +++ b/Projectiles/Magic/TerraBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/TerraBolt2.cs b/Projectiles/Magic/TerraBolt2.cs index bfcdf4d7dd..99efba297b 100644 --- a/Projectiles/Magic/TerraBolt2.cs +++ b/Projectiles/Magic/TerraBolt2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/TerraOrb.cs b/Projectiles/Magic/TerraOrb.cs index 8ba63efb91..265677fc7e 100644 --- a/Projectiles/Magic/TerraOrb.cs +++ b/Projectiles/Magic/TerraOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/TerraOrb2.cs b/Projectiles/Magic/TerraOrb2.cs index 4489cadfde..ecbb580976 100644 --- a/Projectiles/Magic/TerraOrb2.cs +++ b/Projectiles/Magic/TerraOrb2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/ThunderstormShot.cs b/Projectiles/Magic/ThunderstormShot.cs index 8883236d0e..b72603d63b 100644 --- a/Projectiles/Magic/ThunderstormShot.cs +++ b/Projectiles/Magic/ThunderstormShot.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -46,7 +47,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 125); + Main.PlaySound(SoundID.Item125, projectile.position); for (int n = 0; n < 5; n++) { float x = projectile.position.X + (float)Main.rand.Next(-200, 200); diff --git a/Projectiles/Magic/ThunderstormShotSplit.cs b/Projectiles/Magic/ThunderstormShotSplit.cs index 889920023e..aae6878bd8 100644 --- a/Projectiles/Magic/ThunderstormShotSplit.cs +++ b/Projectiles/Magic/ThunderstormShotSplit.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -50,7 +51,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 125); + Main.PlaySound(SoundID.Item125, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 16; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Magic/TradewindsProjectile.cs b/Projectiles/Magic/TradewindsProjectile.cs index 21dc99ae42..c26db1b84d 100644 --- a/Projectiles/Magic/TradewindsProjectile.cs +++ b/Projectiles/Magic/TradewindsProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Magic/UberBubble.cs b/Projectiles/Magic/UberBubble.cs index 4832f1071e..15114de365 100644 --- a/Projectiles/Magic/UberBubble.cs +++ b/Projectiles/Magic/UberBubble.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -52,7 +53,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 96); + Main.PlaySound(SoundID.Item96, projectile.position); int num190 = Main.rand.Next(4, 6); for (int num191 = 0; num191 < num190; num191++) { diff --git a/Projectiles/Magic/UndinesRetributionSpear.cs b/Projectiles/Magic/UndinesRetributionSpear.cs index f001ca983d..43d6531e12 100644 --- a/Projectiles/Magic/UndinesRetributionSpear.cs +++ b/Projectiles/Magic/UndinesRetributionSpear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Magic projectile.localNPCHitCooldown = 10; projectile.damage /= 2; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 21, 1f, 0f); + Main.PlaySound(SoundID.Item21, projectile.position); for (int num193 = 0; num193 < 4; num193++) { Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 33, 0f, 0f, 100, new Color(0, 255, 255), 1.5f); diff --git a/Projectiles/Magic/ValkyrieRayBeam.cs b/Projectiles/Magic/ValkyrieRayBeam.cs index 57be18cc03..cbc4803782 100644 --- a/Projectiles/Magic/ValkyrieRayBeam.cs +++ b/Projectiles/Magic/ValkyrieRayBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Magic; +using CalamityMod.Items.Weapons.Magic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Magic/ValkyrieRayStaff.cs b/Projectiles/Magic/ValkyrieRayStaff.cs index 6f4fd13085..c8ec08d181 100644 --- a/Projectiles/Magic/ValkyrieRayStaff.cs +++ b/Projectiles/Magic/ValkyrieRayStaff.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Magic; +using CalamityMod.Items.Weapons.Magic; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/Vehemence.cs b/Projectiles/Magic/Vehemence.cs index 4d9737696d..228160bdac 100644 --- a/Projectiles/Magic/Vehemence.cs +++ b/Projectiles/Magic/Vehemence.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, projectile.position); for (int j = 0; j <= 25; j++) { int num459 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 65, 0f, 0f, 100, default, 1f); diff --git a/Projectiles/Magic/VenusianBolt.cs b/Projectiles/Magic/VenusianBolt.cs index 788ce02c68..3d0c7dcacb 100644 --- a/Projectiles/Magic/VenusianBolt.cs +++ b/Projectiles/Magic/VenusianBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Magic } if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 73); + Main.PlaySound(SoundID.Item73, projectile.position); projectile.localAI[0] += 1f; } for (int num457 = 0; num457 < 3; num457++) diff --git a/Projectiles/Magic/VenusianExplosion.cs b/Projectiles/Magic/VenusianExplosion.cs index df517d4fd1..411388254f 100644 --- a/Projectiles/Magic/VenusianExplosion.cs +++ b/Projectiles/Magic/VenusianExplosion.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Magic Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.75f / 255f, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.01f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, projectile.position); projectile.localAI[0] += 1f; } float num461 = 25f; diff --git a/Projectiles/Magic/VenusianFlame.cs b/Projectiles/Magic/VenusianFlame.cs index 88713c021b..66ea6493c3 100644 --- a/Projectiles/Magic/VenusianFlame.cs +++ b/Projectiles/Magic/VenusianFlame.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -72,7 +72,7 @@ namespace CalamityMod.Projectiles.Magic if (projectile.ai[1] == 0f && projectile.type >= 326 && projectile.type <= 328) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 13); + Main.PlaySound(SoundID.Item13, projectile.position); } if (Main.rand.NextBool(2)) { diff --git a/Projectiles/Magic/VisceraBeam.cs b/Projectiles/Magic/VisceraBeam.cs index e695566dc5..9816e09feb 100644 --- a/Projectiles/Magic/VisceraBeam.cs +++ b/Projectiles/Magic/VisceraBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Magic/VitriolicViperFang.cs b/Projectiles/Magic/VitriolicViperFang.cs index a143fdf2fd..198aada41d 100644 --- a/Projectiles/Magic/VitriolicViperFang.cs +++ b/Projectiles/Magic/VitriolicViperFang.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Magic/VitriolicViperSpit.cs b/Projectiles/Magic/VitriolicViperSpit.cs index 4f98f2e6ce..b7d68646b9 100644 --- a/Projectiles/Magic/VitriolicViperSpit.cs +++ b/Projectiles/Magic/VitriolicViperSpit.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using CalamityMod.Buffs.DamageOverTime; diff --git a/Projectiles/Magic/VividBeam.cs b/Projectiles/Magic/VividBeam.cs index 1400979343..1bba3fbf3a 100644 --- a/Projectiles/Magic/VividBeam.cs +++ b/Projectiles/Magic/VividBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; diff --git a/Projectiles/Magic/VividBolt.cs b/Projectiles/Magic/VividBolt.cs index 37e06711f6..a0443dcca5 100644 --- a/Projectiles/Magic/VividBolt.cs +++ b/Projectiles/Magic/VividBolt.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Magic/VividClarityBeam.cs b/Projectiles/Magic/VividClarityBeam.cs index a42698d8bc..59d149066b 100644 --- a/Projectiles/Magic/VividClarityBeam.cs +++ b/Projectiles/Magic/VividClarityBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Magic/VividOrb.cs b/Projectiles/Magic/VividOrb.cs index 711da6215c..fe22d26a83 100644 --- a/Projectiles/Magic/VividOrb.cs +++ b/Projectiles/Magic/VividOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/VolatileStarcore.cs b/Projectiles/Magic/VolatileStarcore.cs index cb88ed0ab0..552a9992d3 100644 --- a/Projectiles/Magic/VolatileStarcore.cs +++ b/Projectiles/Magic/VolatileStarcore.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Magic/WaterStream.cs b/Projectiles/Magic/WaterStream.cs index 9173858a11..5cd0e7b1cb 100644 --- a/Projectiles/Magic/WaterStream.cs +++ b/Projectiles/Magic/WaterStream.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/WaterStream2.cs b/Projectiles/Magic/WaterStream2.cs index 0e58e022fe..4b783cc1e4 100644 --- a/Projectiles/Magic/WaterStream2.cs +++ b/Projectiles/Magic/WaterStream2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/WaywasherProj.cs b/Projectiles/Magic/WaywasherProj.cs index 8d1087b303..1cc7e7e958 100644 --- a/Projectiles/Magic/WaywasherProj.cs +++ b/Projectiles/Magic/WaywasherProj.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -55,7 +56,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); for (int k = 0; k < 10; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 33, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f, 0, new Color(0, 142, 255), 1f); diff --git a/Projectiles/Magic/WulfrumBolt.cs b/Projectiles/Magic/WulfrumBolt.cs index a9eb6b7fec..38ab58428c 100644 --- a/Projectiles/Magic/WulfrumBolt.cs +++ b/Projectiles/Magic/WulfrumBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Magic/WyvernFeatherGreen.cs b/Projectiles/Magic/WyvernFeatherGreen.cs index 17d76da071..5751d5b4a6 100644 --- a/Projectiles/Magic/WyvernFeatherGreen.cs +++ b/Projectiles/Magic/WyvernFeatherGreen.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Magic/WyvernFeatherPink.cs b/Projectiles/Magic/WyvernFeatherPink.cs index 36896d20f6..7d03591928 100644 --- a/Projectiles/Magic/WyvernFeatherPink.cs +++ b/Projectiles/Magic/WyvernFeatherPink.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Magic/WyvernFeatherPurple.cs b/Projectiles/Magic/WyvernFeatherPurple.cs index 660e3a2030..4aad1f99f5 100644 --- a/Projectiles/Magic/WyvernFeatherPurple.cs +++ b/Projectiles/Magic/WyvernFeatherPurple.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Magic/WyvernProjectile.cs b/Projectiles/Magic/WyvernProjectile.cs index 11f6c2caf4..1881059202 100644 --- a/Projectiles/Magic/WyvernProjectile.cs +++ b/Projectiles/Magic/WyvernProjectile.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - Main.PlaySound(3, (int)projectile.position.X, (int)projectile.position.Y, 7); + Main.PlaySound(SoundID.NPCHit7, projectile.position); for (int i = 0; i <= 10; i++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 16, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Magic/YharimsCrystalBeam.cs b/Projectiles/Magic/YharimsCrystalBeam.cs index 7bc72d68bb..6ad7f332a8 100644 --- a/Projectiles/Magic/YharimsCrystalBeam.cs +++ b/Projectiles/Magic/YharimsCrystalBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/Projectiles/Magic/YharimsCrystalPrism.cs b/Projectiles/Magic/YharimsCrystalPrism.cs index e578bb4856..db2e0a8e26 100644 --- a/Projectiles/Magic/YharimsCrystalPrism.cs +++ b/Projectiles/Magic/YharimsCrystalPrism.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/AegisBeam.cs b/Projectiles/Melee/AegisBeam.cs index cee0b73231..079d99c4c8 100644 --- a/Projectiles/Melee/AegisBeam.cs +++ b/Projectiles/Melee/AegisBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Melee } if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 73); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 73); projectile.localAI[0] += 1f; } int num458 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 246, 0f, 0f, 100, new Color(255, Main.DiscoG, 53), 0.8f); diff --git a/Projectiles/Melee/AegisBlast.cs b/Projectiles/Melee/AegisBlast.cs index 297cf5ac0b..a3072f0fdf 100644 --- a/Projectiles/Melee/AegisBlast.cs +++ b/Projectiles/Melee/AegisBlast.cs @@ -1,7 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Melee { public class AegisBlast : ModProjectile @@ -30,7 +32,7 @@ namespace CalamityMod.Projectiles.Melee Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.35f / 255f, (255 - projectile.alpha) * 0.35f / 255f, (255 - projectile.alpha) * 0f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 74); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Melee/AegisBlast2.cs b/Projectiles/Melee/AegisBlast2.cs index 0d8e585a64..064fc76c7d 100644 --- a/Projectiles/Melee/AegisBlast2.cs +++ b/Projectiles/Melee/AegisBlast2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/AegisFlame.cs b/Projectiles/Melee/AegisFlame.cs index fd511db3a7..3cc4d00770 100644 --- a/Projectiles/Melee/AegisFlame.cs +++ b/Projectiles/Melee/AegisFlame.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/AftershockRock.cs b/Projectiles/Melee/AftershockRock.cs index 0ac5816a0f..83270509ba 100644 --- a/Projectiles/Melee/AftershockRock.cs +++ b/Projectiles/Melee/AftershockRock.cs @@ -1,4 +1,4 @@ -using Terraria.ID; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { diff --git a/Projectiles/Melee/AmidiasWhirlpool.cs b/Projectiles/Melee/AmidiasWhirlpool.cs index fe476a4b9f..87f4500b25 100644 --- a/Projectiles/Melee/AmidiasWhirlpool.cs +++ b/Projectiles/Melee/AmidiasWhirlpool.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -142,7 +142,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 10); for (int k = 0; k < 20; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 33, projectile.oldVelocity.X, projectile.oldVelocity.Y, 0, new Color(0, 142, 255), 1f); diff --git a/Projectiles/Melee/AquaStream.cs b/Projectiles/Melee/AquaStream.cs index f889d04ab0..f72f599121 100644 --- a/Projectiles/Melee/AquaStream.cs +++ b/Projectiles/Melee/AquaStream.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/AstralScytheProjectile.cs b/Projectiles/Melee/AstralScytheProjectile.cs index 01f07ca2dc..7e8ba21c1a 100644 --- a/Projectiles/Melee/AstralScytheProjectile.cs +++ b/Projectiles/Melee/AstralScytheProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/AtaraxiaHoming.cs b/Projectiles/Melee/AtaraxiaHoming.cs index 6c569c0933..fc6928c060 100644 --- a/Projectiles/Melee/AtaraxiaHoming.cs +++ b/Projectiles/Melee/AtaraxiaHoming.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/AtaraxiaMain.cs b/Projectiles/Melee/AtaraxiaMain.cs index 825ed8c907..cb4852d734 100644 --- a/Projectiles/Melee/AtaraxiaMain.cs +++ b/Projectiles/Melee/AtaraxiaMain.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/AtaraxiaSide.cs b/Projectiles/Melee/AtaraxiaSide.cs index 3ce5ec918a..ad58249a61 100644 --- a/Projectiles/Melee/AtaraxiaSide.cs +++ b/Projectiles/Melee/AtaraxiaSide.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/AtaraxiaSplit.cs b/Projectiles/Melee/AtaraxiaSplit.cs index 5acede7fdc..f358d451b1 100644 --- a/Projectiles/Melee/AtaraxiaSplit.cs +++ b/Projectiles/Melee/AtaraxiaSplit.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { diff --git a/Projectiles/Melee/BalefulHarvesterProjectile.cs b/Projectiles/Melee/BalefulHarvesterProjectile.cs index ab7d9df5f2..ce4a78deaa 100644 --- a/Projectiles/Melee/BalefulHarvesterProjectile.cs +++ b/Projectiles/Melee/BalefulHarvesterProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -115,7 +115,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 27); for (int num621 = 0; num621 < 5; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 5, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Melee/BallOFuguProj.cs b/Projectiles/Melee/BallOFuguProj.cs index b73b064dc7..888441710a 100644 --- a/Projectiles/Melee/BallOFuguProj.cs +++ b/Projectiles/Melee/BallOFuguProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Melee Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); projectile.ai[0] = 1f; projectile.netUpdate = true; - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return false; } diff --git a/Projectiles/Melee/BansheeHookBoom.cs b/Projectiles/Melee/BansheeHookBoom.cs index 4f12a095f3..41eecddba0 100644 --- a/Projectiles/Melee/BansheeHookBoom.cs +++ b/Projectiles/Melee/BansheeHookBoom.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/BansheeHookScythe.cs b/Projectiles/Melee/BansheeHookScythe.cs index b796a1c490..b09579d645 100644 --- a/Projectiles/Melee/BansheeHookScythe.cs +++ b/Projectiles/Melee/BansheeHookScythe.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/BiomeOrb.cs b/Projectiles/Melee/BiomeOrb.cs index 5d102e9f1e..f24ae23333 100644 --- a/Projectiles/Melee/BiomeOrb.cs +++ b/Projectiles/Melee/BiomeOrb.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Dusts; diff --git a/Projectiles/Melee/BlazingPhantomBlade.cs b/Projectiles/Melee/BlazingPhantomBlade.cs index 0cf7549120..cfa4857d96 100644 --- a/Projectiles/Melee/BlazingPhantomBlade.cs +++ b/Projectiles/Melee/BlazingPhantomBlade.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/Blood.cs b/Projectiles/Melee/Blood.cs index 663a68b5f1..83e4e9d61e 100644 --- a/Projectiles/Melee/Blood.cs +++ b/Projectiles/Melee/Blood.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Blood2.cs b/Projectiles/Melee/Blood2.cs index ac90068252..f215616e76 100644 --- a/Projectiles/Melee/Blood2.cs +++ b/Projectiles/Melee/Blood2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/BloodBall.cs b/Projectiles/Melee/BloodBall.cs index 40d732d04c..e038de0577 100644 --- a/Projectiles/Melee/BloodBall.cs +++ b/Projectiles/Melee/BloodBall.cs @@ -1,6 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Melee { public class BloodBall : ModProjectile @@ -98,7 +100,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(3, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.NPCHit, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 22; diff --git a/Projectiles/Melee/BloodScythe.cs b/Projectiles/Melee/BloodScythe.cs index 850b1bdbf0..4ccc987cc4 100644 --- a/Projectiles/Melee/BloodScythe.cs +++ b/Projectiles/Melee/BloodScythe.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/BloodyBlade.cs b/Projectiles/Melee/BloodyBlade.cs index b12918e67c..b32f471883 100644 --- a/Projectiles/Melee/BloodyBlade.cs +++ b/Projectiles/Melee/BloodyBlade.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/BlueAura.cs b/Projectiles/Melee/BlueAura.cs index 9d26063058..2f06f51597 100644 --- a/Projectiles/Melee/BlueAura.cs +++ b/Projectiles/Melee/BlueAura.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/Brimblast.cs b/Projectiles/Melee/Brimblast.cs index a6c73f0f7b..2d71c0334a 100644 --- a/Projectiles/Melee/Brimblast.cs +++ b/Projectiles/Melee/Brimblast.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Melee/BrimlanceHellfireExplosion.cs b/Projectiles/Melee/BrimlanceHellfireExplosion.cs index b4b4316c45..4f9e18ae7b 100644 --- a/Projectiles/Melee/BrimlanceHellfireExplosion.cs +++ b/Projectiles/Melee/BrimlanceHellfireExplosion.cs @@ -1,9 +1,11 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Melee { public class BrimlanceHellfireExplosion : ModProjectile @@ -32,7 +34,7 @@ namespace CalamityMod.Projectiles.Melee Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.75f / 255f, (255 - projectile.alpha) * 0.05f / 255f, (255 - projectile.alpha) * 0.05f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Melee/BrimlanceStandingFire.cs b/Projectiles/Melee/BrimlanceStandingFire.cs index 5ea9717c07..88524b0e3a 100644 --- a/Projectiles/Melee/BrimlanceStandingFire.cs +++ b/Projectiles/Melee/BrimlanceStandingFire.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Melee { public class BrimlanceStandingFire : ModProjectile @@ -55,7 +57,7 @@ namespace CalamityMod.Projectiles.Melee if (projectile.ai[1] == 0f && projectile.type >= 326 && projectile.type <= 328) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 13); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 13); } int num199 = Dust.NewDust(projectile.position, projectile.width, projectile.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 1f); Dust expr_8976_cp_0 = Main.dust[num199]; diff --git a/Projectiles/Melee/Brimlash2.cs b/Projectiles/Melee/Brimlash2.cs index 0a4b372963..0cc85fe79b 100644 --- a/Projectiles/Melee/Brimlash2.cs +++ b/Projectiles/Melee/Brimlash2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Melee/BrimlashProj.cs b/Projectiles/Melee/BrimlashProj.cs index d71d8113a9..549e560076 100644 --- a/Projectiles/Melee/BrimlashProj.cs +++ b/Projectiles/Melee/BrimlashProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/BrimstoneBoom.cs b/Projectiles/Melee/BrimstoneBoom.cs index 6388177a8e..d206aae700 100644 --- a/Projectiles/Melee/BrimstoneBoom.cs +++ b/Projectiles/Melee/BrimstoneBoom.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Melee/BrimstoneLaserFriendly.cs b/Projectiles/Melee/BrimstoneLaserFriendly.cs index 2d93dcb867..8db8363283 100644 --- a/Projectiles/Melee/BrimstoneLaserFriendly.cs +++ b/Projectiles/Melee/BrimstoneLaserFriendly.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/BrimstoneSwordExplosion.cs b/Projectiles/Melee/BrimstoneSwordExplosion.cs index 01105d1fc3..7dacf6d46b 100644 --- a/Projectiles/Melee/BrimstoneSwordExplosion.cs +++ b/Projectiles/Melee/BrimstoneSwordExplosion.cs @@ -1,9 +1,11 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Melee { public class BrimstoneSwordExplosion : ModProjectile @@ -32,7 +34,7 @@ namespace CalamityMod.Projectiles.Melee Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.75f / 255f, (255 - projectile.alpha) * 0.05f / 255f, (255 - projectile.alpha) * 0.05f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Melee/BrinySpout.cs b/Projectiles/Melee/BrinySpout.cs index 1d40295ecf..bb3c922edf 100644 --- a/Projectiles/Melee/BrinySpout.cs +++ b/Projectiles/Melee/BrinySpout.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/BrinyTyphoonBubble.cs b/Projectiles/Melee/BrinyTyphoonBubble.cs index 3fb4a717e5..0ac830dfc2 100644 --- a/Projectiles/Melee/BrinyTyphoonBubble.cs +++ b/Projectiles/Melee/BrinyTyphoonBubble.cs @@ -1,7 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Melee { public class BrinyTyphoonBubble : ModProjectile @@ -94,7 +96,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 96); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 96); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Melee/BurningMeteor.cs b/Projectiles/Melee/BurningMeteor.cs index 0288610f3e..409f95b045 100644 --- a/Projectiles/Melee/BurningMeteor.cs +++ b/Projectiles/Melee/BurningMeteor.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Melee projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); } } projectile.localAI[0] += 1f; @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); for (int k = 0; k < 10; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 244, 0f, 0f); diff --git a/Projectiles/Melee/CalamityAura.cs b/Projectiles/Melee/CalamityAura.cs index b1b2fc70e1..42242bc02f 100644 --- a/Projectiles/Melee/CalamityAura.cs +++ b/Projectiles/Melee/CalamityAura.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/CalamityAuraType2.cs b/Projectiles/Melee/CalamityAuraType2.cs index e3d41cd63e..abaaa68790 100644 --- a/Projectiles/Melee/CalamityAuraType2.cs +++ b/Projectiles/Melee/CalamityAuraType2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/CalamityAuraType3.cs b/Projectiles/Melee/CalamityAuraType3.cs index 4cd84af9c9..daa49c5115 100644 --- a/Projectiles/Melee/CalamityAuraType3.cs +++ b/Projectiles/Melee/CalamityAuraType3.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/ChaosFlameLarge.cs b/Projectiles/Melee/ChaosFlameLarge.cs index f55fc1dce8..3b73c8ac6c 100644 --- a/Projectiles/Melee/ChaosFlameLarge.cs +++ b/Projectiles/Melee/ChaosFlameLarge.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/ChaosFlameSmall.cs b/Projectiles/Melee/ChaosFlameSmall.cs index 6c641a7cb0..2c334e743c 100644 --- a/Projectiles/Melee/ChaosFlameSmall.cs +++ b/Projectiles/Melee/ChaosFlameSmall.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/ClamCrusherFlail.cs b/Projectiles/Melee/ClamCrusherFlail.cs index ab30de06fa..905935fac0 100644 --- a/Projectiles/Melee/ClamCrusherFlail.cs +++ b/Projectiles/Melee/ClamCrusherFlail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/CosmicBolt.cs b/Projectiles/Melee/CosmicBolt.cs index 11a70d268f..2704b53356 100644 --- a/Projectiles/Melee/CosmicBolt.cs +++ b/Projectiles/Melee/CosmicBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/CosmicDischargeFlail.cs b/Projectiles/Melee/CosmicDischargeFlail.cs index 2f3aed3202..631236cf17 100644 --- a/Projectiles/Melee/CosmicDischargeFlail.cs +++ b/Projectiles/Melee/CosmicDischargeFlail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatBuffs; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; diff --git a/Projectiles/Melee/CosmicIceBurst.cs b/Projectiles/Melee/CosmicIceBurst.cs index 8c9179afd3..08a07c3e6d 100644 --- a/Projectiles/Melee/CosmicIceBurst.cs +++ b/Projectiles/Melee/CosmicIceBurst.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Melee/CosmicOrb.cs b/Projectiles/Melee/CosmicOrb.cs index 38096790e1..7317ea1901 100644 --- a/Projectiles/Melee/CosmicOrb.cs +++ b/Projectiles/Melee/CosmicOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/CosmicShivBall.cs b/Projectiles/Melee/CosmicShivBall.cs index 09fca156bb..f05f4469b8 100644 --- a/Projectiles/Melee/CosmicShivBall.cs +++ b/Projectiles/Melee/CosmicShivBall.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -124,7 +124,7 @@ namespace CalamityMod.Projectiles.Melee target.StrikeNPC(damage, 0f, 0, crit, false, false); if (Main.netMode != NetmodeID.SinglePlayer) - NetMessage.SendData(28, -1, -1, null, i, damage, 0f, 0f, crit ? 1 : 0, 0, 0); + NetMessage.SendData(MessageID.StrikeNPC, -1, -1, null, i, damage, 0f, 0f, crit ? 1 : 0, 0, 0); } } } diff --git a/Projectiles/Melee/CosmicShivBlade.cs b/Projectiles/Melee/CosmicShivBlade.cs index 2557a7026d..62ff9f2b58 100644 --- a/Projectiles/Melee/CosmicShivBlade.cs +++ b/Projectiles/Melee/CosmicShivBlade.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/CosmicSpiritBomb1.cs b/Projectiles/Melee/CosmicSpiritBomb1.cs index 1bac4206f5..a3d5370d3c 100644 --- a/Projectiles/Melee/CosmicSpiritBomb1.cs +++ b/Projectiles/Melee/CosmicSpiritBomb1.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -82,7 +82,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 200; diff --git a/Projectiles/Melee/CosmicSpiritBomb2.cs b/Projectiles/Melee/CosmicSpiritBomb2.cs index e6a0f7bdb4..f742289d8c 100644 --- a/Projectiles/Melee/CosmicSpiritBomb2.cs +++ b/Projectiles/Melee/CosmicSpiritBomb2.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -81,9 +81,9 @@ namespace CalamityMod.Projectiles.Melee } public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); - projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + { + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 200; projectile.height = 200; diff --git a/Projectiles/Melee/CosmicSpiritBomb3.cs b/Projectiles/Melee/CosmicSpiritBomb3.cs index fb61630970..197e7f5b7d 100644 --- a/Projectiles/Melee/CosmicSpiritBomb3.cs +++ b/Projectiles/Melee/CosmicSpiritBomb3.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -81,9 +81,9 @@ namespace CalamityMod.Projectiles.Melee } public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); - projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + { + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 200; projectile.height = 200; diff --git a/Projectiles/Melee/CrescentMoonProj.cs b/Projectiles/Melee/CrescentMoonProj.cs index 6442d89531..9e15d09414 100644 --- a/Projectiles/Melee/CrescentMoonProj.cs +++ b/Projectiles/Melee/CrescentMoonProj.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Melee projectile.soundDelay = 30 + Main.rand.Next(50); if (Main.rand.NextBool(10)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, (int)projectile.position.X, (int)projectile.position.Y); } } diff --git a/Projectiles/Melee/CrystalDust.cs b/Projectiles/Melee/CrystalDust.cs index bb6dc77f34..da9e769ae6 100644 --- a/Projectiles/Melee/CrystalDust.cs +++ b/Projectiles/Melee/CrystalDust.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.GameContent.Achievements; diff --git a/Projectiles/Melee/CrystylCrusherRay.cs b/Projectiles/Melee/CrystylCrusherRay.cs index 4a3863e8cb..a27cbf0b6c 100644 --- a/Projectiles/Melee/CrystylCrusherRay.cs +++ b/Projectiles/Melee/CrystylCrusherRay.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.NPCs.BrimstoneElemental; using CalamityMod.Dusts; using CalamityMod.World; @@ -136,7 +136,7 @@ namespace CalamityMod.Projectiles.Melee //Play cool sound when fully charged if (playedSound == false) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 68); + Main.PlaySound(SoundID.Item68, (int)projectile.position.X, (int)projectile.position.Y); playedSound = true; } @@ -325,7 +325,7 @@ namespace CalamityMod.Projectiles.Melee DustExplosion(destroyVector); if (!Main.tile[num824, num825].active() && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 0, (float)num824, (float)num825, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, (float)num824, (float)num825, 0f, 0, 0, 0); } } } @@ -334,7 +334,7 @@ namespace CalamityMod.Projectiles.Melee AchievementsHelper.CurrentlyMining = false; if (Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(29, -1, -1, null, projectile.identity, (float)projectile.owner, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.KillProjectile, -1, -1, null, projectile.identity, (float)projectile.owner, 0f, 0f, 0, 0, 0); } } } diff --git a/Projectiles/Melee/Cyclone.cs b/Projectiles/Melee/Cyclone.cs index e9d204b863..4d77446134 100644 --- a/Projectiles/Melee/Cyclone.cs +++ b/Projectiles/Melee/Cyclone.cs @@ -110,7 +110,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 60, 0.6f); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 60, 0.6f); for (int i = 0; i <= 360; i += 3) { diff --git a/Projectiles/Melee/DNA.cs b/Projectiles/Melee/DNA.cs index 0a96e778cb..7c191175f4 100644 --- a/Projectiles/Melee/DNA.cs +++ b/Projectiles/Melee/DNA.cs @@ -1,7 +1,9 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Melee { public class DNA : ModProjectile @@ -49,7 +51,7 @@ namespace CalamityMod.Projectiles.Melee int num49 = projectile.damage; float num50 = projectile.knockBack; int number = Projectile.NewProjectile(projectile.position.X + projectile.velocity.X + (float)(projectile.width / 2), projectile.position.Y + projectile.velocity.Y + (float)(projectile.height / 2), projectile.velocity.X, projectile.velocity.Y, num48, num49, num50, projectile.owner, 0f, projectile.ai[1] + 1f); - NetMessage.SendData(27, -1, -1, null, number, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncProjectile, -1, -1, null, number, 0f, 0f, 0f, 0, 0, 0); } } } diff --git a/Projectiles/Melee/DNA2.cs b/Projectiles/Melee/DNA2.cs index 024251437e..643b147d8c 100644 --- a/Projectiles/Melee/DNA2.cs +++ b/Projectiles/Melee/DNA2.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Dark.cs b/Projectiles/Melee/Dark.cs index f1cedd6b62..3e25dbb8d9 100644 --- a/Projectiles/Melee/Dark.cs +++ b/Projectiles/Melee/Dark.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/DarkBall.cs b/Projectiles/Melee/DarkBall.cs index 2055807c92..8dbb5a0cbf 100644 --- a/Projectiles/Melee/DarkBall.cs +++ b/Projectiles/Melee/DarkBall.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -99,7 +100,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.NPCDeath21, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 22; diff --git a/Projectiles/Melee/DarkBeam.cs b/Projectiles/Melee/DarkBeam.cs index 683eb6ab1a..791587b2fb 100644 --- a/Projectiles/Melee/DarkBeam.cs +++ b/Projectiles/Melee/DarkBeam.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Melee/DemonBlast.cs b/Projectiles/Melee/DemonBlast.cs index 6cf91d18e7..f338660fc8 100644 --- a/Projectiles/Melee/DemonBlast.cs +++ b/Projectiles/Melee/DemonBlast.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Microsoft.Xna.Framework; @@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(SoundID.Item14, projectile.position); + Main.PlaySound(SoundID.Item14, projectile.Center); bool tileCheck = WorldGen.SolidTile(Framing.GetTileSafely((int)projectile.position.X / 16, (int)projectile.position.Y / 16)); for (int m = 0; m < 4; m++) { diff --git a/Projectiles/Melee/DepthOrb.cs b/Projectiles/Melee/DepthOrb.cs index 81c3d5e346..55372a55a9 100644 --- a/Projectiles/Melee/DepthOrb.cs +++ b/Projectiles/Melee/DepthOrb.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Melee/DepthOrb2.cs b/Projectiles/Melee/DepthOrb2.cs index 333a4fe9cf..330c767bd4 100644 --- a/Projectiles/Melee/DepthOrb2.cs +++ b/Projectiles/Melee/DepthOrb2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Melee/DevilsSunriseCyclone.cs b/Projectiles/Melee/DevilsSunriseCyclone.cs index cef718c9c8..d479e4abb6 100644 --- a/Projectiles/Melee/DevilsSunriseCyclone.cs +++ b/Projectiles/Melee/DevilsSunriseCyclone.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -205,7 +205,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 88); + Main.PlaySound(SoundID.Item88, (int)projectile.position.X, (int)projectile.position.Y); projectile.position = projectile.Center; projectile.width = projectile.height = 64; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Melee/DevilsSunriseProj.cs b/Projectiles/Melee/DevilsSunriseProj.cs index db87deba3c..f00921abcb 100644 --- a/Projectiles/Melee/DevilsSunriseProj.cs +++ b/Projectiles/Melee/DevilsSunriseProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Melee/DracoBeam.cs b/Projectiles/Melee/DracoBeam.cs index b082503000..8f23a2cb49 100644 --- a/Projectiles/Melee/DracoBeam.cs +++ b/Projectiles/Melee/DracoBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/DracoBeam2.cs b/Projectiles/Melee/DracoBeam2.cs index e32d8d95d4..1edd0cf2c6 100644 --- a/Projectiles/Melee/DracoBeam2.cs +++ b/Projectiles/Melee/DracoBeam2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/DraconicSpark.cs b/Projectiles/Melee/DraconicSpark.cs index deffc8a304..7535d8064c 100644 --- a/Projectiles/Melee/DraconicSpark.cs +++ b/Projectiles/Melee/DraconicSpark.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Melee/DragonPowFlail.cs b/Projectiles/Melee/DragonPowFlail.cs index a08543c626..706d707863 100644 --- a/Projectiles/Melee/DragonPowFlail.cs +++ b/Projectiles/Melee/DragonPowFlail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/DragonRageProj.cs b/Projectiles/Melee/DragonRageProj.cs index 7b7f2b4d73..86513eade7 100644 --- a/Projectiles/Melee/DragonRageProj.cs +++ b/Projectiles/Melee/DragonRageProj.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Projectiles.Typeless; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -33,7 +34,7 @@ namespace CalamityMod.Projectiles.Melee projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, (int)projectile.position.X, (int)projectile.position.Y); projectile.localAI[0] += 1f; } if (projectile.localAI[1] <= 60f) @@ -48,7 +49,8 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, 612, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile explosion = Projectile.NewProjectileDirect(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + explosion.Calamity().forceMelee = true; } } @@ -63,7 +65,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 100; diff --git a/Projectiles/Melee/Earth2.cs b/Projectiles/Melee/Earth2.cs index 646be7e677..cb7f58421f 100644 --- a/Projectiles/Melee/Earth2.cs +++ b/Projectiles/Melee/Earth2.cs @@ -1,7 +1,8 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -41,7 +42,7 @@ namespace CalamityMod.Projectiles.Melee projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, (int)projectile.position.X, (int)projectile.position.Y); } } projectile.alpha -= 15; @@ -86,7 +87,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, (int)projectile.position.X, (int)projectile.position.Y); for (int k = 0; k < 15; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 229, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); diff --git a/Projectiles/Melee/Earth3.cs b/Projectiles/Melee/Earth3.cs index 2976363774..d4046ae419 100644 --- a/Projectiles/Melee/Earth3.cs +++ b/Projectiles/Melee/Earth3.cs @@ -1,7 +1,8 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -40,7 +41,7 @@ namespace CalamityMod.Projectiles.Melee projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, (int)projectile.position.X, (int)projectile.position.Y); } } projectile.alpha -= 15; @@ -85,7 +86,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 30; diff --git a/Projectiles/Melee/Earth4.cs b/Projectiles/Melee/Earth4.cs index 75586af9c4..eaae96d583 100644 --- a/Projectiles/Melee/Earth4.cs +++ b/Projectiles/Melee/Earth4.cs @@ -1,7 +1,8 @@ -using CalamityMod.Projectiles.Healing; +using CalamityMod.Projectiles.Healing; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -40,7 +41,7 @@ namespace CalamityMod.Projectiles.Melee projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, (int)projectile.position.X, (int)projectile.position.Y); } } projectile.alpha -= 15; @@ -85,7 +86,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, (int)projectile.position.X, (int)projectile.position.Y); for (int k = 0; k < 15; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 74, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); @@ -94,7 +95,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 4); + Main.PlaySound(SoundID.Item4, (int)projectile.position.X, (int)projectile.position.Y); float healAmt = (float)damage * 0.075f; if ((int)healAmt == 0) { diff --git a/Projectiles/Melee/EarthProj.cs b/Projectiles/Melee/EarthProj.cs index a334825aad..7c7f2ee356 100644 --- a/Projectiles/Melee/EarthProj.cs +++ b/Projectiles/Melee/EarthProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Melee projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, (int)projectile.position.X, (int)projectile.position.Y); } } projectile.alpha -= 15; @@ -123,7 +123,7 @@ namespace CalamityMod.Projectiles.Melee 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); 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); } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, (int)projectile.position.X, (int)projectile.position.Y); for (int k = 0; k < 15; k++) { int dustChoice = Main.rand.Next(3); diff --git a/Projectiles/Melee/ElementBall.cs b/Projectiles/Melee/ElementBall.cs index 9cbc689869..4c4454b159 100644 --- a/Projectiles/Melee/ElementBall.cs +++ b/Projectiles/Melee/ElementBall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Melee/ElementBallShiv.cs b/Projectiles/Melee/ElementBallShiv.cs index c527b84242..a3ebd7e5db 100644 --- a/Projectiles/Melee/ElementBallShiv.cs +++ b/Projectiles/Melee/ElementBallShiv.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/ElementalExcaliburBeam.cs b/Projectiles/Melee/ElementalExcaliburBeam.cs index 14b0b56ee5..9df00e4032 100644 --- a/Projectiles/Melee/ElementalExcaliburBeam.cs +++ b/Projectiles/Melee/ElementalExcaliburBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/EonBeam.cs b/Projectiles/Melee/EonBeam.cs index fdcf541027..089557862f 100644 --- a/Projectiles/Melee/EonBeam.cs +++ b/Projectiles/Melee/EonBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/EonBeamV2.cs b/Projectiles/Melee/EonBeamV2.cs index 6539fb3962..8e00b9bb2a 100644 --- a/Projectiles/Melee/EonBeamV2.cs +++ b/Projectiles/Melee/EonBeamV2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/EonBeamV3.cs b/Projectiles/Melee/EonBeamV3.cs index 78c5476b73..fafd897032 100644 --- a/Projectiles/Melee/EonBeamV3.cs +++ b/Projectiles/Melee/EonBeamV3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/EonBeamV4.cs b/Projectiles/Melee/EonBeamV4.cs index 1a02714fed..a2f685c4f8 100644 --- a/Projectiles/Melee/EonBeamV4.cs +++ b/Projectiles/Melee/EonBeamV4.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/EssenceBeam.cs b/Projectiles/Melee/EssenceBeam.cs index 3c349854d9..ecc1241a95 100644 --- a/Projectiles/Melee/EssenceBeam.cs +++ b/Projectiles/Melee/EssenceBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Melee/EssenceFireball.cs b/Projectiles/Melee/EssenceFireball.cs index e44ed655d1..36c4e64058 100644 --- a/Projectiles/Melee/EssenceFireball.cs +++ b/Projectiles/Melee/EssenceFireball.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -76,7 +76,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)projectile.position.X, (int)projectile.position.Y); projectile.position = projectile.Center; projectile.width = projectile.height = 64; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Melee/EssenceFlame2.cs b/Projectiles/Melee/EssenceFlame2.cs index 30df45ad1b..8e6ee94a98 100644 --- a/Projectiles/Melee/EssenceFlame2.cs +++ b/Projectiles/Melee/EssenceFlame2.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -44,7 +45,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Melee/EssenceScythe.cs b/Projectiles/Melee/EssenceScythe.cs index d863436f56..09c4dcf438 100644 --- a/Projectiles/Melee/EssenceScythe.cs +++ b/Projectiles/Melee/EssenceScythe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Healing; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/EutrophicSpark.cs b/Projectiles/Melee/EutrophicSpark.cs index cfe1df00a4..41b6424589 100644 --- a/Projectiles/Melee/EutrophicSpark.cs +++ b/Projectiles/Melee/EutrophicSpark.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/ExcelsusBlue.cs b/Projectiles/Melee/ExcelsusBlue.cs index d8bc69fe93..9f55c3eae6 100644 --- a/Projectiles/Melee/ExcelsusBlue.cs +++ b/Projectiles/Melee/ExcelsusBlue.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/ExcelsusMain.cs b/Projectiles/Melee/ExcelsusMain.cs index d2dc77f972..9eef3383bd 100644 --- a/Projectiles/Melee/ExcelsusMain.cs +++ b/Projectiles/Melee/ExcelsusMain.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/ExcelsusPink.cs b/Projectiles/Melee/ExcelsusPink.cs index 6215b85e54..327e302029 100644 --- a/Projectiles/Melee/ExcelsusPink.cs +++ b/Projectiles/Melee/ExcelsusPink.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/ExoGladComet.cs b/Projectiles/Melee/ExoGladComet.cs index 80ffa279c7..ede9497a67 100644 --- a/Projectiles/Melee/ExoGladComet.cs +++ b/Projectiles/Melee/ExoGladComet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 103, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)projectile.position.X, (int)projectile.position.Y, 103, 1f, 0f); projectile.position = projectile.Center; projectile.width = projectile.height = 80; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Melee/ExoGladProj.cs b/Projectiles/Melee/ExoGladProj.cs index d2ebdcf12e..70f51418f6 100644 --- a/Projectiles/Melee/ExoGladProj.cs +++ b/Projectiles/Melee/ExoGladProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/ExoGladSpears.cs b/Projectiles/Melee/ExoGladSpears.cs index 3cd9a5a5ae..ab04ac1c0e 100644 --- a/Projectiles/Melee/ExoGladSpears.cs +++ b/Projectiles/Melee/ExoGladSpears.cs @@ -143,8 +143,8 @@ namespace CalamityMod.Projectiles.Melee projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 74, 1f, 0f); - int dustType = Utils.SelectRandom(Main.rand, new int[] + Main.PlaySound(SoundID.Item74, (int)projectile.position.X, (int)projectile.position.Y); + int dustType = Utils.SelectRandom(Main.rand, new int[] { 107, 234, diff --git a/Projectiles/Melee/Exobeam.cs b/Projectiles/Melee/Exobeam.cs index 82ccdebbc5..77884b6d39 100644 --- a/Projectiles/Melee/Exobeam.cs +++ b/Projectiles/Melee/Exobeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.localAI[1] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 60); + Main.PlaySound(SoundID.Item60, (int)projectile.position.X, (int)projectile.position.Y); projectile.localAI[1] += 1f; } counter++; @@ -173,7 +173,7 @@ namespace CalamityMod.Projectiles.Melee projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(29, (int)projectile.Center.X, (int)projectile.Center.Y, 103); + Main.PlaySound(SoundID.Zombie, (int)projectile.Center.X, (int)projectile.Center.Y, 103); for (int num193 = 0; num193 < 3; num193++) { Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 107, 0f, 0f, 100, new Color(0, 255, 255), 1.5f); diff --git a/Projectiles/Melee/Exoboom.cs b/Projectiles/Melee/Exoboom.cs index e95ac9fd39..8b5b528c9e 100644 --- a/Projectiles/Melee/Exoboom.cs +++ b/Projectiles/Melee/Exoboom.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Melee Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.75f / 255f, (255 - projectile.alpha) * 0.75f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)projectile.position.X, (int)projectile.position.Y); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Melee/Exocomet.cs b/Projectiles/Melee/Exocomet.cs index 6cbfc7d942..4efc5a5ed2 100644 --- a/Projectiles/Melee/Exocomet.cs +++ b/Projectiles/Melee/Exocomet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Healing; using Microsoft.Xna.Framework; @@ -128,7 +128,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 103, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (int)projectile.position.X, (int)projectile.position.Y, 103, 1f, 0f); projectile.position = projectile.Center; projectile.width = projectile.height = 80; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Melee/Feather.cs b/Projectiles/Melee/Feather.cs index 4e7731e1f7..cfb6ed319b 100644 --- a/Projectiles/Melee/Feather.cs +++ b/Projectiles/Melee/Feather.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Flarefrost.cs b/Projectiles/Melee/Flarefrost.cs index 482e53cf3d..eacbbaa8d9 100644 --- a/Projectiles/Melee/Flarefrost.cs +++ b/Projectiles/Melee/Flarefrost.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 2; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 67, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Melee/ForbiddenOathbladeProjectile.cs b/Projectiles/Melee/ForbiddenOathbladeProjectile.cs index 09c3cc73b8..a2651d5e87 100644 --- a/Projectiles/Melee/ForbiddenOathbladeProjectile.cs +++ b/Projectiles/Melee/ForbiddenOathbladeProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/FossilSpike.cs b/Projectiles/Melee/FossilSpike.cs index 70dc57b4ec..79a514c741 100644 --- a/Projectiles/Melee/FossilSpike.cs +++ b/Projectiles/Melee/FossilSpike.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { diff --git a/Projectiles/Melee/GaelExplosion.cs b/Projectiles/Melee/GaelExplosion.cs index 631965c72e..ea76e5d557 100644 --- a/Projectiles/Melee/GaelExplosion.cs +++ b/Projectiles/Melee/GaelExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Melee; using CalamityMod.World; using Microsoft.Xna.Framework; using System; @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Melee Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.75f / 255f, (255 - projectile.alpha) * 0.75f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, projectile.position); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Melee/GaelSkull.cs b/Projectiles/Melee/GaelSkull.cs index a00e03f1d2..7cb8df1cf1 100644 --- a/Projectiles/Melee/GaelSkull.cs +++ b/Projectiles/Melee/GaelSkull.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Melee; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/GaelSkull2.cs b/Projectiles/Melee/GaelSkull2.cs index 35c69be239..141c6dcf2a 100644 --- a/Projectiles/Melee/GaelSkull2.cs +++ b/Projectiles/Melee/GaelSkull2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Melee; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/GalacticaComet.cs b/Projectiles/Melee/GalacticaComet.cs index fd38021efd..4afed16530 100644 --- a/Projectiles/Melee/GalacticaComet.cs +++ b/Projectiles/Melee/GalacticaComet.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Melee projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } } projectile.localAI[0] += 1f; @@ -117,7 +117,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 144; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Melee/Galaxia.cs b/Projectiles/Melee/Galaxia.cs index 6747d80ca4..effeaf16c3 100644 --- a/Projectiles/Melee/Galaxia.cs +++ b/Projectiles/Melee/Galaxia.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.CalPlayer; @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Melee projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } } projectile.alpha -= 15; diff --git a/Projectiles/Melee/Galaxia2.cs b/Projectiles/Melee/Galaxia2.cs index 5e7250853b..eebc2baa87 100644 --- a/Projectiles/Melee/Galaxia2.cs +++ b/Projectiles/Melee/Galaxia2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Potions; using CalamityMod.CalPlayer; @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Melee projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } } projectile.alpha -= 15; diff --git a/Projectiles/Melee/GalaxyBlast.cs b/Projectiles/Melee/GalaxyBlast.cs index 74d2505d5a..49366690f0 100644 --- a/Projectiles/Melee/GalaxyBlast.cs +++ b/Projectiles/Melee/GalaxyBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); bool flag = WorldGen.SolidTile(Framing.GetTileSafely((int)projectile.position.X / 16, (int)projectile.position.Y / 16)); for (int m = 0; m < 4; m++) { diff --git a/Projectiles/Melee/GalaxyBlastType2.cs b/Projectiles/Melee/GalaxyBlastType2.cs index 759517a022..38701c980b 100644 --- a/Projectiles/Melee/GalaxyBlastType2.cs +++ b/Projectiles/Melee/GalaxyBlastType2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); bool flag = WorldGen.SolidTile(Framing.GetTileSafely((int)projectile.position.X / 16, (int)projectile.position.Y / 16)); for (int m = 0; m < 4; m++) { diff --git a/Projectiles/Melee/GalaxyBlastType3.cs b/Projectiles/Melee/GalaxyBlastType3.cs index f5ea603b1a..1667738e44 100644 --- a/Projectiles/Melee/GalaxyBlastType3.cs +++ b/Projectiles/Melee/GalaxyBlastType3.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); bool flag = WorldGen.SolidTile(Framing.GetTileSafely((int)projectile.position.X / 16, (int)projectile.position.Y / 16)); for (int m = 0; m < 4; m++) { diff --git a/Projectiles/Melee/GalaxyStar.cs b/Projectiles/Melee/GalaxyStar.cs index 7219aa3358..4a120d526d 100644 --- a/Projectiles/Melee/GalaxyStar.cs +++ b/Projectiles/Melee/GalaxyStar.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Melee Lighting.AddLight(projectile.Center, 1f, 1f, 1f); if (!madeCoolMagicSound) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); //starfury sound + Main.PlaySound(SoundID.Item9, projectile.position); // Starfury sound madeCoolMagicSound = true; } projectile.ai[0]++; diff --git a/Projectiles/Melee/GalileosMoon.cs b/Projectiles/Melee/GalileosMoon.cs index c5c69d8832..189e53838d 100644 --- a/Projectiles/Melee/GalileosMoon.cs +++ b/Projectiles/Melee/GalileosMoon.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Melee projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } } projectile.rotation += (float) projectile.direction * 0.05f; diff --git a/Projectiles/Melee/GalileosPlanet.cs b/Projectiles/Melee/GalileosPlanet.cs index 96142e5aa2..07b18d4aa5 100644 --- a/Projectiles/Melee/GalileosPlanet.cs +++ b/Projectiles/Melee/GalileosPlanet.cs @@ -91,7 +91,7 @@ namespace CalamityMod.Projectiles.Melee dust.shader = GameShaders.Armor.GetSecondaryShader(47, Main.LocalPlayer); } - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43); + Main.PlaySound(SoundID.NPCDeath43, projectile.position); for (int i = 0; i < 155; i++) { diff --git a/Projectiles/Melee/GelWave.cs b/Projectiles/Melee/GelWave.cs index 7c9f243ded..c15068673d 100644 --- a/Projectiles/Melee/GelWave.cs +++ b/Projectiles/Melee/GelWave.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 92); + Main.PlaySound(SoundID.Item92, projectile.position); projectile.localAI[0] += 1f; } Lighting.AddLight(projectile.Center, 0f, 0.2f, 0.4f); diff --git a/Projectiles/Melee/GhastlySoulLarge.cs b/Projectiles/Melee/GhastlySoulLarge.cs index 0daadc3dfe..62bb73ddd1 100644 --- a/Projectiles/Melee/GhastlySoulLarge.cs +++ b/Projectiles/Melee/GhastlySoulLarge.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -113,7 +113,7 @@ namespace CalamityMod.Projectiles.Melee projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(4, (int)projectile.Center.X, (int)projectile.Center.Y, 39, 1f, 0f); + Main.PlaySound(SoundID.NPCDeath39, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Melee/GhastlySoulMedium.cs b/Projectiles/Melee/GhastlySoulMedium.cs index ea6c814a01..080d2d211b 100644 --- a/Projectiles/Melee/GhastlySoulMedium.cs +++ b/Projectiles/Melee/GhastlySoulMedium.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -113,7 +113,7 @@ namespace CalamityMod.Projectiles.Melee projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(4, (int)projectile.Center.X, (int)projectile.Center.Y, 39, 1f, 0f); + Main.PlaySound(SoundID.NPCDeath39, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Melee/GhastlySoulSmall.cs b/Projectiles/Melee/GhastlySoulSmall.cs index 8be8720284..9047b19995 100644 --- a/Projectiles/Melee/GhastlySoulSmall.cs +++ b/Projectiles/Melee/GhastlySoulSmall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -112,7 +112,7 @@ namespace CalamityMod.Projectiles.Melee projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(4, (int)projectile.Center.X, (int)projectile.Center.Y, 39, 1f, 0f); + Main.PlaySound(SoundID.NPCDeath39, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Melee/GreenBall.cs b/Projectiles/Melee/GreenBall.cs index 778c0175ee..7c17e68af0 100644 --- a/Projectiles/Melee/GreenBall.cs +++ b/Projectiles/Melee/GreenBall.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/GreenDust.cs b/Projectiles/Melee/GreenDust.cs index abf61dc874..ff2a046271 100644 --- a/Projectiles/Melee/GreenDust.cs +++ b/Projectiles/Melee/GreenDust.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/GreenWater.cs b/Projectiles/Melee/GreenWater.cs index aa89cb719b..800cffb86e 100644 --- a/Projectiles/Melee/GreenWater.cs +++ b/Projectiles/Melee/GreenWater.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Melee projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 0.785f; if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.Item21, projectile.position); projectile.localAI[0] += 1f; } int num458 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 5, 0f, 0f, 100, default, 1f); diff --git a/Projectiles/Melee/HellionSpike.cs b/Projectiles/Melee/HellionSpike.cs index 5c3548865e..d1fb25c20c 100644 --- a/Projectiles/Melee/HellionSpike.cs +++ b/Projectiles/Melee/HellionSpike.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/HolyColliderHolyFire.cs b/Projectiles/Melee/HolyColliderHolyFire.cs index 03859886af..73413c4317 100644 --- a/Projectiles/Melee/HolyColliderHolyFire.cs +++ b/Projectiles/Melee/HolyColliderHolyFire.cs @@ -1,7 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -71,7 +72,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 150; diff --git a/Projectiles/Melee/HyperBlade.cs b/Projectiles/Melee/HyperBlade.cs index 8c399b7a59..9fedb291f3 100644 --- a/Projectiles/Melee/HyperBlade.cs +++ b/Projectiles/Melee/HyperBlade.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/IceBombFriendly.cs b/Projectiles/Melee/IceBombFriendly.cs index d6dbbc2e85..47e0d51738 100644 --- a/Projectiles/Melee/IceBombFriendly.cs +++ b/Projectiles/Melee/IceBombFriendly.cs @@ -1,7 +1,9 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Melee { public class IceBombFriendly : ModProjectile @@ -35,7 +37,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); float spread = 90f * 0.0174f; double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2; double deltaAngle = spread / 8f; @@ -46,9 +48,9 @@ namespace CalamityMod.Projectiles.Melee for (i = 0; i < 2; 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), 349, 30, 2f, projectile.owner, 0f, 0f); + int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ProjectileID.FrostShard, 30, 2f, projectile.owner, 0f, 0f); Main.projectile[projectile1].Calamity().forceMelee = true; - int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), 349, 30, 2f, projectile.owner, 0f, 0f); + int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ProjectileID.FrostShard, 30, 2f, projectile.owner, 0f, 0f); Main.projectile[projectile2].Calamity().forceMelee = true; } } diff --git a/Projectiles/Melee/Iceberg.cs b/Projectiles/Melee/Iceberg.cs index 2d233f1b63..e2c3678cd8 100644 --- a/Projectiles/Melee/Iceberg.cs +++ b/Projectiles/Melee/Iceberg.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 67, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Melee/InsidiousHarpoon.cs b/Projectiles/Melee/InsidiousHarpoon.cs index 89429184dc..5dff9df1da 100644 --- a/Projectiles/Melee/InsidiousHarpoon.cs +++ b/Projectiles/Melee/InsidiousHarpoon.cs @@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Melee { num297 = 46; } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Melee/JudgementBlah.cs b/Projectiles/Melee/JudgementBlah.cs index 25da2f0ce4..ee36a00ec2 100644 --- a/Projectiles/Melee/JudgementBlah.cs +++ b/Projectiles/Melee/JudgementBlah.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/JudgementProj.cs b/Projectiles/Melee/JudgementProj.cs index bc70316b42..46b1316257 100644 --- a/Projectiles/Melee/JudgementProj.cs +++ b/Projectiles/Melee/JudgementProj.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -65,7 +66,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 122); + Main.PlaySound(SoundID.Item122, projectile.position); if (projectile.owner == Main.myPlayer) { 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 03ab9ade1d..f327343fc8 100644 --- a/Projectiles/Melee/LaserFountain.cs +++ b/Projectiles/Melee/LaserFountain.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Projectiles.Ranged; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/Leech.cs b/Projectiles/Melee/Leech.cs index 325f29c3f6..658067da00 100644 --- a/Projectiles/Melee/Leech.cs +++ b/Projectiles/Melee/Leech.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/LifeScythe.cs b/Projectiles/Melee/LifeScythe.cs index dcd932cbeb..e5d767f97e 100644 --- a/Projectiles/Melee/LifeScythe.cs +++ b/Projectiles/Melee/LifeScythe.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/Light.cs b/Projectiles/Melee/Light.cs index bcf3190735..d3945cd8de 100644 --- a/Projectiles/Melee/Light.cs +++ b/Projectiles/Melee/Light.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/LightBeam.cs b/Projectiles/Melee/LightBeam.cs index 5b0170ce8d..3a1ee284a3 100644 --- a/Projectiles/Melee/LightBeam.cs +++ b/Projectiles/Melee/LightBeam.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Melee/LightningThing.cs b/Projectiles/Melee/LightningThing.cs index 41dbe60439..c153fd1abc 100644 --- a/Projectiles/Melee/LightningThing.cs +++ b/Projectiles/Melee/LightningThing.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/LuxorsGiftMelee.cs b/Projectiles/Melee/LuxorsGiftMelee.cs index ca7e015c9e..b5777d5a32 100644 --- a/Projectiles/Melee/LuxorsGiftMelee.cs +++ b/Projectiles/Melee/LuxorsGiftMelee.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Melee/MarianaProjectile.cs b/Projectiles/Melee/MarianaProjectile.cs index c82ad8c5eb..999c67817c 100644 --- a/Projectiles/Melee/MarianaProjectile.cs +++ b/Projectiles/Melee/MarianaProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/MirrorBlast.cs b/Projectiles/Melee/MirrorBlast.cs index b296648602..ae3fb1ef53 100644 --- a/Projectiles/Melee/MirrorBlast.cs +++ b/Projectiles/Melee/MirrorBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/MourningSkull.cs b/Projectiles/Melee/MourningSkull.cs index cc30142415..c526fdfb56 100644 --- a/Projectiles/Melee/MourningSkull.cs +++ b/Projectiles/Melee/MourningSkull.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/MourningstarFlail.cs b/Projectiles/Melee/MourningstarFlail.cs index e885d8e161..b1bf83c5cd 100644 --- a/Projectiles/Melee/MourningstarFlail.cs +++ b/Projectiles/Melee/MourningstarFlail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.BaseProjectiles; +using CalamityMod.Projectiles.BaseProjectiles; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -29,6 +29,8 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Daybreak, 300); + // Note: This is being left as the solar explosion projectile for now, since the weapon is in a good balancing position right now. + // If it is to be rebalanced, consider replacing it with the FuckYou projectile (which does not mess with I-frames) if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer) { Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ProjectileID.SolarWhipSwordExplosion, projectile.damage, knockback, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); diff --git a/Projectiles/Melee/MurasamaProj.cs b/Projectiles/Melee/MurasamaProj.cs index 625d47d292..ccf85333a5 100644 --- a/Projectiles/Melee/MurasamaProj.cs +++ b/Projectiles/Melee/MurasamaProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Melee/Nebudust.cs b/Projectiles/Melee/Nebudust.cs index 8b8d5e9fcb..aa8f896117 100644 --- a/Projectiles/Melee/Nebudust.cs +++ b/Projectiles/Melee/Nebudust.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/NebulaShot.cs b/Projectiles/Melee/NebulaShot.cs index 540bbdaff2..f85d4b842d 100644 --- a/Projectiles/Melee/NebulaShot.cs +++ b/Projectiles/Melee/NebulaShot.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Melee if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12); + Main.PlaySound(SoundID.Item12, projectile.position); } if (projectile.alpha > 0) diff --git a/Projectiles/Melee/NebulashFlail.cs b/Projectiles/Melee/NebulashFlail.cs index 4e889530fc..7de6305a2a 100644 --- a/Projectiles/Melee/NebulashFlail.cs +++ b/Projectiles/Melee/NebulashFlail.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Melee/NeptuneOrb.cs b/Projectiles/Melee/NeptuneOrb.cs index fe47af6ba4..4ab697431c 100644 --- a/Projectiles/Melee/NeptuneOrb.cs +++ b/Projectiles/Melee/NeptuneOrb.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Melee/NightStabber.cs b/Projectiles/Melee/NightStabber.cs index 8c7d472c97..6b64b5ea74 100644 --- a/Projectiles/Melee/NightStabber.cs +++ b/Projectiles/Melee/NightStabber.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Oathblade.cs b/Projectiles/Melee/Oathblade.cs index 3f9cc6b921..ebbde7105f 100644 --- a/Projectiles/Melee/Oathblade.cs +++ b/Projectiles/Melee/Oathblade.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/OceanBeam.cs b/Projectiles/Melee/OceanBeam.cs index 8b159385ef..14eda93e97 100644 --- a/Projectiles/Melee/OceanBeam.cs +++ b/Projectiles/Melee/OceanBeam.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -74,14 +74,14 @@ namespace CalamityMod.Projectiles.Melee { projectile.velocity.Y = -oldVelocity.Y; } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } return false; } public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); for (int k = 0; k < 3; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 56, projectile.oldVelocity.X * 0.25f, projectile.oldVelocity.Y * 0.25f); diff --git a/Projectiles/Melee/OmegaBiomeOrb.cs b/Projectiles/Melee/OmegaBiomeOrb.cs index 534e678a97..ac87a3e9de 100644 --- a/Projectiles/Melee/OmegaBiomeOrb.cs +++ b/Projectiles/Melee/OmegaBiomeOrb.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Dusts; diff --git a/Projectiles/Melee/Orbacle.cs b/Projectiles/Melee/Orbacle.cs index c05c539cf0..957e59fb54 100644 --- a/Projectiles/Melee/Orbacle.cs +++ b/Projectiles/Melee/Orbacle.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { diff --git a/Projectiles/Melee/PlagueBeeDust.cs b/Projectiles/Melee/PlagueBeeDust.cs index fc06f63d25..78ebebf984 100644 --- a/Projectiles/Melee/PlagueBeeDust.cs +++ b/Projectiles/Melee/PlagueBeeDust.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/PlagueDust.cs b/Projectiles/Melee/PlagueDust.cs index 8e3659f2fd..3eb0abf276 100644 --- a/Projectiles/Melee/PlagueDust.cs +++ b/Projectiles/Melee/PlagueDust.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Melee/PlagueSeeker.cs b/Projectiles/Melee/PlagueSeeker.cs index b581d63861..dd089f1132 100644 --- a/Projectiles/Melee/PlagueSeeker.cs +++ b/Projectiles/Melee/PlagueSeeker.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Melee/PlasmaBall.cs b/Projectiles/Melee/PlasmaBall.cs index 7b032c54c8..daff84064f 100644 --- a/Projectiles/Melee/PlasmaBall.cs +++ b/Projectiles/Melee/PlasmaBall.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/ProfanedSwordProj.cs b/Projectiles/Melee/ProfanedSwordProj.cs index c1cf5da794..8fc208f640 100644 --- a/Projectiles/Melee/ProfanedSwordProj.cs +++ b/Projectiles/Melee/ProfanedSwordProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.NPCs; using Microsoft.Xna.Framework; diff --git a/Projectiles/Melee/PwnagehammerMeleeProj.cs b/Projectiles/Melee/PwnagehammerMeleeProj.cs index 544d5d437c..ae2534c1bd 100644 --- a/Projectiles/Melee/PwnagehammerMeleeProj.cs +++ b/Projectiles/Melee/PwnagehammerMeleeProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/RSSolarFlare.cs b/Projectiles/Melee/RSSolarFlare.cs index 413ac4be5e..3b5952b077 100644 --- a/Projectiles/Melee/RSSolarFlare.cs +++ b/Projectiles/Melee/RSSolarFlare.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -92,7 +93,7 @@ namespace CalamityMod.Projectiles.Melee 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); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Melee/RainBolt.cs b/Projectiles/Melee/RainBolt.cs index bd9b9f62ee..37bd1a1efa 100644 --- a/Projectiles/Melee/RainBolt.cs +++ b/Projectiles/Melee/RainBolt.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -27,7 +28,7 @@ namespace CalamityMod.Projectiles.Melee if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); projectile.localAI[0] += 1f; } @@ -40,7 +41,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 60); + Main.PlaySound(SoundID.Item60, projectile.position); for (int k = 0; k < 5; k++) { int rain = Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 66, 0f, 0f, 100, new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB)); diff --git a/Projectiles/Melee/RainbowBoom.cs b/Projectiles/Melee/RainbowBoom.cs index f40286108a..8c3a10cba8 100644 --- a/Projectiles/Melee/RainbowBoom.cs +++ b/Projectiles/Melee/RainbowBoom.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/RedBall.cs b/Projectiles/Melee/RedBall.cs index 230af335f0..a489dc1a20 100644 --- a/Projectiles/Melee/RedBall.cs +++ b/Projectiles/Melee/RedBall.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/RedDust.cs b/Projectiles/Melee/RedDust.cs index c864783f4f..4319ef7feb 100644 --- a/Projectiles/Melee/RedDust.cs +++ b/Projectiles/Melee/RedDust.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/RedtideWhirlpool.cs b/Projectiles/Melee/RedtideWhirlpool.cs index 5b7744a98c..6dfcb4d07f 100644 --- a/Projectiles/Melee/RedtideWhirlpool.cs +++ b/Projectiles/Melee/RedtideWhirlpool.cs @@ -1,7 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -71,7 +72,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.Center.X, (int)projectile.Center.Y, 19); + Main.PlaySound(SoundID.NPCDeath19, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Melee/Rox1.cs b/Projectiles/Melee/Rox1.cs index 9ecc5f24e1..34dcb0051a 100644 --- a/Projectiles/Melee/Rox1.cs +++ b/Projectiles/Melee/Rox1.cs @@ -1,7 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Melee { public class Rox1 : ModProjectile @@ -57,7 +59,7 @@ namespace CalamityMod.Projectiles.Melee { Dust.NewDust(projectile.position, projectile.width, projectile.height, 191, -projectile.velocity.X * 0.4f, -projectile.velocity.Y * 0.4f, 120, default, 1.2f); } - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Melee/RoxShockwave.cs b/Projectiles/Melee/RoxShockwave.cs index afb461e645..64f81b10fc 100644 --- a/Projectiles/Melee/RoxShockwave.cs +++ b/Projectiles/Melee/RoxShockwave.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { public class RoxShockwave : ModProjectile diff --git a/Projectiles/Melee/RoxSlam.cs b/Projectiles/Melee/RoxSlam.cs index 25084c5720..f2aeb687ed 100644 --- a/Projectiles/Melee/RoxSlam.cs +++ b/Projectiles/Melee/RoxSlam.cs @@ -1,6 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Melee { public class RoxSlam : ModProjectile @@ -40,7 +42,7 @@ namespace CalamityMod.Projectiles.Melee player.fallStart = (int)(player.position.Y / 16f); //Spawns the shockwave Projectile.NewProjectile(projectile.position.X + 25, projectile.position.Y + 25, 0f, 0f, ModContent.ProjectileType(), 300, 12, projectile.owner); - Main.PlaySound(2, projectile.position, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.Kill(); //Pretty things for (int dustexplode = 0; dustexplode < 360; dustexplode++) @@ -59,7 +61,7 @@ namespace CalamityMod.Projectiles.Melee player.velocity.Y = -14f; //reset player fall damage player.fallStart = (int)(player.position.Y / 16f); - Main.PlaySound(21, projectile.position); + Main.PlaySound(SoundID.Tink, projectile.position); projectile.Kill(); return false; diff --git a/Projectiles/Melee/SHIV.cs b/Projectiles/Melee/SHIV.cs index fa9cbbcf4c..1072dba0d2 100644 --- a/Projectiles/Melee/SHIV.cs +++ b/Projectiles/Melee/SHIV.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/SandBlade.cs b/Projectiles/Melee/SandBlade.cs index 5c699c795a..f4c092f2f8 100644 --- a/Projectiles/Melee/SandBlade.cs +++ b/Projectiles/Melee/SandBlade.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/SandFire.cs b/Projectiles/Melee/SandFire.cs index 3d65ef7d8c..0545579e95 100644 --- a/Projectiles/Melee/SandFire.cs +++ b/Projectiles/Melee/SandFire.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Melee/ShortBeam.cs b/Projectiles/Melee/ShortBeam.cs index 850bbce4ac..a97d2516d8 100644 --- a/Projectiles/Melee/ShortBeam.cs +++ b/Projectiles/Melee/ShortBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/ShortNightBeam.cs b/Projectiles/Melee/ShortNightBeam.cs index 695bfb1df7..8d71bb8209 100644 --- a/Projectiles/Melee/ShortNightBeam.cs +++ b/Projectiles/Melee/ShortNightBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/ShortTerraBeam.cs b/Projectiles/Melee/ShortTerraBeam.cs index 0398d26b29..846387995b 100644 --- a/Projectiles/Melee/ShortTerraBeam.cs +++ b/Projectiles/Melee/ShortTerraBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/SolsticeBeam.cs b/Projectiles/Melee/SolsticeBeam.cs index 7eeaa55737..60f27adf3c 100644 --- a/Projectiles/Melee/SolsticeBeam.cs +++ b/Projectiles/Melee/SolsticeBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Melee/SoulScythe.cs b/Projectiles/Melee/SoulScythe.cs index 938cc64f82..cce741c122 100644 --- a/Projectiles/Melee/SoulScythe.cs +++ b/Projectiles/Melee/SoulScythe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Melee target.AddBuff(ModContent.BuffType(), 300); if (target.life <= (target.lifeMax * 0.15f)) { - Main.PlaySound(2, (int)target.position.X, (int)target.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); if (projectile.owner == Main.myPlayer) { 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); diff --git a/Projectiles/Melee/Spark.cs b/Projectiles/Melee/Spark.cs index 9ceaeff60d..c186fc0840 100644 --- a/Projectiles/Melee/Spark.cs +++ b/Projectiles/Melee/Spark.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/SpatialSpear.cs b/Projectiles/Melee/SpatialSpear.cs index 03276455b0..446b567508 100644 --- a/Projectiles/Melee/SpatialSpear.cs +++ b/Projectiles/Melee/SpatialSpear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/SpatialSpear2.cs b/Projectiles/Melee/SpatialSpear2.cs index 25b9d3a735..78c53208ac 100644 --- a/Projectiles/Melee/SpatialSpear2.cs +++ b/Projectiles/Melee/SpatialSpear2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/SpatialSpear3.cs b/Projectiles/Melee/SpatialSpear3.cs index 8457ef3a9a..d13a171c56 100644 --- a/Projectiles/Melee/SpatialSpear3.cs +++ b/Projectiles/Melee/SpatialSpear3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/SpatialSpear4.cs b/Projectiles/Melee/SpatialSpear4.cs index a87beae174..e165ff06c2 100644 --- a/Projectiles/Melee/SpatialSpear4.cs +++ b/Projectiles/Melee/SpatialSpear4.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/Spears/AmidiasTridentProj.cs b/Projectiles/Melee/Spears/AmidiasTridentProj.cs index a6407aeeaf..466458cc4d 100644 --- a/Projectiles/Melee/Spears/AmidiasTridentProj.cs +++ b/Projectiles/Melee/Spears/AmidiasTridentProj.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ModLoader; using CalamityMod.Projectiles.BaseProjectiles; diff --git a/Projectiles/Melee/Spears/AstralPikeProj.cs b/Projectiles/Melee/Spears/AstralPikeProj.cs index f86de542cf..e320763c27 100644 --- a/Projectiles/Melee/Spears/AstralPikeProj.cs +++ b/Projectiles/Melee/Spears/AstralPikeProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; diff --git a/Projectiles/Melee/Spears/BansheeHookProj.cs b/Projectiles/Melee/Spears/BansheeHookProj.cs index 18cc713f11..2f843b5afd 100644 --- a/Projectiles/Melee/Spears/BansheeHookProj.cs +++ b/Projectiles/Melee/Spears/BansheeHookProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/Spears/BrimlanceProj.cs b/Projectiles/Melee/Spears/BrimlanceProj.cs index a262aa4843..dffb04c169 100644 --- a/Projectiles/Melee/Spears/BrimlanceProj.cs +++ b/Projectiles/Melee/Spears/BrimlanceProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Spears/DiseasedPikeSpear.cs b/Projectiles/Melee/Spears/DiseasedPikeSpear.cs index af0042f9e7..e0aab9bd6c 100644 --- a/Projectiles/Melee/Spears/DiseasedPikeSpear.cs +++ b/Projectiles/Melee/Spears/DiseasedPikeSpear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Spears/EarthenPikeSpear.cs b/Projectiles/Melee/Spears/EarthenPikeSpear.cs index bf04bce34b..a7cd0ea890 100644 --- a/Projectiles/Melee/Spears/EarthenPikeSpear.cs +++ b/Projectiles/Melee/Spears/EarthenPikeSpear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Ranged; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs b/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs index 0c197c8277..0b923b49cb 100644 --- a/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs +++ b/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Melee/Spears/FulgurationHalberdProj.cs b/Projectiles/Melee/Spears/FulgurationHalberdProj.cs index 9a0f909006..6d4e771956 100644 --- a/Projectiles/Melee/Spears/FulgurationHalberdProj.cs +++ b/Projectiles/Melee/Spears/FulgurationHalberdProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Terraria; using Terraria.ModLoader; using CalamityMod.Projectiles.BaseProjectiles; diff --git a/Projectiles/Melee/Spears/GildedProboscisProj.cs b/Projectiles/Melee/Spears/GildedProboscisProj.cs index 30895a8a21..e0c17d0443 100644 --- a/Projectiles/Melee/Spears/GildedProboscisProj.cs +++ b/Projectiles/Melee/Spears/GildedProboscisProj.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using CalamityMod.Projectiles.BaseProjectiles; diff --git a/Projectiles/Melee/Spears/GoldplumeSpearProjectile.cs b/Projectiles/Melee/Spears/GoldplumeSpearProjectile.cs index 894f005510..1774c09694 100644 --- a/Projectiles/Melee/Spears/GoldplumeSpearProjectile.cs +++ b/Projectiles/Melee/Spears/GoldplumeSpearProjectile.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; using CalamityMod.Projectiles.BaseProjectiles; namespace CalamityMod.Projectiles.Melee.Spears diff --git a/Projectiles/Melee/Spears/HellionFlowerSpearProjectile.cs b/Projectiles/Melee/Spears/HellionFlowerSpearProjectile.cs index beaa11dc61..e2852b4045 100644 --- a/Projectiles/Melee/Spears/HellionFlowerSpearProjectile.cs +++ b/Projectiles/Melee/Spears/HellionFlowerSpearProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/Spears/MarniteSpearProjectile.cs b/Projectiles/Melee/Spears/MarniteSpearProjectile.cs index 3c81e049fd..4f8192da22 100644 --- a/Projectiles/Melee/Spears/MarniteSpearProjectile.cs +++ b/Projectiles/Melee/Spears/MarniteSpearProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.BaseProjectiles; +using CalamityMod.Projectiles.BaseProjectiles; namespace CalamityMod.Projectiles.Melee.Spears { public class MarniteSpearProjectile : BaseSpearProjectile diff --git a/Projectiles/Melee/Spears/NadirSpear.cs b/Projectiles/Melee/Spears/NadirSpear.cs index 7b1063d648..41609031a9 100644 --- a/Projectiles/Melee/Spears/NadirSpear.cs +++ b/Projectiles/Melee/Spears/NadirSpear.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Melee/Spears/SausageMakerSpear.cs b/Projectiles/Melee/Spears/SausageMakerSpear.cs index 1259aeb925..c70e961628 100644 --- a/Projectiles/Melee/Spears/SausageMakerSpear.cs +++ b/Projectiles/Melee/Spears/SausageMakerSpear.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; using CalamityMod.Projectiles.BaseProjectiles; namespace CalamityMod.Projectiles.Melee.Spears diff --git a/Projectiles/Melee/Spears/SpatialLanceProjectile.cs b/Projectiles/Melee/Spears/SpatialLanceProjectile.cs index ac9ea4cbc6..bc41e8ad53 100644 --- a/Projectiles/Melee/Spears/SpatialLanceProjectile.cs +++ b/Projectiles/Melee/Spears/SpatialLanceProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Melee/Spears/StarnightLanceProjectile.cs b/Projectiles/Melee/Spears/StarnightLanceProjectile.cs index 0cbfda6383..286651e0ac 100644 --- a/Projectiles/Melee/Spears/StarnightLanceProjectile.cs +++ b/Projectiles/Melee/Spears/StarnightLanceProjectile.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Spears/StreamGougeProj.cs b/Projectiles/Melee/Spears/StreamGougeProj.cs index 4b8cc0e647..bc60d48bd2 100644 --- a/Projectiles/Melee/Spears/StreamGougeProj.cs +++ b/Projectiles/Melee/Spears/StreamGougeProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Melee/Spears/TerraLanceProjectile.cs b/Projectiles/Melee/Spears/TerraLanceProjectile.cs index 691c0606e5..19d02dd618 100644 --- a/Projectiles/Melee/Spears/TerraLanceProjectile.cs +++ b/Projectiles/Melee/Spears/TerraLanceProjectile.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ModLoader; using CalamityMod.Projectiles.BaseProjectiles; diff --git a/Projectiles/Melee/Spears/UrchinSpearProjectile.cs b/Projectiles/Melee/Spears/UrchinSpearProjectile.cs index 795804be1f..da72e359c2 100644 --- a/Projectiles/Melee/Spears/UrchinSpearProjectile.cs +++ b/Projectiles/Melee/Spears/UrchinSpearProjectile.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Spears/YateveoBloomSpear.cs b/Projectiles/Melee/Spears/YateveoBloomSpear.cs index 82e343da55..dbf8bbb25f 100644 --- a/Projectiles/Melee/Spears/YateveoBloomSpear.cs +++ b/Projectiles/Melee/Spears/YateveoBloomSpear.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/StarnightBeam.cs b/Projectiles/Melee/StarnightBeam.cs index 143a35e514..eb4b348fd8 100644 --- a/Projectiles/Melee/StarnightBeam.cs +++ b/Projectiles/Melee/StarnightBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/StormBeam.cs b/Projectiles/Melee/StormBeam.cs index 856f83b350..e889ab6c1b 100644 --- a/Projectiles/Melee/StormBeam.cs +++ b/Projectiles/Melee/StormBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/StormMark.cs b/Projectiles/Melee/StormMark.cs index 4d776911d1..e28b352a50 100644 --- a/Projectiles/Melee/StormMark.cs +++ b/Projectiles/Melee/StormMark.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -32,7 +33,7 @@ namespace CalamityMod.Projectiles.Melee if (projectile.soundDelay == 0) { projectile.soundDelay = -1; - Main.PlaySound(2, projectile.Center, 60); + Main.PlaySound(SoundID.Item60, projectile.Center); } if (projectile.localAI[1] < 30f) { diff --git a/Projectiles/Melee/StormRulerProj.cs b/Projectiles/Melee/StormRulerProj.cs index 84a8ea332e..10a9935b4e 100644 --- a/Projectiles/Melee/StormRulerProj.cs +++ b/Projectiles/Melee/StormRulerProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/SulphurousGrabberBubble.cs b/Projectiles/Melee/SulphurousGrabberBubble.cs index 87eebe0957..5d21701135 100644 --- a/Projectiles/Melee/SulphurousGrabberBubble.cs +++ b/Projectiles/Melee/SulphurousGrabberBubble.cs @@ -1,6 +1,7 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -33,7 +34,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 54); + Main.PlaySound(SoundID.Item54, projectile.position); int num190 = Main.rand.Next(5, 9); for (int num191 = 0; num191 < num190; num191++) { diff --git a/Projectiles/Melee/SulphurousGrabberBubble2.cs b/Projectiles/Melee/SulphurousGrabberBubble2.cs index 61c653fa3f..65de3db2d5 100644 --- a/Projectiles/Melee/SulphurousGrabberBubble2.cs +++ b/Projectiles/Melee/SulphurousGrabberBubble2.cs @@ -1,6 +1,7 @@ using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -34,7 +35,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 54); + Main.PlaySound(SoundID.Item54, projectile.position); int num190 = Main.rand.Next(5, 9); for (int num191 = 0; num191 < num190; num191++) { diff --git a/Projectiles/Melee/SunlightBlade.cs b/Projectiles/Melee/SunlightBlade.cs index afccb5de57..b280fdbca4 100644 --- a/Projectiles/Melee/SunlightBlade.cs +++ b/Projectiles/Melee/SunlightBlade.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Melee/TemporalFloeNumberTwo.cs b/Projectiles/Melee/TemporalFloeNumberTwo.cs index 08a0926a8c..a751649abd 100644 --- a/Projectiles/Melee/TemporalFloeNumberTwo.cs +++ b/Projectiles/Melee/TemporalFloeNumberTwo.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Melee/TemporalFloeSwordProjectile.cs b/Projectiles/Melee/TemporalFloeSwordProjectile.cs index 7c2997f2e3..9f1e2fe7ee 100644 --- a/Projectiles/Melee/TemporalFloeSwordProjectile.cs +++ b/Projectiles/Melee/TemporalFloeSwordProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Melee/TerraBall.cs b/Projectiles/Melee/TerraBall.cs index cef1d69b3e..32b52fbebd 100644 --- a/Projectiles/Melee/TerraBall.cs +++ b/Projectiles/Melee/TerraBall.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Melee projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } } diff --git a/Projectiles/Melee/TerraEdgeBeam.cs b/Projectiles/Melee/TerraEdgeBeam.cs index a9ec3e0eaa..f1419d3d33 100644 --- a/Projectiles/Melee/TerraEdgeBeam.cs +++ b/Projectiles/Melee/TerraEdgeBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/TerraSpear.cs b/Projectiles/Melee/TerraSpear.cs index f42dc90dc7..db9072058e 100644 --- a/Projectiles/Melee/TerraSpear.cs +++ b/Projectiles/Melee/TerraSpear.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/TerracottaExplosion.cs b/Projectiles/Melee/TerracottaExplosion.cs index 59323407f4..9954828fed 100644 --- a/Projectiles/Melee/TerracottaExplosion.cs +++ b/Projectiles/Melee/TerracottaExplosion.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/TerratomereProjectile.cs b/Projectiles/Melee/TerratomereProjectile.cs index 04794c46f3..d3557d74bb 100644 --- a/Projectiles/Melee/TerratomereProjectile.cs +++ b/Projectiles/Melee/TerratomereProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Melee/TerrorBeam.cs b/Projectiles/Melee/TerrorBeam.cs index ddc64a4e38..28e2726d20 100644 --- a/Projectiles/Melee/TerrorBeam.cs +++ b/Projectiles/Melee/TerrorBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -70,7 +70,7 @@ namespace CalamityMod.Projectiles.Melee { if (projectile.localAI[1] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 60); + Main.PlaySound(SoundID.Item60, projectile.position); projectile.localAI[1] += 1f; } projectile.alpha -= 40; @@ -97,7 +97,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 60); + Main.PlaySound(SoundID.Item60, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 400; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Melee/TerrorBoom.cs b/Projectiles/Melee/TerrorBoom.cs index dd0286add9..7a8968d54f 100644 --- a/Projectiles/Melee/TerrorBoom.cs +++ b/Projectiles/Melee/TerrorBoom.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -26,7 +27,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 60); + Main.PlaySound(SoundID.Item60, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 400; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Melee/TinyCrystal.cs b/Projectiles/Melee/TinyCrystal.cs index b20c145260..5cbf4ea7de 100644 --- a/Projectiles/Melee/TinyCrystal.cs +++ b/Projectiles/Melee/TinyCrystal.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -56,9 +56,9 @@ namespace CalamityMod.Projectiles.Melee for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, dustType, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); - } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); - } + } + Main.PlaySound(SoundID.Item10, projectile.position); + } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { diff --git a/Projectiles/Melee/TinyFlare.cs b/Projectiles/Melee/TinyFlare.cs index 4ea5e7290d..d7d9ef60f9 100644 --- a/Projectiles/Melee/TinyFlare.cs +++ b/Projectiles/Melee/TinyFlare.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/Tornado.cs b/Projectiles/Melee/Tornado.cs index b14db38311..929e8bd530 100644 --- a/Projectiles/Melee/Tornado.cs +++ b/Projectiles/Melee/Tornado.cs @@ -1,9 +1,10 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -33,7 +34,7 @@ namespace CalamityMod.Projectiles.Melee if (projectile.soundDelay == 0) { projectile.soundDelay = -1; - Main.PlaySound(2, projectile.Center, 122); + Main.PlaySound(SoundID.Item122, projectile.position); } projectile.ai[0] += 1f; if (projectile.ai[0] >= num1125) diff --git a/Projectiles/Melee/TrueBiomeOrb.cs b/Projectiles/Melee/TrueBiomeOrb.cs index d4742b5a0a..f6ba37865d 100644 --- a/Projectiles/Melee/TrueBiomeOrb.cs +++ b/Projectiles/Melee/TrueBiomeOrb.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Dusts; diff --git a/Projectiles/Melee/TrueCausticEdgeProjectile.cs b/Projectiles/Melee/TrueCausticEdgeProjectile.cs index 83236c5fcc..2267713830 100644 --- a/Projectiles/Melee/TrueCausticEdgeProjectile.cs +++ b/Projectiles/Melee/TrueCausticEdgeProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -66,7 +66,7 @@ namespace CalamityMod.Projectiles.Melee { projectile.velocity.Y = -oldVelocity.Y; } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } return false; } diff --git a/Projectiles/Melee/TumbleweedFlail.cs b/Projectiles/Melee/TumbleweedFlail.cs index 8d412f1c10..82d406939d 100644 --- a/Projectiles/Melee/TumbleweedFlail.cs +++ b/Projectiles/Melee/TumbleweedFlail.cs @@ -1,7 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -88,7 +89,7 @@ namespace CalamityMod.Projectiles.Melee Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); projectile.ai[0] = 1f; projectile.netUpdate = true; - Main.PlaySound(3, (int)projectile.position.X, (int)projectile.position.Y, 11); + Main.PlaySound(SoundID.NPCHit11, projectile.position); return false; } @@ -133,7 +134,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 15); + Main.PlaySound(SoundID.NPCDeath15, projectile.position); for (int num621 = 0; num621 < 20; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 32, 0f, 0f, 100, default, 1.2f); diff --git a/Projectiles/Melee/TumbleweedRolling.cs b/Projectiles/Melee/TumbleweedRolling.cs index 4881eef8ed..feb898ae16 100644 --- a/Projectiles/Melee/TumbleweedRolling.cs +++ b/Projectiles/Melee/TumbleweedRolling.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -27,7 +28,7 @@ namespace CalamityMod.Projectiles.Melee (projectile.velocity.Y != projectile.velocity.Y && (projectile.velocity.Y < -3f || projectile.velocity.Y > 3f))) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(3, (int)projectile.position.X, (int)projectile.position.Y, 11); + Main.PlaySound(SoundID.NPCHit11, projectile.position); } if (projectile.velocity.X != projectile.velocity.X) { @@ -47,7 +48,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 15); + Main.PlaySound(SoundID.NPCDeath15, projectile.position); for (int num621 = 0; num621 < 20; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 32, 0f, 0f, 100, default, 1.2f); diff --git a/Projectiles/Melee/TyphonsGreedBubble.cs b/Projectiles/Melee/TyphonsGreedBubble.cs index 773ab62d18..77220055cf 100644 --- a/Projectiles/Melee/TyphonsGreedBubble.cs +++ b/Projectiles/Melee/TyphonsGreedBubble.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -94,7 +95,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21, 1f, 0f); + Main.PlaySound(SoundID.Item21, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 64; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Melee/TyphonsGreedStaff.cs b/Projectiles/Melee/TyphonsGreedStaff.cs index 651ab03052..7c659b2b56 100644 --- a/Projectiles/Melee/TyphonsGreedStaff.cs +++ b/Projectiles/Melee/TyphonsGreedStaff.cs @@ -1,9 +1,11 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.Enums; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Melee { public class TyphonsGreedStaff : ModProjectile @@ -182,13 +184,13 @@ namespace CalamityMod.Projectiles.Melee for (int i = 0; i < 200; i++) { if (Main.npc[i].active && !Main.npc[i].dontTakeDamage && - ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || + ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == NPCID.Guide && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == NPCID.Clothier && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || (projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1)) { if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i])) { bool flag3; - if (Main.npc[i].type == 414) + if (Main.npc[i].type == NPCID.SolarCrawltipedeTail) { Rectangle rect = Main.npc[i].getRect(); int num5 = 8; diff --git a/Projectiles/Melee/UltimusCleaverDust.cs b/Projectiles/Melee/UltimusCleaverDust.cs index 06092fe5e3..e6ba2bb56c 100644 --- a/Projectiles/Melee/UltimusCleaverDust.cs +++ b/Projectiles/Melee/UltimusCleaverDust.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/UrchinBall.cs b/Projectiles/Melee/UrchinBall.cs index 7f48fa8765..87aa7082b2 100644 --- a/Projectiles/Melee/UrchinBall.cs +++ b/Projectiles/Melee/UrchinBall.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Melee Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); projectile.ai[0] = 1f; projectile.netUpdate = true; - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, projectile.position); return false; } diff --git a/Projectiles/Melee/UrchinBallSpike.cs b/Projectiles/Melee/UrchinBallSpike.cs index 2b22360335..47e23b7897 100644 --- a/Projectiles/Melee/UrchinBallSpike.cs +++ b/Projectiles/Melee/UrchinBallSpike.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 13; diff --git a/Projectiles/Melee/UrchinSpikeFugu.cs b/Projectiles/Melee/UrchinSpikeFugu.cs index 8bf1617884..cfab70f370 100644 --- a/Projectiles/Melee/UrchinSpikeFugu.cs +++ b/Projectiles/Melee/UrchinSpikeFugu.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/VoidEssence.cs b/Projectiles/Melee/VoidEssence.cs index aedeb96684..419900e99b 100644 --- a/Projectiles/Melee/VoidEssence.cs +++ b/Projectiles/Melee/VoidEssence.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Melee/VoidTentacle.cs b/Projectiles/Melee/VoidTentacle.cs index 8cd574188d..d11f58d592 100644 --- a/Projectiles/Melee/VoidTentacle.cs +++ b/Projectiles/Melee/VoidTentacle.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Waterfall.cs b/Projectiles/Melee/Waterfall.cs index e7f91edc7b..3d55cf78b7 100644 --- a/Projectiles/Melee/Waterfall.cs +++ b/Projectiles/Melee/Waterfall.cs @@ -83,14 +83,14 @@ namespace CalamityMod.Projectiles.Melee { projectile.velocity.Y = -oldVelocity.Y; } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } return false; } public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 3; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 56, projectile.oldVelocity.X * 0.25f, projectile.oldVelocity.Y * 0.25f); diff --git a/Projectiles/Melee/WhiteBoltAura.cs b/Projectiles/Melee/WhiteBoltAura.cs index 21141bf708..632f3471be 100644 --- a/Projectiles/Melee/WhiteBoltAura.cs +++ b/Projectiles/Melee/WhiteBoltAura.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { diff --git a/Projectiles/Melee/WhiteBoltAuraBlah.cs b/Projectiles/Melee/WhiteBoltAuraBlah.cs index 2c03411a28..5f0d78f330 100644 --- a/Projectiles/Melee/WhiteBoltAuraBlah.cs +++ b/Projectiles/Melee/WhiteBoltAuraBlah.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { diff --git a/Projectiles/Melee/WhiteOrb.cs b/Projectiles/Melee/WhiteOrb.cs index 580816e780..c9daf49a02 100644 --- a/Projectiles/Melee/WhiteOrb.cs +++ b/Projectiles/Melee/WhiteOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/WhiteOrbBlah.cs b/Projectiles/Melee/WhiteOrbBlah.cs index f6d263ea82..6c0f95334a 100644 --- a/Projectiles/Melee/WhiteOrbBlah.cs +++ b/Projectiles/Melee/WhiteOrbBlah.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee diff --git a/Projectiles/Melee/Whiterain.cs b/Projectiles/Melee/Whiterain.cs index f9e310e4cd..74b28c3f34 100644 --- a/Projectiles/Melee/Whiterain.cs +++ b/Projectiles/Melee/Whiterain.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -29,7 +30,7 @@ namespace CalamityMod.Projectiles.Melee if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 125); + Main.PlaySound(SoundID.Item125, projectile.position); } Lighting.AddLight(projectile.Center, 0.2f, 0.2f, 0.2f); diff --git a/Projectiles/Melee/WhiterainBlah.cs b/Projectiles/Melee/WhiterainBlah.cs index 5fbf9969aa..2f792b1cdc 100644 --- a/Projectiles/Melee/WhiterainBlah.cs +++ b/Projectiles/Melee/WhiterainBlah.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { @@ -29,7 +30,7 @@ namespace CalamityMod.Projectiles.Melee if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 125); + Main.PlaySound(SoundID.Item125, projectile.position); } Lighting.AddLight((int)projectile.Center.X / 16, (int)projectile.Center.Y / 16, (float)Main.DiscoR / 200f, (float)Main.DiscoG / 200f, (float)Main.DiscoB / 200f); diff --git a/Projectiles/Melee/YateveoBloomProj.cs b/Projectiles/Melee/YateveoBloomProj.cs index 9ff164c273..baddd106e5 100644 --- a/Projectiles/Melee/YateveoBloomProj.cs +++ b/Projectiles/Melee/YateveoBloomProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -176,7 +176,7 @@ namespace CalamityMod.Projectiles.Melee { projectile.netUpdate = true; Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, projectile.position); } return false; diff --git a/Projectiles/Melee/Yoyos/AirSpinnerYoyo.cs b/Projectiles/Melee/Yoyos/AirSpinnerYoyo.cs index 62b05c917d..58123af6d2 100644 --- a/Projectiles/Melee/Yoyos/AirSpinnerYoyo.cs +++ b/Projectiles/Melee/Yoyos/AirSpinnerYoyo.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/Yoyos/AortaYoyo.cs b/Projectiles/Melee/Yoyos/AortaYoyo.cs index 20533a4e77..3a140242f2 100644 --- a/Projectiles/Melee/Yoyos/AortaYoyo.cs +++ b/Projectiles/Melee/Yoyos/AortaYoyo.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Yoyos/AzathothYoyo.cs b/Projectiles/Melee/Yoyos/AzathothYoyo.cs index 3c9bebbab6..10e9ba4b64 100644 --- a/Projectiles/Melee/Yoyos/AzathothYoyo.cs +++ b/Projectiles/Melee/Yoyos/AzathothYoyo.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/Yoyos/ChaotrixYoyo.cs b/Projectiles/Melee/Yoyos/ChaotrixYoyo.cs index 4a68d994ff..cdf33d9689 100644 --- a/Projectiles/Melee/Yoyos/ChaotrixYoyo.cs +++ b/Projectiles/Melee/Yoyos/ChaotrixYoyo.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Melee/Yoyos/CnidarianYoyo.cs b/Projectiles/Melee/Yoyos/CnidarianYoyo.cs index 9417f5e7fe..38b818776e 100644 --- a/Projectiles/Melee/Yoyos/CnidarianYoyo.cs +++ b/Projectiles/Melee/Yoyos/CnidarianYoyo.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Melee/Yoyos/GodsGambitYoyo.cs b/Projectiles/Melee/Yoyos/GodsGambitYoyo.cs index b3c8563486..69b1fa0796 100644 --- a/Projectiles/Melee/Yoyos/GodsGambitYoyo.cs +++ b/Projectiles/Melee/Yoyos/GodsGambitYoyo.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/Yoyos/LaceratorYoyo.cs b/Projectiles/Melee/Yoyos/LaceratorYoyo.cs index 60e5346fbf..d227d53804 100644 --- a/Projectiles/Melee/Yoyos/LaceratorYoyo.cs +++ b/Projectiles/Melee/Yoyos/LaceratorYoyo.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/Yoyos/ObliteratorYoyo.cs b/Projectiles/Melee/Yoyos/ObliteratorYoyo.cs index d163446b5d..e0093dd494 100644 --- a/Projectiles/Melee/Yoyos/ObliteratorYoyo.cs +++ b/Projectiles/Melee/Yoyos/ObliteratorYoyo.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.Collections.Generic; diff --git a/Projectiles/Melee/Yoyos/OblivionYoyo.cs b/Projectiles/Melee/Yoyos/OblivionYoyo.cs index f71c87c0e4..d754e81568 100644 --- a/Projectiles/Melee/Yoyos/OblivionYoyo.cs +++ b/Projectiles/Melee/Yoyos/OblivionYoyo.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Melee/Yoyos/OracleYoyo.cs b/Projectiles/Melee/Yoyos/OracleYoyo.cs index 718b32acdc..ebdf604fd0 100644 --- a/Projectiles/Melee/Yoyos/OracleYoyo.cs +++ b/Projectiles/Melee/Yoyos/OracleYoyo.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Melee; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/Yoyos/PandemicYoyo.cs b/Projectiles/Melee/Yoyos/PandemicYoyo.cs index 6348e17686..29ac9a456a 100644 --- a/Projectiles/Melee/Yoyos/PandemicYoyo.cs +++ b/Projectiles/Melee/Yoyos/PandemicYoyo.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Melee/Yoyos/QuagmireYoyo.cs b/Projectiles/Melee/Yoyos/QuagmireYoyo.cs index 05046bcaef..7590b46ef2 100644 --- a/Projectiles/Melee/Yoyos/QuagmireYoyo.cs +++ b/Projectiles/Melee/Yoyos/QuagmireYoyo.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Melee/Yoyos/RiptideYoyo.cs b/Projectiles/Melee/Yoyos/RiptideYoyo.cs index 9ded4cc8c9..f7bd3cb52a 100644 --- a/Projectiles/Melee/Yoyos/RiptideYoyo.cs +++ b/Projectiles/Melee/Yoyos/RiptideYoyo.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Melee/Yoyos/ShimmersparkYoyo.cs b/Projectiles/Melee/Yoyos/ShimmersparkYoyo.cs index ec58297af6..0a9ad61a2e 100644 --- a/Projectiles/Melee/Yoyos/ShimmersparkYoyo.cs +++ b/Projectiles/Melee/Yoyos/ShimmersparkYoyo.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs b/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs index 7061349c54..cf20c22e6d 100644 --- a/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs +++ b/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Melee/Yoyos/VerdantYoyo.cs b/Projectiles/Melee/Yoyos/VerdantYoyo.cs index 758397c7c1..19410f0d4a 100644 --- a/Projectiles/Melee/Yoyos/VerdantYoyo.cs +++ b/Projectiles/Melee/Yoyos/VerdantYoyo.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Melee/Yoyos/YinYoyo.cs b/Projectiles/Melee/Yoyos/YinYoyo.cs index 2d3d490853..e5c96f0f1e 100644 --- a/Projectiles/Melee/Yoyos/YinYoyo.cs +++ b/Projectiles/Melee/Yoyos/YinYoyo.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Pets/Akato.cs b/Projectiles/Pets/Akato.cs index b227a33df5..66f2ce174b 100644 --- a/Projectiles/Pets/Akato.cs +++ b/Projectiles/Pets/Akato.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Pets/Bear.cs b/Projectiles/Pets/Bear.cs index bb3c4aaecd..314c5c0be7 100644 --- a/Projectiles/Pets/Bear.cs +++ b/Projectiles/Pets/Bear.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Pets/BrimlingPet.cs b/Projectiles/Pets/BrimlingPet.cs index 5e5be441ea..dac6e4c26f 100644 --- a/Projectiles/Pets/BrimlingPet.cs +++ b/Projectiles/Pets/BrimlingPet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Pets/ChibiiDoggo.cs b/Projectiles/Pets/ChibiiDoggo.cs index 809744d2a1..56c2768446 100644 --- a/Projectiles/Pets/ChibiiDoggo.cs +++ b/Projectiles/Pets/ChibiiDoggo.cs @@ -123,7 +123,7 @@ namespace CalamityMod.Projectiles.Pets int type = mod.NPCType(doggoType); int n = NPC.NewNPC((int)projectile.position.X, (int)projectile.position.Y, type); - NetMessage.SendData(23, -1, -1, (NetworkText)null, n, 0.0f, 0.0f, 0.0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncNPC, -1, -1, (NetworkText)null, n, 0.0f, 0.0f, 0.0f, 0, 0, 0); Main.npc[n].netUpdate = true; } @@ -223,7 +223,7 @@ namespace CalamityMod.Projectiles.Pets } else { - Main.PlaySound(15, (int)player.position.X, (int)player.position.Y, 2, 2f); //REEEEEEE + Main.PlaySound(SoundID.Roar, (int)player.position.X, (int)player.position.Y, 2, 2f); //REEEEEEE } notlocalai1 = -600f; } diff --git a/Projectiles/Pets/DannyDevitoPet.cs b/Projectiles/Pets/DannyDevitoPet.cs index 9e786e3b7a..7c62901f25 100644 --- a/Projectiles/Pets/DannyDevitoPet.cs +++ b/Projectiles/Pets/DannyDevitoPet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Pets/FoxPet.cs b/Projectiles/Pets/FoxPet.cs index 9d33d0c24c..f42289fef6 100644 --- a/Projectiles/Pets/FoxPet.cs +++ b/Projectiles/Pets/FoxPet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Pets/KendraPet.cs b/Projectiles/Pets/KendraPet.cs index e3778864ae..0fbba4d37a 100644 --- a/Projectiles/Pets/KendraPet.cs +++ b/Projectiles/Pets/KendraPet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Pets/LadShark.cs b/Projectiles/Pets/LadShark.cs index 882b628a22..ca2258bcfd 100644 --- a/Projectiles/Pets/LadShark.cs +++ b/Projectiles/Pets/LadShark.cs @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Pets Main.gore[heart].velocity *= 5f; } - Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 15); //mouse squeak sound + Main.PlaySound(SoundID.Zombie, (int)projectile.position.X, (int)projectile.position.Y, 15); //mouse squeak sound float radius = 240f; // 15 blocks for (int j = 0; j < Main.maxNPCs; j++) diff --git a/Projectiles/Pets/LeviPet.cs b/Projectiles/Pets/LeviPet.cs index 8f9997870d..988484940b 100644 --- a/Projectiles/Pets/LeviPet.cs +++ b/Projectiles/Pets/LeviPet.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Pets/PerforaMini.cs b/Projectiles/Pets/PerforaMini.cs index 4ad38762ff..0299c2c333 100644 --- a/Projectiles/Pets/PerforaMini.cs +++ b/Projectiles/Pets/PerforaMini.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Pets; +using CalamityMod.Buffs.Pets; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Pets/SirenYoung.cs b/Projectiles/Pets/SirenYoung.cs index 55cb720496..0e59557428 100644 --- a/Projectiles/Pets/SirenYoung.cs +++ b/Projectiles/Pets/SirenYoung.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Pets/Sparks.cs b/Projectiles/Pets/Sparks.cs index 452b26e55e..de3b7c231d 100644 --- a/Projectiles/Pets/Sparks.cs +++ b/Projectiles/Pets/Sparks.cs @@ -45,15 +45,15 @@ namespace CalamityMod.Projectiles.Pets if (new Rectangle((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height).Intersects(new Rectangle((int)item.position.X, (int)item.position.Y, item.width, item.height))) { - if (projectile.owner == Main.myPlayer && (player.ActiveItem().type != 0 || player.itemAnimation <= 0)) + if (projectile.owner == Main.myPlayer && (player.ActiveItem().type != ItemID.None || player.itemAnimation <= 0)) { // TODO, fix this maybe? if (!ItemLoader.OnPickup(item, player)) { Main.item[itemIndex] = new Item(); - if (Main.netMode == 1) + if (Main.netMode == NetmodeID.MultiplayerClient) { - NetMessage.SendData(21, -1, -1, null, itemIndex, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncItem, -1, -1, null, itemIndex, 0f, 0f, 0f, 0, 0, 0); } continue; } @@ -115,9 +115,9 @@ namespace CalamityMod.Projectiles.Pets else { Main.item[itemIndex] = player.GetItem(projectile.owner, item, false, false); - if (Main.netMode == 1) + if (Main.netMode == NetmodeID.MultiplayerClient) { - NetMessage.SendData(21, -1, -1, null, itemIndex, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncItem, -1, -1, null, itemIndex, 0f, 0f, 0f, 0, 0, 0); } } } @@ -134,7 +134,7 @@ namespace CalamityMod.Projectiles.Pets { npc.life = 0; npc.active = false; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 2); + Main.PlaySound(SoundID.Item2, projectile.position); npc.netUpdate = true; } } diff --git a/Projectiles/Pets/ThirdSage.cs b/Projectiles/Pets/ThirdSage.cs index d0f5594cd8..b7b6950dd9 100644 --- a/Projectiles/Pets/ThirdSage.cs +++ b/Projectiles/Pets/ThirdSage.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Pets } else if (projectile.frame == 4 && projectile.ai[1] >= 45) { - Main.PlaySound(29, projectile.position, 32); + Main.PlaySound(SoundID.Zombie, projectile.position, 32); } else if (projectile.frame > 6) { diff --git a/Projectiles/Ranged/AMR2.cs b/Projectiles/Ranged/AMR2.cs index 107ac57507..1561160879 100644 --- a/Projectiles/Ranged/AMR2.cs +++ b/Projectiles/Ranged/AMR2.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { public class AMR2 : ModProjectile diff --git a/Projectiles/Ranged/AMRShot.cs b/Projectiles/Ranged/AMRShot.cs index cbb0dfd792..04af628f94 100644 --- a/Projectiles/Ranged/AMRShot.cs +++ b/Projectiles/Ranged/AMRShot.cs @@ -1,9 +1,11 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Ranged { public class AMRShot : ModProjectile @@ -33,7 +35,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/AccelerationBulletProj.cs b/Projectiles/Ranged/AccelerationBulletProj.cs index 8b9d026d8e..f9b5f0f118 100644 --- a/Projectiles/Ranged/AccelerationBulletProj.cs +++ b/Projectiles/Ranged/AccelerationBulletProj.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 10); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 91, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Ranged/AcidBulletProj.cs b/Projectiles/Ranged/AcidBulletProj.cs index 1790a62322..ed00aa6163 100644 --- a/Projectiles/Ranged/AcidBulletProj.cs +++ b/Projectiles/Ranged/AcidBulletProj.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/AngelicBeam.cs b/Projectiles/Ranged/AngelicBeam.cs index 4b0163ad2e..984b2882b4 100644 --- a/Projectiles/Ranged/AngelicBeam.cs +++ b/Projectiles/Ranged/AngelicBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged diff --git a/Projectiles/Ranged/AquaBlast.cs b/Projectiles/Ranged/AquaBlast.cs index b62070d64f..a4f44dbede 100644 --- a/Projectiles/Ranged/AquaBlast.cs +++ b/Projectiles/Ranged/AquaBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged diff --git a/Projectiles/Ranged/AquaBlastToxic.cs b/Projectiles/Ranged/AquaBlastToxic.cs index 7c3aa71b3d..149e8918c0 100644 --- a/Projectiles/Ranged/AquaBlastToxic.cs +++ b/Projectiles/Ranged/AquaBlastToxic.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/Aquashard.cs b/Projectiles/Ranged/Aquashard.cs index da4ad84aa6..5faf5234ff 100644 --- a/Projectiles/Ranged/Aquashard.cs +++ b/Projectiles/Ranged/Aquashard.cs @@ -1,6 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Ranged { public class Aquashard : ModProjectile @@ -48,7 +50,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item, (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, 154, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Ranged/AquashardSplit.cs b/Projectiles/Ranged/AquashardSplit.cs index db269b2c9d..eb902bbc6f 100644 --- a/Projectiles/Ranged/AquashardSplit.cs +++ b/Projectiles/Ranged/AquashardSplit.cs @@ -1,5 +1,7 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Ranged { public class AquashardSplit : ModProjectile @@ -28,7 +30,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item, (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, 154, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Ranged/ArcticArrowProj.cs b/Projectiles/Ranged/ArcticArrowProj.cs index 59629286e0..04652dbf92 100644 --- a/Projectiles/Ranged/ArcticArrowProj.cs +++ b/Projectiles/Ranged/ArcticArrowProj.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Ranged { public class ArcticArrowProj : ModProjectile @@ -37,13 +39,13 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 27); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 20; diff --git a/Projectiles/Ranged/AstralCannonProjectile.cs b/Projectiles/Ranged/AstralCannonProjectile.cs index fec5faa1ec..d28d1a4f7b 100644 --- a/Projectiles/Ranged/AstralCannonProjectile.cs +++ b/Projectiles/Ranged/AstralCannonProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(29, (int)projectile.Center.X, (int)projectile.Center.Y, 103, 1f, 0f); + Main.PlaySound(SoundID.Zombie, (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, ModContent.DustType(), 0f, 0f, 50, default, 1f); diff --git a/Projectiles/Ranged/AstralRound.cs b/Projectiles/Ranged/AstralRound.cs index c5cbc724f5..919fdbb32d 100644 --- a/Projectiles/Ranged/AstralRound.cs +++ b/Projectiles/Ranged/AstralRound.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/AstrealArrow.cs b/Projectiles/Ranged/AstrealArrow.cs index 8b6e72e815..319409a80d 100644 --- a/Projectiles/Ranged/AstrealArrow.cs +++ b/Projectiles/Ranged/AstrealArrow.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Ranged/AstrealFlame.cs b/Projectiles/Ranged/AstrealFlame.cs index 6389f5744a..3f275c87d3 100644 --- a/Projectiles/Ranged/AstrealFlame.cs +++ b/Projectiles/Ranged/AstrealFlame.cs @@ -1,7 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Ranged { public class AstrealFlame : ModProjectile @@ -45,7 +47,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.width = projectile.height = 48; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 74); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 74); for (int num621 = 0; num621 < 10; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/BallistaGreatArrow.cs b/Projectiles/Ranged/BallistaGreatArrow.cs index 8d18430c0b..adb0166742 100644 --- a/Projectiles/Ranged/BallistaGreatArrow.cs +++ b/Projectiles/Ranged/BallistaGreatArrow.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 14); float spread = 90f * 0.0174f; double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2; double deltaAngle = spread / 8f; diff --git a/Projectiles/Ranged/BeeRPG.cs b/Projectiles/Ranged/BeeRPG.cs index f09210617c..9e4e8c21e0 100644 --- a/Projectiles/Ranged/BeeRPG.cs +++ b/Projectiles/Ranged/BeeRPG.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Ranged { public class BeeRPG : ModProjectile @@ -82,7 +84,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } @@ -119,7 +121,7 @@ namespace CalamityMod.Projectiles.Ranged } } } - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 14); for (int num621 = 0; num621 < 5; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/BigCoral.cs b/Projectiles/Ranged/BigCoral.cs index 08b06c0b3f..dee9a6539c 100644 --- a/Projectiles/Ranged/BigCoral.cs +++ b/Projectiles/Ranged/BigCoral.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Ranged { public class BigCoral : ModProjectile @@ -33,7 +35,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 10); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 32; diff --git a/Projectiles/Ranged/BigNuke.cs b/Projectiles/Ranged/BigNuke.cs index d969e30998..37922be5c9 100644 --- a/Projectiles/Ranged/BigNuke.cs +++ b/Projectiles/Ranged/BigNuke.cs @@ -1,7 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Ranged { public class BigNuke : ModProjectile @@ -50,7 +52,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } @@ -66,7 +68,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.localNPCHitCooldown = 10; projectile.damage /= 2; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 14); for (int num621 = 0; num621 < 90; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/BloodBoilerFire.cs b/Projectiles/Ranged/BloodBoilerFire.cs index 37724b66e1..e70ae09c9a 100644 --- a/Projectiles/Ranged/BloodBoilerFire.cs +++ b/Projectiles/Ranged/BloodBoilerFire.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Ranged/BloodClotFriendly.cs b/Projectiles/Ranged/BloodClotFriendly.cs index 62c65cc515..bc7f625118 100644 --- a/Projectiles/Ranged/BloodClotFriendly.cs +++ b/Projectiles/Ranged/BloodClotFriendly.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/BloodfireArrowProj.cs b/Projectiles/Ranged/BloodfireArrowProj.cs index 9792dfcd11..c8b41d9cfa 100644 --- a/Projectiles/Ranged/BloodfireArrowProj.cs +++ b/Projectiles/Ranged/BloodfireArrowProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/BloodfireBullet.cs b/Projectiles/Ranged/BloodfireBullet.cs index e7c2b5542b..43121ef10b 100644 --- a/Projectiles/Ranged/BloodfireBullet.cs +++ b/Projectiles/Ranged/BloodfireBullet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/BloodflareSoul.cs b/Projectiles/Ranged/BloodflareSoul.cs index f07d385a90..c205f99349 100644 --- a/Projectiles/Ranged/BloodflareSoul.cs +++ b/Projectiles/Ranged/BloodflareSoul.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -96,7 +96,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 39, 1f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 39, 1f, 0f); projectile.position = projectile.Center; projectile.width = projectile.height = 110; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Ranged/BlueExoArrow.cs b/Projectiles/Ranged/BlueExoArrow.cs index f0fbcefce4..b38cfbcacc 100644 --- a/Projectiles/Ranged/BlueExoArrow.cs +++ b/Projectiles/Ranged/BlueExoArrow.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Ranged/BlueExoArrow2.cs b/Projectiles/Ranged/BlueExoArrow2.cs index 8edd5fd3d2..9a21c15e2b 100644 --- a/Projectiles/Ranged/BlueExoArrow2.cs +++ b/Projectiles/Ranged/BlueExoArrow2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/Bolt.cs b/Projectiles/Ranged/Bolt.cs index 17c649db01..15d4aba20f 100644 --- a/Projectiles/Ranged/Bolt.cs +++ b/Projectiles/Ranged/Bolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Ranged/BoltArrow.cs b/Projectiles/Ranged/BoltArrow.cs index ab5444f6ef..6021c400d3 100644 --- a/Projectiles/Ranged/BoltArrow.cs +++ b/Projectiles/Ranged/BoltArrow.cs @@ -1,7 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Ranged { public class BoltArrow : ModProjectile @@ -47,7 +49,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } @@ -63,7 +65,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.localNPCHitCooldown = 10; projectile.damage = (int)(projectile.damage * 0.6f); projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 92); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 92); int num212 = Main.rand.Next(10, 20); for (int num213 = 0; num213 < num212; num213++) { diff --git a/Projectiles/Ranged/BrimstoneBallFriendly.cs b/Projectiles/Ranged/BrimstoneBallFriendly.cs index 6a4aa93af5..0f2aa04a00 100644 --- a/Projectiles/Ranged/BrimstoneBallFriendly.cs +++ b/Projectiles/Ranged/BrimstoneBallFriendly.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Ranged/BrimstoneBolt.cs b/Projectiles/Ranged/BrimstoneBolt.cs index b7c2a6001b..50ae2bfcd4 100644 --- a/Projectiles/Ranged/BrimstoneBolt.cs +++ b/Projectiles/Ranged/BrimstoneBolt.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Ranged { public class BrimstoneBolt : ModProjectile @@ -30,7 +32,7 @@ namespace CalamityMod.Projectiles.Ranged if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); } if (projectile.alpha > 0) { diff --git a/Projectiles/Ranged/BrimstoneFireFriendly.cs b/Projectiles/Ranged/BrimstoneFireFriendly.cs index e3ba8792a1..20a0fe97a5 100644 --- a/Projectiles/Ranged/BrimstoneFireFriendly.cs +++ b/Projectiles/Ranged/BrimstoneFireFriendly.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/ButcherGun.cs b/Projectiles/Ranged/ButcherGun.cs index a52885e739..cacf434e0c 100644 --- a/Projectiles/Ranged/ButcherGun.cs +++ b/Projectiles/Ranged/ButcherGun.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Ranged/CardClub.cs b/Projectiles/Ranged/CardClub.cs index eb678fdc8b..16d290ec60 100644 --- a/Projectiles/Ranged/CardClub.cs +++ b/Projectiles/Ranged/CardClub.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/CardClubSplit.cs b/Projectiles/Ranged/CardClubSplit.cs index a408922c99..24bfff9be3 100644 --- a/Projectiles/Ranged/CardClubSplit.cs +++ b/Projectiles/Ranged/CardClubSplit.cs @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/CardDiamond.cs b/Projectiles/Ranged/CardDiamond.cs index ea208d6e08..ebb8b18787 100644 --- a/Projectiles/Ranged/CardDiamond.cs +++ b/Projectiles/Ranged/CardDiamond.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.Center.X, (int)projectile.Center.Y); for (int num621 = 0; num621 < 10; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 30, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/CardHeart.cs b/Projectiles/Ranged/CardHeart.cs index c6bbcce245..029f25bf8c 100644 --- a/Projectiles/Ranged/CardHeart.cs +++ b/Projectiles/Ranged/CardHeart.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/CardSpade.cs b/Projectiles/Ranged/CardSpade.cs index c468dbdd4e..ccca476878 100644 --- a/Projectiles/Ranged/CardSpade.cs +++ b/Projectiles/Ranged/CardSpade.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/ChargedBlast.cs b/Projectiles/Ranged/ChargedBlast.cs index 33315fcd84..ac3663da55 100644 --- a/Projectiles/Ranged/ChargedBlast.cs +++ b/Projectiles/Ranged/ChargedBlast.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -95,7 +96,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62); + Main.PlaySound(SoundID.Item62, (int)projectile.position.X, (int)projectile.position.Y); int projectiles = Main.rand.Next(2, 5); if (projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Ranged/ChargedBlast2.cs b/Projectiles/Ranged/ChargedBlast2.cs index a48d48f13e..21c98913f5 100644 --- a/Projectiles/Ranged/ChargedBlast2.cs +++ b/Projectiles/Ranged/ChargedBlast2.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -95,7 +96,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, (int)projectile.position.X, (int)projectile.position.Y); projectile.penetrate--; if (projectile.penetrate <= 0) { diff --git a/Projectiles/Ranged/ChargedBlast3.cs b/Projectiles/Ranged/ChargedBlast3.cs index 59e7e929e4..6640730753 100644 --- a/Projectiles/Ranged/ChargedBlast3.cs +++ b/Projectiles/Ranged/ChargedBlast3.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -95,7 +96,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage / 4, projectile.knockBack, projectile.owner, 0f, 0f); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62); + Main.PlaySound(SoundID.Item62, (int)projectile.position.X, (int)projectile.position.Y); projectile.penetrate--; if (projectile.penetrate <= 0) { @@ -119,7 +120,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage / 4, projectile.knockBack, projectile.owner, 1f, 0f); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62); + Main.PlaySound(SoundID.Item62, (int)projectile.position.X, (int)projectile.position.Y); } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) diff --git a/Projectiles/Ranged/Chicken.cs b/Projectiles/Ranged/Chicken.cs index ef6fa98d17..c5d4f7e83f 100644 --- a/Projectiles/Ranged/Chicken.cs +++ b/Projectiles/Ranged/Chicken.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -94,7 +95,7 @@ namespace CalamityMod.Projectiles.Ranged { 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); + Main.PlaySound(SoundID.Item14, (int)projectile.Center.X, (int)projectile.Center.Y); for (int num621 = 0; num621 < 40; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/ChickenExplosion.cs b/Projectiles/Ranged/ChickenExplosion.cs index 0e10528fa3..3d56f27e51 100644 --- a/Projectiles/Ranged/ChickenExplosion.cs +++ b/Projectiles/Ranged/ChickenExplosion.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -30,7 +31,7 @@ namespace CalamityMod.Projectiles.Ranged Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.75f / 255f, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.01f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, (int)projectile.position.X, (int)projectile.position.Y); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Ranged/ClamorRifleProj.cs b/Projectiles/Ranged/ClamorRifleProj.cs index e93fc94851..ed3e4a2e6a 100644 --- a/Projectiles/Ranged/ClamorRifleProj.cs +++ b/Projectiles/Ranged/ClamorRifleProj.cs @@ -1,7 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -65,7 +66,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), (int)(projectile.damage * 0.45), 0f, projectile.owner, 0f, 0f); } } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 118); + Main.PlaySound(SoundID.Item118, (int)projectile.position.X, (int)projectile.position.Y); } } } diff --git a/Projectiles/Ranged/ClamorRifleProjSplit.cs b/Projectiles/Ranged/ClamorRifleProjSplit.cs index 8ea656f765..e74920942b 100644 --- a/Projectiles/Ranged/ClamorRifleProjSplit.cs +++ b/Projectiles/Ranged/ClamorRifleProjSplit.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/ContagionArrow.cs b/Projectiles/Ranged/ContagionArrow.cs index b0369fdab9..bdb059f307 100644 --- a/Projectiles/Ranged/ContagionArrow.cs +++ b/Projectiles/Ranged/ContagionArrow.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/ContagionBall.cs b/Projectiles/Ranged/ContagionBall.cs index 09aa2cd28e..eb31032580 100644 --- a/Projectiles/Ranged/ContagionBall.cs +++ b/Projectiles/Ranged/ContagionBall.cs @@ -1,6 +1,7 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -32,7 +33,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.Center.X, (int)projectile.Center.Y); int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 44, 0f, 0f, 100, default, 0.15f); Main.dust[num622].velocity *= 1.2f; if (Main.rand.NextBool(2)) diff --git a/Projectiles/Ranged/ContagionBow.cs b/Projectiles/Ranged/ContagionBow.cs index 96483efc4a..11aab62623 100644 --- a/Projectiles/Ranged/ContagionBow.cs +++ b/Projectiles/Ranged/ContagionBow.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -67,7 +68,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.soundDelay = num3 - num4 * num2; if (projectile.ai[0] != 1f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 5); + Main.PlaySound(SoundID.Item5, (int)projectile.position.X, (int)projectile.position.Y); } } if (projectile.ai[1] == 1f && projectile.ai[0] != 1f) diff --git a/Projectiles/Ranged/CorossiveFlames.cs b/Projectiles/Ranged/CorossiveFlames.cs index 401b153f09..7537988e86 100644 --- a/Projectiles/Ranged/CorossiveFlames.cs +++ b/Projectiles/Ranged/CorossiveFlames.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/CorrodedShell.cs b/Projectiles/Ranged/CorrodedShell.cs index ea2cff9d05..b1609103d1 100644 --- a/Projectiles/Ranged/CorrodedShell.cs +++ b/Projectiles/Ranged/CorrodedShell.cs @@ -4,6 +4,7 @@ using CalamityMod.Dusts; using CalamityMod.Projectiles.Summon; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -53,7 +54,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.maxPenetrate = -1; projectile.penetrate = -1; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 92); + Main.PlaySound(SoundID.Item92, (int)projectile.Center.X, (int)projectile.Center.Y); int count = Main.rand.Next(6, 15); for (int i = 0; i < count; i++) { diff --git a/Projectiles/Ranged/CosmicFire.cs b/Projectiles/Ranged/CosmicFire.cs index 59952f0f62..baf3e6c257 100644 --- a/Projectiles/Ranged/CosmicFire.cs +++ b/Projectiles/Ranged/CosmicFire.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/DWArrow.cs b/Projectiles/Ranged/DWArrow.cs index afc90e38f8..fc8884b8f3 100644 --- a/Projectiles/Ranged/DWArrow.cs +++ b/Projectiles/Ranged/DWArrow.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Ranged if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12); + Main.PlaySound(SoundID.Item12, (int)projectile.position.X, (int)projectile.position.Y); } // Force damage type based on AI variable (this is outdated code and the weapons themselves should set the force variables) diff --git a/Projectiles/Ranged/DaemonsFlameArrow.cs b/Projectiles/Ranged/DaemonsFlameArrow.cs index f8889ecaa9..56cac4d51f 100644 --- a/Projectiles/Ranged/DaemonsFlameArrow.cs +++ b/Projectiles/Ranged/DaemonsFlameArrow.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -59,7 +60,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.width = projectile.height = 160; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); for (int num621 = 0; num621 < 10; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 60, 0f, 0f, 100, default, 1.2f); diff --git a/Projectiles/Ranged/DaemonsFlameBow.cs b/Projectiles/Ranged/DaemonsFlameBow.cs index a4d3999efa..2ebf38877f 100644 --- a/Projectiles/Ranged/DaemonsFlameBow.cs +++ b/Projectiles/Ranged/DaemonsFlameBow.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Ranged/DragonBurst.cs b/Projectiles/Ranged/DragonBurst.cs index e91627031a..af708a634a 100644 --- a/Projectiles/Ranged/DragonBurst.cs +++ b/Projectiles/Ranged/DragonBurst.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Ranged/DrataliornusExoArrow.cs b/Projectiles/Ranged/DrataliornusExoArrow.cs index f18b4bd10b..c032573a6e 100644 --- a/Projectiles/Ranged/DrataliornusExoArrow.cs +++ b/Projectiles/Ranged/DrataliornusExoArrow.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Ranged/DrataliornusFlame.cs b/Projectiles/Ranged/DrataliornusFlame.cs index f81c2487f5..2b3f442c45 100644 --- a/Projectiles/Ranged/DrataliornusFlame.cs +++ b/Projectiles/Ranged/DrataliornusFlame.cs @@ -157,7 +157,7 @@ namespace CalamityMod.Projectiles.Ranged { if (timeLeft != 0) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14, 1f, 0f); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); if (projectile.ai[0] != 0f && projectile.owner == Main.myPlayer) //if empowered, make exo arrow and dragon dust { diff --git a/Projectiles/Ranged/ElysianArrowProj.cs b/Projectiles/Ranged/ElysianArrowProj.cs index 9327f43d30..ea2f43977c 100644 --- a/Projectiles/Ranged/ElysianArrowProj.cs +++ b/Projectiles/Ranged/ElysianArrowProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.width = projectile.height = 32; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); projectile.maxPenetrate = -1; projectile.penetrate = -1; projectile.usesLocalNPCImmunity = true; diff --git a/Projectiles/Ranged/EmesisGore.cs b/Projectiles/Ranged/EmesisGore.cs index 6df94049a0..27d0c67df6 100644 --- a/Projectiles/Ranged/EmesisGore.cs +++ b/Projectiles/Ranged/EmesisGore.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System.IO; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/EnhancedNanoRoundProj.cs b/Projectiles/Ranged/EnhancedNanoRoundProj.cs index d561e4a802..c360fdb514 100644 --- a/Projectiles/Ranged/EnhancedNanoRoundProj.cs +++ b/Projectiles/Ranged/EnhancedNanoRoundProj.cs @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 93); + Main.PlaySound(SoundID.Item93, (int)projectile.position.X, (int)projectile.position.Y); int num212 = Main.rand.Next(5, 10); for (int num213 = 0; num213 < num212; num213++) { diff --git a/Projectiles/Ranged/EssenceFire.cs b/Projectiles/Ranged/EssenceFire.cs index 5dc5c5d7e2..0ef5baaf68 100644 --- a/Projectiles/Ranged/EssenceFire.cs +++ b/Projectiles/Ranged/EssenceFire.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/ExoFire.cs b/Projectiles/Ranged/ExoFire.cs index c9cadc1118..8058226979 100644 --- a/Projectiles/Ranged/ExoFire.cs +++ b/Projectiles/Ranged/ExoFire.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System.Collections.Generic; diff --git a/Projectiles/Ranged/ExoMark.cs b/Projectiles/Ranged/ExoMark.cs index 7b80f3c5ab..b2e75a22d6 100644 --- a/Projectiles/Ranged/ExoMark.cs +++ b/Projectiles/Ranged/ExoMark.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -32,7 +33,7 @@ namespace CalamityMod.Projectiles.Ranged if (projectile.soundDelay == 0) { projectile.soundDelay = -1; - Main.PlaySound(2, projectile.Center, 60); + Main.PlaySound(SoundID.Item60, (int)projectile.Center.X, (int)projectile.Center.Y); } if (projectile.localAI[1] < 30f) { diff --git a/Projectiles/Ranged/ExoTornado.cs b/Projectiles/Ranged/ExoTornado.cs index b23807c8d6..5f37a5ddd9 100644 --- a/Projectiles/Ranged/ExoTornado.cs +++ b/Projectiles/Ranged/ExoTornado.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -30,7 +31,7 @@ namespace CalamityMod.Projectiles.Ranged if (projectile.soundDelay == 0) { projectile.soundDelay = -1; - Main.PlaySound(2, projectile.Center, 122); + Main.PlaySound(SoundID.Item122, projectile.position); } projectile.ai[0] += 1f; if (projectile.ai[0] >= num1125) diff --git a/Projectiles/Ranged/ExplodingStake.cs b/Projectiles/Ranged/ExplodingStake.cs index 7404cf203a..6e06e2293f 100644 --- a/Projectiles/Ranged/ExplodingStake.cs +++ b/Projectiles/Ranged/ExplodingStake.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/FallenStarProj.cs b/Projectiles/Ranged/FallenStarProj.cs index 10560e6034..8733fe6f61 100644 --- a/Projectiles/Ranged/FallenStarProj.cs +++ b/Projectiles/Ranged/FallenStarProj.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Ranged/FeatherLarge.cs b/Projectiles/Ranged/FeatherLarge.cs index 60a4592ebb..434cadd9c1 100644 --- a/Projectiles/Ranged/FeatherLarge.cs +++ b/Projectiles/Ranged/FeatherLarge.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } diff --git a/Projectiles/Ranged/FishronRPG.cs b/Projectiles/Ranged/FishronRPG.cs index 0ace016d77..ed7da93168 100644 --- a/Projectiles/Ranged/FishronRPG.cs +++ b/Projectiles/Ranged/FishronRPG.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -36,7 +37,7 @@ namespace CalamityMod.Projectiles.Ranged } } projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 92); + Main.PlaySound(SoundID.Item92, projectile.position); } projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; if (projectile.owner == Main.myPlayer && projectile.timeLeft <= 3) @@ -81,7 +82,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); return true; } @@ -96,7 +97,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 92); + Main.PlaySound(SoundID.Item92, projectile.position); for (int num621 = 0; num621 < 10; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 33, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/FlakKrakenGun.cs b/Projectiles/Ranged/FlakKrakenGun.cs index 6a7754a0d9..068c2a669a 100644 --- a/Projectiles/Ranged/FlakKrakenGun.cs +++ b/Projectiles/Ranged/FlakKrakenGun.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Ranged/FlakKrakenProj.cs b/Projectiles/Ranged/FlakKrakenProj.cs index 2c11a091fb..3f3e24d321 100644 --- a/Projectiles/Ranged/FlakKrakenProj.cs +++ b/Projectiles/Ranged/FlakKrakenProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Ranged/FlamingStake.cs b/Projectiles/Ranged/FlamingStake.cs index a6bb53d7e1..645e97232a 100644 --- a/Projectiles/Ranged/FlamingStake.cs +++ b/Projectiles/Ranged/FlamingStake.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Ranged/FlareBat.cs b/Projectiles/Ranged/FlareBat.cs index 1cdcb726cc..a0310c2a00 100644 --- a/Projectiles/Ranged/FlareBat.cs +++ b/Projectiles/Ranged/FlareBat.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Ranged/Flash.cs b/Projectiles/Ranged/Flash.cs index c720de44e5..2d48c4fbba 100644 --- a/Projectiles/Ranged/Flash.cs +++ b/Projectiles/Ranged/Flash.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Ranged/FlashBulletProj.cs b/Projectiles/Ranged/FlashBulletProj.cs index 36ae975684..de9c60d85f 100644 --- a/Projectiles/Ranged/FlashBulletProj.cs +++ b/Projectiles/Ranged/FlashBulletProj.cs @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 93); + Main.PlaySound(SoundID.Item93, projectile.position); if (projectile.owner == Main.myPlayer) { Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(projectile.damage * 0.25), 0f, projectile.owner, 0f, 0f); diff --git a/Projectiles/Ranged/FossilShard.cs b/Projectiles/Ranged/FossilShard.cs index 25ac61a421..e0da13936a 100644 --- a/Projectiles/Ranged/FossilShard.cs +++ b/Projectiles/Ranged/FossilShard.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged diff --git a/Projectiles/Ranged/FrostsparkBulletProj.cs b/Projectiles/Ranged/FrostsparkBulletProj.cs index fb1ab6363f..72f0dfa94d 100644 --- a/Projectiles/Ranged/FrostsparkBulletProj.cs +++ b/Projectiles/Ranged/FrostsparkBulletProj.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); projectile.damage /= 3; projectile.position = projectile.Center; diff --git a/Projectiles/Ranged/FungiOrb.cs b/Projectiles/Ranged/FungiOrb.cs index 46e148b538..eb951a4840 100644 --- a/Projectiles/Ranged/FungiOrb.cs +++ b/Projectiles/Ranged/FungiOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Ranged 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); + Main.PlaySound(SoundID.NPCDeath1, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 56, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Ranged/FungiOrb2.cs b/Projectiles/Ranged/FungiOrb2.cs index f0451f089c..e6831c49f2 100644 --- a/Projectiles/Ranged/FungiOrb2.cs +++ b/Projectiles/Ranged/FungiOrb2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/GoliathRocket.cs b/Projectiles/Ranged/GoliathRocket.cs index 4bc571ed3d..5110295332 100644 --- a/Projectiles/Ranged/GoliathRocket.cs +++ b/Projectiles/Ranged/GoliathRocket.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -136,7 +137,7 @@ namespace CalamityMod.Projectiles.Ranged } } } - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 20; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/GreenExoArrow.cs b/Projectiles/Ranged/GreenExoArrow.cs index ad7cc5969f..14dbd90676 100644 --- a/Projectiles/Ranged/GreenExoArrow.cs +++ b/Projectiles/Ranged/GreenExoArrow.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Ranged/HandheldTankShell.cs b/Projectiles/Ranged/HandheldTankShell.cs index 0f266c680b..effbbe3a81 100644 --- a/Projectiles/Ranged/HandheldTankShell.cs +++ b/Projectiles/Ranged/HandheldTankShell.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/HiveBomb.cs b/Projectiles/Ranged/HiveBomb.cs index 723dbb9681..44bcc0fcbf 100644 --- a/Projectiles/Ranged/HiveBomb.cs +++ b/Projectiles/Ranged/HiveBomb.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -136,7 +137,7 @@ namespace CalamityMod.Projectiles.Ranged } } } - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 20; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 89, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/HiveMissile.cs b/Projectiles/Ranged/HiveMissile.cs index 280144d831..7ca2d9624d 100644 --- a/Projectiles/Ranged/HiveMissile.cs +++ b/Projectiles/Ranged/HiveMissile.cs @@ -1,7 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -136,7 +137,7 @@ namespace CalamityMod.Projectiles.Ranged } } } - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 20; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 90, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/HolyFireBulletProj.cs b/Projectiles/Ranged/HolyFireBulletProj.cs index c20501623f..9b76d0d1f4 100644 --- a/Projectiles/Ranged/HolyFireBulletProj.cs +++ b/Projectiles/Ranged/HolyFireBulletProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Ranged/IlluminatedBullet.cs b/Projectiles/Ranged/IlluminatedBullet.cs index b327b320d4..b3af24bd70 100644 --- a/Projectiles/Ranged/IlluminatedBullet.cs +++ b/Projectiles/Ranged/IlluminatedBullet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Ranged/KarasawaShot.cs b/Projectiles/Ranged/KarasawaShot.cs index e6c1805e5e..0786bf5b81 100644 --- a/Projectiles/Ranged/KarasawaShot.cs +++ b/Projectiles/Ranged/KarasawaShot.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Ranged/LeafArrow.cs b/Projectiles/Ranged/LeafArrow.cs index 3157b1ed82..329aded31a 100644 --- a/Projectiles/Ranged/LeafArrow.cs +++ b/Projectiles/Ranged/LeafArrow.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(6, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Grass, projectile.position); projectile.localAI[1] += 1f; for (int num407 = 0; num407 < 5; num407++) { diff --git a/Projectiles/Ranged/LunarBolt.cs b/Projectiles/Ranged/LunarBolt.cs index 9e7608976a..6cd1925b5f 100644 --- a/Projectiles/Ranged/LunarBolt.cs +++ b/Projectiles/Ranged/LunarBolt.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -62,7 +63,7 @@ namespace CalamityMod.Projectiles.Ranged if (projectile.ai[0] == 0f) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.Center); projectile.ai[0]++; } return false; diff --git a/Projectiles/Ranged/LunarBolt2.cs b/Projectiles/Ranged/LunarBolt2.cs index 02dbb1826b..7261e105d4 100644 --- a/Projectiles/Ranged/LunarBolt2.cs +++ b/Projectiles/Ranged/LunarBolt2.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -62,7 +63,7 @@ namespace CalamityMod.Projectiles.Ranged if (projectile.ai[0] == 0f) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.Center); projectile.ai[0]++; } return false; diff --git a/Projectiles/Ranged/LuxorsGiftRanged.cs b/Projectiles/Ranged/LuxorsGiftRanged.cs index 8397deb6a8..41607e1e32 100644 --- a/Projectiles/Ranged/LuxorsGiftRanged.cs +++ b/Projectiles/Ranged/LuxorsGiftRanged.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 92); + Main.PlaySound(SoundID.Item92, projectile.position); int num212 = Main.rand.Next(10, 20); for (int num213 = 0; num213 < num212; num213++) { diff --git a/Projectiles/Ranged/MagnaStrike.cs b/Projectiles/Ranged/MagnaStrike.cs index 4a0454f0a0..b78e8904e7 100644 --- a/Projectiles/Ranged/MagnaStrike.cs +++ b/Projectiles/Ranged/MagnaStrike.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria.ID; diff --git a/Projectiles/Ranged/MagnomalyBeam.cs b/Projectiles/Ranged/MagnomalyBeam.cs index 7c742eba48..2f0149b175 100644 --- a/Projectiles/Ranged/MagnomalyBeam.cs +++ b/Projectiles/Ranged/MagnomalyBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Ranged/MagnomalyRocket.cs b/Projectiles/Ranged/MagnomalyRocket.cs index 0d3de97a67..ebc84779fa 100644 --- a/Projectiles/Ranged/MagnomalyRocket.cs +++ b/Projectiles/Ranged/MagnomalyRocket.cs @@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.width = projectile.height = 192; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); //DO NOT REMOVE THIS PROJECTILE 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/MechanicalBarracuda.cs b/Projectiles/Ranged/MechanicalBarracuda.cs index e57ef9f6f0..3ac3acb15e 100644 --- a/Projectiles/Ranged/MechanicalBarracuda.cs +++ b/Projectiles/Ranged/MechanicalBarracuda.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged diff --git a/Projectiles/Ranged/MeowFire.cs b/Projectiles/Ranged/MeowFire.cs index a1fa5a27c1..5c33815136 100644 --- a/Projectiles/Ranged/MeowFire.cs +++ b/Projectiles/Ranged/MeowFire.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 8; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 57); + Main.PlaySound(SoundID.Item57, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 10; diff --git a/Projectiles/Ranged/MeowFire2.cs b/Projectiles/Ranged/MeowFire2.cs index 1071ccd125..0217dea070 100644 --- a/Projectiles/Ranged/MeowFire2.cs +++ b/Projectiles/Ranged/MeowFire2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 8; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 58); + Main.PlaySound(SoundID.Item58, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 10; diff --git a/Projectiles/Ranged/MiniRocket.cs b/Projectiles/Ranged/MiniRocket.cs index 9b45fe6716..4be243b865 100644 --- a/Projectiles/Ranged/MiniRocket.cs +++ b/Projectiles/Ranged/MiniRocket.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -74,7 +75,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 20; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/Minibirb.cs b/Projectiles/Ranged/Minibirb.cs index d5f7f05a7b..6c6cd4ed8e 100644 --- a/Projectiles/Ranged/Minibirb.cs +++ b/Projectiles/Ranged/Minibirb.cs @@ -29,13 +29,13 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(3, (int)projectile.position.X, (int)projectile.position.Y, 51, 1f, 0f); + Main.PlaySound(SoundID.NPCHit51, projectile.position); return true; } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Main.PlaySound(3, (int)projectile.position.X, (int)projectile.position.Y, 51, 1f, 0f); + Main.PlaySound(SoundID.NPCHit51, projectile.position); } public override void AI() diff --git a/Projectiles/Ranged/MistArrow.cs b/Projectiles/Ranged/MistArrow.cs index aefe0a8777..328d472513 100644 --- a/Projectiles/Ranged/MistArrow.cs +++ b/Projectiles/Ranged/MistArrow.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Ranged/MortarRoundProj.cs b/Projectiles/Ranged/MortarRoundProj.cs index e6e0fdffcc..c574334730 100644 --- a/Projectiles/Ranged/MortarRoundProj.cs +++ b/Projectiles/Ranged/MortarRoundProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Tiles.Abyss; +using CalamityMod.Tiles.Abyss; using CalamityMod.Walls; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 40; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default, 2f); @@ -159,7 +159,7 @@ namespace CalamityMod.Projectiles.Ranged WorldGen.KillTile(num824, num825, false, false, false); if (!Main.tile[num824, num825].active() && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 0, (float)num824, (float)num825, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, (float)num824, (float)num825, 0f, 0, 0, 0); } } for (int num829 = num824 - 1; num829 <= num824 + 1; num829++) @@ -171,7 +171,7 @@ namespace CalamityMod.Projectiles.Ranged WorldGen.KillWall(num829, num830, false); if (Main.tile[num829, num830].wall == 0 && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 2, (float)num829, (float)num830, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 2, (float)num829, (float)num830, 0f, 0, 0, 0); } } } @@ -182,14 +182,14 @@ namespace CalamityMod.Projectiles.Ranged AchievementsHelper.CurrentlyMining = false; if (Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(29, -1, -1, null, projectile.identity, (float)projectile.owner, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.KillProjectile, -1, -1, null, projectile.identity, (float)projectile.owner, 0f, 0f, 0, 0, 0); } if (!projectile.noDropItem) { int num831 = -1; if (Main.netMode == NetmodeID.MultiplayerClient && num831 >= 0) { - NetMessage.SendData(21, -1, -1, null, num831, 1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncItem, -1, -1, null, num831, 1f, 0f, 0f, 0, 0, 0); } } } diff --git a/Projectiles/Ranged/NapalmArrowProj.cs b/Projectiles/Ranged/NapalmArrowProj.cs index aa0306fab5..746ebbc87b 100644 --- a/Projectiles/Ranged/NapalmArrowProj.cs +++ b/Projectiles/Ranged/NapalmArrowProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.width = projectile.height = 32; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 5; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 6, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/NeedlerProj.cs b/Projectiles/Ranged/NeedlerProj.cs index d9d9fa4779..528667fe58 100644 --- a/Projectiles/Ranged/NeedlerProj.cs +++ b/Projectiles/Ranged/NeedlerProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/NorfleetCannon.cs b/Projectiles/Ranged/NorfleetCannon.cs index d28ceb5ce7..7b122cbf95 100644 --- a/Projectiles/Ranged/NorfleetCannon.cs +++ b/Projectiles/Ranged/NorfleetCannon.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Ranged case 540: projectile.localAI[0] += 1f; projectile.ai[0] = -1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Ranged/NorfleetComet.cs b/Projectiles/Ranged/NorfleetComet.cs index a5c8378140..39d6e1a5d7 100644 --- a/Projectiles/Ranged/NorfleetComet.cs +++ b/Projectiles/Ranged/NorfleetComet.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } } projectile.localAI[0] += 1f; @@ -102,7 +102,7 @@ namespace CalamityMod.Projectiles.Ranged { 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); + Main.PlaySound(SoundID.Item10, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 144; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Ranged/NorfleetExplosion.cs b/Projectiles/Ranged/NorfleetExplosion.cs index 87f017b579..8451566c53 100644 --- a/Projectiles/Ranged/NorfleetExplosion.cs +++ b/Projectiles/Ranged/NorfleetExplosion.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/Nuke.cs b/Projectiles/Ranged/Nuke.cs index dbefc34db2..c92614ff2b 100644 --- a/Projectiles/Ranged/Nuke.cs +++ b/Projectiles/Ranged/Nuke.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 40; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/NullShot.cs b/Projectiles/Ranged/NullShot.cs index 60fc241eb2..5215d220bb 100644 --- a/Projectiles/Ranged/NullShot.cs +++ b/Projectiles/Ranged/NullShot.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/NullShot2.cs b/Projectiles/Ranged/NullShot2.cs index 1953c0e1cf..60a9a3fb42 100644 --- a/Projectiles/Ranged/NullShot2.cs +++ b/Projectiles/Ranged/NullShot2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/OnyxSharkBomb.cs b/Projectiles/Ranged/OnyxSharkBomb.cs index 06f5e300d6..7ca7cf2202 100644 --- a/Projectiles/Ranged/OnyxSharkBomb.cs +++ b/Projectiles/Ranged/OnyxSharkBomb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -72,7 +72,7 @@ namespace CalamityMod.Projectiles.Ranged { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 109, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 159, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Ranged/OpalStrike.cs b/Projectiles/Ranged/OpalStrike.cs index 23afb175c8..5c8b0efd96 100644 --- a/Projectiles/Ranged/OpalStrike.cs +++ b/Projectiles/Ranged/OpalStrike.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria.ID; diff --git a/Projectiles/Ranged/OrangeExoArrow.cs b/Projectiles/Ranged/OrangeExoArrow.cs index 194b0bc52a..085e80af95 100644 --- a/Projectiles/Ranged/OrangeExoArrow.cs +++ b/Projectiles/Ranged/OrangeExoArrow.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -119,7 +119,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 20; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14, 1f, 0f); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num193 = 0; num193 < 4; num193++) { Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 127, 0f, 0f, 50, default, 1f); diff --git a/Projectiles/Ranged/PhangasmBow.cs b/Projectiles/Ranged/PhangasmBow.cs index cd85a5abc1..74f2c751e5 100644 --- a/Projectiles/Ranged/PhangasmBow.cs +++ b/Projectiles/Ranged/PhangasmBow.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Ranged/PlagueArrow.cs b/Projectiles/Ranged/PlagueArrow.cs index b4d4a70747..aec0a0cbbc 100644 --- a/Projectiles/Ranged/PlagueArrow.cs +++ b/Projectiles/Ranged/PlagueArrow.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); if (projectile.owner == Main.myPlayer) { 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/PlagueExplosionFriendly.cs b/Projectiles/Ranged/PlagueExplosionFriendly.cs index 175aa0b15d..3d588dda0c 100644 --- a/Projectiles/Ranged/PlagueExplosionFriendly.cs +++ b/Projectiles/Ranged/PlagueExplosionFriendly.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Ranged/PlanarRipperBolt.cs b/Projectiles/Ranged/PlanarRipperBolt.cs index f712dbb461..0cf4bc85d3 100644 --- a/Projectiles/Ranged/PlanarRipperBolt.cs +++ b/Projectiles/Ranged/PlanarRipperBolt.cs @@ -110,7 +110,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, (Main.rand.NextBool(2) ? 93 : 92), 0.5f, 0f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, (Main.rand.NextBool(2) ? 93 : 92), 0.5f, 0f); for (int i = 0; i < 5; i++) { diff --git a/Projectiles/Ranged/PlanarRipperExplosion.cs b/Projectiles/Ranged/PlanarRipperExplosion.cs index 899d038ed2..e888ca1965 100644 --- a/Projectiles/Ranged/PlanarRipperExplosion.cs +++ b/Projectiles/Ranged/PlanarRipperExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Ranged/PlanetaryAnnihilationProj.cs b/Projectiles/Ranged/PlanetaryAnnihilationProj.cs index b91cefe529..e7866791d7 100644 --- a/Projectiles/Ranged/PlanetaryAnnihilationProj.cs +++ b/Projectiles/Ranged/PlanetaryAnnihilationProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Ranged/PlasmaBlast.cs b/Projectiles/Ranged/PlasmaBlast.cs index 4645b6c2ef..b852422d7e 100644 --- a/Projectiles/Ranged/PlasmaBlast.cs +++ b/Projectiles/Ranged/PlasmaBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Ranged if (projectile.soundDelay == 0) { projectile.soundDelay = 20 + Main.rand.Next(40); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } projectile.localAI[0] += 1f; if (projectile.localAI[0] == 12f) @@ -108,7 +108,7 @@ namespace CalamityMod.Projectiles.Ranged { 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); + Main.PlaySound(SoundID.Item10, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 221, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); diff --git a/Projectiles/Ranged/PlasmaExplosion.cs b/Projectiles/Ranged/PlasmaExplosion.cs index f0c37e9c49..eaef416898 100644 --- a/Projectiles/Ranged/PlasmaExplosion.cs +++ b/Projectiles/Ranged/PlasmaExplosion.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -30,7 +31,7 @@ namespace CalamityMod.Projectiles.Ranged Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.05f / 255f, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 1f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 93); + Main.PlaySound(SoundID.Item93, projectile.position); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Ranged/PolarStar.cs b/Projectiles/Ranged/PolarStar.cs index 8d9fb54077..e315f5bfe0 100644 --- a/Projectiles/Ranged/PolarStar.cs +++ b/Projectiles/Ranged/PolarStar.cs @@ -4,6 +4,8 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Ranged { public class PolarStar : ModProjectile @@ -176,13 +178,13 @@ namespace CalamityMod.Projectiles.Ranged public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); return true; } public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62, 0.5f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 62, 0.5f); if (projectile.ai[1] == 1f) //Boost two { int projectiles = Main.rand.Next(2, 5); diff --git a/Projectiles/Ranged/PristineFire.cs b/Projectiles/Ranged/PristineFire.cs index 43fee8ce6b..91fd844f50 100644 --- a/Projectiles/Ranged/PristineFire.cs +++ b/Projectiles/Ranged/PristineFire.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Ranged/ProBolt.cs b/Projectiles/Ranged/ProBolt.cs index 0e6621b814..66d9929bad 100644 --- a/Projectiles/Ranged/ProBolt.cs +++ b/Projectiles/Ranged/ProBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged diff --git a/Projectiles/Ranged/RainbowBlast.cs b/Projectiles/Ranged/RainbowBlast.cs index 63ec5bbe0e..950deb1f28 100644 --- a/Projectiles/Ranged/RainbowBlast.cs +++ b/Projectiles/Ranged/RainbowBlast.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Ranged/RealmRavagerBullet.cs b/Projectiles/Ranged/RealmRavagerBullet.cs index b6ba258d6d..ba81aca67d 100644 --- a/Projectiles/Ranged/RealmRavagerBullet.cs +++ b/Projectiles/Ranged/RealmRavagerBullet.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 32; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Ranged/RubberMortarRoundProj.cs b/Projectiles/Ranged/RubberMortarRoundProj.cs index ae81fbb23e..bd60f48538 100644 --- a/Projectiles/Ranged/RubberMortarRoundProj.cs +++ b/Projectiles/Ranged/RubberMortarRoundProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Tiles.Abyss; +using CalamityMod.Tiles.Abyss; using CalamityMod.Walls; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 40; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default, 2f); @@ -159,7 +159,7 @@ namespace CalamityMod.Projectiles.Ranged WorldGen.KillTile(num824, num825, false, false, false); if (!Main.tile[num824, num825].active() && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 0, (float)num824, (float)num825, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, (float)num824, (float)num825, 0f, 0, 0, 0); } } for (int num829 = num824 - 1; num829 <= num824 + 1; num829++) @@ -171,7 +171,7 @@ namespace CalamityMod.Projectiles.Ranged WorldGen.KillWall(num829, num830, false); if (Main.tile[num829, num830].wall == 0 && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 2, (float)num829, (float)num830, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 2, (float)num829, (float)num830, 0f, 0, 0, 0); } } } @@ -182,14 +182,14 @@ namespace CalamityMod.Projectiles.Ranged AchievementsHelper.CurrentlyMining = false; if (Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(29, -1, -1, null, projectile.identity, (float)projectile.owner, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.KillProjectile, -1, -1, null, projectile.identity, (float)projectile.owner, 0f, 0f, 0, 0, 0); } if (!projectile.noDropItem) { int num831 = -1; if (Main.netMode == NetmodeID.MultiplayerClient && num831 >= 0) { - NetMessage.SendData(21, -1, -1, null, num831, 1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncItem, -1, -1, null, num831, 1f, 0f, 0f, 0, 0, 0); } } } @@ -226,7 +226,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 40; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default, 2f); @@ -327,7 +327,7 @@ namespace CalamityMod.Projectiles.Ranged WorldGen.KillTile(num824, num825, false, false, false); if (!Main.tile[num824, num825].active() && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 0, (float)num824, (float)num825, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, (float)num824, (float)num825, 0f, 0, 0, 0); } } for (int num829 = num824 - 1; num829 <= num824 + 1; num829++) @@ -339,7 +339,7 @@ namespace CalamityMod.Projectiles.Ranged WorldGen.KillWall(num829, num830, false); if (Main.tile[num829, num830].wall == 0 && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 2, (float)num829, (float)num830, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 2, (float)num829, (float)num830, 0f, 0, 0, 0); } } } @@ -350,14 +350,14 @@ namespace CalamityMod.Projectiles.Ranged AchievementsHelper.CurrentlyMining = false; if (Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(29, -1, -1, null, projectile.identity, (float)projectile.owner, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.KillProjectile, -1, -1, null, projectile.identity, (float)projectile.owner, 0f, 0f, 0, 0, 0); } if (!projectile.noDropItem) { int num831 = -1; if (Main.netMode == NetmodeID.MultiplayerClient && num831 >= 0) { - NetMessage.SendData(21, -1, -1, null, num831, 1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncItem, -1, -1, null, num831, 1f, 0f, 0f, 0, 0, 0); } } } diff --git a/Projectiles/Ranged/SandWater.cs b/Projectiles/Ranged/SandWater.cs index 1b6d886569..07429f0c36 100644 --- a/Projectiles/Ranged/SandWater.cs +++ b/Projectiles/Ranged/SandWater.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -36,7 +37,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.Item21, projectile.position); for (int dust = 0; dust <= 40; dust++) { float num463 = (float)Main.rand.Next(-10, 11); diff --git a/Projectiles/Ranged/SandstormBullet.cs b/Projectiles/Ranged/SandstormBullet.cs index 94039471f9..8deefb9cf3 100644 --- a/Projectiles/Ranged/SandstormBullet.cs +++ b/Projectiles/Ranged/SandstormBullet.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 32; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Ranged/SandyWaifuShark.cs b/Projectiles/Ranged/SandyWaifuShark.cs index b37bf9483b..cb3eb1c217 100644 --- a/Projectiles/Ranged/SandyWaifuShark.cs +++ b/Projectiles/Ranged/SandyWaifuShark.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Ranged/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs index 37dadfaf31..e3fc2e1452 100644 --- a/Projectiles/Ranged/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Ranged } } projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 109); + Main.PlaySound(SoundID.Item109, projectile.position); } projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; if (projectile.owner == Main.myPlayer && projectile.timeLeft <= 3) @@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 110); + Main.PlaySound(SoundID.Item110, projectile.position); for (int num621 = 0; num621 < 15; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 33, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/SeasSearingBubble.cs b/Projectiles/Ranged/SeasSearingBubble.cs index 9f32010a8b..40baf7cdb3 100644 --- a/Projectiles/Ranged/SeasSearingBubble.cs +++ b/Projectiles/Ranged/SeasSearingBubble.cs @@ -78,18 +78,18 @@ namespace CalamityMod.Projectiles.Ranged } public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 96); - for (int k = 0; k < 5; k++) + { + Main.PlaySound(SoundID.Item96, projectile.position); + for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 202, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f, 0, new Color(60, Main.DiscoG, 190)); } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 96); - target.AddBuff(BuffID.Wet, 240); + { + Main.PlaySound(SoundID.Item96, projectile.position); + target.AddBuff(BuffID.Wet, 240); target.AddBuff(ModContent.BuffType(), 240); int type = ModContent.ProjectileType(); diff --git a/Projectiles/Ranged/ShadeFire.cs b/Projectiles/Ranged/ShadeFire.cs index 5752a3a62a..718f73f24e 100644 --- a/Projectiles/Ranged/ShadeFire.cs +++ b/Projectiles/Ranged/ShadeFire.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged diff --git a/Projectiles/Ranged/Shell.cs b/Projectiles/Ranged/Shell.cs index 1c938fa181..bc8b666b4a 100644 --- a/Projectiles/Ranged/Shell.cs +++ b/Projectiles/Ranged/Shell.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -30,7 +31,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 34; diff --git a/Projectiles/Ranged/Shockblast.cs b/Projectiles/Ranged/Shockblast.cs index 0227ffb2ab..047957c048 100644 --- a/Projectiles/Ranged/Shockblast.cs +++ b/Projectiles/Ranged/Shockblast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/Shroom.cs b/Projectiles/Ranged/Shroom.cs index 2ece298796..e3ea8763ad 100644 --- a/Projectiles/Ranged/Shroom.cs +++ b/Projectiles/Ranged/Shroom.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Ranged/Sickness.cs b/Projectiles/Ranged/Sickness.cs index 3b7b269511..5342d88783 100644 --- a/Projectiles/Ranged/Sickness.cs +++ b/Projectiles/Ranged/Sickness.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Ranged/SlagRound.cs b/Projectiles/Ranged/SlagRound.cs index b0e3d42c70..92f5458091 100644 --- a/Projectiles/Ranged/SlagRound.cs +++ b/Projectiles/Ranged/SlagRound.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Ranged/SlashRound.cs b/Projectiles/Ranged/SlashRound.cs index 6cf577a325..0be707d289 100644 --- a/Projectiles/Ranged/SlashRound.cs +++ b/Projectiles/Ranged/SlashRound.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged diff --git a/Projectiles/Ranged/SlimeBolt.cs b/Projectiles/Ranged/SlimeBolt.cs index ab416d2b26..e28d39bc95 100644 --- a/Projectiles/Ranged/SlimeBolt.cs +++ b/Projectiles/Ranged/SlimeBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/SmallCoral.cs b/Projectiles/Ranged/SmallCoral.cs index e6db879a32..5428822b59 100644 --- a/Projectiles/Ranged/SmallCoral.cs +++ b/Projectiles/Ranged/SmallCoral.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -32,7 +33,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 16; diff --git a/Projectiles/Ranged/SporeBomb.cs b/Projectiles/Ranged/SporeBomb.cs index a57644c2a8..035b88d0cb 100644 --- a/Projectiles/Ranged/SporeBomb.cs +++ b/Projectiles/Ranged/SporeBomb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num407 = 0; num407 < 25; num407++) { int num408 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 157, 0f, 0f, 0, new Color(Main.DiscoR, 203, 103), 1f); diff --git a/Projectiles/Ranged/SputterComet.cs b/Projectiles/Ranged/SputterComet.cs index 337ab2b822..5e04f0dc13 100644 --- a/Projectiles/Ranged/SputterComet.cs +++ b/Projectiles/Ranged/SputterComet.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } } } diff --git a/Projectiles/Ranged/SputterCometBig.cs b/Projectiles/Ranged/SputterCometBig.cs index 1a5a0316d1..f24ee6f0b4 100644 --- a/Projectiles/Ranged/SputterCometBig.cs +++ b/Projectiles/Ranged/SputterCometBig.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } } CalamityGlobalProjectile.HomeInOnNPC(projectile, false, 300f, 15f, 20f); @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 93); + Main.PlaySound(SoundID.Item93, projectile.position); if (projectile.owner == Main.myPlayer) { int flash = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); diff --git a/Projectiles/Ranged/SpykerProj.cs b/Projectiles/Ranged/SpykerProj.cs index 8ab0debca0..e20aa2169b 100644 --- a/Projectiles/Ranged/SpykerProj.cs +++ b/Projectiles/Ranged/SpykerProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Ranged/StarfleetMK2Gun.cs b/Projectiles/Ranged/StarfleetMK2Gun.cs index 40b0bf1e3b..388ff54128 100644 --- a/Projectiles/Ranged/StarfleetMK2Gun.cs +++ b/Projectiles/Ranged/StarfleetMK2Gun.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Ranged case 540: projectile.localAI[0] += 1f; projectile.ai[0] = -1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Ranged/StormSurgeTornado.cs b/Projectiles/Ranged/StormSurgeTornado.cs index b075445311..1f29cc4e4b 100644 --- a/Projectiles/Ranged/StormSurgeTornado.cs +++ b/Projectiles/Ranged/StormSurgeTornado.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Ranged/SulphuricAcidBubble2.cs b/Projectiles/Ranged/SulphuricAcidBubble2.cs index 8339346624..7535d82ea0 100644 --- a/Projectiles/Ranged/SulphuricAcidBubble2.cs +++ b/Projectiles/Ranged/SulphuricAcidBubble2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Ranged/SulphuricAcidMist2.cs b/Projectiles/Ranged/SulphuricAcidMist2.cs index 37d050cc5b..9b0c7f2348 100644 --- a/Projectiles/Ranged/SulphuricAcidMist2.cs +++ b/Projectiles/Ranged/SulphuricAcidMist2.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Ranged if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 111); + Main.PlaySound(SoundID.Item111, projectile.position); } if (projectile.velocity.X < 0f) { diff --git a/Projectiles/Ranged/SuperballBulletProj.cs b/Projectiles/Ranged/SuperballBulletProj.cs index f337417a9f..d46834f706 100644 --- a/Projectiles/Ranged/SuperballBulletProj.cs +++ b/Projectiles/Ranged/SuperballBulletProj.cs @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.velocity.Y = -oldVelocity.Y; } projectile.velocity *= 1.5f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } return false; } @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 87, projectile.oldVelocity.X * 0.05f, projectile.oldVelocity.Y * 0.05f); diff --git a/Projectiles/Ranged/TealExoArrow.cs b/Projectiles/Ranged/TealExoArrow.cs index d687aaa5df..4a9e00a9f9 100644 --- a/Projectiles/Ranged/TealExoArrow.cs +++ b/Projectiles/Ranged/TealExoArrow.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Ranged/TelluricGlareProj.cs b/Projectiles/Ranged/TelluricGlareProj.cs index ccc94595a8..caa48a860f 100644 --- a/Projectiles/Ranged/TelluricGlareProj.cs +++ b/Projectiles/Ranged/TelluricGlareProj.cs @@ -1,6 +1,7 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -47,7 +48,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.width = projectile.height = 32; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); 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, 2f); diff --git a/Projectiles/Ranged/TerraArrowMain.cs b/Projectiles/Ranged/TerraArrowMain.cs index 71b5531f6c..af9e439e3f 100644 --- a/Projectiles/Ranged/TerraArrowMain.cs +++ b/Projectiles/Ranged/TerraArrowMain.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -39,7 +40,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.width = projectile.height = 32; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 60); + Main.PlaySound(SoundID.Item60, projectile.position); for (int num621 = 0; num621 < 3; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 107, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Ranged/TerraArrowSplit.cs b/Projectiles/Ranged/TerraArrowSplit.cs index 8111bf6a73..6b821fb134 100644 --- a/Projectiles/Ranged/TerraArrowSplit.cs +++ b/Projectiles/Ranged/TerraArrowSplit.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -33,7 +34,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 60); + Main.PlaySound(SoundID.Item60, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 30; diff --git a/Projectiles/Ranged/TerraBulletMain.cs b/Projectiles/Ranged/TerraBulletMain.cs index 015038c595..bd0366cb1a 100644 --- a/Projectiles/Ranged/TerraBulletMain.cs +++ b/Projectiles/Ranged/TerraBulletMain.cs @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Ranged 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); + Main.PlaySound(SoundID.Item118, projectile.position); } } } diff --git a/Projectiles/Ranged/TerraFireGreen.cs b/Projectiles/Ranged/TerraFireGreen.cs index edd9f08b6b..a0948ec0fb 100644 --- a/Projectiles/Ranged/TerraFireGreen.cs +++ b/Projectiles/Ranged/TerraFireGreen.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/TerraFireGreen2.cs b/Projectiles/Ranged/TerraFireGreen2.cs index 3418b20107..17e399d3d9 100644 --- a/Projectiles/Ranged/TerraFireGreen2.cs +++ b/Projectiles/Ranged/TerraFireGreen2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Ranged/ThePackMinissile.cs b/Projectiles/Ranged/ThePackMinissile.cs index 0480a2bb68..684fcd6fe8 100644 --- a/Projectiles/Ranged/ThePackMinissile.cs +++ b/Projectiles/Ranged/ThePackMinissile.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -40,7 +41,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int i = 0; i < 10; i++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 255, 0f, 0f, 0, default, 1f); diff --git a/Projectiles/Ranged/ThePackMissile.cs b/Projectiles/Ranged/ThePackMissile.cs index 132cd2bf4b..8b4176bbdd 100644 --- a/Projectiles/Ranged/ThePackMissile.cs +++ b/Projectiles/Ranged/ThePackMissile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Ranged 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); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.Kill(); return; } diff --git a/Projectiles/Ranged/TitRail.cs b/Projectiles/Ranged/TitRail.cs index 6c31056ffa..38af08a56c 100644 --- a/Projectiles/Ranged/TitRail.cs +++ b/Projectiles/Ranged/TitRail.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged diff --git a/Projectiles/Ranged/TorrentialArrow.cs b/Projectiles/Ranged/TorrentialArrow.cs index 6a9a4a8324..087a802f04 100644 --- a/Projectiles/Ranged/TorrentialArrow.cs +++ b/Projectiles/Ranged/TorrentialArrow.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/ToxicArrow.cs b/Projectiles/Ranged/ToxicArrow.cs index e45da42349..e0e8fb48f5 100644 --- a/Projectiles/Ranged/ToxicArrow.cs +++ b/Projectiles/Ranged/ToxicArrow.cs @@ -1,7 +1,8 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -39,7 +40,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.localNPCHitCooldown = 10; projectile.damage /= 2; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 92); + Main.PlaySound(SoundID.Item92, projectile.position); int count = Main.rand.Next(6, 15); for (int i = 0; i < count; i++) { diff --git a/Projectiles/Ranged/ToxicannonDrop.cs b/Projectiles/Ranged/ToxicannonDrop.cs index a0cf3f0305..689a8b0d3e 100644 --- a/Projectiles/Ranged/ToxicannonDrop.cs +++ b/Projectiles/Ranged/ToxicannonDrop.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Ranged/ToxicannonShot.cs b/Projectiles/Ranged/ToxicannonShot.cs index 2df9edd008..30ee2dc440 100644 --- a/Projectiles/Ranged/ToxicannonShot.cs +++ b/Projectiles/Ranged/ToxicannonShot.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Ranged/TriploonProj.cs b/Projectiles/Ranged/TriploonProj.cs index 29ba994a5e..be1796a307 100644 --- a/Projectiles/Ranged/TriploonProj.cs +++ b/Projectiles/Ranged/TriploonProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Ranged/TyphoonArrow.cs b/Projectiles/Ranged/TyphoonArrow.cs index 41393c48a9..135b6e21c8 100644 --- a/Projectiles/Ranged/TyphoonArrow.cs +++ b/Projectiles/Ranged/TyphoonArrow.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { diff --git a/Projectiles/Ranged/TyphoonBubble.cs b/Projectiles/Ranged/TyphoonBubble.cs index af3079d3b6..6419595806 100644 --- a/Projectiles/Ranged/TyphoonBubble.cs +++ b/Projectiles/Ranged/TyphoonBubble.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -93,7 +94,7 @@ namespace CalamityMod.Projectiles.Ranged public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.Center.X, (int)projectile.Center.Y, 19); + Main.PlaySound(SoundID.NPCDeath19, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Ranged/VanquisherArrowMain.cs b/Projectiles/Ranged/VanquisherArrowMain.cs index 894b187207..5e3f940e36 100644 --- a/Projectiles/Ranged/VanquisherArrowMain.cs +++ b/Projectiles/Ranged/VanquisherArrowMain.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Ranged/Voidragon.cs b/Projectiles/Ranged/Voidragon.cs index 153a81a8c8..5e799fd498 100644 --- a/Projectiles/Ranged/Voidragon.cs +++ b/Projectiles/Ranged/Voidragon.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Ranged if (projectile.soundDelay == 0) { projectile.soundDelay = 150 + Main.rand.Next(40); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 92); + Main.PlaySound(SoundID.Item92, projectile.position); } projectile.localAI[0] += 1f; if (projectile.localAI[0] == 12f) @@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Ranged { 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); + Main.PlaySound(SoundID.Item10, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 173, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); diff --git a/Projectiles/Ranged/WaterSpout.cs b/Projectiles/Ranged/WaterSpout.cs index c9944c6f86..2e56efabf7 100644 --- a/Projectiles/Ranged/WaterSpout.cs +++ b/Projectiles/Ranged/WaterSpout.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/AbyssalMirrorProjectile.cs b/Projectiles/Rogue/AbyssalMirrorProjectile.cs index a60de771ae..0c2ff39ad9 100644 --- a/Projectiles/Rogue/AbyssalMirrorProjectile.cs +++ b/Projectiles/Rogue/AbyssalMirrorProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/AcidBarrelDrop.cs b/Projectiles/Rogue/AcidBarrelDrop.cs index 7442680b7b..bb68e80ab0 100644 --- a/Projectiles/Rogue/AcidBarrelDrop.cs +++ b/Projectiles/Rogue/AcidBarrelDrop.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/AcidShrapnel.cs b/Projectiles/Rogue/AcidShrapnel.cs index a0befa481b..803ffae8c9 100644 --- a/Projectiles/Rogue/AcidShrapnel.cs +++ b/Projectiles/Rogue/AcidShrapnel.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs b/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs index f8fbdadc74..942dee7285 100644 --- a/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs +++ b/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Rogue/AlphaSeeker.cs b/Projectiles/Rogue/AlphaSeeker.cs index ccdb2e9490..8051d0ed89 100644 --- a/Projectiles/Rogue/AlphaSeeker.cs +++ b/Projectiles/Rogue/AlphaSeeker.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Rogue/AlphaVirusProjectile.cs b/Projectiles/Rogue/AlphaVirusProjectile.cs index f439c76d03..51b36c207b 100644 --- a/Projectiles/Rogue/AlphaVirusProjectile.cs +++ b/Projectiles/Rogue/AlphaVirusProjectile.cs @@ -5,6 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using CalamityMod.NPCs.StormWeaver; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Projectiles.Rogue { @@ -183,7 +184,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/AshenStalactiteDebris.cs b/Projectiles/Rogue/AshenStalactiteDebris.cs index 97dc29b133..e21e355fb9 100644 --- a/Projectiles/Rogue/AshenStalactiteDebris.cs +++ b/Projectiles/Rogue/AshenStalactiteDebris.cs @@ -3,6 +3,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Projectiles.Rogue { @@ -36,7 +37,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/AshenStalactiteProj.cs b/Projectiles/Rogue/AshenStalactiteProj.cs index 93d3d8522d..e8c73d50a4 100644 --- a/Projectiles/Rogue/AshenStalactiteProj.cs +++ b/Projectiles/Rogue/AshenStalactiteProj.cs @@ -4,6 +4,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Projectiles.Rogue { @@ -45,7 +46,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/AshenStalagmiteProj.cs b/Projectiles/Rogue/AshenStalagmiteProj.cs index a4becec216..63332c7a73 100644 --- a/Projectiles/Rogue/AshenStalagmiteProj.cs +++ b/Projectiles/Rogue/AshenStalagmiteProj.cs @@ -4,6 +4,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Projectiles.Rogue { @@ -38,7 +39,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/BallisticPoisonBombProj.cs b/Projectiles/Rogue/BallisticPoisonBombProj.cs index e8446cb6e0..228ddf7dee 100644 --- a/Projectiles/Rogue/BallisticPoisonBombProj.cs +++ b/Projectiles/Rogue/BallisticPoisonBombProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -108,7 +108,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.width = projectile.height = 128; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 14); int num251 = Main.rand.Next(3, 5); if (projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Rogue/BallisticPoisonBombSpike.cs b/Projectiles/Rogue/BallisticPoisonBombSpike.cs index cad1d39c7c..145a8f3dac 100644 --- a/Projectiles/Rogue/BallisticPoisonBombSpike.cs +++ b/Projectiles/Rogue/BallisticPoisonBombSpike.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/BarrelShrapnel.cs b/Projectiles/Rogue/BarrelShrapnel.cs index 693c76591e..b6c9021516 100644 --- a/Projectiles/Rogue/BarrelShrapnel.cs +++ b/Projectiles/Rogue/BarrelShrapnel.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/BettyExplosion.cs b/Projectiles/Rogue/BettyExplosion.cs index 896472bd27..0b38eee232 100644 --- a/Projectiles/Rogue/BettyExplosion.cs +++ b/Projectiles/Rogue/BettyExplosion.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/BileExplosion.cs b/Projectiles/Rogue/BileExplosion.cs index fe491d45af..238c754d97 100644 --- a/Projectiles/Rogue/BileExplosion.cs +++ b/Projectiles/Rogue/BileExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Rogue/BlastBarrelProjectile.cs b/Projectiles/Rogue/BlastBarrelProjectile.cs index 4a94719116..90a98b1b29 100644 --- a/Projectiles/Rogue/BlastBarrelProjectile.cs +++ b/Projectiles/Rogue/BlastBarrelProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Rogue { bool stealthS = projectile.Calamity().stealthStrike; int projectileCount = 12; - Main.PlaySound(2, projectile.Center, 14); + Main.PlaySound(SoundID.Item, projectile.Center, 14); //aka can bounce multiple times if (stealthS) { diff --git a/Projectiles/Rogue/BlazingStarProj.cs b/Projectiles/Rogue/BlazingStarProj.cs index d93ca1ae9b..cf407891ab 100644 --- a/Projectiles/Rogue/BlazingStarProj.cs +++ b/Projectiles/Rogue/BlazingStarProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Rogue/BlueFlamePillar.cs b/Projectiles/Rogue/BlueFlamePillar.cs index 58f07be054..00c8be3541 100644 --- a/Projectiles/Rogue/BlueFlamePillar.cs +++ b/Projectiles/Rogue/BlueFlamePillar.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/BouncingBettyProjectile.cs b/Projectiles/Rogue/BouncingBettyProjectile.cs index 08a94f8012..51574bda74 100644 --- a/Projectiles/Rogue/BouncingBettyProjectile.cs +++ b/Projectiles/Rogue/BouncingBettyProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Rogue //This is definitely not a near copy of the Blast Barrel nosiree :> private void Explode() { - Main.PlaySound(2, projectile.Center, 14); + Main.PlaySound(SoundID.Item, projectile.Center, 14); bool stealthS = projectile.Calamity().stealthStrike; Projectile.NewProjectile(projectile.Center, new Vector2(0f, 0f), ModContent.ProjectileType(), projectile.damage, 8f, projectile.owner); if (stealthS) @@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Rogue } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Main.PlaySound(2, projectile.Center, 14); + Main.PlaySound(SoundID.Item, projectile.Center, 14); Explode(); projectile.velocity *= -1f; } diff --git a/Projectiles/Rogue/BouncingBettyShrapnel.cs b/Projectiles/Rogue/BouncingBettyShrapnel.cs index 0d82d1f9ec..faaeeb0618 100644 --- a/Projectiles/Rogue/BouncingBettyShrapnel.cs +++ b/Projectiles/Rogue/BouncingBettyShrapnel.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/BouncingEyeballProjectile.cs b/Projectiles/Rogue/BouncingEyeballProjectile.cs index d5e5922b25..9e7b71ea70 100644 --- a/Projectiles/Rogue/BouncingEyeballProjectile.cs +++ b/Projectiles/Rogue/BouncingEyeballProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Rogue } public override bool OnTileCollide(Vector2 oldVelocity) { - Main.PlaySound(3, (int)projectile.Center.X, (int)projectile.Center.Y, 19, 0.7f); + Main.PlaySound(SoundID.NPCHit, (int)projectile.Center.X, (int)projectile.Center.Y, 19, 0.7f); Bounces--; if (Bounces <= 0) { @@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Rogue } public override void Kill(int timeLeft) { - Main.PlaySound(3, (int)projectile.Center.X, (int)projectile.Center.Y, 19, 0.7f); + Main.PlaySound(SoundID.NPCHit, (int)projectile.Center.X, (int)projectile.Center.Y, 19, 0.7f); int dustCount = Main.rand.Next(8, 16); for (int index = 0; index < dustCount; index++) { diff --git a/Projectiles/Rogue/BouncingEyeballProjectileStealthStrike.cs b/Projectiles/Rogue/BouncingEyeballProjectileStealthStrike.cs index b88216d0f2..f922206b43 100644 --- a/Projectiles/Rogue/BouncingEyeballProjectileStealthStrike.cs +++ b/Projectiles/Rogue/BouncingEyeballProjectileStealthStrike.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -47,13 +47,13 @@ namespace CalamityMod.Projectiles.Rogue { projectile.velocity = Main.rand.NextFloat(-1.15f, -0.85f) * oldVelocity * Bounciness; } - Main.PlaySound(3, (int)projectile.Center.X, (int)projectile.Center.Y, 19, 0.7f); + Main.PlaySound(SoundID.NPCHit, (int)projectile.Center.X, (int)projectile.Center.Y, 19, 0.7f); return false; } public override void Kill(int timeLeft) { //explode into a larger display of blood. Yay - Main.PlaySound(3, (int)projectile.Center.X, (int)projectile.Center.Y, 19, 0.7f); + Main.PlaySound(SoundID.NPCHit, (int)projectile.Center.X, (int)projectile.Center.Y, 19, 0.7f); int dustCount = Main.rand.Next(15, 26); for (int index = 0; index < dustCount; index++) { diff --git a/Projectiles/Rogue/BrackishFlaskProj.cs b/Projectiles/Rogue/BrackishFlaskProj.cs index 1c3cd7792b..fe00874d77 100644 --- a/Projectiles/Rogue/BrackishFlaskProj.cs +++ b/Projectiles/Rogue/BrackishFlaskProj.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -27,12 +27,12 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 107); - int randomDust = Utils.SelectRandom(Main.rand, new int[] - { - 33, - 89 - }); + Main.PlaySound(SoundID.Item107, projectile.Center); + int randomDust = Utils.SelectRandom(Main.rand, new int[] + { + 33, + 89 + }); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, randomDust, projectile.oldVelocity.X, projectile.oldVelocity.Y); diff --git a/Projectiles/Rogue/BrackishWater.cs b/Projectiles/Rogue/BrackishWater.cs index c2d0d092ec..78719abe3c 100644 --- a/Projectiles/Rogue/BrackishWater.cs +++ b/Projectiles/Rogue/BrackishWater.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Rogue Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.25f / 255f, (255 - projectile.alpha) * 0.5f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 21); projectile.localAI[0] += 1f; } int randomDust = Utils.SelectRandom(Main.rand, new int[] diff --git a/Projectiles/Rogue/BrackishWaterBlast.cs b/Projectiles/Rogue/BrackishWaterBlast.cs index 384a893570..90c57ae76b 100644 --- a/Projectiles/Rogue/BrackishWaterBlast.cs +++ b/Projectiles/Rogue/BrackishWaterBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Rogue }); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 21); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Rogue/Brick.cs b/Projectiles/Rogue/Brick.cs index a4867e0f63..416a248a60 100644 --- a/Projectiles/Rogue/Brick.cs +++ b/Projectiles/Rogue/Brick.cs @@ -1,6 +1,8 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; using CalamityMod.Items.Weapons.Rogue; +using Terraria.ID; + namespace CalamityMod.Projectiles.Rogue { public class Brick : ModProjectile @@ -41,7 +43,7 @@ namespace CalamityMod.Projectiles.Rogue Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 50); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 50); //Dust on impact int dust_splash = 0; while (dust_splash < 9) diff --git a/Projectiles/Rogue/BrickFragment.cs b/Projectiles/Rogue/BrickFragment.cs index a0bd0ab6d1..54b7e0ad19 100644 --- a/Projectiles/Rogue/BrickFragment.cs +++ b/Projectiles/Rogue/BrickFragment.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { diff --git a/Projectiles/Rogue/Brimblade2.cs b/Projectiles/Rogue/Brimblade2.cs index 1bdf0e2509..a17d1da2f3 100644 --- a/Projectiles/Rogue/Brimblade2.cs +++ b/Projectiles/Rogue/Brimblade2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/BrimbladeProj.cs b/Projectiles/Rogue/BrimbladeProj.cs index f64b912b56..9f95776b31 100644 --- a/Projectiles/Rogue/BrimbladeProj.cs +++ b/Projectiles/Rogue/BrimbladeProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Rogue/BurningStrifeProj.cs b/Projectiles/Rogue/BurningStrifeProj.cs index e51c763a8c..df19353474 100644 --- a/Projectiles/Rogue/BurningStrifeProj.cs +++ b/Projectiles/Rogue/BurningStrifeProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Rogue target.AddBuff(BuffID.ShadowFlame, 180); if (projectile.Calamity().stealthStrike && projectile.penetrate != 1) { - Main.PlaySound(2, projectile.Center, 103); + Main.PlaySound(SoundID.Item, projectile.Center, 103); int proj = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(projectile.damage * 0.25), projectile.knockBack, projectile.owner); Main.projectile[proj].Center = projectile.Center; Main.projectile[proj].Calamity().rogue = true; @@ -69,7 +69,7 @@ namespace CalamityMod.Projectiles.Rogue target.AddBuff(BuffID.ShadowFlame, 180); if (projectile.Calamity().stealthStrike && projectile.penetrate != 1) { - Main.PlaySound(2, projectile.Center, 103); + Main.PlaySound(SoundID.Item, projectile.Center, 103); int proj = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(projectile.damage * 0.25), projectile.knockBack, projectile.owner); Main.projectile[proj].Center = projectile.Center; Main.projectile[proj].Calamity().rogue = true; @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { int proj; - Main.PlaySound(2, projectile.Center, 103); + Main.PlaySound(SoundID.Item, projectile.Center, 103); if(projectile.Calamity().stealthStrike) proj = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(projectile.damage * 0.25), projectile.knockBack, projectile.owner); else diff --git a/Projectiles/Rogue/CelestialReaperAfterimage.cs b/Projectiles/Rogue/CelestialReaperAfterimage.cs index a61801ce51..c564fad218 100644 --- a/Projectiles/Rogue/CelestialReaperAfterimage.cs +++ b/Projectiles/Rogue/CelestialReaperAfterimage.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue diff --git a/Projectiles/Rogue/CelestialReaperProjectile.cs b/Projectiles/Rogue/CelestialReaperProjectile.cs index 1e79c10013..74f392a99d 100644 --- a/Projectiles/Rogue/CelestialReaperProjectile.cs +++ b/Projectiles/Rogue/CelestialReaperProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using CalamityMod.NPCs.NormalNPCs; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Rogue/Celestus2.cs b/Projectiles/Rogue/Celestus2.cs index 06090a0883..7f9d070323 100644 --- a/Projectiles/Rogue/Celestus2.cs +++ b/Projectiles/Rogue/Celestus2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Rogue/CelestusBoomerang.cs b/Projectiles/Rogue/CelestusBoomerang.cs index e33863e15f..5ccaed09b3 100644 --- a/Projectiles/Rogue/CelestusBoomerang.cs +++ b/Projectiles/Rogue/CelestusBoomerang.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -138,7 +138,7 @@ namespace CalamityMod.Projectiles.Rogue Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 2f), (float)(-Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), (int)(projectile.damage * 0.7f), projectile.knockBack, projectile.owner, 0f, 0f); } } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 122); + Main.PlaySound(SoundID.Item122, (int)projectile.position.X, (int)projectile.position.Y); } public override void OnHitPvp(Player target, int damage, bool crit) @@ -166,7 +166,7 @@ namespace CalamityMod.Projectiles.Rogue Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 2f), (float)(-Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), (int)(projectile.damage * 0.7f), projectile.knockBack, projectile.owner, 0f, 0f); } } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 122); + Main.PlaySound(SoundID.Item122, (int)projectile.position.X, (int)projectile.position.Y); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Rogue/CinquedeaProj.cs b/Projectiles/Rogue/CinquedeaProj.cs index 8f637e6a6f..8262c71800 100644 --- a/Projectiles/Rogue/CinquedeaProj.cs +++ b/Projectiles/Rogue/CinquedeaProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/CircletMark.cs b/Projectiles/Rogue/CircletMark.cs index 487b64d914..11a8651c5f 100644 --- a/Projectiles/Rogue/CircletMark.cs +++ b/Projectiles/Rogue/CircletMark.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Rogue/CircletTornado.cs b/Projectiles/Rogue/CircletTornado.cs index 722eee8f6e..b7ba8c31ae 100644 --- a/Projectiles/Rogue/CircletTornado.cs +++ b/Projectiles/Rogue/CircletTornado.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Rogue/CobaltKunaiProjectile.cs b/Projectiles/Rogue/CobaltKunaiProjectile.cs index 0e7c7b6d39..5328a97ecf 100644 --- a/Projectiles/Rogue/CobaltKunaiProjectile.cs +++ b/Projectiles/Rogue/CobaltKunaiProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Rogue/ConsecratedWaterProjectile.cs b/Projectiles/Rogue/ConsecratedWaterProjectile.cs index f96fae503d..aaf67cc901 100644 --- a/Projectiles/Rogue/ConsecratedWaterProjectile.cs +++ b/Projectiles/Rogue/ConsecratedWaterProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/ContaminatedBileFlask.cs b/Projectiles/Rogue/ContaminatedBileFlask.cs index e436a24213..f18fdc331e 100644 --- a/Projectiles/Rogue/ContaminatedBileFlask.cs +++ b/Projectiles/Rogue/ContaminatedBileFlask.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/Corrocloud1.cs b/Projectiles/Rogue/Corrocloud1.cs index 8a328f0301..f8b960043f 100644 --- a/Projectiles/Rogue/Corrocloud1.cs +++ b/Projectiles/Rogue/Corrocloud1.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/Corrocloud2.cs b/Projectiles/Rogue/Corrocloud2.cs index 44f01228e8..b9544d8c2b 100644 --- a/Projectiles/Rogue/Corrocloud2.cs +++ b/Projectiles/Rogue/Corrocloud2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/Corrocloud3.cs b/Projectiles/Rogue/Corrocloud3.cs index 72ded48c55..dc3172f99d 100644 --- a/Projectiles/Rogue/Corrocloud3.cs +++ b/Projectiles/Rogue/Corrocloud3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/CosmicKunaiProj.cs b/Projectiles/Rogue/CosmicKunaiProj.cs index e4093f4dbc..e21fd75225 100644 --- a/Projectiles/Rogue/CosmicKunaiProj.cs +++ b/Projectiles/Rogue/CosmicKunaiProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/CosmicScythe.cs b/Projectiles/Rogue/CosmicScythe.cs index d0b1149701..9f818bc8f9 100644 --- a/Projectiles/Rogue/CosmicScythe.cs +++ b/Projectiles/Rogue/CosmicScythe.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = projectile.height = 50; diff --git a/Projectiles/Rogue/CraniumSmasherExplosive.cs b/Projectiles/Rogue/CraniumSmasherExplosive.cs index f6810bff89..40c9faf471 100644 --- a/Projectiles/Rogue/CraniumSmasherExplosive.cs +++ b/Projectiles/Rogue/CraniumSmasherExplosive.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { @@ -45,8 +46,8 @@ namespace CalamityMod.Projectiles.Rogue projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); - CalamityUtils.ExplosionGores(projectile, 3); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); + CalamityUtils.ExplosionGores(projectile, 3); for (int num194 = 0; num194 < 25; num194++) { int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 135, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Rogue/CraniumSmasherProj.cs b/Projectiles/Rogue/CraniumSmasherProj.cs index c4702f2ab7..b2bc71b179 100644 --- a/Projectiles/Rogue/CraniumSmasherProj.cs +++ b/Projectiles/Rogue/CraniumSmasherProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue diff --git a/Projectiles/Rogue/Crushax.cs b/Projectiles/Rogue/Crushax.cs index 0bcc649b48..000d57a5d7 100644 --- a/Projectiles/Rogue/Crushax.cs +++ b/Projectiles/Rogue/Crushax.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Rogue/CrystalPiercerProjectile.cs b/Projectiles/Rogue/CrystalPiercerProjectile.cs index 4085b44d39..67d6c09b97 100644 --- a/Projectiles/Rogue/CrystalPiercerProjectile.cs +++ b/Projectiles/Rogue/CrystalPiercerProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Rogue/Crystalline2.cs b/Projectiles/Rogue/Crystalline2.cs index cfabb7a1bb..6aaabebe15 100644 --- a/Projectiles/Rogue/Crystalline2.cs +++ b/Projectiles/Rogue/Crystalline2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/CrystallineProj.cs b/Projectiles/Rogue/CrystallineProj.cs index 9f975121e2..d5e35bf284 100644 --- a/Projectiles/Rogue/CrystallineProj.cs +++ b/Projectiles/Rogue/CrystallineProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, (int)projectile.position.X, (int)projectile.position.Y); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 154, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Rogue/CursedDaggerProj.cs b/Projectiles/Rogue/CursedDaggerProj.cs index aac175c11f..70b8d075be 100644 --- a/Projectiles/Rogue/CursedDaggerProj.cs +++ b/Projectiles/Rogue/CursedDaggerProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Rogue/DeepSeaDumbbell1.cs b/Projectiles/Rogue/DeepSeaDumbbell1.cs index d8a8a822b7..c67740a287 100644 --- a/Projectiles/Rogue/DeepSeaDumbbell1.cs +++ b/Projectiles/Rogue/DeepSeaDumbbell1.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Rogue { public class DeepSeaDumbbell1 : ModProjectile @@ -29,7 +31,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); if (projectile.velocity.X != oldVelocity.X) projectile.velocity.X = -oldVelocity.X; @@ -76,7 +78,7 @@ namespace CalamityMod.Projectiles.Rogue target.AddBuff(ModContent.BuffType(), 600); - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); projectile.velocity.X = -projectile.velocity.X; projectile.velocity.Y = -projectile.velocity.Y; @@ -116,7 +118,7 @@ namespace CalamityMod.Projectiles.Rogue { target.AddBuff(ModContent.BuffType(), 600); - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); projectile.velocity.X = -projectile.velocity.X; projectile.velocity.Y = -projectile.velocity.Y; diff --git a/Projectiles/Rogue/DeepSeaDumbbell2.cs b/Projectiles/Rogue/DeepSeaDumbbell2.cs index fc72f80c83..e52f09b46c 100644 --- a/Projectiles/Rogue/DeepSeaDumbbell2.cs +++ b/Projectiles/Rogue/DeepSeaDumbbell2.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Rogue { public class DeepSeaDumbbell2 : ModProjectile @@ -36,7 +38,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); if (projectile.velocity.X != oldVelocity.X) projectile.velocity.X = -oldVelocity.X; @@ -83,7 +85,7 @@ namespace CalamityMod.Projectiles.Rogue target.AddBuff(ModContent.BuffType(), 600); - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); projectile.velocity.X = -projectile.velocity.X; projectile.velocity.Y = -projectile.velocity.Y; @@ -123,7 +125,7 @@ namespace CalamityMod.Projectiles.Rogue { target.AddBuff(ModContent.BuffType(), 600); - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); projectile.velocity.X = -projectile.velocity.X; projectile.velocity.Y = -projectile.velocity.Y; diff --git a/Projectiles/Rogue/DeepSeaDumbbell3.cs b/Projectiles/Rogue/DeepSeaDumbbell3.cs index 11bf71d687..bf1888a56e 100644 --- a/Projectiles/Rogue/DeepSeaDumbbell3.cs +++ b/Projectiles/Rogue/DeepSeaDumbbell3.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Rogue { public class DeepSeaDumbbell3 : ModProjectile @@ -36,7 +38,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); if (projectile.owner == Main.myPlayer) { @@ -75,7 +77,7 @@ namespace CalamityMod.Projectiles.Rogue target.AddBuff(ModContent.BuffType(), 600); - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); if (projectile.owner == Main.myPlayer) { @@ -109,7 +111,7 @@ namespace CalamityMod.Projectiles.Rogue { target.AddBuff(ModContent.BuffType(), 600); - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); if (projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Rogue/DeepSeaDumbbellWeight.cs b/Projectiles/Rogue/DeepSeaDumbbellWeight.cs index 2a33889ff7..2fdbe96ce3 100644 --- a/Projectiles/Rogue/DeepSeaDumbbellWeight.cs +++ b/Projectiles/Rogue/DeepSeaDumbbellWeight.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Rogue { public class DeepSeaDumbbellWeight : ModProjectile @@ -35,7 +37,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 43, 0.35f, 0f); projectile.position = projectile.Center; projectile.width = projectile.height = 36; diff --git a/Projectiles/Rogue/DeepWounderProjectile.cs b/Projectiles/Rogue/DeepWounderProjectile.cs index 163f98fac5..59e0021e9b 100644 --- a/Projectiles/Rogue/DeepWounderProjectile.cs +++ b/Projectiles/Rogue/DeepWounderProjectile.cs @@ -4,6 +4,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Projectiles.Rogue { @@ -87,7 +88,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/DesecratedBubble.cs b/Projectiles/Rogue/DesecratedBubble.cs index 5de9d71e66..c89b47cc60 100644 --- a/Projectiles/Rogue/DesecratedBubble.cs +++ b/Projectiles/Rogue/DesecratedBubble.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 54); + Main.PlaySound(SoundID.Item54, (int)projectile.position.X, (int)projectile.position.Y); int num190 = Main.rand.Next(5, 9); for (int num191 = 0; num191 < num190; num191++) { diff --git a/Projectiles/Rogue/DesecratedWaterProj.cs b/Projectiles/Rogue/DesecratedWaterProj.cs index e4472cdb7c..0790402941 100644 --- a/Projectiles/Rogue/DesecratedWaterProj.cs +++ b/Projectiles/Rogue/DesecratedWaterProj.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(13, (int) projectile.position.X, (int) projectile.position.Y, 1, 1f, 0.0f); + Main.PlaySound(SoundID.Shatter, (int) projectile.position.X, (int) projectile.position.Y, 1, 1f, 0.0f); Vector2 vector2 = new Vector2(20f, 20f); for (int index = 0; index < 10; ++index) Dust.NewDust(projectile.Center - vector2 / 2f, (int) vector2.X, (int) vector2.Y, 191, 0.0f, 0.0f); diff --git a/Projectiles/Rogue/DestructionBolt.cs b/Projectiles/Rogue/DestructionBolt.cs index 8b075bdbf1..88a821815f 100644 --- a/Projectiles/Rogue/DestructionBolt.cs +++ b/Projectiles/Rogue/DestructionBolt.cs @@ -148,8 +148,8 @@ namespace CalamityMod.Projectiles.Rogue projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); - for (int num621 = 0; num621 < 20; num621++) + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); + for (int num621 = 0; num621 < 20; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default, 2f); Main.dust[num622].velocity *= 3f; diff --git a/Projectiles/Rogue/DestructionStar.cs b/Projectiles/Rogue/DestructionStar.cs index e4fd1c3719..bd05586f60 100644 --- a/Projectiles/Rogue/DestructionStar.cs +++ b/Projectiles/Rogue/DestructionStar.cs @@ -79,8 +79,8 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); - Vector2 vector2 = new Vector2(20f, 20f); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); + Vector2 vector2 = new Vector2(20f, 20f); for (int index1 = 0; index1 < 10; ++index1) { int index2 = Dust.NewDust(projectile.Center - vector2 / 2f, (int) vector2.X, (int) vector2.Y, 31, 0.0f, 0.0f, 100, new Color(), 1.5f); diff --git a/Projectiles/Rogue/DragonShit.cs b/Projectiles/Rogue/DragonShit.cs index 2289c1ac84..e0ae51ace5 100644 --- a/Projectiles/Rogue/DragonShit.cs +++ b/Projectiles/Rogue/DragonShit.cs @@ -1,7 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue @@ -79,7 +80,7 @@ namespace CalamityMod.Projectiles.Rogue } public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); projectile.position = projectile.Center; projectile.width = projectile.height = 80; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Rogue/DukesDecapitatorBubble.cs b/Projectiles/Rogue/DukesDecapitatorBubble.cs index 8e227703f1..ceafe50949 100644 --- a/Projectiles/Rogue/DukesDecapitatorBubble.cs +++ b/Projectiles/Rogue/DukesDecapitatorBubble.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Rogue/DukesDecapitatorProj.cs b/Projectiles/Rogue/DukesDecapitatorProj.cs index 9cfacfd481..36933fc354 100644 --- a/Projectiles/Rogue/DukesDecapitatorProj.cs +++ b/Projectiles/Rogue/DukesDecapitatorProj.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Rogue/DuneHopperProjectile.cs b/Projectiles/Rogue/DuneHopperProjectile.cs index d18a466d48..6993f781e0 100644 --- a/Projectiles/Rogue/DuneHopperProjectile.cs +++ b/Projectiles/Rogue/DuneHopperProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria.ID; diff --git a/Projectiles/Rogue/DuststormCloud.cs b/Projectiles/Rogue/DuststormCloud.cs index 81250cee64..a488447d8a 100644 --- a/Projectiles/Rogue/DuststormCloud.cs +++ b/Projectiles/Rogue/DuststormCloud.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { diff --git a/Projectiles/Rogue/DuststormInABottleProj.cs b/Projectiles/Rogue/DuststormInABottleProj.cs index de59cf4eca..32ac41b268 100644 --- a/Projectiles/Rogue/DuststormInABottleProj.cs +++ b/Projectiles/Rogue/DuststormInABottleProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { bool stealth = projectile.Calamity().stealthStrike; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 107); //change + Main.PlaySound(SoundID.Item107, projectile.Center); for (int k = 0; k < 15; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 85, projectile.oldVelocity.X, projectile.oldVelocity.Y); diff --git a/Projectiles/Rogue/EclipseMirrorBurst.cs b/Projectiles/Rogue/EclipseMirrorBurst.cs index c43adc9795..abafa6657c 100644 --- a/Projectiles/Rogue/EclipseMirrorBurst.cs +++ b/Projectiles/Rogue/EclipseMirrorBurst.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/EclipsesSmol.cs b/Projectiles/Rogue/EclipsesSmol.cs index 58e287a9bc..fa9ad85291 100644 --- a/Projectiles/Rogue/EclipsesSmol.cs +++ b/Projectiles/Rogue/EclipsesSmol.cs @@ -2,6 +2,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { @@ -33,7 +34,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); for (int num621 = 0; num621 < 20; num621++) { if (Main.rand.NextBool(10)) diff --git a/Projectiles/Rogue/EnchantedAxeProj.cs b/Projectiles/Rogue/EnchantedAxeProj.cs index 2b1cc1eb5c..d2cde42f4b 100644 --- a/Projectiles/Rogue/EnchantedAxeProj.cs +++ b/Projectiles/Rogue/EnchantedAxeProj.cs @@ -138,7 +138,7 @@ namespace CalamityMod.Projectiles.Rogue return false; } Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); recall = true; projectile.tileCollide = false; return false; diff --git a/Projectiles/Rogue/EpidemicShredderProjectile.cs b/Projectiles/Rogue/EpidemicShredderProjectile.cs index c29e3b83a7..5e34a832b5 100644 --- a/Projectiles/Rogue/EpidemicShredderProjectile.cs +++ b/Projectiles/Rogue/EpidemicShredderProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/EquanimityDarkShard.cs b/Projectiles/Rogue/EquanimityDarkShard.cs index 30842639d3..59e935f27c 100644 --- a/Projectiles/Rogue/EquanimityDarkShard.cs +++ b/Projectiles/Rogue/EquanimityDarkShard.cs @@ -1,6 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Rogue { public class EquanimityDarkShard : ModProjectile @@ -79,7 +81,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return true; } diff --git a/Projectiles/Rogue/EquanimityLightShard.cs b/Projectiles/Rogue/EquanimityLightShard.cs index cbccfad414..5eebb24db8 100644 --- a/Projectiles/Rogue/EquanimityLightShard.cs +++ b/Projectiles/Rogue/EquanimityLightShard.cs @@ -1,6 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Rogue { public class EquanimityLightShard : ModProjectile @@ -48,7 +50,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return true; } diff --git a/Projectiles/Rogue/EquanimityProj.cs b/Projectiles/Rogue/EquanimityProj.cs index 1e6aca684b..523d1a41fb 100644 --- a/Projectiles/Rogue/EquanimityProj.cs +++ b/Projectiles/Rogue/EquanimityProj.cs @@ -123,7 +123,7 @@ namespace CalamityMod.Projectiles.Rogue return false; } Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); recall = true; projectile.tileCollide = false; return false; diff --git a/Projectiles/Rogue/ExecutionersBladeProj.cs b/Projectiles/Rogue/ExecutionersBladeProj.cs index 05f8f869d6..8527afcb81 100644 --- a/Projectiles/Rogue/ExecutionersBladeProj.cs +++ b/Projectiles/Rogue/ExecutionersBladeProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -87,7 +87,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.width = projectile.height = 128; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 74); + Main.PlaySound(SoundID.Item74, (int)projectile.position.X, (int)projectile.position.Y); for (int num621 = 0; num621 < 3; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Rogue/ExecutionersBladeStealthProj.cs b/Projectiles/Rogue/ExecutionersBladeStealthProj.cs index 106f281f3f..6a57b35726 100644 --- a/Projectiles/Rogue/ExecutionersBladeStealthProj.cs +++ b/Projectiles/Rogue/ExecutionersBladeStealthProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.width = projectile.height = 128; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 74); + Main.PlaySound(SoundID.Item74, (int)projectile.position.X, (int)projectile.position.Y); for (int num621 = 0; num621 < 3; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Rogue/ExorcismProj.cs b/Projectiles/Rogue/ExorcismProj.cs index eeb4b19c9c..8ce33dfbea 100644 --- a/Projectiles/Rogue/ExorcismProj.cs +++ b/Projectiles/Rogue/ExorcismProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -94,15 +94,15 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return true; } public override void Kill(int timeLeft) { - //Crystal smash sound - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + //Crystal smash sound + Main.PlaySound(SoundID.Item27, projectile.position); // Light burst int p = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(projectile.damage * 0.8f), 0, projectile.owner, projectile.ai[0] - 1f, 0); Main.projectile[p].rotation = projectile.rotation; diff --git a/Projectiles/Rogue/ExorcismShockwave.cs b/Projectiles/Rogue/ExorcismShockwave.cs index 565f184725..a7211b83fc 100644 --- a/Projectiles/Rogue/ExorcismShockwave.cs +++ b/Projectiles/Rogue/ExorcismShockwave.cs @@ -1,4 +1,4 @@ - + using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/ExorcismStar.cs b/Projectiles/Rogue/ExorcismStar.cs index b7a4454f5f..e3ff35b421 100644 --- a/Projectiles/Rogue/ExorcismStar.cs +++ b/Projectiles/Rogue/ExorcismStar.cs @@ -1,7 +1,8 @@ - + using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue @@ -35,7 +36,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } } } diff --git a/Projectiles/Rogue/ExplosiveSun.cs b/Projectiles/Rogue/ExplosiveSun.cs index 73f6c06918..12fdc123cb 100644 --- a/Projectiles/Rogue/ExplosiveSun.cs +++ b/Projectiles/Rogue/ExplosiveSun.cs @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.Damage(); if (Main.rand.NextBool(3)) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14, 0.5f); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 14, 0.5f); } for (int num621 = 0; num621 < 5; num621++) { diff --git a/Projectiles/Rogue/FeatherKnifeProjectile.cs b/Projectiles/Rogue/FeatherKnifeProjectile.cs index 8c088e0300..003f9bf825 100644 --- a/Projectiles/Rogue/FeatherKnifeProjectile.cs +++ b/Projectiles/Rogue/FeatherKnifeProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Rogue/FossilShardThrown.cs b/Projectiles/Rogue/FossilShardThrown.cs index faf5b1beba..c5392e9423 100644 --- a/Projectiles/Rogue/FossilShardThrown.cs +++ b/Projectiles/Rogue/FossilShardThrown.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue diff --git a/Projectiles/Rogue/GelDartProjectile.cs b/Projectiles/Rogue/GelDartProjectile.cs index 802883ddcf..299cb380e0 100644 --- a/Projectiles/Rogue/GelDartProjectile.cs +++ b/Projectiles/Rogue/GelDartProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Rogue if (projectile.velocity != oldVelocity) { projectile.velocity = Main.rand.NextFloat(-1.15f, -0.85f) * oldVelocity * 1.35f; - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 56); //minecart bumper sound + Main.PlaySound(SoundID.Item56, projectile.position); // Minecart bumper sound } } else diff --git a/Projectiles/Rogue/GhoulishGougerBoomerang.cs b/Projectiles/Rogue/GhoulishGougerBoomerang.cs index 1eae1dbc54..729d25a48e 100644 --- a/Projectiles/Rogue/GhoulishGougerBoomerang.cs +++ b/Projectiles/Rogue/GhoulishGougerBoomerang.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/GildedDaggerProj.cs b/Projectiles/Rogue/GildedDaggerProj.cs index a9e843003c..b343fcba4e 100644 --- a/Projectiles/Rogue/GildedDaggerProj.cs +++ b/Projectiles/Rogue/GildedDaggerProj.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Projectiles.Rogue { @@ -124,7 +125,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/GlaiveProj.cs b/Projectiles/Rogue/GlaiveProj.cs index 00ae018fff..e2a3d4a386 100644 --- a/Projectiles/Rogue/GlaiveProj.cs +++ b/Projectiles/Rogue/GlaiveProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Rogue/GleamingDaggerProj.cs b/Projectiles/Rogue/GleamingDaggerProj.cs index 4360d62c05..91e768a773 100644 --- a/Projectiles/Rogue/GleamingDaggerProj.cs +++ b/Projectiles/Rogue/GleamingDaggerProj.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Projectiles.Rogue { @@ -124,7 +125,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/GreenDonkeyKongReference.cs b/Projectiles/Rogue/GreenDonkeyKongReference.cs index 823eb0199d..3b23b837be 100644 --- a/Projectiles/Rogue/GreenDonkeyKongReference.cs +++ b/Projectiles/Rogue/GreenDonkeyKongReference.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Rogue { bool stealthS = projectile.Calamity().stealthStrike; int projectileCount = 8; - Main.PlaySound(2, projectile.Center, 14); + Main.PlaySound(SoundID.Item14, projectile.position); if (stealthS) { projectileCount += 5; //more shit the closer we are to death diff --git a/Projectiles/Rogue/HeavenfallenEnergy.cs b/Projectiles/Rogue/HeavenfallenEnergy.cs index fedd5dce3b..e538815554 100644 --- a/Projectiles/Rogue/HeavenfallenEnergy.cs +++ b/Projectiles/Rogue/HeavenfallenEnergy.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Rogue/HeavenfallenStardiskBoomerang.cs b/Projectiles/Rogue/HeavenfallenStardiskBoomerang.cs index f9aa1d1df2..cfcb4c1237 100644 --- a/Projectiles/Rogue/HeavenfallenStardiskBoomerang.cs +++ b/Projectiles/Rogue/HeavenfallenStardiskBoomerang.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Rogue/Honeycomb.cs b/Projectiles/Rogue/Honeycomb.cs index f1bf30e1bd..ba86b48dcd 100644 --- a/Projectiles/Rogue/Honeycomb.cs +++ b/Projectiles/Rogue/Honeycomb.cs @@ -141,7 +141,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 1); + Main.PlaySound(SoundID.NPCDeath1, projectile.position); //Dust on impact int dust_splash = 0; while (dust_splash < 9) diff --git a/Projectiles/Rogue/IceStarProjectile.cs b/Projectiles/Rogue/IceStarProjectile.cs index 2b9181510a..ed89e83139 100644 --- a/Projectiles/Rogue/IceStarProjectile.cs +++ b/Projectiles/Rogue/IceStarProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -86,7 +86,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 67, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Rogue/IcebreakerHammer.cs b/Projectiles/Rogue/IcebreakerHammer.cs index f78d5f5f79..0f3852fee3 100644 --- a/Projectiles/Rogue/IcebreakerHammer.cs +++ b/Projectiles/Rogue/IcebreakerHammer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Rogue/IchorSpearProj.cs b/Projectiles/Rogue/IchorSpearProj.cs index a71171b3c5..aa53d53619 100644 --- a/Projectiles/Rogue/IchorSpearProj.cs +++ b/Projectiles/Rogue/IchorSpearProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/InfernalFireball.cs b/Projectiles/Rogue/InfernalFireball.cs index e8eafb6620..90f23491ed 100644 --- a/Projectiles/Rogue/InfernalFireball.cs +++ b/Projectiles/Rogue/InfernalFireball.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/InfernalFireballEruption.cs b/Projectiles/Rogue/InfernalFireballEruption.cs index 0e2826378a..8ba12f9a3e 100644 --- a/Projectiles/Rogue/InfernalFireballEruption.cs +++ b/Projectiles/Rogue/InfernalFireballEruption.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; @@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14, 0.5f, 0f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 14, 0.5f, 0f); projectile.position = projectile.Center; projectile.width = projectile.height = 144; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Rogue/InfernalKrisCinder.cs b/Projectiles/Rogue/InfernalKrisCinder.cs index 841488275a..dd57e95b48 100644 --- a/Projectiles/Rogue/InfernalKrisCinder.cs +++ b/Projectiles/Rogue/InfernalKrisCinder.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/InfernalKrisExplosion.cs b/Projectiles/Rogue/InfernalKrisExplosion.cs index b09ece65db..eaf64b8bd0 100644 --- a/Projectiles/Rogue/InfernalKrisExplosion.cs +++ b/Projectiles/Rogue/InfernalKrisExplosion.cs @@ -1,4 +1,4 @@ - + using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/InfernalKrisProjectile.cs b/Projectiles/Rogue/InfernalKrisProjectile.cs index 4b61e06f97..fe3c273a31 100644 --- a/Projectiles/Rogue/InfernalKrisProjectile.cs +++ b/Projectiles/Rogue/InfernalKrisProjectile.cs @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Rogue Projectile.NewProjectile(projectile.Center, sparkVelocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.4f), 0, projectile.owner, 0, 0); } Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(projectile.damage * 0.4f), 0, projectile.owner, 0, 0); - Main.PlaySound(2, projectile.position, 74); + Main.PlaySound(SoundID.Item74, projectile.position); } } @@ -102,7 +102,7 @@ namespace CalamityMod.Projectiles.Rogue Projectile.NewProjectile(projectile.Center, sparkVelocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.4f), 0, projectile.owner, 0, 0); } Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(projectile.damage * 0.4f), 0, projectile.owner, 0, 0); - Main.PlaySound(2, projectile.position, 74); + Main.PlaySound(SoundID.Item74, projectile.position); } } @@ -156,7 +156,7 @@ namespace CalamityMod.Projectiles.Rogue } } - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Item74, projectile.position); projectile.Kill(); return false; } @@ -193,7 +193,7 @@ namespace CalamityMod.Projectiles.Rogue Projectile.NewProjectile(projectile.Center, sparkVelocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.4f), 0, projectile.owner, 0, 0); } Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(projectile.damage * 0.4f), 0, projectile.owner, 0, 0); - Main.PlaySound(2, projectile.position, 74); + Main.PlaySound(SoundID.Item74, projectile.position); } } } diff --git a/Projectiles/Rogue/InfernalSpearProjectile.cs b/Projectiles/Rogue/InfernalSpearProjectile.cs index dabca0111b..a6fdd83cd6 100644 --- a/Projectiles/Rogue/InfernalSpearProjectile.cs +++ b/Projectiles/Rogue/InfernalSpearProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 20; 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/Rogue/InkBombProjectile.cs b/Projectiles/Rogue/InkBombProjectile.cs index e6822b154a..dcef0a1e9a 100644 --- a/Projectiles/Rogue/InkBombProjectile.cs +++ b/Projectiles/Rogue/InkBombProjectile.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { @@ -52,7 +53,7 @@ namespace CalamityMod.Projectiles.Rogue private void CreateInk() { Player player = Main.player[projectile.owner]; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int i = 0; i < 20; i++) { int projType = Main.rand.Next(0, 3); diff --git a/Projectiles/Rogue/InkCloud.cs b/Projectiles/Rogue/InkCloud.cs index 8695c1ff9d..639fb85145 100644 --- a/Projectiles/Rogue/InkCloud.cs +++ b/Projectiles/Rogue/InkCloud.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/InkCloud2.cs b/Projectiles/Rogue/InkCloud2.cs index 3355a4778f..fb36ca7334 100644 --- a/Projectiles/Rogue/InkCloud2.cs +++ b/Projectiles/Rogue/InkCloud2.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/InkCloud3.cs b/Projectiles/Rogue/InkCloud3.cs index 21f67db423..bb8d519e44 100644 --- a/Projectiles/Rogue/InkCloud3.cs +++ b/Projectiles/Rogue/InkCloud3.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/IronFranciscaProj.cs b/Projectiles/Rogue/IronFranciscaProj.cs index 8dfdb8f30b..d06cf86b74 100644 --- a/Projectiles/Rogue/IronFranciscaProj.cs +++ b/Projectiles/Rogue/IronFranciscaProj.cs @@ -75,7 +75,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/JawsProjectile.cs b/Projectiles/Rogue/JawsProjectile.cs index 97bceff3e1..86daf3e1ac 100644 --- a/Projectiles/Rogue/JawsProjectile.cs +++ b/Projectiles/Rogue/JawsProjectile.cs @@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/JawsShockwave.cs b/Projectiles/Rogue/JawsShockwave.cs index 60e41af77f..10b2b5e885 100644 --- a/Projectiles/Rogue/JawsShockwave.cs +++ b/Projectiles/Rogue/JawsShockwave.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/JewelSpike.cs b/Projectiles/Rogue/JewelSpike.cs index ae26e5a0c6..eef21832c8 100644 --- a/Projectiles/Rogue/JewelSpike.cs +++ b/Projectiles/Rogue/JewelSpike.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue diff --git a/Projectiles/Rogue/KylieBoomerang.cs b/Projectiles/Rogue/KylieBoomerang.cs index 645a6ec9c7..7263d41f16 100644 --- a/Projectiles/Rogue/KylieBoomerang.cs +++ b/Projectiles/Rogue/KylieBoomerang.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using System; using Terraria; @@ -131,7 +131,7 @@ namespace CalamityMod.Projectiles.Rogue { //Bounce off tiles and start homing on player if it hits a tile Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); if (projectile.velocity.X != oldVelocity.X) { projectile.velocity.X = -oldVelocity.X; diff --git a/Projectiles/Rogue/LatcherMineProjectile.cs b/Projectiles/Rogue/LatcherMineProjectile.cs index 360eb8cd87..d533ec751d 100644 --- a/Projectiles/Rogue/LatcherMineProjectile.cs +++ b/Projectiles/Rogue/LatcherMineProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -122,7 +122,7 @@ namespace CalamityMod.Projectiles.Rogue for (int i = 0; i < Main.npc.Length; i++) { if (Main.npc[i].active && !Main.npc[i].dontTakeDamage && - ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || + ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == NPCID.Guide && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == NPCID.Clothier && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || (projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1)) { if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i])) @@ -202,7 +202,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = (projectile.Calamity().stealthStrike ? 240 : 100); projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Rogue/LeadTomahawkProj.cs b/Projectiles/Rogue/LeadTomahawkProj.cs index f0200a1e2d..0b75959f64 100644 --- a/Projectiles/Rogue/LeadTomahawkProj.cs +++ b/Projectiles/Rogue/LeadTomahawkProj.cs @@ -75,7 +75,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/LeviathanTooth.cs b/Projectiles/Rogue/LeviathanTooth.cs index b57da30fe1..50e48d6db0 100644 --- a/Projectiles/Rogue/LeviathanTooth.cs +++ b/Projectiles/Rogue/LeviathanTooth.cs @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/LionfishProj.cs b/Projectiles/Rogue/LionfishProj.cs index 28b76d92c0..237c3334f8 100644 --- a/Projectiles/Rogue/LionfishProj.cs +++ b/Projectiles/Rogue/LionfishProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Melee; +using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 72; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Rogue/LostSoulFriendly.cs b/Projectiles/Rogue/LostSoulFriendly.cs index 3014bd7ff8..d72ac25021 100644 --- a/Projectiles/Rogue/LostSoulFriendly.cs +++ b/Projectiles/Rogue/LostSoulFriendly.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/LuminousShard.cs b/Projectiles/Rogue/LuminousShard.cs index 4ca9b6a511..e9f937135e 100644 --- a/Projectiles/Rogue/LuminousShard.cs +++ b/Projectiles/Rogue/LuminousShard.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Rogue/LuminousStrikerProj.cs b/Projectiles/Rogue/LuminousStrikerProj.cs index 96343e5dd8..0cd8cecad3 100644 --- a/Projectiles/Rogue/LuminousStrikerProj.cs +++ b/Projectiles/Rogue/LuminousStrikerProj.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Rogue/LunarKunaiProj.cs b/Projectiles/Rogue/LunarKunaiProj.cs index 9408b4c5e6..d07e7ef3d0 100644 --- a/Projectiles/Rogue/LunarKunaiProj.cs +++ b/Projectiles/Rogue/LunarKunaiProj.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Rogue { if (lunarEnhance) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 28; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Rogue/LuxorsGiftRogue.cs b/Projectiles/Rogue/LuxorsGiftRogue.cs index 22fa047714..045a593822 100644 --- a/Projectiles/Rogue/LuxorsGiftRogue.cs +++ b/Projectiles/Rogue/LuxorsGiftRogue.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/MalachiteBolt.cs b/Projectiles/Rogue/MalachiteBolt.cs index 4133705f6f..ac0e718b95 100644 --- a/Projectiles/Rogue/MalachiteBolt.cs +++ b/Projectiles/Rogue/MalachiteBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/MalachiteProj.cs b/Projectiles/Rogue/MalachiteProj.cs index 2d12ee803e..9bcfb4aa6e 100644 --- a/Projectiles/Rogue/MalachiteProj.cs +++ b/Projectiles/Rogue/MalachiteProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/MetalChunk.cs b/Projectiles/Rogue/MetalChunk.cs index d38844aedf..a8f4cf8e4c 100644 --- a/Projectiles/Rogue/MetalChunk.cs +++ b/Projectiles/Rogue/MetalChunk.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Microsoft.Xna.Framework; diff --git a/Projectiles/Rogue/MetalShard.cs b/Projectiles/Rogue/MetalShard.cs index dd4a9a59e8..7b96f0f7e9 100644 --- a/Projectiles/Rogue/MetalShard.cs +++ b/Projectiles/Rogue/MetalShard.cs @@ -1,4 +1,4 @@ - + using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/MeteorFistProj.cs b/Projectiles/Rogue/MeteorFistProj.cs index f97b62824a..6b32988f1a 100644 --- a/Projectiles/Rogue/MeteorFistProj.cs +++ b/Projectiles/Rogue/MeteorFistProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 40; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 6, 0f, 0f, 100, default, 1f); diff --git a/Projectiles/Rogue/MoltenAmputatorProj.cs b/Projectiles/Rogue/MoltenAmputatorProj.cs index f6b823de35..47995b561b 100644 --- a/Projectiles/Rogue/MoltenAmputatorProj.cs +++ b/Projectiles/Rogue/MoltenAmputatorProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Rogue { fireInTheBlob(projectile.Calamity().stealthStrike ? Main.rand.Next(3, 5) : Main.rand.Next(1, 3)); } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); for (int k = 0; k < 10; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 244, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); @@ -84,7 +84,7 @@ namespace CalamityMod.Projectiles.Rogue { fireInTheBlob(projectile.Calamity().stealthStrike ? Main.rand.Next(3, 5) : Main.rand.Next(1, 3)); } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); for (int k = 0; k < 10; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 244, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Rogue/MoltenBlobThrown.cs b/Projectiles/Rogue/MoltenBlobThrown.cs index 05e337d493..bbd1a40ca0 100644 --- a/Projectiles/Rogue/MoltenBlobThrown.cs +++ b/Projectiles/Rogue/MoltenBlobThrown.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { @@ -66,7 +67,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 10; diff --git a/Projectiles/Rogue/MonkeyDart.cs b/Projectiles/Rogue/MonkeyDart.cs index 947417084e..b603cf425a 100644 --- a/Projectiles/Rogue/MonkeyDart.cs +++ b/Projectiles/Rogue/MonkeyDart.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y); + Main.PlaySound(SoundID.Dig, projectile.position); //Dust splash int dustsplash = 0; while (dustsplash < 4) @@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Rogue { //Code for bouncing Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); if (projectile.velocity.X != oldVelocity.X) { projectile.velocity.X = -oldVelocity.X; diff --git a/Projectiles/Rogue/MoonSigil.cs b/Projectiles/Rogue/MoonSigil.cs index b60308be26..dfe700b122 100644 --- a/Projectiles/Rogue/MoonSigil.cs +++ b/Projectiles/Rogue/MoonSigil.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/MycorootProj.cs b/Projectiles/Rogue/MycorootProj.cs index efe3933d3c..d429476e14 100644 --- a/Projectiles/Rogue/MycorootProj.cs +++ b/Projectiles/Rogue/MycorootProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/MythrilKnifeProjectile.cs b/Projectiles/Rogue/MythrilKnifeProjectile.cs index 76e38e5a82..df31e12117 100644 --- a/Projectiles/Rogue/MythrilKnifeProjectile.cs +++ b/Projectiles/Rogue/MythrilKnifeProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; diff --git a/Projectiles/Rogue/NightsGazeProjectile.cs b/Projectiles/Rogue/NightsGazeProjectile.cs index eb5b37206e..61af3eff00 100644 --- a/Projectiles/Rogue/NightsGazeProjectile.cs +++ b/Projectiles/Rogue/NightsGazeProjectile.cs @@ -70,9 +70,9 @@ namespace CalamityMod.Projectiles.Rogue Projectile.NewProjectile(projectile.Center, velocity * speed, projectileType, projectileDamage, 5f, projectile.owner, 0f, moveDuration); } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62, 0.6f); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 68, 0.2f); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 122, 0.4f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 62, 0.6f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 68, 0.2f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 122, 0.4f); } public override void OnHitPvp(Player target, int damage, bool crit) @@ -97,15 +97,15 @@ namespace CalamityMod.Projectiles.Rogue Projectile.NewProjectile(projectile.Center, velocity * speed, projectileType, projectileDamage, 5f, projectile.owner, 0f, moveDuration); } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62, 0.6f); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 68, 0.2f); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 122, 0.4f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 62, 0.6f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 68, 0.2f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 122, 0.4f); } public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/NightsGazeStar.cs b/Projectiles/Rogue/NightsGazeStar.cs index ed77c8d2ff..13f2cfa801 100644 --- a/Projectiles/Rogue/NightsGazeStar.cs +++ b/Projectiles/Rogue/NightsGazeStar.cs @@ -91,7 +91,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } } } diff --git a/Projectiles/Rogue/NychthemeronProjectile.cs b/Projectiles/Rogue/NychthemeronProjectile.cs index bfaa6e74f4..4c1bf56c47 100644 --- a/Projectiles/Rogue/NychthemeronProjectile.cs +++ b/Projectiles/Rogue/NychthemeronProjectile.cs @@ -3,6 +3,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Projectiles.Rogue { @@ -70,7 +71,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); float minScale = 0.9f; float maxScale = 1.1f; diff --git a/Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.cs b/Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.cs index 27243954bc..ca65813395 100644 --- a/Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.cs +++ b/Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Rogue if (projectile.velocity.Y != velocity.Y && (velocity.Y < -3f || velocity.Y > 3f)) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.Center.X, (int)projectile.Center.Y, 1); + Main.PlaySound(SoundID.Dig, projectile.Center); } if (projectile.velocity.X != velocity.X) { diff --git a/Projectiles/Rogue/PalladiumJavelinProjectile.cs b/Projectiles/Rogue/PalladiumJavelinProjectile.cs index 2b23890cda..a5ef1bc4fa 100644 --- a/Projectiles/Rogue/PalladiumJavelinProjectile.cs +++ b/Projectiles/Rogue/PalladiumJavelinProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Rogue/PartisanExplosion.cs b/Projectiles/Rogue/PartisanExplosion.cs index fb25ff52a8..b80436f420 100644 --- a/Projectiles/Rogue/PartisanExplosion.cs +++ b/Projectiles/Rogue/PartisanExplosion.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Microsoft.Xna.Framework; diff --git a/Projectiles/Rogue/PenumbraBomb.cs b/Projectiles/Rogue/PenumbraBomb.cs index 93b0785dc0..3e58b37c95 100644 --- a/Projectiles/Rogue/PenumbraBomb.cs +++ b/Projectiles/Rogue/PenumbraBomb.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Microsoft.Xna.Framework; diff --git a/Projectiles/Rogue/PenumbraSoul.cs b/Projectiles/Rogue/PenumbraSoul.cs index ce7b0f3c88..1d9c5b7aa4 100644 --- a/Projectiles/Rogue/PenumbraSoul.cs +++ b/Projectiles/Rogue/PenumbraSoul.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Rogue/PhantasmalSoul.cs b/Projectiles/Rogue/PhantasmalSoul.cs index 692c26b81c..2f725938ee 100644 --- a/Projectiles/Rogue/PhantasmalSoul.cs +++ b/Projectiles/Rogue/PhantasmalSoul.cs @@ -142,8 +142,8 @@ namespace CalamityMod.Projectiles.Rogue } if (Main.rand.NextBool(6)) { - Main.PlaySound(4, (int)projectile.Center.X, (int)projectile.Center.Y, 39, 1f, 0f); - } + Main.PlaySound(SoundID.NPCDeath39, projectile.position); + } } // Cannot deal damage for the first several frames of existence. diff --git a/Projectiles/Rogue/PlaguedFuelPackCloud.cs b/Projectiles/Rogue/PlaguedFuelPackCloud.cs index 5097d841f6..4ce94a633e 100644 --- a/Projectiles/Rogue/PlaguedFuelPackCloud.cs +++ b/Projectiles/Rogue/PlaguedFuelPackCloud.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Terraria; using Terraria.ModLoader; using Microsoft.Xna.Framework; diff --git a/Projectiles/Rogue/PlaguenadeBee.cs b/Projectiles/Rogue/PlaguenadeBee.cs index 1eb275eb94..f08bcae8a1 100644 --- a/Projectiles/Rogue/PlaguenadeBee.cs +++ b/Projectiles/Rogue/PlaguenadeBee.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Rogue/PlaguenadeProj.cs b/Projectiles/Rogue/PlaguenadeProj.cs index c57af6db44..904eaf1d33 100644 --- a/Projectiles/Rogue/PlaguenadeProj.cs +++ b/Projectiles/Rogue/PlaguenadeProj.cs @@ -1,7 +1,8 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { @@ -78,8 +79,8 @@ namespace CalamityMod.Projectiles.Rogue 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); } } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); - if (projectile.Calamity().stealthStrike) + Main.PlaySound(SoundID.Item14, projectile.position); + if (projectile.Calamity().stealthStrike) { projectile.position = projectile.Center; projectile.width = projectile.height = 75; diff --git a/Projectiles/Rogue/Prismalline2.cs b/Projectiles/Rogue/Prismalline2.cs index 3bfd414c05..a9e4662186 100644 --- a/Projectiles/Rogue/Prismalline2.cs +++ b/Projectiles/Rogue/Prismalline2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/Prismalline3.cs b/Projectiles/Rogue/Prismalline3.cs index 1a36b0f7d2..1c4eeb32e2 100644 --- a/Projectiles/Rogue/Prismalline3.cs +++ b/Projectiles/Rogue/Prismalline3.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/PrismallineProj.cs b/Projectiles/Rogue/PrismallineProj.cs index 35b1aeb0e2..280539286c 100644 --- a/Projectiles/Rogue/PrismallineProj.cs +++ b/Projectiles/Rogue/PrismallineProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -107,9 +107,9 @@ namespace CalamityMod.Projectiles.Rogue } public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); - for (int k = 0; k < 5; k++) + { + Main.PlaySound(SoundID.Item27, projectile.position); + for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 154, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); } diff --git a/Projectiles/Rogue/ProfanedPartisanproj.cs b/Projectiles/Rogue/ProfanedPartisanproj.cs index aec928321c..762549e343 100644 --- a/Projectiles/Rogue/ProfanedPartisanproj.cs +++ b/Projectiles/Rogue/ProfanedPartisanproj.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Microsoft.Xna.Framework; @@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Rogue { Dust.NewDust(projectile.position, projectile.width, projectile.height, 244, 0f, 0f, 50, default(Color), 2.6f); } - Main.PlaySound(2, projectile.position, 45); + Main.PlaySound(SoundID.Item45, projectile.position); Vector2 explode = new Vector2(0f, 0f); Projectile.NewProjectile(projectile.Center, explode, ModContent.ProjectileType(), projectile.damage/2, projectile.knockBack * 1.3f, projectile.owner); } diff --git a/Projectiles/Rogue/ProfanedPartisanspear.cs b/Projectiles/Rogue/ProfanedPartisanspear.cs index 44f713f455..2c9a6d7c15 100644 --- a/Projectiles/Rogue/ProfanedPartisanspear.cs +++ b/Projectiles/Rogue/ProfanedPartisanspear.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Microsoft.Xna.Framework; diff --git a/Projectiles/Rogue/Quasar2.cs b/Projectiles/Rogue/Quasar2.cs index 4d8b87ad05..fc219c5d6f 100644 --- a/Projectiles/Rogue/Quasar2.cs +++ b/Projectiles/Rogue/Quasar2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using CalamityMod.Dusts; using Microsoft.Xna.Framework; diff --git a/Projectiles/Rogue/QuasarKnife.cs b/Projectiles/Rogue/QuasarKnife.cs index a23f7dd363..d6b214fab5 100644 --- a/Projectiles/Rogue/QuasarKnife.cs +++ b/Projectiles/Rogue/QuasarKnife.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using CalamityMod.Dusts; using Microsoft.Xna.Framework; @@ -89,7 +89,7 @@ namespace CalamityMod.Projectiles.Rogue Main.projectile[knife].timeLeft = 120; } } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); projectile.active = false; } @@ -114,7 +114,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 5; k++) { 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/RadiantExplosion.cs b/Projectiles/Rogue/RadiantExplosion.cs index 76fac37912..4099775005 100644 --- a/Projectiles/Rogue/RadiantExplosion.cs +++ b/Projectiles/Rogue/RadiantExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using CalamityMod.Dusts; using CalamityMod.Projectiles.Ranged; diff --git a/Projectiles/Rogue/RadiantStar2.cs b/Projectiles/Rogue/RadiantStar2.cs index 9bf3f81f5a..e161cf92fd 100644 --- a/Projectiles/Rogue/RadiantStar2.cs +++ b/Projectiles/Rogue/RadiantStar2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using CalamityMod.Dusts; using Microsoft.Xna.Framework; diff --git a/Projectiles/Rogue/RadiantStarKnife.cs b/Projectiles/Rogue/RadiantStarKnife.cs index a8b48b7ae7..1a3d5b515e 100644 --- a/Projectiles/Rogue/RadiantStarKnife.cs +++ b/Projectiles/Rogue/RadiantStarKnife.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -91,7 +91,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.ai[0] == 1f ? 1f : 0f, 0f); Main.projectile[stabber2].Calamity().stealthStrike = projectile.Calamity().stealthStrike; } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); int boomer = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)(projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[boomer].Calamity().stealthStrike = projectile.Calamity().stealthStrike; if (projectile.Calamity().stealthStrike) @@ -123,7 +123,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 5; k++) { 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/ReaperProjectile.cs b/Projectiles/Rogue/ReaperProjectile.cs index 93ab84cc8c..b493abd462 100644 --- a/Projectiles/Rogue/ReaperProjectile.cs +++ b/Projectiles/Rogue/ReaperProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -153,7 +153,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.Item21, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 100; diff --git a/Projectiles/Rogue/RotBallProjectile.cs b/Projectiles/Rogue/RotBallProjectile.cs index 8e35b70f23..d9e11daa8f 100644 --- a/Projectiles/Rogue/RotBallProjectile.cs +++ b/Projectiles/Rogue/RotBallProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Rogue/SandDollarProj.cs b/Projectiles/Rogue/SandDollarProj.cs index f5d2ec5048..5f2f5ce92f 100644 --- a/Projectiles/Rogue/SandDollarProj.cs +++ b/Projectiles/Rogue/SandDollarProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue diff --git a/Projectiles/Rogue/SandDollarStealth.cs b/Projectiles/Rogue/SandDollarStealth.cs index 7eb1499c78..d92e588b1d 100644 --- a/Projectiles/Rogue/SandDollarStealth.cs +++ b/Projectiles/Rogue/SandDollarStealth.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/SandslasherProj.cs b/Projectiles/Rogue/SandslasherProj.cs index 2eacb292f5..8809224707 100644 --- a/Projectiles/Rogue/SandslasherProj.cs +++ b/Projectiles/Rogue/SandslasherProj.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Rogue/ScarletBlast.cs b/Projectiles/Rogue/ScarletBlast.cs index 66a66e47e6..ef6c1943bb 100644 --- a/Projectiles/Rogue/ScarletBlast.cs +++ b/Projectiles/Rogue/ScarletBlast.cs @@ -1,6 +1,7 @@ using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { @@ -30,7 +31,7 @@ namespace CalamityMod.Projectiles.Rogue Lighting.AddLight(projectile.Center, 0.55f, 0.25f, 0f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Rogue/ScarletDevilBullet.cs b/Projectiles/Rogue/ScarletDevilBullet.cs index 9d21e151bf..57f46bbc89 100644 --- a/Projectiles/Rogue/ScarletDevilBullet.cs +++ b/Projectiles/Rogue/ScarletDevilBullet.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/ScarletDevilProjectile.cs b/Projectiles/Rogue/ScarletDevilProjectile.cs index 41a38ffd9a..4c03adf672 100644 --- a/Projectiles/Rogue/ScarletDevilProjectile.cs +++ b/Projectiles/Rogue/ScarletDevilProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Rogue/ScourgeoftheDesertProj.cs b/Projectiles/Rogue/ScourgeoftheDesertProj.cs index ab85cbb7e8..58bb1eeed1 100644 --- a/Projectiles/Rogue/ScourgeoftheDesertProj.cs +++ b/Projectiles/Rogue/ScourgeoftheDesertProj.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs b/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs index 2c35249d53..f2563bde7e 100644 --- a/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs +++ b/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int dustIndex = 0; dustIndex < 8; dustIndex++) { int dusty = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 85, 0f, 0f, 100, default, 1f); diff --git a/Projectiles/Rogue/SeafoamBombProj.cs b/Projectiles/Rogue/SeafoamBombProj.cs index f34983bc94..d1318a15b2 100644 --- a/Projectiles/Rogue/SeafoamBombProj.cs +++ b/Projectiles/Rogue/SeafoamBombProj.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { @@ -38,7 +39,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int i = 0; i < (projectile.Calamity().stealthStrike ? 5 : 1); i++) { diff --git a/Projectiles/Rogue/SeafoamBubble.cs b/Projectiles/Rogue/SeafoamBubble.cs index df67dceecf..27d2607c8e 100644 --- a/Projectiles/Rogue/SeafoamBubble.cs +++ b/Projectiles/Rogue/SeafoamBubble.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/ShatteredExplosion.cs b/Projectiles/Rogue/ShatteredExplosion.cs index a8f40ad148..bfcf956607 100644 --- a/Projectiles/Rogue/ShatteredExplosion.cs +++ b/Projectiles/Rogue/ShatteredExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/ShatteredSunKnife.cs b/Projectiles/Rogue/ShatteredSunKnife.cs index 4071598e2d..c61db514c9 100644 --- a/Projectiles/Rogue/ShatteredSunKnife.cs +++ b/Projectiles/Rogue/ShatteredSunKnife.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Rogue Main.projectile[proj].Calamity().stealthStrike = projectile.Calamity().stealthStrike; spread -= Main.rand.Next(2, 6); } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); projectile.active = false; for (int num621 = 0; num621 < 8; num621++) { @@ -95,25 +95,25 @@ 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, ModContent.ProjectileType(), (int) ((double) damage * 0.15), projectile.knockBack, projectile.owner, 0f, 0f); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); } public override void OnHitPvp(Player target, int damage, bool crit) { Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)damage * 0.15), projectile.knockBack, projectile.owner, 0f, 0f); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); } public override bool OnTileCollide(Vector2 oldVelocity) { Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.15), projectile.knockBack, projectile.owner, 0f, 0f); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); return true; } public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 246, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f, 0, default, 1f); diff --git a/Projectiles/Rogue/ShatteredSunScorchedBlade.cs b/Projectiles/Rogue/ShatteredSunScorchedBlade.cs index 688957ea94..6227275058 100644 --- a/Projectiles/Rogue/ShatteredSunScorchedBlade.cs +++ b/Projectiles/Rogue/ShatteredSunScorchedBlade.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -183,8 +183,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = projectile.height = 200; diff --git a/Projectiles/Rogue/ShinobiBladeProjectile.cs b/Projectiles/Rogue/ShinobiBladeProjectile.cs index af1ab201fa..1a715503d6 100644 --- a/Projectiles/Rogue/ShinobiBladeProjectile.cs +++ b/Projectiles/Rogue/ShinobiBladeProjectile.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/ShockGrenadeBolt.cs b/Projectiles/Rogue/ShockGrenadeBolt.cs index 37b47c3a44..564aed3c07 100644 --- a/Projectiles/Rogue/ShockGrenadeBolt.cs +++ b/Projectiles/Rogue/ShockGrenadeBolt.cs @@ -113,7 +113,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 93, 0.25f, 0f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 93, 0.25f, 0f); for (int i = 0; i < 5; i++) { diff --git a/Projectiles/Rogue/ShockGrenadeExplosion.cs b/Projectiles/Rogue/ShockGrenadeExplosion.cs index 1ff1ac7f1d..b8c4687fa8 100644 --- a/Projectiles/Rogue/ShockGrenadeExplosion.cs +++ b/Projectiles/Rogue/ShockGrenadeExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/ShockGrenadeProjectile.cs b/Projectiles/Rogue/ShockGrenadeProjectile.cs index c258d532a1..9a96e57a30 100644 --- a/Projectiles/Rogue/ShockGrenadeProjectile.cs +++ b/Projectiles/Rogue/ShockGrenadeProjectile.cs @@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 94, 0.75f, 0f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 94, 0.75f, 0f); int boltCount = Main.rand.Next(5, 11); for (int i = 0; i < boltCount; i++) @@ -125,7 +125,7 @@ namespace CalamityMod.Projectiles.Rogue int auraDamage = projectile.damage / 4; Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), auraDamage, 1, projectile.owner, 0, 0); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 93, 0.5f, 0f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 93, 0.5f, 0f); } Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, 3, projectile.owner, 0, 0); } diff --git a/Projectiles/Rogue/ShockTeslaAura.cs b/Projectiles/Rogue/ShockTeslaAura.cs index 120724c3b2..d853466fba 100644 --- a/Projectiles/Rogue/ShockTeslaAura.cs +++ b/Projectiles/Rogue/ShockTeslaAura.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs; +using CalamityMod.NPCs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Rogue/SkyStabberProj.cs b/Projectiles/Rogue/SkyStabberProj.cs index 29bf4dc1e3..915fea6964 100644 --- a/Projectiles/Rogue/SkyStabberProj.cs +++ b/Projectiles/Rogue/SkyStabberProj.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Microsoft.Xna.Framework; diff --git a/Projectiles/Rogue/SlickCaneProjectile.cs b/Projectiles/Rogue/SlickCaneProjectile.cs index 03447e0bfa..279e0b333b 100644 --- a/Projectiles/Rogue/SlickCaneProjectile.cs +++ b/Projectiles/Rogue/SlickCaneProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/SludgeSplotchProj1.cs b/Projectiles/Rogue/SludgeSplotchProj1.cs index eec4f79aa1..8f801a1e5b 100644 --- a/Projectiles/Rogue/SludgeSplotchProj1.cs +++ b/Projectiles/Rogue/SludgeSplotchProj1.cs @@ -77,8 +77,8 @@ namespace CalamityMod.Projectiles.Rogue } Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 9, 2, 0); + Main.PlaySound(SoundID.Dig, projectile.position); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 9, 2, 0); projectile.Kill(); return false; } @@ -93,13 +93,13 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Slow, 240); - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 9, 2, 0); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 9, 2, 0); } public override void OnHitPvp(Player target, int damage, bool crit) { target.AddBuff(BuffID.Slow, 240); - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 9, 2, 0); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 9, 2, 0); } public override void Kill(int timeLeft) diff --git a/Projectiles/Rogue/SludgeSplotchProj2.cs b/Projectiles/Rogue/SludgeSplotchProj2.cs index aa1eef6a54..504a256da8 100644 --- a/Projectiles/Rogue/SludgeSplotchProj2.cs +++ b/Projectiles/Rogue/SludgeSplotchProj2.cs @@ -46,8 +46,8 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 28, 0.3f, 0); + Main.PlaySound(SoundID.Dig, projectile.position); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.position.X, (int)projectile.position.Y, 28, 0.3f, 0); projectile.Kill(); return false; } diff --git a/Projectiles/Rogue/SnapClamProj.cs b/Projectiles/Rogue/SnapClamProj.cs index 6ec23fb9d6..1a50dbc8f0 100644 --- a/Projectiles/Rogue/SnapClamProj.cs +++ b/Projectiles/Rogue/SnapClamProj.cs @@ -1,6 +1,7 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { @@ -76,7 +77,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 13; diff --git a/Projectiles/Rogue/SnapClamStealth.cs b/Projectiles/Rogue/SnapClamStealth.cs index d9abdaa989..c7b893f59c 100644 --- a/Projectiles/Rogue/SnapClamStealth.cs +++ b/Projectiles/Rogue/SnapClamStealth.cs @@ -1,6 +1,7 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { @@ -80,7 +81,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 13; diff --git a/Projectiles/Rogue/SpearofDestinyProjectile.cs b/Projectiles/Rogue/SpearofDestinyProjectile.cs index 14da5b83bd..685c5a4dc3 100644 --- a/Projectiles/Rogue/SpearofDestinyProjectile.cs +++ b/Projectiles/Rogue/SpearofDestinyProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Rogue/SpearofPaleolithProj.cs b/Projectiles/Rogue/SpearofPaleolithProj.cs index 346463ddb8..c7a80c8a2f 100644 --- a/Projectiles/Rogue/SpearofPaleolithProj.cs +++ b/Projectiles/Rogue/SpearofPaleolithProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Rogue/SpentFuelContainerProjectile.cs b/Projectiles/Rogue/SpentFuelContainerProjectile.cs index 7ae1cdaeee..d4231c24f2 100644 --- a/Projectiles/Rogue/SpentFuelContainerProjectile.cs +++ b/Projectiles/Rogue/SpentFuelContainerProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Rogue/SphereBladed.cs b/Projectiles/Rogue/SphereBladed.cs index 32c85f80c0..4845cc80a0 100644 --- a/Projectiles/Rogue/SphereBladed.cs +++ b/Projectiles/Rogue/SphereBladed.cs @@ -114,7 +114,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Main.PlaySound(3, (int)projectile.Center.X, (int)projectile.Center.Y, 34); + Main.PlaySound(SoundID.NPCHit34, projectile.position); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Rogue/SphereBlue.cs b/Projectiles/Rogue/SphereBlue.cs index 7448e97c94..10a6e7e985 100644 --- a/Projectiles/Rogue/SphereBlue.cs +++ b/Projectiles/Rogue/SphereBlue.cs @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(4, (int)projectile.Center.X, (int)projectile.Center.Y, 37); + Main.PlaySound(SoundID.NPCDeath37, projectile.position); for (int num625 = 0; num625 < 3; num625++) { float scaleFactor10 = 0.33f; diff --git a/Projectiles/Rogue/SphereSpiked.cs b/Projectiles/Rogue/SphereSpiked.cs index 7808ab9153..f49ed67b44 100644 --- a/Projectiles/Rogue/SphereSpiked.cs +++ b/Projectiles/Rogue/SphereSpiked.cs @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Main.PlaySound(3, (int)projectile.Center.X, (int)projectile.Center.Y, 34); + Main.PlaySound(SoundID.NPCHit34, projectile.position); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Rogue/SphereYellow.cs b/Projectiles/Rogue/SphereYellow.cs index 9ef1d54930..b6995efcd1 100644 --- a/Projectiles/Rogue/SphereYellow.cs +++ b/Projectiles/Rogue/SphereYellow.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Main.PlaySound(3, (int)projectile.Center.X, (int)projectile.Center.Y, 34); + Main.PlaySound(SoundID.NPCHit34, projectile.position); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Rogue/StellarKnifeProj.cs b/Projectiles/Rogue/StellarKnifeProj.cs index c5eebf5606..23ee2f5efa 100644 --- a/Projectiles/Rogue/StellarKnifeProj.cs +++ b/Projectiles/Rogue/StellarKnifeProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Rogue/StormfrontRazorProjectile.cs b/Projectiles/Rogue/StormfrontRazorProjectile.cs index 88d66c8908..265d0021e4 100644 --- a/Projectiles/Rogue/StormfrontRazorProjectile.cs +++ b/Projectiles/Rogue/StormfrontRazorProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); return true; } diff --git a/Projectiles/Rogue/Stormfrontspark.cs b/Projectiles/Rogue/Stormfrontspark.cs index c169a3b711..f108f67a61 100644 --- a/Projectiles/Rogue/Stormfrontspark.cs +++ b/Projectiles/Rogue/Stormfrontspark.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue diff --git a/Projectiles/Rogue/SulphuricNukesplosion.cs b/Projectiles/Rogue/SulphuricNukesplosion.cs index 7299485a6e..e260964e0d 100644 --- a/Projectiles/Rogue/SulphuricNukesplosion.cs +++ b/Projectiles/Rogue/SulphuricNukesplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Terraria.ID; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Rogue/SupernovaBomb.cs b/Projectiles/Rogue/SupernovaBomb.cs index 47aa2b6774..09f49bc211 100644 --- a/Projectiles/Rogue/SupernovaBomb.cs +++ b/Projectiles/Rogue/SupernovaBomb.cs @@ -82,9 +82,9 @@ namespace CalamityMod.Projectiles.Rogue projectile.width = projectile.height = 128; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); - //spawn projectiles + //spawn projectiles int num251 = Main.rand.Next(3, 5); if (projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Rogue/SupernovaBoom.cs b/Projectiles/Rogue/SupernovaBoom.cs index 16123f4924..6af43f0920 100644 --- a/Projectiles/Rogue/SupernovaBoom.cs +++ b/Projectiles/Rogue/SupernovaBoom.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/SupernovaSpike.cs b/Projectiles/Rogue/SupernovaSpike.cs index b0bc23a851..512e8781ab 100644 --- a/Projectiles/Rogue/SupernovaSpike.cs +++ b/Projectiles/Rogue/SupernovaSpike.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Rogue/SylvanSlash.cs b/Projectiles/Rogue/SylvanSlash.cs index 0961220586..966f8e6904 100644 --- a/Projectiles/Rogue/SylvanSlash.cs +++ b/Projectiles/Rogue/SylvanSlash.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Rogue { if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 92); + Main.PlaySound(SoundID.Item92, projectile.position); projectile.localAI[0] += 1f; } Lighting.AddLight(projectile.Center, 0.1f, 1f, 2f); diff --git a/Projectiles/Rogue/TarragonThrowingDartProjectile.cs b/Projectiles/Rogue/TarragonThrowingDartProjectile.cs index 016a71ea26..8e849da80a 100644 --- a/Projectiles/Rogue/TarragonThrowingDartProjectile.cs +++ b/Projectiles/Rogue/TarragonThrowingDartProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Rogue/TheSyringeProj.cs b/Projectiles/Rogue/TheSyringeProj.cs index e62b56ae28..8564f3c43b 100644 --- a/Projectiles/Rogue/TheSyringeProj.cs +++ b/Projectiles/Rogue/TheSyringeProj.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 107); + Main.PlaySound(SoundID.Item107, projectile.position); for (int k = 0; k < 7; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 89, projectile.oldVelocity.X, projectile.oldVelocity.Y); diff --git a/Projectiles/Rogue/TimeBoltKnife.cs b/Projectiles/Rogue/TimeBoltKnife.cs index 434a30df09..89e88d0d0b 100644 --- a/Projectiles/Rogue/TimeBoltKnife.cs +++ b/Projectiles/Rogue/TimeBoltKnife.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Rogue/TitaniumShurikenProjectile.cs b/Projectiles/Rogue/TitaniumShurikenProjectile.cs index 074e6712e5..094d8ce6f8 100644 --- a/Projectiles/Rogue/TitaniumShurikenProjectile.cs +++ b/Projectiles/Rogue/TitaniumShurikenProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Rogue/ToothBallProjectile.cs b/Projectiles/Rogue/ToothBallProjectile.cs index 637c6881e4..3d0aaa83db 100644 --- a/Projectiles/Rogue/ToothBallProjectile.cs +++ b/Projectiles/Rogue/ToothBallProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Rogue/TotalityFlask.cs b/Projectiles/Rogue/TotalityFlask.cs index 148a07c262..280c144b86 100644 --- a/Projectiles/Rogue/TotalityFlask.cs +++ b/Projectiles/Rogue/TotalityFlask.cs @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Rogue return; //glass-pot break sound - Main.PlaySound(13, (int) projectile.position.X, (int) projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Shatter, (int) projectile.position.X, (int) projectile.position.Y, 1, 1f, 0f); int meltdown = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[meltdown].Center = projectile.Center; //makes it centered because it's not without this diff --git a/Projectiles/Rogue/TotalityTar.cs b/Projectiles/Rogue/TotalityTar.cs index 103b13c6ea..05a0a35695 100644 --- a/Projectiles/Rogue/TotalityTar.cs +++ b/Projectiles/Rogue/TotalityTar.cs @@ -83,8 +83,8 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); - Vector2 vector2 = new Vector2(20f, 20f); + Main.PlaySound(SoundID.Item74, projectile.position); + Vector2 vector2 = new Vector2(20f, 20f); for (int index = 0; index < 3; ++index) Dust.NewDust(projectile.Center - vector2 / 2f, (int) vector2.X, (int) vector2.Y, 191, 0.0f, 0.0f, 0, Color.Red, 1f); for (int index1 = 0; index1 < 5; ++index1) diff --git a/Projectiles/Rogue/ToxicantTwisterDust.cs b/Projectiles/Rogue/ToxicantTwisterDust.cs index d5a0d84512..de95a1526a 100644 --- a/Projectiles/Rogue/ToxicantTwisterDust.cs +++ b/Projectiles/Rogue/ToxicantTwisterDust.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; using CalamityMod.Buffs.DamageOverTime; diff --git a/Projectiles/Rogue/ToxicantTwisterProjectile.cs b/Projectiles/Rogue/ToxicantTwisterProjectile.cs index e9d2b1ed81..d5b4e65fbe 100644 --- a/Projectiles/Rogue/ToxicantTwisterProjectile.cs +++ b/Projectiles/Rogue/ToxicantTwisterProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -50,7 +50,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(ModContent.BuffType(), 180); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); for (int k = 0; k < 10; k++) { Dust.NewDust(projectile.position + projectile.velocity, @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitPvp(Player target, int damage, bool crit) { target.AddBuff(ModContent.BuffType(), 180); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); for (int k = 0; k < 10; k++) { Dust.NewDust(projectile.position + projectile.velocity, diff --git a/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs b/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs index 59bf1b0f2c..f6ffc0a074 100644 --- a/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs +++ b/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -121,7 +121,7 @@ namespace CalamityMod.Projectiles.Rogue if (projectile.penetrate < 3) projectile.ai[0] = 1f; target.AddBuff(ModContent.BuffType(), 180); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); for (int k = 0; k < 10; k++) { Dust.NewDust(projectile.position + projectile.velocity, @@ -135,7 +135,7 @@ namespace CalamityMod.Projectiles.Rogue if (projectile.penetrate < 3) projectile.ai[0] = 1f; target.AddBuff(ModContent.BuffType(), 180); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); for (int k = 0; k < 10; k++) { Dust.NewDust(projectile.position + projectile.velocity, diff --git a/Projectiles/Rogue/UmbraphileBoom.cs b/Projectiles/Rogue/UmbraphileBoom.cs index d7ae0e87ae..d06797acad 100644 --- a/Projectiles/Rogue/UmbraphileBoom.cs +++ b/Projectiles/Rogue/UmbraphileBoom.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/UrchinStingerProj.cs b/Projectiles/Rogue/UrchinStingerProj.cs index 07e320c7be..950f535ec0 100644 --- a/Projectiles/Rogue/UrchinStingerProj.cs +++ b/Projectiles/Rogue/UrchinStingerProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Rogue/ValariBoomerang.cs b/Projectiles/Rogue/ValariBoomerang.cs index 15eb040599..c112d88487 100644 --- a/Projectiles/Rogue/ValariBoomerang.cs +++ b/Projectiles/Rogue/ValariBoomerang.cs @@ -183,7 +183,7 @@ namespace CalamityMod.Projectiles.Rogue { //Bounce off tiles and start homing on player if it hits a tile Collision.HitTiles(projectile.position + projectile.velocity, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, projectile.position); + Main.PlaySound(SoundID.Dig, projectile.position); if (projectile.velocity.X != oldVelocity.X) { projectile.velocity.X = -oldVelocity.X; diff --git a/Projectiles/Rogue/Valaricicle.cs b/Projectiles/Rogue/Valaricicle.cs index c6c1eb26cb..ce2d4f3973 100644 --- a/Projectiles/Rogue/Valaricicle.cs +++ b/Projectiles/Rogue/Valaricicle.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 67, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Rogue/Valaricicle2.cs b/Projectiles/Rogue/Valaricicle2.cs index 9269977e2a..ff4109c615 100644 --- a/Projectiles/Rogue/Valaricicle2.cs +++ b/Projectiles/Rogue/Valaricicle2.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); for (int k = 0; k < 5; k++) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 67, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Rogue/ValedictionBoomerang.cs b/Projectiles/Rogue/ValedictionBoomerang.cs index c67c0ecb4c..1e2e86dba7 100644 --- a/Projectiles/Rogue/ValedictionBoomerang.cs +++ b/Projectiles/Rogue/ValedictionBoomerang.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -125,8 +125,8 @@ namespace CalamityMod.Projectiles.Rogue int typhoonAmt = 3; if (projectile.owner == Main.myPlayer && projectile.Calamity().stealthStrike) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 84); - for (int typhoonCount = 0; typhoonCount < typhoonAmt; typhoonCount++) + Main.PlaySound(SoundID.Item84, projectile.position); + for (int typhoonCount = 0; typhoonCount < typhoonAmt; typhoonCount++) { Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); while (value15.X == 0f && value15.Y == 0f) @@ -149,8 +149,8 @@ namespace CalamityMod.Projectiles.Rogue int typhoonAmt = 3; if (projectile.owner == Main.myPlayer && projectile.Calamity().stealthStrike) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 84); - for (int typhoonCount = 0; typhoonCount < typhoonAmt; typhoonCount++) + Main.PlaySound(SoundID.Item84, projectile.position); + for (int typhoonCount = 0; typhoonCount < typhoonAmt; typhoonCount++) { Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); while (value15.X == 0f && value15.Y == 0f) @@ -169,7 +169,7 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.Item21, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 100; diff --git a/Projectiles/Rogue/WulfrumKnifeProj.cs b/Projectiles/Rogue/WulfrumKnifeProj.cs index 4b7589f20c..d85df228ae 100644 --- a/Projectiles/Rogue/WulfrumKnifeProj.cs +++ b/Projectiles/Rogue/WulfrumKnifeProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Rogue/XerocPitchforkProjectile.cs b/Projectiles/Rogue/XerocPitchforkProjectile.cs index 425d9234ec..7aa1775866 100644 --- a/Projectiles/Rogue/XerocPitchforkProjectile.cs +++ b/Projectiles/Rogue/XerocPitchforkProjectile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/AndromedaDeathRay.cs b/Projectiles/Summon/AndromedaDeathRay.cs index a6b476148f..d92b816cd2 100644 --- a/Projectiles/Summon/AndromedaDeathRay.cs +++ b/Projectiles/Summon/AndromedaDeathRay.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Summon/ApexShark.cs b/Projectiles/Summon/ApexShark.cs index 4dc9adf1cd..090bb7a3fa 100644 --- a/Projectiles/Summon/ApexShark.cs +++ b/Projectiles/Summon/ApexShark.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; @@ -276,7 +276,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 70, 0.5f); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 70, 0.5f); projectile.velocity = new Vector2(0f, 5f).RotatedBy(projectile.velocity.ToRotation() + 1.5f); int sand = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(projectile.damage * 0.7f), (int)(projectile.knockBack * 0.7f), projectile.owner, 0f, 0f); Main.projectile[sand].Center = projectile.Center; diff --git a/Projectiles/Summon/AquaticStarMinion.cs b/Projectiles/Summon/AquaticStarMinion.cs index 67f2fb93cc..f3d5ef269b 100644 --- a/Projectiles/Summon/AquaticStarMinion.cs +++ b/Projectiles/Summon/AquaticStarMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/AstrageldonLaser.cs b/Projectiles/Summon/AstrageldonLaser.cs index aaf681ac73..26cd5201d7 100644 --- a/Projectiles/Summon/AstrageldonLaser.cs +++ b/Projectiles/Summon/AstrageldonLaser.cs @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[0] == 0f) { projectile.ai[0] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 12); } if (projectile.alpha > 0) { diff --git a/Projectiles/Summon/AstralProbeRound.cs b/Projectiles/Summon/AstralProbeRound.cs index dda1f3d67f..85e23d5049 100644 --- a/Projectiles/Summon/AstralProbeRound.cs +++ b/Projectiles/Summon/AstralProbeRound.cs @@ -120,7 +120,7 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 10); for (int k = 0; k < 5; k++) { int randomDust = Main.rand.Next(2); diff --git a/Projectiles/Summon/AstralProbeSummon.cs b/Projectiles/Summon/AstralProbeSummon.cs index fccd980aeb..a23a7a802c 100644 --- a/Projectiles/Summon/AstralProbeSummon.cs +++ b/Projectiles/Summon/AstralProbeSummon.cs @@ -170,7 +170,7 @@ namespace CalamityMod.Projectiles.Summon int num658 = ModContent.ProjectileType(); if (flag25 && projectile.ai[1] == 0f && vector46 != projectile.position) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12, 0.5f, 0f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 12, 0.5f, 0f); projectile.ai[1] += 1f; if (Main.myPlayer == projectile.owner) { diff --git a/Projectiles/Summon/AureusBomber.cs b/Projectiles/Summon/AureusBomber.cs index 2d84e4dd2c..354a345d87 100644 --- a/Projectiles/Summon/AureusBomber.cs +++ b/Projectiles/Summon/AureusBomber.cs @@ -272,7 +272,7 @@ namespace CalamityMod.Projectiles.Summon projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.Center.X, (int)projectile.Center.Y, 14); for (int num193 = 0; num193 < 2; num193++) { Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, ModContent.DustType(), 0f, 0f, 50, default, 1f); diff --git a/Projectiles/Summon/BelladonnaSpirit.cs b/Projectiles/Summon/BelladonnaSpirit.cs index 870ad46109..298940e9d5 100644 --- a/Projectiles/Summon/BelladonnaSpirit.cs +++ b/Projectiles/Summon/BelladonnaSpirit.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Summon/BlackHawkSummon.cs b/Projectiles/Summon/BlackHawkSummon.cs index 85162b0476..5f963e958f 100644 --- a/Projectiles/Summon/BlackHawkSummon.cs +++ b/Projectiles/Summon/BlackHawkSummon.cs @@ -237,7 +237,7 @@ namespace CalamityMod.Projectiles.Summon int num658 = ModContent.ProjectileType(); if (flag25 && projectile.ai[1] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.ai[1] += 2f; if (Main.myPlayer == projectile.owner) { diff --git a/Projectiles/Summon/BloodBreath.cs b/Projectiles/Summon/BloodBreath.cs index 66441b8dcd..1211e54f1a 100644 --- a/Projectiles/Summon/BloodBreath.cs +++ b/Projectiles/Summon/BloodBreath.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Summon/BloodClotMinion.cs b/Projectiles/Summon/BloodClotMinion.cs index 94916bc43c..abdaff6b43 100644 --- a/Projectiles/Summon/BloodClotMinion.cs +++ b/Projectiles/Summon/BloodClotMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; @@ -259,13 +259,13 @@ namespace CalamityMod.Projectiles.Summon for (int i = 0; i < Main.maxNPCs; i++) { if (Main.npc[i].active && !Main.npc[i].dontTakeDamage && - ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || + ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == NPCID.Guide && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == NPCID.Clothier && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || (projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1)) { if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i])) { bool flag3; - if (Main.npc[i].type == 414) + if (Main.npc[i].type == NPCID.SolarCrawltipedeTail) { Rectangle rect = Main.npc[i].getRect(); int num5 = 8; diff --git a/Projectiles/Summon/BloodRain.cs b/Projectiles/Summon/BloodRain.cs index 26cbf83ae0..1fb9337783 100644 --- a/Projectiles/Summon/BloodRain.cs +++ b/Projectiles/Summon/BloodRain.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Summon/BloodSpit.cs b/Projectiles/Summon/BloodSpit.cs index e9601a6e31..7098d04b80 100644 --- a/Projectiles/Summon/BloodSpit.cs +++ b/Projectiles/Summon/BloodSpit.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Summon/BoneMatter.cs b/Projectiles/Summon/BoneMatter.cs index 97953ad490..0e55090b48 100644 --- a/Projectiles/Summon/BoneMatter.cs +++ b/Projectiles/Summon/BoneMatter.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon diff --git a/Projectiles/Summon/BoneMatter2.cs b/Projectiles/Summon/BoneMatter2.cs index 4b584e8c19..57dd02dbd8 100644 --- a/Projectiles/Summon/BoneMatter2.cs +++ b/Projectiles/Summon/BoneMatter2.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon diff --git a/Projectiles/Summon/BrimseekerAuraBall.cs b/Projectiles/Summon/BrimseekerAuraBall.cs index 76cac58488..c675d795c3 100644 --- a/Projectiles/Summon/BrimseekerAuraBall.cs +++ b/Projectiles/Summon/BrimseekerAuraBall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Summon/BrimstoneElementalMinion.cs b/Projectiles/Summon/BrimstoneElementalMinion.cs index 612a21234c..2535a9eba8 100644 --- a/Projectiles/Summon/BrimstoneElementalMinion.cs +++ b/Projectiles/Summon/BrimstoneElementalMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Dusts; using CalamityMod.World; using Microsoft.Xna.Framework; diff --git a/Projectiles/Summon/BrimstoneExplosionMinion.cs b/Projectiles/Summon/BrimstoneExplosionMinion.cs index 58fad20d40..86152658e6 100644 --- a/Projectiles/Summon/BrimstoneExplosionMinion.cs +++ b/Projectiles/Summon/BrimstoneExplosionMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Summon Lighting.AddLight(projectile.Center, 0.9f, 0f, 0f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.localAI[0] += 1f; } float num461 = 25f; diff --git a/Projectiles/Summon/BrimstoneFireSummon.cs b/Projectiles/Summon/BrimstoneFireSummon.cs index 94a4b2e578..6cd17482e8 100644 --- a/Projectiles/Summon/BrimstoneFireSummon.cs +++ b/Projectiles/Summon/BrimstoneFireSummon.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Summon/BrimstoneFireballMinion.cs b/Projectiles/Summon/BrimstoneFireballMinion.cs index 7faee65129..d4d3396abb 100644 --- a/Projectiles/Summon/BrimstoneFireballMinion.cs +++ b/Projectiles/Summon/BrimstoneFireballMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.localAI[0] += 1f; } } diff --git a/Projectiles/Summon/BrimstoneLaserSummon.cs b/Projectiles/Summon/BrimstoneLaserSummon.cs index 4b0623567a..c21ef216ac 100644 --- a/Projectiles/Summon/BrimstoneLaserSummon.cs +++ b/Projectiles/Summon/BrimstoneLaserSummon.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Summon/BrittleStarMinion.cs b/Projectiles/Summon/BrittleStarMinion.cs index c8c761d021..55a702f306 100644 --- a/Projectiles/Summon/BrittleStarMinion.cs +++ b/Projectiles/Summon/BrittleStarMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/CalamariInk.cs b/Projectiles/Summon/CalamariInk.cs index 371b9bffd1..c0c366f779 100644 --- a/Projectiles/Summon/CalamariInk.cs +++ b/Projectiles/Summon/CalamariInk.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -111,7 +111,7 @@ namespace CalamityMod.Projectiles.Summon projectile.width = projectile.height = 48; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(4, (int)projectile.Center.X, (int)projectile.Center.Y, 28); + Main.PlaySound(SoundID.NPCKilled, (int)projectile.Center.X, (int)projectile.Center.Y, 28); for (int num621 = 0; num621 < 10; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 54, 0f, 0f, 100, default, 1f); diff --git a/Projectiles/Summon/CalamariMinion.cs b/Projectiles/Summon/CalamariMinion.cs index c5e05a9744..a862090b95 100644 --- a/Projectiles/Summon/CalamariMinion.cs +++ b/Projectiles/Summon/CalamariMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -94,14 +94,14 @@ namespace CalamityMod.Projectiles.Summon } if (Main.rand.NextBool(600)) { - Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 35); + Main.PlaySound(SoundID.Zombie, (int)projectile.position.X, (int)projectile.position.Y, 35); } if (projectile.ai[0] == 2f) { projectile.ai[1] -= 1f; if (projectile.ai[1] > 3f) { - Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 34); + Main.PlaySound(SoundID.Zombie, (int)projectile.position.X, (int)projectile.position.Y, 34); int num = Dust.NewDust(projectile.Center, 0, 0, 109, projectile.velocity.X, projectile.velocity.Y, 100, default, 1.4f); Main.dust[num].scale = 0.5f + (float)Main.rand.NextDouble() * 0.3f; Main.dust[num].velocity /= 2.5f; @@ -342,7 +342,7 @@ namespace CalamityMod.Projectiles.Summon projectile.ai[1] += 1f; if (Main.myPlayer == projectile.owner) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 111); + Main.PlaySound(SoundID.Item111, (int)projectile.position.X, (int)projectile.position.Y); Vector2 vector7 = vector - projectile.Center; vector7.Normalize(); vector7 *= scaleFactor4; diff --git a/Projectiles/Summon/Calamitamini.cs b/Projectiles/Summon/Calamitamini.cs index 85b12794b5..1470c5ef20 100644 --- a/Projectiles/Summon/Calamitamini.cs +++ b/Projectiles/Summon/Calamitamini.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.Dusts; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; diff --git a/Projectiles/Summon/Cataclymini.cs b/Projectiles/Summon/Cataclymini.cs index a4f7b2adbc..176ad6c9f0 100644 --- a/Projectiles/Summon/Cataclymini.cs +++ b/Projectiles/Summon/Cataclymini.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/Catastromini.cs b/Projectiles/Summon/Catastromini.cs index b7036d438e..22838ed06f 100644 --- a/Projectiles/Summon/Catastromini.cs +++ b/Projectiles/Summon/Catastromini.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/ChaosFlame.cs b/Projectiles/Summon/ChaosFlame.cs index 7c89003494..0fbd4ef2c0 100644 --- a/Projectiles/Summon/ChaosFlame.cs +++ b/Projectiles/Summon/ChaosFlame.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Summon Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.25f / 255f, (255 - projectile.alpha) * 0f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, (int)projectile.position.X, (int)projectile.position.Y); projectile.localAI[0] += 1f; } for (int num457 = 0; num457 < 5; num457++) diff --git a/Projectiles/Summon/ChaosSpirit.cs b/Projectiles/Summon/ChaosSpirit.cs index 5bb40663fb..d5f5a683f7 100644 --- a/Projectiles/Summon/ChaosSpirit.cs +++ b/Projectiles/Summon/ChaosSpirit.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Summon/Cinder.cs b/Projectiles/Summon/Cinder.cs index be0deb981e..19ce727b89 100644 --- a/Projectiles/Summon/Cinder.cs +++ b/Projectiles/Summon/Cinder.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Summon/CinderBlossom.cs b/Projectiles/Summon/CinderBlossom.cs index 56731a1626..ba58881da5 100644 --- a/Projectiles/Summon/CinderBlossom.cs +++ b/Projectiles/Summon/CinderBlossom.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Summon/CloudElementalMinion.cs b/Projectiles/Summon/CloudElementalMinion.cs index 872b7f681e..d2f752e333 100644 --- a/Projectiles/Summon/CloudElementalMinion.cs +++ b/Projectiles/Summon/CloudElementalMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Summon/ColdDivinityPointyThing.cs b/Projectiles/Summon/ColdDivinityPointyThing.cs index 6ac2976b82..552ad4b40c 100644 --- a/Projectiles/Summon/ColdDivinityPointyThing.cs +++ b/Projectiles/Summon/ColdDivinityPointyThing.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/CorroslimeMinion.cs b/Projectiles/Summon/CorroslimeMinion.cs index e7eb26e4ed..1a634da6ab 100644 --- a/Projectiles/Summon/CorroslimeMinion.cs +++ b/Projectiles/Summon/CorroslimeMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/CorruptionSlimeGodMinion.cs b/Projectiles/Summon/CorruptionSlimeGodMinion.cs index d040cf3128..8048b833d3 100644 --- a/Projectiles/Summon/CorruptionSlimeGodMinion.cs +++ b/Projectiles/Summon/CorruptionSlimeGodMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Summon/CosmicBlast.cs b/Projectiles/Summon/CosmicBlast.cs index 12b5af5f63..ed589327a3 100644 --- a/Projectiles/Summon/CosmicBlast.cs +++ b/Projectiles/Summon/CosmicBlast.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -121,7 +121,7 @@ namespace CalamityMod.Projectiles.Summon projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(29, (int)projectile.Center.X, (int)projectile.Center.Y, 103); + Main.PlaySound(SoundID.Zombie, (int)projectile.Center.X, (int)projectile.Center.Y, 103); for (int num193 = 0; num193 < 3; num193++) { int dust = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 66, 0f, 0f, 100, new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB), 1.5f); diff --git a/Projectiles/Summon/CosmicBlastBig.cs b/Projectiles/Summon/CosmicBlastBig.cs index 3ada1c4ee6..fb140b945c 100644 --- a/Projectiles/Summon/CosmicBlastBig.cs +++ b/Projectiles/Summon/CosmicBlastBig.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Summon projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, (int)projectile.position.X, (int)projectile.position.Y); } } projectile.rotation += (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y)) * 0.01f * (float)projectile.direction; @@ -126,7 +126,7 @@ namespace CalamityMod.Projectiles.Summon projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(29, (int)projectile.Center.X, (int)projectile.Center.Y, 103); + Main.PlaySound(SoundID.Zombie, (int)projectile.Center.X, (int)projectile.Center.Y, 103); for (int num193 = 0; num193 < 3; num193++) { int dust = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 66, 0f, 0f, 100, new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB), 1.5f); diff --git a/Projectiles/Summon/CosmicEnergySpiral.cs b/Projectiles/Summon/CosmicEnergySpiral.cs index 42eecccdfa..45717ba2b1 100644 --- a/Projectiles/Summon/CosmicEnergySpiral.cs +++ b/Projectiles/Summon/CosmicEnergySpiral.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; @@ -237,7 +237,7 @@ namespace CalamityMod.Projectiles.Summon } if (flag11) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 105); + Main.PlaySound(SoundID.Item105, (int)projectile.position.X, (int)projectile.position.Y); int num251 = Main.rand.Next(5, 8); for (int num252 = 0; num252 < num251; num252++) { diff --git a/Projectiles/Summon/CosmicViperConcussionMissile.cs b/Projectiles/Summon/CosmicViperConcussionMissile.cs index d0c7acf751..c34a69b30f 100644 --- a/Projectiles/Summon/CosmicViperConcussionMissile.cs +++ b/Projectiles/Summon/CosmicViperConcussionMissile.cs @@ -70,7 +70,7 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Summon/CosmicViperHomingRocket.cs b/Projectiles/Summon/CosmicViperHomingRocket.cs index 993bbfba3d..0c7f58939b 100644 --- a/Projectiles/Summon/CosmicViperHomingRocket.cs +++ b/Projectiles/Summon/CosmicViperHomingRocket.cs @@ -119,7 +119,7 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Summon/CosmicViperSplittingRocket.cs b/Projectiles/Summon/CosmicViperSplittingRocket.cs index 04ff3334ee..dc3fc35ea5 100644 --- a/Projectiles/Summon/CosmicViperSplittingRocket.cs +++ b/Projectiles/Summon/CosmicViperSplittingRocket.cs @@ -65,9 +65,9 @@ namespace CalamityMod.Projectiles.Summon speed *= (float)Main.rand.Next(30, 61) * 0.1f * 2f; 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); - projectile.Kill(); + } + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); + projectile.Kill(); return; } else if (Vector2.Distance(npc.Center, projectile.Center) < (maxDistance + extraDistance)) @@ -102,9 +102,9 @@ namespace CalamityMod.Projectiles.Summon speed *= (float)Main.rand.Next(30, 61) * 0.1f * 2f; Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, ModContent.ProjectileType(), (int)(projectile.damage * 0.25f), projectile.knockBack, projectile.owner, Main.rand.Next(2), 0f); } - } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); - projectile.Kill(); + } + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); + projectile.Kill(); return; } else if (Vector2.Distance(npc.Center, projectile.Center) < (maxDistance + extraDistance)) diff --git a/Projectiles/Summon/CosmicViperSummon.cs b/Projectiles/Summon/CosmicViperSummon.cs index c409c0ac5d..9964b27bfd 100644 --- a/Projectiles/Summon/CosmicViperSummon.cs +++ b/Projectiles/Summon/CosmicViperSummon.cs @@ -254,8 +254,8 @@ namespace CalamityMod.Projectiles.Summon float speedMult = 6f; if (foundTarget && projectile.ai[1] == 0f) { - //play cool sound - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + //play cool sound + Main.PlaySound(SoundID.Item20, (int)projectile.position.X, (int)projectile.position.Y); projectile.ai[1] += 2f; if (Main.myPlayer == projectile.owner) { diff --git a/Projectiles/Summon/CosmilampMinion.cs b/Projectiles/Summon/CosmilampMinion.cs index 48797d4acf..5480dfd431 100644 --- a/Projectiles/Summon/CosmilampMinion.cs +++ b/Projectiles/Summon/CosmilampMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; @@ -256,13 +256,13 @@ namespace CalamityMod.Projectiles.Summon for (int i = 0; i < 200; i++) { if (Main.npc[i].active && !Main.npc[i].dontTakeDamage && - ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || + ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == NPCID.Guide && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == NPCID.Clothier && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || (projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1)) { if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i])) { bool flag3; - if (Main.npc[i].type == 414) + if (Main.npc[i].type == NPCID.SolarCrawltipedeTail) { Rectangle rect = Main.npc[i].getRect(); int num5 = 8; diff --git a/Projectiles/Summon/CrimslimeMinion.cs b/Projectiles/Summon/CrimslimeMinion.cs index 50c2dc6a16..97de782c29 100644 --- a/Projectiles/Summon/CrimslimeMinion.cs +++ b/Projectiles/Summon/CrimslimeMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/CrimsonSlimeGodMinion.cs b/Projectiles/Summon/CrimsonSlimeGodMinion.cs index a359d10fba..fac39b6bf0 100644 --- a/Projectiles/Summon/CrimsonSlimeGodMinion.cs +++ b/Projectiles/Summon/CrimsonSlimeGodMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Summon/DaedalusCrystal.cs b/Projectiles/Summon/DaedalusCrystal.cs index eaf0cd193d..fe02d3ce27 100644 --- a/Projectiles/Summon/DaedalusCrystal.cs +++ b/Projectiles/Summon/DaedalusCrystal.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Summon/DaedalusCrystalShot.cs b/Projectiles/Summon/DaedalusCrystalShot.cs index 98a44bb4fe..f75f3d3f12 100644 --- a/Projectiles/Summon/DaedalusCrystalShot.cs +++ b/Projectiles/Summon/DaedalusCrystalShot.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Summon { if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 73); + Main.PlaySound(SoundID.Item73, (int)projectile.position.X, (int)projectile.position.Y); projectile.localAI[0] += 1f; } for (int num457 = 0; num457 < 5; num457++) @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item74, (int)projectile.position.X, (int)projectile.position.Y); for (int num621 = 0; num621 < 5; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default, 1.2f); diff --git a/Projectiles/Summon/DankCreeperMinion.cs b/Projectiles/Summon/DankCreeperMinion.cs index b64d8d7166..38f8d3d8c6 100644 --- a/Projectiles/Summon/DankCreeperMinion.cs +++ b/Projectiles/Summon/DankCreeperMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -248,13 +248,13 @@ namespace CalamityMod.Projectiles.Summon for (int i = 0; i < Main.maxNPCs; i++) { if (Main.npc[i].active && !Main.npc[i].dontTakeDamage && - ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || + ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == NPCID.Guide && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == NPCID.Clothier && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || (projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1)) { if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i])) { bool flag3; - if (Main.npc[i].type == 414) + if (Main.npc[i].type == NPCID.SolarCrawltipedeTail) { Rectangle rect = Main.npc[i].getRect(); int num5 = 8; diff --git a/Projectiles/Summon/DormantBrimseekerBab.cs b/Projectiles/Summon/DormantBrimseekerBab.cs index c0ff7bb1b1..3ea9f935e3 100644 --- a/Projectiles/Summon/DormantBrimseekerBab.cs +++ b/Projectiles/Summon/DormantBrimseekerBab.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/Dreadmine.cs b/Projectiles/Summon/Dreadmine.cs index 385a1963e8..8fc84be450 100644 --- a/Projectiles/Summon/Dreadmine.cs +++ b/Projectiles/Summon/Dreadmine.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -183,7 +183,7 @@ namespace CalamityMod.Projectiles.Summon projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, (int)projectile.position.X, (int)projectile.position.Y); for (int num621 = 0; num621 < 20; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Summon/DreadmineTurret.cs b/Projectiles/Summon/DreadmineTurret.cs index 3e0902cd6c..eac916c79e 100644 --- a/Projectiles/Summon/DreadmineTurret.cs +++ b/Projectiles/Summon/DreadmineTurret.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Summon/EXPLODINGFROG.cs b/Projectiles/Summon/EXPLODINGFROG.cs index ddc34c7c99..05e0a97089 100644 --- a/Projectiles/Summon/EXPLODINGFROG.cs +++ b/Projectiles/Summon/EXPLODINGFROG.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Summon/ElementalAxeMinion.cs b/Projectiles/Summon/ElementalAxeMinion.cs index 43daf58f0f..ce28882f0f 100644 --- a/Projectiles/Summon/ElementalAxeMinion.cs +++ b/Projectiles/Summon/ElementalAxeMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; diff --git a/Projectiles/Summon/EndoBeam.cs b/Projectiles/Summon/EndoBeam.cs index f258ba8d45..b35201bca1 100644 --- a/Projectiles/Summon/EndoBeam.cs +++ b/Projectiles/Summon/EndoBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/Projectiles/Summon/EndoCooperBody.cs b/Projectiles/Summon/EndoCooperBody.cs index 33fc6dfed2..b4386c5f48 100644 --- a/Projectiles/Summon/EndoCooperBody.cs +++ b/Projectiles/Summon/EndoCooperBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Magic; @@ -315,7 +315,7 @@ namespace CalamityMod.Projectiles.Summon switch (AttackMode) { case 0: - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 15); + Main.PlaySound(SoundID.Item15, (int)projectile.position.X, (int)projectile.position.Y); Vector2 aimlaser = objectivepos - projectile.Center; aimlaser.Normalize(); aimlaser = aimlaser.RotatedBy(MathHelper.ToRadians(30 * -laserdirection)); diff --git a/Projectiles/Summon/EndoCooperLimbs.cs b/Projectiles/Summon/EndoCooperLimbs.cs index 414002c2f4..1c8e797650 100644 --- a/Projectiles/Summon/EndoCooperLimbs.cs +++ b/Projectiles/Summon/EndoCooperLimbs.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Ranged; diff --git a/Projectiles/Summon/EndoFire.cs b/Projectiles/Summon/EndoFire.cs index f37ed57865..3d3021d067 100644 --- a/Projectiles/Summon/EndoFire.cs +++ b/Projectiles/Summon/EndoFire.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Summon/EndoIceShard.cs b/Projectiles/Summon/EndoIceShard.cs index 59d4c26914..90f8f87571 100644 --- a/Projectiles/Summon/EndoIceShard.cs +++ b/Projectiles/Summon/EndoIceShard.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Summon/EndoRay.cs b/Projectiles/Summon/EndoRay.cs index 80136b0fff..9ca295f9cf 100644 --- a/Projectiles/Summon/EndoRay.cs +++ b/Projectiles/Summon/EndoRay.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Summon/EnergyOrb.cs b/Projectiles/Summon/EnergyOrb.cs index d1c0086ef2..419c224307 100644 --- a/Projectiles/Summon/EnergyOrb.cs +++ b/Projectiles/Summon/EnergyOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Summon/FlameBlast.cs b/Projectiles/Summon/FlameBlast.cs index a73c8cde16..8f2869d03f 100644 --- a/Projectiles/Summon/FlameBlast.cs +++ b/Projectiles/Summon/FlameBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Summon { if (count == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 73); + Main.PlaySound(SoundID.Item73, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 20; diff --git a/Projectiles/Summon/FlameBurst.cs b/Projectiles/Summon/FlameBurst.cs index a546d95aa8..e544b740bf 100644 --- a/Projectiles/Summon/FlameBurst.cs +++ b/Projectiles/Summon/FlameBurst.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Summon { if (count == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 73); + Main.PlaySound(SoundID.Item73, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 20; diff --git a/Projectiles/Summon/FlyingOrthocera.cs b/Projectiles/Summon/FlyingOrthocera.cs index 1738303fb1..96f1645c34 100644 --- a/Projectiles/Summon/FlyingOrthocera.cs +++ b/Projectiles/Summon/FlyingOrthocera.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Summon/FlyingOrthoceraStream.cs b/Projectiles/Summon/FlyingOrthoceraStream.cs index 963ede9828..db309a5df1 100644 --- a/Projectiles/Summon/FlyingOrthoceraStream.cs +++ b/Projectiles/Summon/FlyingOrthoceraStream.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Summon/FrostBeam.cs b/Projectiles/Summon/FrostBeam.cs index a1be22b25f..2f5caea681 100644 --- a/Projectiles/Summon/FrostBeam.cs +++ b/Projectiles/Summon/FrostBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Summon/FrostBlossom.cs b/Projectiles/Summon/FrostBlossom.cs index 062dd898d3..5b560e459e 100644 --- a/Projectiles/Summon/FrostBlossom.cs +++ b/Projectiles/Summon/FrostBlossom.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Summon/FrostMistFriendly.cs b/Projectiles/Summon/FrostMistFriendly.cs index 45f25ae473..b80a01a5a3 100644 --- a/Projectiles/Summon/FrostMistFriendly.cs +++ b/Projectiles/Summon/FrostMistFriendly.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Summon } } projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 30); + Main.PlaySound(SoundID.Item30, projectile.position); } if (projectile.localAI[0] == 0f) { diff --git a/Projectiles/Summon/FungalClumpMinion.cs b/Projectiles/Summon/FungalClumpMinion.cs index 864318f7b2..30f30591d3 100644 --- a/Projectiles/Summon/FungalClumpMinion.cs +++ b/Projectiles/Summon/FungalClumpMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Healing; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; diff --git a/Projectiles/Summon/GammaBullet.cs b/Projectiles/Summon/GammaBullet.cs index f9356ec004..ead4b2300a 100644 --- a/Projectiles/Summon/GammaBullet.cs +++ b/Projectiles/Summon/GammaBullet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Summon/GammaCanister.cs b/Projectiles/Summon/GammaCanister.cs index 625bcd770f..c997d37fc3 100644 --- a/Projectiles/Summon/GammaCanister.cs +++ b/Projectiles/Summon/GammaCanister.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Summon/GammaDeathray.cs b/Projectiles/Summon/GammaDeathray.cs index 1d09b78568..d7b1961d43 100644 --- a/Projectiles/Summon/GammaDeathray.cs +++ b/Projectiles/Summon/GammaDeathray.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Summon/GhostFire.cs b/Projectiles/Summon/GhostFire.cs index 0a1b4c5577..63785476a1 100644 --- a/Projectiles/Summon/GhostFire.cs +++ b/Projectiles/Summon/GhostFire.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Summon/GhostlyMine.cs b/Projectiles/Summon/GhostlyMine.cs index ad409440c7..7653515597 100644 --- a/Projectiles/Summon/GhostlyMine.cs +++ b/Projectiles/Summon/GhostlyMine.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Summon projectile.width = projectile.height = 160; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 30; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 180, 0f, 0f, 100, default, 1.2f); diff --git a/Projectiles/Summon/GiantIbanRobotOfDoom.cs b/Projectiles/Summon/GiantIbanRobotOfDoom.cs index 024a04af96..648dc60add 100644 --- a/Projectiles/Summon/GiantIbanRobotOfDoom.cs +++ b/Projectiles/Summon/GiantIbanRobotOfDoom.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Buffs.Mounts; using CalamityMod.Items; using CalamityMod.Projectiles.Summon.AndromedaUI; diff --git a/Projectiles/Summon/GigaFlareFriendly.cs b/Projectiles/Summon/GigaFlareFriendly.cs index 24b3c68232..6b99b1aa30 100644 --- a/Projectiles/Summon/GigaFlareFriendly.cs +++ b/Projectiles/Summon/GigaFlareFriendly.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon { @@ -102,7 +103,7 @@ namespace CalamityMod.Projectiles.Summon 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); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 100; diff --git a/Projectiles/Summon/HallowedStarSummon.cs b/Projectiles/Summon/HallowedStarSummon.cs index 96015a9d80..05788a4298 100644 --- a/Projectiles/Summon/HallowedStarSummon.cs +++ b/Projectiles/Summon/HallowedStarSummon.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Summon projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item9, projectile.position); } } projectile.alpha -= 15; diff --git a/Projectiles/Summon/HermitCrabMinion.cs b/Projectiles/Summon/HermitCrabMinion.cs index 2be4d195da..6e7e375163 100644 --- a/Projectiles/Summon/HermitCrabMinion.cs +++ b/Projectiles/Summon/HermitCrabMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Summon/HerringMinion.cs b/Projectiles/Summon/HerringMinion.cs index cc014a1faa..70170bf0da 100644 --- a/Projectiles/Summon/HerringMinion.cs +++ b/Projectiles/Summon/HerringMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/Hive.cs b/Projectiles/Summon/Hive.cs index a4ed1d9953..a5ef59097b 100644 --- a/Projectiles/Summon/Hive.cs +++ b/Projectiles/Summon/Hive.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Summon/Hiveling.cs b/Projectiles/Summon/Hiveling.cs index aea3b638f1..018f06728e 100644 --- a/Projectiles/Summon/Hiveling.cs +++ b/Projectiles/Summon/Hiveling.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/IceClasperMinion.cs b/Projectiles/Summon/IceClasperMinion.cs index 50d81e9ade..b3b25e0066 100644 --- a/Projectiles/Summon/IceClasperMinion.cs +++ b/Projectiles/Summon/IceClasperMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/IceSentryFrostBolt.cs b/Projectiles/Summon/IceSentryFrostBolt.cs index 39f88c650e..baaa3e9518 100644 --- a/Projectiles/Summon/IceSentryFrostBolt.cs +++ b/Projectiles/Summon/IceSentryFrostBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -83,14 +83,14 @@ namespace CalamityMod.Projectiles.Summon { projectile.velocity.Y = -oldVelocity.Y; } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + Main.PlaySound(SoundID.Item10, projectile.position); } return false; } public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item, (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, 92, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); diff --git a/Projectiles/Summon/IrradiatedAura.cs b/Projectiles/Summon/IrradiatedAura.cs index 9d1d68a9ab..1f60a8b262 100644 --- a/Projectiles/Summon/IrradiatedAura.cs +++ b/Projectiles/Summon/IrradiatedAura.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Summon/LanternFlame.cs b/Projectiles/Summon/LanternFlame.cs index 61f464b669..6605f77c63 100644 --- a/Projectiles/Summon/LanternFlame.cs +++ b/Projectiles/Summon/LanternFlame.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -140,9 +140,9 @@ namespace CalamityMod.Projectiles.Summon { target.AddBuff(ModContent.BuffType(), 180); if (playSound) - { - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 74); - } + { + Main.PlaySound(SoundID.Item74, projectile.position); + } playSound = false; } } diff --git a/Projectiles/Summon/LanternSoul.cs b/Projectiles/Summon/LanternSoul.cs index d73074b8a1..77bf181500 100644 --- a/Projectiles/Summon/LanternSoul.cs +++ b/Projectiles/Summon/LanternSoul.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Summon/LuxorsGiftSummon.cs b/Projectiles/Summon/LuxorsGiftSummon.cs index b40fc8ced3..24c948fd58 100644 --- a/Projectiles/Summon/LuxorsGiftSummon.cs +++ b/Projectiles/Summon/LuxorsGiftSummon.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Summon/MagicBullet.cs b/Projectiles/Summon/MagicBullet.cs index cf7d5502ea..3ba332a22c 100644 --- a/Projectiles/Summon/MagicBullet.cs +++ b/Projectiles/Summon/MagicBullet.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Summon/MagicRifle.cs b/Projectiles/Summon/MagicRifle.cs index 001b0945c4..21551e54db 100644 --- a/Projectiles/Summon/MagicRifle.cs +++ b/Projectiles/Summon/MagicRifle.cs @@ -197,7 +197,7 @@ namespace CalamityMod.Projectiles.Summon { if (Main.rand.NextBool(6)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20, 0.1f); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20, 0.1f); } projectile.ai[1] += 1f; if (Main.myPlayer == projectile.owner) diff --git a/Projectiles/Summon/MechwormBody.cs b/Projectiles/Summon/MechwormBody.cs index 9316b05b0c..d2f81ece1d 100644 --- a/Projectiles/Summon/MechwormBody.cs +++ b/Projectiles/Summon/MechwormBody.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Summon/MechwormBody2.cs b/Projectiles/Summon/MechwormBody2.cs index 592f260996..7b80be9216 100644 --- a/Projectiles/Summon/MechwormBody2.cs +++ b/Projectiles/Summon/MechwormBody2.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Summon/MechwormHead.cs b/Projectiles/Summon/MechwormHead.cs index 94229ff581..b3c30b126c 100644 --- a/Projectiles/Summon/MechwormHead.cs +++ b/Projectiles/Summon/MechwormHead.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/MechwormTail.cs b/Projectiles/Summon/MechwormTail.cs index e51919da9c..7da8598496 100644 --- a/Projectiles/Summon/MechwormTail.cs +++ b/Projectiles/Summon/MechwormTail.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Summon/MidnightSunBeam.cs b/Projectiles/Summon/MidnightSunBeam.cs index 6de9189653..9bbc978cb7 100644 --- a/Projectiles/Summon/MidnightSunBeam.cs +++ b/Projectiles/Summon/MidnightSunBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/Projectiles/Summon/MidnightSunSkyBeam.cs b/Projectiles/Summon/MidnightSunSkyBeam.cs index 12f930e0dd..6c3d5b5132 100644 --- a/Projectiles/Summon/MidnightSunSkyBeam.cs +++ b/Projectiles/Summon/MidnightSunSkyBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; diff --git a/Projectiles/Summon/MidnightSunUFO.cs b/Projectiles/Summon/MidnightSunUFO.cs index db71e85737..ca1dc21d52 100644 --- a/Projectiles/Summon/MidnightSunUFO.cs +++ b/Projectiles/Summon/MidnightSunUFO.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Dusts; using Microsoft.Xna.Framework; diff --git a/Projectiles/Summon/MiniGuardianAttack.cs b/Projectiles/Summon/MiniGuardianAttack.cs index 2ff98774ae..d1243adabb 100644 --- a/Projectiles/Summon/MiniGuardianAttack.cs +++ b/Projectiles/Summon/MiniGuardianAttack.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/MiniGuardianDefense.cs b/Projectiles/Summon/MiniGuardianDefense.cs index 4177d8de6e..388f980c70 100644 --- a/Projectiles/Summon/MiniGuardianDefense.cs +++ b/Projectiles/Summon/MiniGuardianDefense.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/MiniGuardianHealer.cs b/Projectiles/Summon/MiniGuardianHealer.cs index 555088e8b8..1ab9ca526e 100644 --- a/Projectiles/Summon/MiniGuardianHealer.cs +++ b/Projectiles/Summon/MiniGuardianHealer.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Summon/MiniSandShark.cs b/Projectiles/Summon/MiniSandShark.cs index dd3378cb13..6add2fa1fc 100644 --- a/Projectiles/Summon/MiniSandShark.cs +++ b/Projectiles/Summon/MiniSandShark.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 19, 1f, 0f); + Main.PlaySound(SoundID.NPCDeath19, projectile.position); } if (projectile.ai[0] >= 45f) { @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Summon projectile.localNPCHitCooldown = 10; projectile.damage /= 2; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Summon/OldDukeHeadCorpse.cs b/Projectiles/Summon/OldDukeHeadCorpse.cs index 0cc1569751..c46a72e220 100644 --- a/Projectiles/Summon/OldDukeHeadCorpse.cs +++ b/Projectiles/Summon/OldDukeHeadCorpse.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Summon/PhantomGuy.cs b/Projectiles/Summon/PhantomGuy.cs index 47bdf7321f..9f1f5e8449 100644 --- a/Projectiles/Summon/PhantomGuy.cs +++ b/Projectiles/Summon/PhantomGuy.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; @@ -226,7 +226,7 @@ namespace CalamityMod.Projectiles.Summon int num658 = ModContent.ProjectileType(); if (flag25 && projectile.ai[1] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.ai[1] += 1f; if (Main.myPlayer == projectile.owner) { diff --git a/Projectiles/Summon/PhoenixFireFriendly.cs b/Projectiles/Summon/PhoenixFireFriendly.cs index 4638dd68e1..a2eae68f58 100644 --- a/Projectiles/Summon/PhoenixFireFriendly.cs +++ b/Projectiles/Summon/PhoenixFireFriendly.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Summon/PinkButterfly.cs b/Projectiles/Summon/PinkButterfly.cs index befeee5326..0c3f9fca5c 100644 --- a/Projectiles/Summon/PinkButterfly.cs +++ b/Projectiles/Summon/PinkButterfly.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -249,7 +249,7 @@ namespace CalamityMod.Projectiles.Summon projectile.ai[1] += 1f; if (Main.myPlayer == projectile.owner) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 8); + Main.PlaySound(SoundID.Item8, projectile.position); Vector2 value19 = vector46 - projectile.Center; value19.Normalize(); value19 *= velocity; diff --git a/Projectiles/Summon/PlagueBeeSmall.cs b/Projectiles/Summon/PlagueBeeSmall.cs index 9d8a34765e..8ae6a5c1c7 100644 --- a/Projectiles/Summon/PlagueBeeSmall.cs +++ b/Projectiles/Summon/PlagueBeeSmall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Summon/PlantSummon.cs b/Projectiles/Summon/PlantSummon.cs index 55f9d2f5d0..0a541b502b 100644 --- a/Projectiles/Summon/PlantSummon.cs +++ b/Projectiles/Summon/PlantSummon.cs @@ -290,7 +290,7 @@ namespace CalamityMod.Projectiles.Summon } if (projectile.ai[1] == 0f && flag25 && num633 < 500f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.ai[1] += 1f; if (Main.myPlayer == projectile.owner) { diff --git a/Projectiles/Summon/PlateProjectile.cs b/Projectiles/Summon/PlateProjectile.cs index 30dcdae957..82c9964a9e 100644 --- a/Projectiles/Summon/PlateProjectile.cs +++ b/Projectiles/Summon/PlateProjectile.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) { - Main.PlaySound(13, (int)projectile.Center.X, (int)projectile.Center.Y); + Main.PlaySound(SoundID.Shatter, (int)projectile.Center.X, (int)projectile.Center.Y); if (projectile.owner == Main.myPlayer) { for (int index = 0; index < 3; ++index) diff --git a/Projectiles/Summon/PrincessMissile.cs b/Projectiles/Summon/PrincessMissile.cs index df6199ac5e..43765b9c89 100644 --- a/Projectiles/Summon/PrincessMissile.cs +++ b/Projectiles/Summon/PrincessMissile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Summon projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int num621 = 0; num621 < 8; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 89, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Summon/ProfanedEnergy.cs b/Projectiles/Summon/ProfanedEnergy.cs index a93f7fbc6d..7896ddc29c 100644 --- a/Projectiles/Summon/ProfanedEnergy.cs +++ b/Projectiles/Summon/ProfanedEnergy.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Summon { projectile.Calamity().spawnedPlayerMinionDamageValue = player.MinionDamage(); projectile.Calamity().spawnedPlayerMinionProjectileDamageValue = projectile.damage; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); for (int num621 = 0; num621 < 5; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.Center.X, projectile.Center.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default, 2f); diff --git a/Projectiles/Summon/ProfanedSoulCrystalProjectiles.cs b/Projectiles/Summon/ProfanedSoulCrystalProjectiles.cs index 3a1804d6c9..905d11af2a 100644 --- a/Projectiles/Summon/ProfanedSoulCrystalProjectiles.cs +++ b/Projectiles/Summon/ProfanedSoulCrystalProjectiles.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using CalamityMod.NPCs.StormWeaver; using CalamityMod.NPCs.SupremeCalamitas; @@ -157,7 +157,7 @@ namespace CalamityMod.Projectiles.Summon { Split(false, false); } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); for (int num193 = 0; num193 < 6; num193++) { Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 50, default, 1.5f); @@ -336,7 +336,7 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 14); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = projectile.height = 200; @@ -736,7 +736,7 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 14); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = projectile.height = 200; @@ -850,7 +850,7 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 14); if (!Main.rand.NextBool(3)) //1 in 3 chance for dust return; projectile.position.X = projectile.position.X + (float)(projectile.width / 2); @@ -1133,7 +1133,7 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 27); Vector2 spinningpoint = new Vector2(0f, -3f).RotatedByRandom(3.1415927410125732); float num69 = (float)Main.rand.Next(7, 13); Vector2 value5 = new Vector2(2.1f, 2f); @@ -1305,7 +1305,7 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 14); if (Main.rand.NextBool(3)) { projectile.position.X = projectile.position.X + (float)(projectile.width / 2); diff --git a/Projectiles/Summon/PurpleButterfly.cs b/Projectiles/Summon/PurpleButterfly.cs index fd26f604bf..d185e45d2a 100644 --- a/Projectiles/Summon/PurpleButterfly.cs +++ b/Projectiles/Summon/PurpleButterfly.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/RadiantResolutionFire.cs b/Projectiles/Summon/RadiantResolutionFire.cs index cdf928db0a..e069758014 100644 --- a/Projectiles/Summon/RadiantResolutionFire.cs +++ b/Projectiles/Summon/RadiantResolutionFire.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Summon projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 5; projectile.Damage(); - Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); for (int i = 0; i < 20; i++) { Dust dust = Dust.NewDustPerfect(projectile.Center, (int)CalamityDusts.ProfanedFire); diff --git a/Projectiles/Summon/ReaverOrb.cs b/Projectiles/Summon/ReaverOrb.cs index 91300cd59f..4ccf243923 100644 --- a/Projectiles/Summon/ReaverOrb.cs +++ b/Projectiles/Summon/ReaverOrb.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; @@ -129,7 +129,7 @@ namespace CalamityMod.Projectiles.Summon Main.projectile[spore].usesLocalNPCImmunity = true; Main.projectile[spore].localNPCHitCooldown = 30; } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 77); + Main.PlaySound(SoundID.Item77, projectile.position); projectile.ai[0] = 50f; } } diff --git a/Projectiles/Summon/RustShrapnel.cs b/Projectiles/Summon/RustShrapnel.cs index b6ec7cbe6e..336e16ce96 100644 --- a/Projectiles/Summon/RustShrapnel.cs +++ b/Projectiles/Summon/RustShrapnel.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/SakuraBullet.cs b/Projectiles/Summon/SakuraBullet.cs index 78c2034756..d742786f82 100644 --- a/Projectiles/Summon/SakuraBullet.cs +++ b/Projectiles/Summon/SakuraBullet.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; @@ -87,7 +87,7 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 25); + Main.PlaySound(SoundID.Item25, projectile.position); int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 73, 0f, 0f, 100, default, 1f); Main.dust[num622].velocity *= 0.5f; if (Main.rand.NextBool(2)) diff --git a/Projectiles/Summon/SandBolt.cs b/Projectiles/Summon/SandBolt.cs index 5daeba3b35..9a76b93e71 100644 --- a/Projectiles/Summon/SandBolt.cs +++ b/Projectiles/Summon/SandBolt.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon diff --git a/Projectiles/Summon/SandElementalHealer.cs b/Projectiles/Summon/SandElementalHealer.cs index 3a900d64de..da82cdfa6e 100644 --- a/Projectiles/Summon/SandElementalHealer.cs +++ b/Projectiles/Summon/SandElementalHealer.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Healing; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -201,7 +201,7 @@ namespace CalamityMod.Projectiles.Summon projectile.ai[1] += 1f; if (Main.myPlayer == projectile.owner && player.statLife < player.statLifeMax2) { - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 6); + Main.PlaySound(SoundID.Dig, (int)projectile.position.X, (int)projectile.position.Y, 6); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { diff --git a/Projectiles/Summon/SandElementalMinion.cs b/Projectiles/Summon/SandElementalMinion.cs index 59d3979ce8..b7237d3873 100644 --- a/Projectiles/Summon/SandElementalMinion.cs +++ b/Projectiles/Summon/SandElementalMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.World; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Summon/SandMark.cs b/Projectiles/Summon/SandMark.cs index dc2d685e63..15aef08a1d 100644 --- a/Projectiles/Summon/SandMark.cs +++ b/Projectiles/Summon/SandMark.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.soundDelay == 0) { projectile.soundDelay = -1; - Main.PlaySound(2, projectile.Center, 60); + Main.PlaySound(SoundID.Item60, projectile.Center); } if (projectile.localAI[1] < 30f) { diff --git a/Projectiles/Summon/SandTornado.cs b/Projectiles/Summon/SandTornado.cs index b31e4f0d78..620285019e 100644 --- a/Projectiles/Summon/SandTornado.cs +++ b/Projectiles/Summon/SandTornado.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.soundDelay == 0) { projectile.soundDelay = -1; - Main.PlaySound(2, projectile.Center, 122); + Main.PlaySound(SoundID.Item122, projectile.position); } projectile.ai[0] += 1f; if (projectile.ai[0] >= num1125) diff --git a/Projectiles/Summon/SandnadoMinion.cs b/Projectiles/Summon/SandnadoMinion.cs index edfc16bd79..97a1517504 100644 --- a/Projectiles/Summon/SandnadoMinion.cs +++ b/Projectiles/Summon/SandnadoMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/Shellfish.cs b/Projectiles/Summon/Shellfish.cs index d6d76c956e..ce4d7ddc3b 100644 --- a/Projectiles/Summon/Shellfish.cs +++ b/Projectiles/Summon/Shellfish.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Projectiles; @@ -397,13 +397,13 @@ namespace CalamityMod.Projectiles.Summon for (int i = 0; i < Main.maxNPCs; i++) { if (Main.npc[i].active && !Main.npc[i].dontTakeDamage && Main.npc[i].defense < 9999 && - ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || + ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == NPCID.Guide && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == NPCID.Clothier && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || (projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1)) { if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i])) { bool flag3; - if (Main.npc[i].type == 414) + if (Main.npc[i].type == NPCID.SolarCrawltipedeTail) { Rectangle rect = Main.npc[i].getRect(); int num5 = 8; diff --git a/Projectiles/Summon/SilvaCrystal.cs b/Projectiles/Summon/SilvaCrystal.cs index 697cbdc758..c5282b01c8 100644 --- a/Projectiles/Summon/SilvaCrystal.cs +++ b/Projectiles/Summon/SilvaCrystal.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Summon/SilvaCrystalExplosion.cs b/Projectiles/Summon/SilvaCrystalExplosion.cs index 963ddc0347..a9c0ebf248 100644 --- a/Projectiles/Summon/SilvaCrystalExplosion.cs +++ b/Projectiles/Summon/SilvaCrystalExplosion.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Summon/SirenSongFriendly.cs b/Projectiles/Summon/SirenSongFriendly.cs index e6c8bb0d5a..60bb725ded 100644 --- a/Projectiles/Summon/SirenSongFriendly.cs +++ b/Projectiles/Summon/SirenSongFriendly.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Summon/SkeletalDragonChild.cs b/Projectiles/Summon/SkeletalDragonChild.cs index 372511e4ec..ec816a39f3 100644 --- a/Projectiles/Summon/SkeletalDragonChild.cs +++ b/Projectiles/Summon/SkeletalDragonChild.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/SkeletalDragonMother.cs b/Projectiles/Summon/SkeletalDragonMother.cs index 2936adf730..f5f779070e 100644 --- a/Projectiles/Summon/SkeletalDragonMother.cs +++ b/Projectiles/Summon/SkeletalDragonMother.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/SolarBeam.cs b/Projectiles/Summon/SolarBeam.cs index 29af5bc873..27d6c29e48 100644 --- a/Projectiles/Summon/SolarBeam.cs +++ b/Projectiles/Summon/SolarBeam.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Summon/SolarGod.cs b/Projectiles/Summon/SolarGod.cs index 242828bf03..af68240636 100644 --- a/Projectiles/Summon/SolarGod.cs +++ b/Projectiles/Summon/SolarGod.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Summon/SolarPixie.cs b/Projectiles/Summon/SolarPixie.cs index eda14913e8..8a253d29cc 100644 --- a/Projectiles/Summon/SolarPixie.cs +++ b/Projectiles/Summon/SolarPixie.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Summon/SonOfYharon.cs b/Projectiles/Summon/SonOfYharon.cs index ed48037b59..09870b4627 100644 --- a/Projectiles/Summon/SonOfYharon.cs +++ b/Projectiles/Summon/SonOfYharon.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Summon/Spikecrag.cs b/Projectiles/Summon/Spikecrag.cs index b8118d738a..bfa3d70e99 100644 --- a/Projectiles/Summon/Spikecrag.cs +++ b/Projectiles/Summon/Spikecrag.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Summon/SpikecragSpike.cs b/Projectiles/Summon/SpikecragSpike.cs index 56d968d5c7..431048eb23 100644 --- a/Projectiles/Summon/SpikecragSpike.cs +++ b/Projectiles/Summon/SpikecragSpike.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon diff --git a/Projectiles/Summon/StormMarkSummon.cs b/Projectiles/Summon/StormMarkSummon.cs index cd9ece354a..a37881fbb2 100644 --- a/Projectiles/Summon/StormMarkSummon.cs +++ b/Projectiles/Summon/StormMarkSummon.cs @@ -1,8 +1,9 @@ -using CalamityMod.Projectiles.Melee; +using CalamityMod.Projectiles.Melee; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon { @@ -36,7 +37,7 @@ namespace CalamityMod.Projectiles.Summon if (projectile.soundDelay == 0) { projectile.soundDelay = -1; - Main.PlaySound(2, projectile.Center, 60); + Main.PlaySound(SoundID.Item60, projectile.position); } if (projectile.localAI[1] < 30f) { diff --git a/Projectiles/Summon/SummonAstralExplosion.cs b/Projectiles/Summon/SummonAstralExplosion.cs index ee2bc6fffc..0e0fc7ce8b 100644 --- a/Projectiles/Summon/SummonAstralExplosion.cs +++ b/Projectiles/Summon/SummonAstralExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System.IO; using Terraria; diff --git a/Projectiles/Summon/TacticalPlagueEngineSummon.cs b/Projectiles/Summon/TacticalPlagueEngineSummon.cs index 6c9cefda9f..d462974ff6 100644 --- a/Projectiles/Summon/TacticalPlagueEngineSummon.cs +++ b/Projectiles/Summon/TacticalPlagueEngineSummon.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.Dusts; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.CalPlayer; diff --git a/Projectiles/Summon/TundraFlameBlossom.cs b/Projectiles/Summon/TundraFlameBlossom.cs index 3833bfeb96..d591e44bc9 100644 --- a/Projectiles/Summon/TundraFlameBlossom.cs +++ b/Projectiles/Summon/TundraFlameBlossom.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Summon/Urchin.cs b/Projectiles/Summon/Urchin.cs index b2dcc7b2dc..225bfe34ea 100644 --- a/Projectiles/Summon/Urchin.cs +++ b/Projectiles/Summon/Urchin.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; @@ -128,7 +128,7 @@ namespace CalamityMod.Projectiles.Summon Main.projectile[spore].minion = true; Main.projectile[spore].minionSlots = 0f; } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 42); + Main.PlaySound(SoundID.Item42, projectile.position); projectile.ai[0] = 60f; } } diff --git a/Projectiles/Summon/UrchinSpike.cs b/Projectiles/Summon/UrchinSpike.cs index b5cde9e756..3052ef049a 100644 --- a/Projectiles/Summon/UrchinSpike.cs +++ b/Projectiles/Summon/UrchinSpike.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Summon/Valkyrie.cs b/Projectiles/Summon/Valkyrie.cs index 83cd9fc2d0..3260742985 100644 --- a/Projectiles/Summon/Valkyrie.cs +++ b/Projectiles/Summon/Valkyrie.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Summon/VileFeederSummon.cs b/Projectiles/Summon/VileFeederSummon.cs index 33c56c7099..57d908f2f7 100644 --- a/Projectiles/Summon/VileFeederSummon.cs +++ b/Projectiles/Summon/VileFeederSummon.cs @@ -351,12 +351,12 @@ namespace CalamityMod.Projectiles.Summon { NPC npc = Main.npc[i]; if (npc.active && !npc.dontTakeDamage && npc.defense < 9999 && - ((projectile.friendly && (!npc.friendly || (npc.type == 22 && projectile.owner < Main.maxPlayers && player.killGuide) || (npc.type == 54 && projectile.owner < Main.maxPlayers && player.killClothier))) && (projectile.owner < 0 || npc.immune[projectile.owner] == 0 || projectile.maxPenetrate == 1))) + ((projectile.friendly && (!npc.friendly || (npc.type == NPCID.Guide && projectile.owner < Main.maxPlayers && player.killGuide) || (npc.type == NPCID.Clothier && projectile.owner < Main.maxPlayers && player.killClothier))) && (projectile.owner < 0 || npc.immune[projectile.owner] == 0 || projectile.maxPenetrate == 1))) { if (npc.noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(npc)) { bool flag3; - if (npc.type == 414) + if (npc.type == NPCID.SolarCrawltipedeTail) { Rectangle rect = npc.getRect(); int num5 = 8; diff --git a/Projectiles/Summon/WaterElementalMinion.cs b/Projectiles/Summon/WaterElementalMinion.cs index c680438b0d..e306f656ce 100644 --- a/Projectiles/Summon/WaterElementalMinion.cs +++ b/Projectiles/Summon/WaterElementalMinion.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Summon/WaterSpearFriendly.cs b/Projectiles/Summon/WaterSpearFriendly.cs index 7d750f174f..465acd66a3 100644 --- a/Projectiles/Summon/WaterSpearFriendly.cs +++ b/Projectiles/Summon/WaterSpearFriendly.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Summon } } projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 21); + Main.PlaySound(SoundID.Item21, projectile.position); } if (projectile.localAI[0] == 0f) { diff --git a/Projectiles/Summon/WulfrumBoltMinion.cs b/Projectiles/Summon/WulfrumBoltMinion.cs index 3ace303fb9..2d3c30e3ae 100644 --- a/Projectiles/Summon/WulfrumBoltMinion.cs +++ b/Projectiles/Summon/WulfrumBoltMinion.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Typeless/ArtifactOfResilienceShards.cs b/Projectiles/Typeless/ArtifactOfResilienceShards.cs index edd9c4e2c1..39d8212372 100644 --- a/Projectiles/Typeless/ArtifactOfResilienceShards.cs +++ b/Projectiles/Typeless/ArtifactOfResilienceShards.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Projectiles.Damageable; using Microsoft.Xna.Framework; diff --git a/Projectiles/Typeless/AstralFallingSand.cs b/Projectiles/Typeless/AstralFallingSand.cs index abe47c9030..86a3288bff 100644 --- a/Projectiles/Typeless/AstralFallingSand.cs +++ b/Projectiles/Typeless/AstralFallingSand.cs @@ -1,4 +1,4 @@ -using CalamityMod.Tiles.AstralDesert; +using CalamityMod.Tiles.AstralDesert; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Typeless/AstralSpray.cs b/Projectiles/Typeless/AstralSpray.cs index 8db6f3107f..cde6a93d77 100644 --- a/Projectiles/Typeless/AstralSpray.cs +++ b/Projectiles/Typeless/AstralSpray.cs @@ -1,4 +1,4 @@ - + using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Typeless/AstralStar.cs b/Projectiles/Typeless/AstralStar.cs index 5f5a69cad3..525c749cd1 100644 --- a/Projectiles/Typeless/AstralStar.cs +++ b/Projectiles/Typeless/AstralStar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Typeless projectile.soundDelay = 20 + Main.rand.Next(40); if (Main.rand.NextBool(5)) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 9); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 9); } } projectile.alpha -= 15; diff --git a/Projectiles/Typeless/AtaxiaOrb.cs b/Projectiles/Typeless/AtaxiaOrb.cs index 1da5fe5d56..f59f33e26f 100644 --- a/Projectiles/Typeless/AtaxiaOrb.cs +++ b/Projectiles/Typeless/AtaxiaOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Typeless/BallisticPoisonCloud.cs b/Projectiles/Typeless/BallisticPoisonCloud.cs index ed123003ff..b7f33c99e9 100644 --- a/Projectiles/Typeless/BallisticPoisonCloud.cs +++ b/Projectiles/Typeless/BallisticPoisonCloud.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/BlazingSun.cs b/Projectiles/Typeless/BlazingSun.cs index 6f4b1f5ec9..60b4b30c13 100644 --- a/Projectiles/Typeless/BlazingSun.cs +++ b/Projectiles/Typeless/BlazingSun.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Microsoft.Xna.Framework; diff --git a/Projectiles/Typeless/BlazingSun2.cs b/Projectiles/Typeless/BlazingSun2.cs index dc995153eb..44a6dae7b8 100644 --- a/Projectiles/Typeless/BlazingSun2.cs +++ b/Projectiles/Typeless/BlazingSun2.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/BloodBomb.cs b/Projectiles/Typeless/BloodBomb.cs index b74c429de6..c0f6ef183a 100644 --- a/Projectiles/Typeless/BloodBomb.cs +++ b/Projectiles/Typeless/BloodBomb.cs @@ -1,6 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Typeless { public class BloodBomb : ModProjectile @@ -25,7 +27,7 @@ namespace CalamityMod.Projectiles.Typeless Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.4f / 255f, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 73); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 73); projectile.localAI[0] += 1f; } for (int num457 = 0; num457 < 3; num457++) diff --git a/Projectiles/Typeless/BloodBombExplosion.cs b/Projectiles/Typeless/BloodBombExplosion.cs index 246613730b..a6811338ea 100644 --- a/Projectiles/Typeless/BloodBombExplosion.cs +++ b/Projectiles/Typeless/BloodBombExplosion.cs @@ -1,7 +1,9 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Typeless { public class BloodBombExplosion : ModProjectile @@ -29,7 +31,7 @@ namespace CalamityMod.Projectiles.Typeless Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 1f / 255f, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 74); projectile.localAI[0] += 1f; } bool flag15 = false; diff --git a/Projectiles/Typeless/BrimstoneHellfireballFriendly2.cs b/Projectiles/Typeless/BrimstoneHellfireballFriendly2.cs index e93d34d612..76f0e61b44 100644 --- a/Projectiles/Typeless/BrimstoneHellfireballFriendly2.cs +++ b/Projectiles/Typeless/BrimstoneHellfireballFriendly2.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Typeless { public class BrimstoneHellfireballFriendly2 : ModProjectile @@ -30,7 +32,7 @@ namespace CalamityMod.Projectiles.Typeless Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.05f / 255f, (255 - projectile.alpha) * 0.05f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 20); projectile.localAI[0] += 1f; } for (int num457 = 0; num457 < 5; num457++) diff --git a/Projectiles/Typeless/BrokenWaterFilterSpewer.cs b/Projectiles/Typeless/BrokenWaterFilterSpewer.cs index 6ea1e653dd..847b4e8cc2 100644 --- a/Projectiles/Typeless/BrokenWaterFilterSpewer.cs +++ b/Projectiles/Typeless/BrokenWaterFilterSpewer.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Items.SummonItems.Invasion; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Typeless/ChaosBlaze.cs b/Projectiles/Typeless/ChaosBlaze.cs index 1f9a7d908e..c49d1bb392 100644 --- a/Projectiles/Typeless/ChaosBlaze.cs +++ b/Projectiles/Typeless/ChaosBlaze.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Typeless/ChaosFlare.cs b/Projectiles/Typeless/ChaosFlare.cs index 356419787f..6dcbaad2f7 100644 --- a/Projectiles/Typeless/ChaosFlare.cs +++ b/Projectiles/Typeless/ChaosFlare.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; @@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Typeless Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.25f / 255f, (255 - projectile.alpha) * 0f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, (int)projectile.position.X, (int)projectile.position.Y); projectile.localAI[0] += 1f; } for (int num457 = 0; num457 < 6; num457++) diff --git a/Projectiles/Typeless/ChaosFlare2.cs b/Projectiles/Typeless/ChaosFlare2.cs index c24df2ffe4..be7fb73e61 100644 --- a/Projectiles/Typeless/ChaosFlare2.cs +++ b/Projectiles/Typeless/ChaosFlare2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Typeless/ChaosGeyser.cs b/Projectiles/Typeless/ChaosGeyser.cs index 8e069d2f09..834b23401e 100644 --- a/Projectiles/Typeless/ChaosGeyser.cs +++ b/Projectiles/Typeless/ChaosGeyser.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Typeless if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, (int)projectile.position.X, (int)projectile.position.Y); } projectile.rotation += projectile.velocity.X * 0.1f; int num199 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 127, 0f, 0f, 100, default, 1f); diff --git a/Projectiles/Typeless/CoralBubble.cs b/Projectiles/Typeless/CoralBubble.cs index 3bfa3cead7..9802478afc 100644 --- a/Projectiles/Typeless/CoralBubble.cs +++ b/Projectiles/Typeless/CoralBubble.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Typeless/CoralBubbleSmall.cs b/Projectiles/Typeless/CoralBubbleSmall.cs index 7e120267fd..cacf6eee29 100644 --- a/Projectiles/Typeless/CoralBubbleSmall.cs +++ b/Projectiles/Typeless/CoralBubbleSmall.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/CursorProj.cs b/Projectiles/Typeless/CursorProj.cs index b725fbae1d..aef6539f04 100644 --- a/Projectiles/Typeless/CursorProj.cs +++ b/Projectiles/Typeless/CursorProj.cs @@ -1,4 +1,4 @@ -using System; +using System; using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Typeless/CursorProjSplit.cs b/Projectiles/Typeless/CursorProjSplit.cs index e2b459467c..f6762606db 100644 --- a/Projectiles/Typeless/CursorProjSplit.cs +++ b/Projectiles/Typeless/CursorProjSplit.cs @@ -1,4 +1,4 @@ -using System; +using System; using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Typeless/DemonshadeRedDevil.cs b/Projectiles/Typeless/DemonshadeRedDevil.cs index 426d63fc79..e9d1b1ceaf 100644 --- a/Projectiles/Typeless/DemonshadeRedDevil.cs +++ b/Projectiles/Typeless/DemonshadeRedDevil.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/Projectiles/Typeless/DirectStrike.cs b/Projectiles/Typeless/DirectStrike.cs index 127b2cd62a..b8fa9e0cc3 100644 --- a/Projectiles/Typeless/DirectStrike.cs +++ b/Projectiles/Typeless/DirectStrike.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless diff --git a/Projectiles/Typeless/DragonDust.cs b/Projectiles/Typeless/DragonDust.cs index ce2bf96961..bec93ad532 100644 --- a/Projectiles/Typeless/DragonDust.cs +++ b/Projectiles/Typeless/DragonDust.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Typeless/FabsolDust.cs b/Projectiles/Typeless/FabsolDust.cs index 5a3967ae72..1a8c1f94fa 100644 --- a/Projectiles/Typeless/FabsolDust.cs +++ b/Projectiles/Typeless/FabsolDust.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless diff --git a/Projectiles/Typeless/FiniteUse/ExplosiveShotgunShell.cs b/Projectiles/Typeless/FiniteUse/ExplosiveShotgunShell.cs index 6428d063f1..d2b7e7a4f0 100644 --- a/Projectiles/Typeless/FiniteUse/ExplosiveShotgunShell.cs +++ b/Projectiles/Typeless/FiniteUse/ExplosiveShotgunShell.cs @@ -1,6 +1,7 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless.FiniteUse { @@ -36,13 +37,13 @@ namespace CalamityMod.Projectiles.Typeless.FiniteUse public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); - Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + Main.PlaySound(SoundID.Dig, projectile.position); return true; } public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 32; projectile.position.X = projectile.position.X - projectile.width / 2; diff --git a/Projectiles/Typeless/FiniteUse/GrenadeRound.cs b/Projectiles/Typeless/FiniteUse/GrenadeRound.cs index 1c57ad224b..4c7eb86114 100644 --- a/Projectiles/Typeless/FiniteUse/GrenadeRound.cs +++ b/Projectiles/Typeless/FiniteUse/GrenadeRound.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using System; using Terraria; @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Typeless.FiniteUse public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62); + Main.PlaySound(SoundID.Item62, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 96; projectile.position.X = projectile.position.X - projectile.width / 2; diff --git a/Projectiles/Typeless/FiniteUse/MagnumRound.cs b/Projectiles/Typeless/FiniteUse/MagnumRound.cs index 5dd0cc59a4..bedca6384a 100644 --- a/Projectiles/Typeless/FiniteUse/MagnumRound.cs +++ b/Projectiles/Typeless/FiniteUse/MagnumRound.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.NPCs.NormalNPCs; using CalamityMod.NPCs.Providence; using Terraria; diff --git a/Projectiles/Typeless/FlareExplosion.cs b/Projectiles/Typeless/FlareExplosion.cs index 8f5636b1b3..7fa406c06e 100644 --- a/Projectiles/Typeless/FlareExplosion.cs +++ b/Projectiles/Typeless/FlareExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/FuckYou.cs b/Projectiles/Typeless/FuckYou.cs index 724fd95c92..be379d8bc5 100644 --- a/Projectiles/Typeless/FuckYou.cs +++ b/Projectiles/Typeless/FuckYou.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Typeless/GhostlyBolt.cs b/Projectiles/Typeless/GhostlyBolt.cs index 76d6fe8980..a17b1f5866 100644 --- a/Projectiles/Typeless/GhostlyBolt.cs +++ b/Projectiles/Typeless/GhostlyBolt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/GladiatorSword.cs b/Projectiles/Typeless/GladiatorSword.cs index 499371303c..b55bdd2e6b 100644 --- a/Projectiles/Typeless/GladiatorSword.cs +++ b/Projectiles/Typeless/GladiatorSword.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Typeless/GladiatorSword2.cs b/Projectiles/Typeless/GladiatorSword2.cs index 2202f4aa67..7ce5080fa2 100644 --- a/Projectiles/Typeless/GladiatorSword2.cs +++ b/Projectiles/Typeless/GladiatorSword2.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Typeless/GodKiller.cs b/Projectiles/Typeless/GodKiller.cs index 6c43ecf126..96fee4d9c6 100644 --- a/Projectiles/Typeless/GodKiller.cs +++ b/Projectiles/Typeless/GodKiller.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; @@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Typeless public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 89); + Main.PlaySound(SoundID.Item89, projectile.position); for (int num621 = 0; num621 < 5; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 199, 0f, 0f, 100, default, 1.5f); diff --git a/Projectiles/Typeless/GodSlayerBlaze.cs b/Projectiles/Typeless/GodSlayerBlaze.cs index c4411a03e1..a1bfd834fc 100644 --- a/Projectiles/Typeless/GodSlayerBlaze.cs +++ b/Projectiles/Typeless/GodSlayerBlaze.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; diff --git a/Projectiles/Typeless/GodSlayerOrb.cs b/Projectiles/Typeless/GodSlayerOrb.cs index 244d15a8e8..80649d3053 100644 --- a/Projectiles/Typeless/GodSlayerOrb.cs +++ b/Projectiles/Typeless/GodSlayerOrb.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Projectiles/Typeless/GodSlayerPhantom.cs b/Projectiles/Typeless/GodSlayerPhantom.cs index aa3da5f3c9..ce10466e68 100644 --- a/Projectiles/Typeless/GodSlayerPhantom.cs +++ b/Projectiles/Typeless/GodSlayerPhantom.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Typeless/GodSlayerShrapnel.cs b/Projectiles/Typeless/GodSlayerShrapnel.cs index ca8fa650df..d1540d85c0 100644 --- a/Projectiles/Typeless/GodSlayerShrapnel.cs +++ b/Projectiles/Typeless/GodSlayerShrapnel.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { @@ -52,7 +53,7 @@ namespace CalamityMod.Projectiles.Typeless if (projectile.ai[1] == 0f && projectile.type >= 326 && projectile.type <= 328) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 13); + Main.PlaySound(SoundID.Item13, projectile.position); } int num199 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 173, 0f, 0f, 100, default, 0.5f); Dust dust = Main.dust[num199]; diff --git a/Projectiles/Typeless/GodSlayerShrapnelRound.cs b/Projectiles/Typeless/GodSlayerShrapnelRound.cs index e95b59ee92..c5384e4247 100644 --- a/Projectiles/Typeless/GodSlayerShrapnelRound.cs +++ b/Projectiles/Typeless/GodSlayerShrapnelRound.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { @@ -24,7 +25,7 @@ namespace CalamityMod.Projectiles.Typeless { if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 73); + Main.PlaySound(SoundID.Item73, projectile.position); projectile.localAI[0] += 1f; } for (int num457 = 0; num457 < 3; num457++) diff --git a/Projectiles/Typeless/HellfireExplosionFriendly2.cs b/Projectiles/Typeless/HellfireExplosionFriendly2.cs index b5c0d52d8d..a74ca74e37 100644 --- a/Projectiles/Typeless/HellfireExplosionFriendly2.cs +++ b/Projectiles/Typeless/HellfireExplosionFriendly2.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { @@ -31,7 +32,7 @@ namespace CalamityMod.Projectiles.Typeless Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.75f / 255f, (255 - projectile.alpha) * 0.05f / 255f, (255 - projectile.alpha) * 0.05f / 255f); if (projectile.localAI[0] == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.localAI[0] += 1f; } float num461 = 25f; diff --git a/Projectiles/Typeless/HolyEruption.cs b/Projectiles/Typeless/HolyEruption.cs index f86a0170cf..2c7be1d463 100644 --- a/Projectiles/Typeless/HolyEruption.cs +++ b/Projectiles/Typeless/HolyEruption.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/HolyExplosion.cs b/Projectiles/Typeless/HolyExplosion.cs index 77d888034e..904f6c550d 100644 --- a/Projectiles/Typeless/HolyExplosion.cs +++ b/Projectiles/Typeless/HolyExplosion.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { @@ -25,7 +26,7 @@ namespace CalamityMod.Projectiles.Typeless public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 20; diff --git a/Projectiles/Typeless/HolyExplosionSupreme.cs b/Projectiles/Typeless/HolyExplosionSupreme.cs index 1873fda4a3..ff67d7bed8 100644 --- a/Projectiles/Typeless/HolyExplosionSupreme.cs +++ b/Projectiles/Typeless/HolyExplosionSupreme.cs @@ -1,5 +1,6 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { @@ -25,7 +26,7 @@ namespace CalamityMod.Projectiles.Typeless public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 60; diff --git a/Projectiles/Typeless/HolyFlameBomb.cs b/Projectiles/Typeless/HolyFlameBomb.cs index 3624ca77a2..72c1d79c03 100644 --- a/Projectiles/Typeless/HolyFlameBomb.cs +++ b/Projectiles/Typeless/HolyFlameBomb.cs @@ -1,6 +1,7 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { @@ -45,7 +46,7 @@ namespace CalamityMod.Projectiles.Typeless public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + Main.PlaySound(SoundID.Item20, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Typeless/HydrothermalSmoke.cs b/Projectiles/Typeless/HydrothermalSmoke.cs index c74a89c390..c2db66b9bf 100644 --- a/Projectiles/Typeless/HydrothermalSmoke.cs +++ b/Projectiles/Typeless/HydrothermalSmoke.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/KelvinCatalystStar.cs b/Projectiles/Typeless/KelvinCatalystStar.cs index 39f3192aad..72092691cf 100644 --- a/Projectiles/Typeless/KelvinCatalystStar.cs +++ b/Projectiles/Typeless/KelvinCatalystStar.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -102,7 +102,7 @@ namespace CalamityMod.Projectiles.Typeless public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + Main.PlaySound(SoundID.Item27, projectile.position); projectile.position = projectile.Center; projectile.width = projectile.height = 24; projectile.position.X = projectile.position.X - (float)(projectile.width / 2); diff --git a/Projectiles/Typeless/LunicBeam.cs b/Projectiles/Typeless/LunicBeam.cs index b6bd3c32bb..db6d22ab19 100644 --- a/Projectiles/Typeless/LunicBeam.cs +++ b/Projectiles/Typeless/LunicBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Typeless/MageHammerBoom.cs b/Projectiles/Typeless/MageHammerBoom.cs index d2b858948a..4142e9f277 100644 --- a/Projectiles/Typeless/MageHammerBoom.cs +++ b/Projectiles/Typeless/MageHammerBoom.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { public class MageHammerBoom : ModProjectile diff --git a/Projectiles/Typeless/MarkRound.cs b/Projectiles/Typeless/MarkRound.cs index d1517e81a3..3e6ca65fbb 100644 --- a/Projectiles/Typeless/MarkRound.cs +++ b/Projectiles/Typeless/MarkRound.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Typeless/MomentumCapacitorOrb.cs b/Projectiles/Typeless/MomentumCapacitorOrb.cs index 921f117cc6..3eca89eb47 100644 --- a/Projectiles/Typeless/MomentumCapacitorOrb.cs +++ b/Projectiles/Typeless/MomentumCapacitorOrb.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; diff --git a/Projectiles/Typeless/NanoFlare.cs b/Projectiles/Typeless/NanoFlare.cs index 6b2e5521ca..f9cdad00de 100644 --- a/Projectiles/Typeless/NanoFlare.cs +++ b/Projectiles/Typeless/NanoFlare.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Microsoft.Xna.Framework; @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Typeless dust.color = Main.hslToRgb((float)(0.40000000596046448 + Main.rand.NextDouble() * 0.20000000298023224), 0.9f, 0.5f); dust.color = Color.Lerp(dust.color, Color.White, 0.3f); } - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y,14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); projectile.width = 60; diff --git a/Projectiles/Typeless/Nanotech.cs b/Projectiles/Typeless/Nanotech.cs index f98338a08f..0f9e7064c4 100644 --- a/Projectiles/Typeless/Nanotech.cs +++ b/Projectiles/Typeless/Nanotech.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/NebulaDust.cs b/Projectiles/Typeless/NebulaDust.cs index 9a1d482cd8..2e8ff2dc7b 100644 --- a/Projectiles/Typeless/NebulaDust.cs +++ b/Projectiles/Typeless/NebulaDust.cs @@ -1,4 +1,4 @@ -using System; +using System; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless diff --git a/Projectiles/Typeless/NebulaStar.cs b/Projectiles/Typeless/NebulaStar.cs index 3186fed573..a2d726d91e 100644 --- a/Projectiles/Typeless/NebulaStar.cs +++ b/Projectiles/Typeless/NebulaStar.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Projectiles/Typeless/NobodyKnows.cs b/Projectiles/Typeless/NobodyKnows.cs index db275d6137..b302886136 100644 --- a/Projectiles/Typeless/NobodyKnows.cs +++ b/Projectiles/Typeless/NobodyKnows.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { public class NobodyKnows : ModProjectile diff --git a/Projectiles/Typeless/PendantProjectile1.cs b/Projectiles/Typeless/PendantProjectile1.cs index 6898d48be8..788a79bf13 100644 --- a/Projectiles/Typeless/PendantProjectile1.cs +++ b/Projectiles/Typeless/PendantProjectile1.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using CalamityMod.Buffs.StatDebuffs; diff --git a/Projectiles/Typeless/PendantProjectile2.cs b/Projectiles/Typeless/PendantProjectile2.cs index 278eff68a7..9e4b19b4c1 100644 --- a/Projectiles/Typeless/PendantProjectile2.cs +++ b/Projectiles/Typeless/PendantProjectile2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using CalamityMod.Buffs.StatDebuffs; diff --git a/Projectiles/Typeless/PendantProjectile3.cs b/Projectiles/Typeless/PendantProjectile3.cs index c9e8e042bb..694f423348 100644 --- a/Projectiles/Typeless/PendantProjectile3.cs +++ b/Projectiles/Typeless/PendantProjectile3.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using CalamityMod.Buffs.StatDebuffs; diff --git a/Projectiles/Typeless/PoisonousSeawater.cs b/Projectiles/Typeless/PoisonousSeawater.cs index 4951f8fa4a..216f5a153a 100644 --- a/Projectiles/Typeless/PoisonousSeawater.cs +++ b/Projectiles/Typeless/PoisonousSeawater.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/ReaverBlast.cs b/Projectiles/Typeless/ReaverBlast.cs index 6627f85652..929e6d7207 100644 --- a/Projectiles/Typeless/ReaverBlast.cs +++ b/Projectiles/Typeless/ReaverBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Typeless/RelicOfConvergenceCrystal.cs b/Projectiles/Typeless/RelicOfConvergenceCrystal.cs index 3d773bd0f9..dce1ce17b3 100644 --- a/Projectiles/Typeless/RelicOfConvergenceCrystal.cs +++ b/Projectiles/Typeless/RelicOfConvergenceCrystal.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Projectiles/Typeless/RelicOfDeliveranceSpear.cs b/Projectiles/Typeless/RelicOfDeliveranceSpear.cs index 6044b01d8e..c6fab199e7 100644 --- a/Projectiles/Typeless/RelicOfDeliveranceSpear.cs +++ b/Projectiles/Typeless/RelicOfDeliveranceSpear.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Dusts; using CalamityMod.Items.Weapons.Typeless; using Microsoft.Xna.Framework; diff --git a/Projectiles/Typeless/SabatonSlam.cs b/Projectiles/Typeless/SabatonSlam.cs index 84f6a3cc25..d3706be6c3 100644 --- a/Projectiles/Typeless/SabatonSlam.cs +++ b/Projectiles/Typeless/SabatonSlam.cs @@ -2,6 +2,8 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using CalamityMod.Dusts; +using Terraria.ID; + namespace CalamityMod.Projectiles.Typeless { public class SabatonSlam : ModProjectile @@ -31,7 +33,7 @@ namespace CalamityMod.Projectiles.Typeless { //Spawns the shockwave Projectile.NewProjectile(projectile.position.X + 25, projectile.position.Y + 25, 0f, 0f, ModContent.ProjectileType(), 300, 12, projectile.owner); - Main.PlaySound(2, projectile.position, 14); + Main.PlaySound(SoundID.Item14, projectile.position); Player player = Main.player[projectile.owner]; player.Calamity().gSabatonFall = 0; projectile.Kill(); diff --git a/Projectiles/Typeless/SandCloakVeil.cs b/Projectiles/Typeless/SandCloakVeil.cs index 41e02e54fe..d34b0e3166 100644 --- a/Projectiles/Typeless/SandCloakVeil.cs +++ b/Projectiles/Typeless/SandCloakVeil.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using CalamityMod.NPCs; using CalamityMod.Projectiles.Typeless; diff --git a/Projectiles/Typeless/SandExplosion.cs b/Projectiles/Typeless/SandExplosion.cs index 6c016942cd..83f8dcde8f 100644 --- a/Projectiles/Typeless/SandExplosion.cs +++ b/Projectiles/Typeless/SandExplosion.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/Seashell.cs b/Projectiles/Typeless/Seashell.cs index db49fe3bbb..7ca2b090d1 100644 --- a/Projectiles/Typeless/Seashell.cs +++ b/Projectiles/Typeless/Seashell.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { diff --git a/Projectiles/Typeless/ShadowflameExplosion.cs b/Projectiles/Typeless/ShadowflameExplosion.cs index 629485379d..6eabe62f99 100644 --- a/Projectiles/Typeless/ShadowflameExplosion.cs +++ b/Projectiles/Typeless/ShadowflameExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/ShadowflameExplosionBig.cs b/Projectiles/Typeless/ShadowflameExplosionBig.cs index 60ffd632c6..25f859886b 100644 --- a/Projectiles/Typeless/ShadowflameExplosionBig.cs +++ b/Projectiles/Typeless/ShadowflameExplosionBig.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/SkyFlareFriendly.cs b/Projectiles/Typeless/SkyFlareFriendly.cs index e87da2163b..c96538d061 100644 --- a/Projectiles/Typeless/SkyFlareFriendly.cs +++ b/Projectiles/Typeless/SkyFlareFriendly.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Typeless public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = projectile.height = 200; diff --git a/Projectiles/Typeless/StandingFire.cs b/Projectiles/Typeless/StandingFire.cs index bd11ee8a89..6514f32fbb 100644 --- a/Projectiles/Typeless/StandingFire.cs +++ b/Projectiles/Typeless/StandingFire.cs @@ -1,7 +1,8 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { @@ -56,7 +57,7 @@ namespace CalamityMod.Projectiles.Typeless if (projectile.ai[1] == 0f && projectile.type >= 326 && projectile.type <= 328) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 13); + Main.PlaySound(SoundID.Item13, projectile.position); } int num199 = Dust.NewDust(projectile.position, projectile.width, projectile.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 1f); Dust dust = Main.dust[num199]; diff --git a/Projectiles/Typeless/StarStruckWaterBottle.cs b/Projectiles/Typeless/StarStruckWaterBottle.cs index 1b73e061d7..c68aca2b40 100644 --- a/Projectiles/Typeless/StarStruckWaterBottle.cs +++ b/Projectiles/Typeless/StarStruckWaterBottle.cs @@ -1,7 +1,9 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Projectiles.Typeless { public class StarStruckWaterBottle : ModProjectile @@ -34,7 +36,7 @@ namespace CalamityMod.Projectiles.Typeless { if (projectile.owner == Main.myPlayer) { - Main.PlaySound(13, (int) projectile.position.X, (int) projectile.position.Y, 1, 1f, 0.0f); + Main.PlaySound(SoundID.Shatter, (int) projectile.position.X, (int) projectile.position.Y, 1, 1f, 0.0f); for (int index = 0; index < 5; ++index) Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 13, 0f, 0f, 0, new Color(), 1f); for (int index1 = 0; index1 < 30; ++index1) diff --git a/Projectiles/Typeless/StickyFeatherAero.cs b/Projectiles/Typeless/StickyFeatherAero.cs index e4bf1f1714..759e899d89 100644 --- a/Projectiles/Typeless/StickyFeatherAero.cs +++ b/Projectiles/Typeless/StickyFeatherAero.cs @@ -1,6 +1,7 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless { @@ -67,7 +68,7 @@ namespace CalamityMod.Projectiles.Typeless public override void Kill(int timeLeft) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Main.PlaySound(SoundID.Item14, projectile.position); projectile.position.X = projectile.position.X + (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); projectile.width = 50; diff --git a/Projectiles/Typeless/StormBolt.cs b/Projectiles/Typeless/StormBolt.cs index c117cd1918..856f61f10e 100644 --- a/Projectiles/Typeless/StormBolt.cs +++ b/Projectiles/Typeless/StormBolt.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Summon; +using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless diff --git a/Projectiles/Typeless/SulphuricAcidBubbleFriendly.cs b/Projectiles/Typeless/SulphuricAcidBubbleFriendly.cs index a03c1e4e18..cd5464b843 100644 --- a/Projectiles/Typeless/SulphuricAcidBubbleFriendly.cs +++ b/Projectiles/Typeless/SulphuricAcidBubbleFriendly.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Projectiles/Typeless/TheDeadlyMicrobeProjectile.cs b/Projectiles/Typeless/TheDeadlyMicrobeProjectile.cs index 303b0059bd..2882484679 100644 --- a/Projectiles/Typeless/TheDeadlyMicrobeProjectile.cs +++ b/Projectiles/Typeless/TheDeadlyMicrobeProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Typeless/UnstableSpark.cs b/Projectiles/Typeless/UnstableSpark.cs index c5cc444bff..96ccb95791 100644 --- a/Projectiles/Typeless/UnstableSpark.cs +++ b/Projectiles/Typeless/UnstableSpark.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Typeless diff --git a/Projectiles/Typeless/VanquisherArrowSplit.cs b/Projectiles/Typeless/VanquisherArrowSplit.cs index 6b54a6e74d..21bfe65747 100644 --- a/Projectiles/Typeless/VanquisherArrowSplit.cs +++ b/Projectiles/Typeless/VanquisherArrowSplit.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Projectiles/Typeless/XerocBlast.cs b/Projectiles/Typeless/XerocBlast.cs index 9c037b04e8..e54ef58818 100644 --- a/Projectiles/Typeless/XerocBlast.cs +++ b/Projectiles/Typeless/XerocBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Typeless/XerocBubble.cs b/Projectiles/Typeless/XerocBubble.cs index 96f4d26459..cc9c0d99a1 100644 --- a/Projectiles/Typeless/XerocBubble.cs +++ b/Projectiles/Typeless/XerocBubble.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Typeless/XerocFire.cs b/Projectiles/Typeless/XerocFire.cs index db4ca95f9a..0855854893 100644 --- a/Projectiles/Typeless/XerocFire.cs +++ b/Projectiles/Typeless/XerocFire.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Projectiles/Typeless/XerocOrb.cs b/Projectiles/Typeless/XerocOrb.cs index e7f46125c1..9618cf0051 100644 --- a/Projectiles/Typeless/XerocOrb.cs +++ b/Projectiles/Typeless/XerocOrb.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; diff --git a/Projectiles/Typeless/XerocStar.cs b/Projectiles/Typeless/XerocStar.cs index aced66d767..333078f873 100644 --- a/Projectiles/Typeless/XerocStar.cs +++ b/Projectiles/Typeless/XerocStar.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; diff --git a/Skies/AstralScreenShaderData.cs b/Skies/AstralScreenShaderData.cs index daec3689d2..58bfa3aba6 100644 --- a/Skies/AstralScreenShaderData.cs +++ b/Skies/AstralScreenShaderData.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Skies/AstralSky.cs b/Skies/AstralSky.cs index 8838b21646..565823082e 100644 --- a/Skies/AstralSky.cs +++ b/Skies/AstralSky.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Graphics.Effects; diff --git a/Sounds/Custom/AtlasIdle0.cs b/Sounds/Custom/AtlasIdle0.cs index d28487510c..0e415fb714 100644 --- a/Sounds/Custom/AtlasIdle0.cs +++ b/Sounds/Custom/AtlasIdle0.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/Custom/AtlasIdle1.cs b/Sounds/Custom/AtlasIdle1.cs index d56baef018..9cd12705b4 100644 --- a/Sounds/Custom/AtlasIdle1.cs +++ b/Sounds/Custom/AtlasIdle1.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/Custom/AtlasSad0.cs b/Sounds/Custom/AtlasSad0.cs index 92af198143..02dde2a23f 100644 --- a/Sounds/Custom/AtlasSad0.cs +++ b/Sounds/Custom/AtlasSad0.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/Custom/AtlasSad1.cs b/Sounds/Custom/AtlasSad1.cs index a536066a5d..fb8262a184 100644 --- a/Sounds/Custom/AtlasSad1.cs +++ b/Sounds/Custom/AtlasSad1.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/Custom/AtlasSwing.cs b/Sounds/Custom/AtlasSwing.cs index c25870d303..244d79c49b 100644 --- a/Sounds/Custom/AtlasSwing.cs +++ b/Sounds/Custom/AtlasSwing.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/Item/IceBarrageCast.cs b/Sounds/Item/IceBarrageCast.cs index e049fa0553..377d846ab1 100644 --- a/Sounds/Item/IceBarrageCast.cs +++ b/Sounds/Item/IceBarrageCast.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; using Microsoft.Xna.Framework.Audio; diff --git a/Sounds/NPCHit/AstralEnemyHit.cs b/Sounds/NPCHit/AstralEnemyHit.cs index 819f63bd08..236fbce138 100644 --- a/Sounds/NPCHit/AstralEnemyHit.cs +++ b/Sounds/NPCHit/AstralEnemyHit.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCHit/AstralEnemyHit2.cs b/Sounds/NPCHit/AstralEnemyHit2.cs index 93472c3d2e..6c959f5574 100644 --- a/Sounds/NPCHit/AstralEnemyHit2.cs +++ b/Sounds/NPCHit/AstralEnemyHit2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCHit/AstralEnemyHit3.cs b/Sounds/NPCHit/AstralEnemyHit3.cs index 9b9c4559d0..1982c1dc28 100644 --- a/Sounds/NPCHit/AstralEnemyHit3.cs +++ b/Sounds/NPCHit/AstralEnemyHit3.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCHit/AtlasHurt0.cs b/Sounds/NPCHit/AtlasHurt0.cs index 04db56771f..0b343486f0 100644 --- a/Sounds/NPCHit/AtlasHurt0.cs +++ b/Sounds/NPCHit/AtlasHurt0.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCHit/AtlasHurt1.cs b/Sounds/NPCHit/AtlasHurt1.cs index 9a4fd2a64c..a5f7ff4368 100644 --- a/Sounds/NPCHit/AtlasHurt1.cs +++ b/Sounds/NPCHit/AtlasHurt1.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCHit/AtlasHurt2.cs b/Sounds/NPCHit/AtlasHurt2.cs index 7e25955b01..95cda75ab9 100644 --- a/Sounds/NPCHit/AtlasHurt2.cs +++ b/Sounds/NPCHit/AtlasHurt2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCHit/OtherworldlyHit.cs b/Sounds/NPCHit/OtherworldlyHit.cs index 01f595436e..aef187b9c8 100644 --- a/Sounds/NPCHit/OtherworldlyHit.cs +++ b/Sounds/NPCHit/OtherworldlyHit.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCHit/ProvidenceHurt.cs b/Sounds/NPCHit/ProvidenceHurt.cs index b41c763c47..55deb88fb9 100644 --- a/Sounds/NPCHit/ProvidenceHurt.cs +++ b/Sounds/NPCHit/ProvidenceHurt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCHit/ScornHurt.cs b/Sounds/NPCHit/ScornHurt.cs index 70c80394a6..3e06fd67d5 100644 --- a/Sounds/NPCHit/ScornHurt.cs +++ b/Sounds/NPCHit/ScornHurt.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCKilled/AstralEnemyDeath.cs b/Sounds/NPCKilled/AstralEnemyDeath.cs index 87ed76a1f3..512be0b8b6 100644 --- a/Sounds/NPCKilled/AstralEnemyDeath.cs +++ b/Sounds/NPCKilled/AstralEnemyDeath.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCKilled/AtlasDeath.cs b/Sounds/NPCKilled/AtlasDeath.cs index b2854be375..474b159ce3 100644 --- a/Sounds/NPCKilled/AtlasDeath.cs +++ b/Sounds/NPCKilled/AtlasDeath.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCKilled/EidolistDeath.cs b/Sounds/NPCKilled/EidolistDeath.cs index 69bd631850..0fe0436ad2 100644 --- a/Sounds/NPCKilled/EidolistDeath.cs +++ b/Sounds/NPCKilled/EidolistDeath.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCKilled/ProvidenceDeath.cs b/Sounds/NPCKilled/ProvidenceDeath.cs index 284e3b1c4e..2e0e8da65d 100644 --- a/Sounds/NPCKilled/ProvidenceDeath.cs +++ b/Sounds/NPCKilled/ProvidenceDeath.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Sounds/NPCKilled/ScornDeath.cs b/Sounds/NPCKilled/ScornDeath.cs index 283f7e9f81..794a76f3a7 100644 --- a/Sounds/NPCKilled/ScornDeath.cs +++ b/Sounds/NPCKilled/ScornDeath.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Audio; using Terraria; using Terraria.ModLoader; diff --git a/Tiles/Abyss/AbyssGravel.cs b/Tiles/Abyss/AbyssGravel.cs index 1d9026137e..db97053347 100644 --- a/Tiles/Abyss/AbyssGravel.cs +++ b/Tiles/Abyss/AbyssGravel.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Tiles.Abyss AddMapEntry(new Color(0, 0, 0)); mineResist = 10f; minPick = 65; - soundType = 21; + soundType = SoundID.Tink; dustType = 33; } diff --git a/Tiles/Abyss/AcidWoodTree.cs b/Tiles/Abyss/AcidWoodTree.cs index bdf58de74b..cbbd85d45e 100644 --- a/Tiles/Abyss/AcidWoodTree.cs +++ b/Tiles/Abyss/AcidWoodTree.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework.Graphics; using Terraria.ModLoader; diff --git a/Tiles/Abyss/AcidWoodTreeSapling.cs b/Tiles/Abyss/AcidWoodTreeSapling.cs index b943ee4eb7..23515c0b65 100644 --- a/Tiles/Abyss/AcidWoodTreeSapling.cs +++ b/Tiles/Abyss/AcidWoodTreeSapling.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; diff --git a/Tiles/Abyss/HardenedSulphurousSandstone.cs b/Tiles/Abyss/HardenedSulphurousSandstone.cs index d8a786d4c1..96246262f5 100644 --- a/Tiles/Abyss/HardenedSulphurousSandstone.cs +++ b/Tiles/Abyss/HardenedSulphurousSandstone.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.Abyss AddMapEntry(new Color(76, 58, 59)); mineResist = 1f; minPick = 55; - soundType = 0; + soundType = SoundID.Dig; } public override void NumDust(int i, int j, bool fail, ref int num) @@ -86,7 +86,7 @@ namespace CalamityMod.Tiles.Abyss Main.tile[num53, num54].type = (ushort)ModContent.TileType(); Main.tile[num53, num54].active(true); WorldGen.SquareTileFrame(num53, num54, true); - if (Main.netMode == 2) + if (Main.netMode == NetmodeID.Server) { NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None); } diff --git a/Tiles/Abyss/LumenylCrystals.cs b/Tiles/Abyss/LumenylCrystals.cs index 16ccfeb9e6..f4cc95c989 100644 --- a/Tiles/Abyss/LumenylCrystals.cs +++ b/Tiles/Abyss/LumenylCrystals.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Tiles.Abyss name.SetDefault("Lumenyl"); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); AddMapEntry(new Color(0, 150, 200), name); - soundType = 2; + soundType = SoundID.Item; soundStyle = 27; dustType = 67; drop = ModContent.ItemType(); diff --git a/Tiles/Abyss/PlantyMush.cs b/Tiles/Abyss/PlantyMush.cs index 3790232a14..1d8446915f 100644 --- a/Tiles/Abyss/PlantyMush.cs +++ b/Tiles/Abyss/PlantyMush.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.Abyss name.SetDefault("Planty Mush"); AddMapEntry(new Color(0, 120, 0), name); mineResist = 1f; - soundType = 0; + soundType = SoundID.Dig; } public override void NumDust(int i, int j, bool fail, ref int num) @@ -76,7 +76,7 @@ namespace CalamityMod.Tiles.Abyss Main.tile[num53, num54].type = (ushort)ModContent.TileType(); Main.tile[num53, num54].active(true); WorldGen.SquareTileFrame(num53, num54, true); - if (Main.netMode == 2) + if (Main.netMode == NetmodeID.Server) { NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None); } diff --git a/Tiles/Abyss/Stalactite/SulphurousStalacmite1.cs b/Tiles/Abyss/Stalactite/SulphurousStalacmite1.cs index 062ba57029..f493fb19c7 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalacmite1.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalacmite1.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/Stalactite/SulphurousStalacmite2.cs b/Tiles/Abyss/Stalactite/SulphurousStalacmite2.cs index 658e69ab75..86a7bc67cb 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalacmite2.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalacmite2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/Stalactite/SulphurousStalacmite3.cs b/Tiles/Abyss/Stalactite/SulphurousStalacmite3.cs index 93947597cf..f8eaf5faf7 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalacmite3.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalacmite3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/Stalactite/SulphurousStalacmite4.cs b/Tiles/Abyss/Stalactite/SulphurousStalacmite4.cs index 2e528711ca..d9179447e0 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalacmite4.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalacmite4.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/Stalactite/SulphurousStalacmite5.cs b/Tiles/Abyss/Stalactite/SulphurousStalacmite5.cs index a5b9195e2b..717095abd1 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalacmite5.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalacmite5.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/Stalactite/SulphurousStalacmite6.cs b/Tiles/Abyss/Stalactite/SulphurousStalacmite6.cs index 44e7679268..14473333d9 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalacmite6.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalacmite6.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/Stalactite/SulphurousStalactite1.cs b/Tiles/Abyss/Stalactite/SulphurousStalactite1.cs index 6196c4010d..b2e78e9eca 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalactite1.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalactite1.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/Stalactite/SulphurousStalactite2.cs b/Tiles/Abyss/Stalactite/SulphurousStalactite2.cs index 17435e8c29..15e77505a2 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalactite2.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalactite2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/Stalactite/SulphurousStalactite3.cs b/Tiles/Abyss/Stalactite/SulphurousStalactite3.cs index b7c9616506..5dee77e334 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalactite3.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalactite3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/Stalactite/SulphurousStalactite4.cs b/Tiles/Abyss/Stalactite/SulphurousStalactite4.cs index f5a8117c35..5eecdf57fb 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalactite4.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalactite4.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/Stalactite/SulphurousStalactite5.cs b/Tiles/Abyss/Stalactite/SulphurousStalactite5.cs index 26b4eb84fb..0902142cd8 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalactite5.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalactite5.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/Stalactite/SulphurousStalactite6.cs b/Tiles/Abyss/Stalactite/SulphurousStalactite6.cs index e102c63cdf..913d7117ae 100644 --- a/Tiles/Abyss/Stalactite/SulphurousStalactite6.cs +++ b/Tiles/Abyss/Stalactite/SulphurousStalactite6.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/SteamGeyser.cs b/Tiles/Abyss/SteamGeyser.cs index 3275265a58..52c62cb7e5 100644 --- a/Tiles/Abyss/SteamGeyser.cs +++ b/Tiles/Abyss/SteamGeyser.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Projectiles.Environment; using Microsoft.Xna.Framework; using System; diff --git a/Tiles/Abyss/SulphurousColumn.cs b/Tiles/Abyss/SulphurousColumn.cs index 6e8482262b..6396cfe4bf 100644 --- a/Tiles/Abyss/SulphurousColumn.cs +++ b/Tiles/Abyss/SulphurousColumn.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/SulphurousRib1.cs b/Tiles/Abyss/SulphurousRib1.cs index 9e254f7762..3afa1a24d0 100644 --- a/Tiles/Abyss/SulphurousRib1.cs +++ b/Tiles/Abyss/SulphurousRib1.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/SulphurousRib2.cs b/Tiles/Abyss/SulphurousRib2.cs index 453c193cda..7fd43d1493 100644 --- a/Tiles/Abyss/SulphurousRib2.cs +++ b/Tiles/Abyss/SulphurousRib2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/SulphurousRib3.cs b/Tiles/Abyss/SulphurousRib3.cs index 2f1e4d3514..a667bf2aed 100644 --- a/Tiles/Abyss/SulphurousRib3.cs +++ b/Tiles/Abyss/SulphurousRib3.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/SulphurousRib4.cs b/Tiles/Abyss/SulphurousRib4.cs index 3362214509..d2f36f5f54 100644 --- a/Tiles/Abyss/SulphurousRib4.cs +++ b/Tiles/Abyss/SulphurousRib4.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/SulphurousRib5.cs b/Tiles/Abyss/SulphurousRib5.cs index 147743daf5..7677f76700 100644 --- a/Tiles/Abyss/SulphurousRib5.cs +++ b/Tiles/Abyss/SulphurousRib5.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/Abyss/SulphurousSand.cs b/Tiles/Abyss/SulphurousSand.cs index 5e3b428401..8b64748158 100644 --- a/Tiles/Abyss/SulphurousSand.cs +++ b/Tiles/Abyss/SulphurousSand.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.Abyss AddMapEntry(new Color(150, 100, 50)); mineResist = 1f; minPick = 55; - soundType = 0; + soundType = SoundID.Dig; SetModPalmTree(new AcidWoodTree()); } @@ -130,7 +130,7 @@ namespace CalamityMod.Tiles.Abyss if (!Main.tile[i, tileLocationY].active()) { if (!CalamityPlayer.areThereAnyDamnBosses && Main.tile[i, tileLocationY].liquid == 255 && Main.tile[i, tileLocationY - 1].liquid == 255 && - Main.tile[i, tileLocationY - 2].liquid == 255 && Main.netMode != 1) + Main.tile[i, tileLocationY - 2].liquid == 255 && Main.netMode != NetmodeID.MultiplayerClient) { Projectile.NewProjectile((float)(i * 16 + 16), (float)(tileLocationY * 16 + 16), 0f, -0.1f, ModContent.ProjectileType(), 0, 2f, Main.myPlayer, 0f, 0f); } @@ -158,7 +158,7 @@ namespace CalamityMod.Tiles.Abyss Main.tile[i, tileLocationY - 4].liquid == 255) { WorldGen.PlaceTile(i, tileLocationY, 81, true, false, -1, 0); - if (Main.netMode == 2 && Main.tile[i, tileLocationY].active()) + if (Main.netMode == NetmodeID.Server && Main.tile[i, tileLocationY].active()) { NetMessage.SendTileSquare(-1, i, tileLocationY, 1, TileChangeType.None); } @@ -182,7 +182,7 @@ namespace CalamityMod.Tiles.Abyss if (num15 < num14) { WorldGen.PlaceTile(i, tileLocationY, 324, true, false, -1, Main.rand.Next(2)); - if (Main.netMode == 2 && Main.tile[i, tileLocationY].active()) + if (Main.netMode == NetmodeID.Server && Main.tile[i, tileLocationY].active()) { NetMessage.SendTileSquare(-1, i, tileLocationY, 1, TileChangeType.None); } @@ -237,7 +237,7 @@ namespace CalamityMod.Tiles.Abyss Main.tile[num53, num54].type = (ushort)ModContent.TileType(); Main.tile[num53, num54].active(true); WorldGen.SquareTileFrame(num53, num54, true); - if (Main.netMode == 2) + if (Main.netMode == NetmodeID.Server) { NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None); } diff --git a/Tiles/Abyss/SulphurousSandNoWater.cs b/Tiles/Abyss/SulphurousSandNoWater.cs index 06bacbc2f6..f760ff8e59 100644 --- a/Tiles/Abyss/SulphurousSandNoWater.cs +++ b/Tiles/Abyss/SulphurousSandNoWater.cs @@ -1,6 +1,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Tiles.Abyss { @@ -19,7 +20,7 @@ namespace CalamityMod.Tiles.Abyss AddMapEntry(new Color(150, 100, 50)); mineResist = 1f; minPick = 55; - soundType = 0; + soundType = SoundID.Dig; SetModPalmTree(new AcidWoodTree()); } diff --git a/Tiles/Abyss/SulphurousSandstone.cs b/Tiles/Abyss/SulphurousSandstone.cs index b56db9b99b..4427a0dd15 100644 --- a/Tiles/Abyss/SulphurousSandstone.cs +++ b/Tiles/Abyss/SulphurousSandstone.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.Abyss AddMapEntry(new Color(113, 90, 71)); mineResist = 1f; minPick = 55; - soundType = 0; + soundType = SoundID.Dig; } public override void NumDust(int i, int j, bool fail, ref int num) @@ -86,7 +86,7 @@ namespace CalamityMod.Tiles.Abyss Main.tile[num53, num54].type = (ushort)ModContent.TileType(); Main.tile[num53, num54].active(true); WorldGen.SquareTileFrame(num53, num54, true); - if (Main.netMode == 2) + if (Main.netMode == NetmodeID.Server) { NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None); } diff --git a/Tiles/Abyss/SulphurousVines.cs b/Tiles/Abyss/SulphurousVines.cs index 0c016b583e..f8e00d88c2 100644 --- a/Tiles/Abyss/SulphurousVines.cs +++ b/Tiles/Abyss/SulphurousVines.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.Abyss ModTranslation name = CreateMapEntryName(); name.SetDefault("Sulphurous Vines"); AddMapEntry(new Color(0, 50, 0), name); - soundType = 6; + soundType = SoundID.Grass; dustType = 2; } @@ -42,7 +42,7 @@ namespace CalamityMod.Tiles.Abyss WorldGen.KillTile(i, j + 1, false, false, false); if (!Main.tile[i, j + 1].active() && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 0, (float)i, (float)j + 1, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, (float)i, (float)j + 1, 0f, 0, 0, 0); } } } diff --git a/Tiles/Abyss/Tenebris.cs b/Tiles/Abyss/Tenebris.cs index dc25dad660..d793566d44 100644 --- a/Tiles/Abyss/Tenebris.cs +++ b/Tiles/Abyss/Tenebris.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Tiles.Abyss AddMapEntry(new Color(0, 100, 100), name); mineResist = 3f; minPick = 200; - soundType = 21; + soundType = SoundID.Tink; } public override bool CanExplode(int i, int j) diff --git a/Tiles/Abyss/ViperVines.cs b/Tiles/Abyss/ViperVines.cs index 7a2fe75d8b..4143805eb9 100644 --- a/Tiles/Abyss/ViperVines.cs +++ b/Tiles/Abyss/ViperVines.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Tiles.Abyss ModTranslation name = CreateMapEntryName(); name.SetDefault("Viper Vines"); AddMapEntry(new Color(0, 50, 0), name); - soundType = 6; + soundType = SoundID.Grass; dustType = 2; } @@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.Abyss WorldGen.KillTile(i, j + 1, false, false, false); if (!Main.tile[i, j + 1].active() && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 0, (float)i, (float)j + 1, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, (float)i, (float)j + 1, 0f, 0, 0, 0); } } } diff --git a/Tiles/Abyss/Voidstone.cs b/Tiles/Abyss/Voidstone.cs index 04aee3d2d2..e01b0df50c 100644 --- a/Tiles/Abyss/Voidstone.cs +++ b/Tiles/Abyss/Voidstone.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.Abyss CalamityUtils.MergeWithAbyss(Type); TileID.Sets.ChecksForMerge[Type] = true; - soundType = 21; + soundType = SoundID.Tink; mineResist = 10f; minPick = 180; drop = ModContent.ItemType(); diff --git a/Tiles/AerialiteBrick.cs b/Tiles/AerialiteBrick.cs index 64e48a6a35..4fc755fe89 100644 --- a/Tiles/AerialiteBrick.cs +++ b/Tiles/AerialiteBrick.cs @@ -1,6 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles { public class AerialiteBrick : ModTile @@ -9,7 +11,7 @@ namespace CalamityMod.Tiles { Main.tileSolid[Type] = true; Main.tileBlockLight[Type] = true; - soundType = 21; + soundType = SoundID.Tink; minPick = 50; drop = ModContent.ItemType(); AddMapEntry(new Color(68, 58, 145)); diff --git a/Tiles/ArenaTile.cs b/Tiles/ArenaTile.cs index 783a7ff417..d5fb99356a 100644 --- a/Tiles/ArenaTile.cs +++ b/Tiles/ArenaTile.cs @@ -2,6 +2,8 @@ using CalamityMod.NPCs.SupremeCalamitas; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles { public class ArenaTile : ModTile @@ -33,9 +35,9 @@ namespace CalamityMod.Tiles if (!NPC.AnyNPCs(ModContent.NPCType())) { WorldGen.KillTile(i, j, false, false, false); - if (!Main.tile[i, j].active() && Main.netMode != 0) + if (!Main.tile[i, j].active() && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 0, (float)i, (float)j, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, (float)i, (float)j, 0f, 0, 0, 0); } } } diff --git a/Tiles/Astral/AstralNormalLargePiles.cs b/Tiles/Astral/AstralNormalLargePiles.cs index 8ee94c5653..6305c78522 100644 --- a/Tiles/Astral/AstralNormalLargePiles.cs +++ b/Tiles/Astral/AstralNormalLargePiles.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/Astral/AstralNormalMediumPiles.cs b/Tiles/Astral/AstralNormalMediumPiles.cs index 7d9f275cac..13c9ad7197 100644 --- a/Tiles/Astral/AstralNormalMediumPiles.cs +++ b/Tiles/Astral/AstralNormalMediumPiles.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/Astral/AstralNormalSmallPiles.cs b/Tiles/Astral/AstralNormalSmallPiles.cs index b9dc596817..7e38372873 100644 --- a/Tiles/Astral/AstralNormalSmallPiles.cs +++ b/Tiles/Astral/AstralNormalSmallPiles.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/Astral/AstralNormalStalactite.cs b/Tiles/Astral/AstralNormalStalactite.cs index 0cb449b570..8b27115871 100644 --- a/Tiles/Astral/AstralNormalStalactite.cs +++ b/Tiles/Astral/AstralNormalStalactite.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/Astral/AstralShortPlants.cs b/Tiles/Astral/AstralShortPlants.cs index 217f7b12ad..d27e3e6627 100644 --- a/Tiles/Astral/AstralShortPlants.cs +++ b/Tiles/Astral/AstralShortPlants.cs @@ -1,8 +1,9 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Tiles.Astral { @@ -21,7 +22,7 @@ namespace CalamityMod.Tiles.Astral dustType = ModContent.DustType(); soundStyle = 1; - soundType = 6; + soundType = SoundID.Grass; AddMapEntry(new Color(127, 111, 144)); diff --git a/Tiles/Astral/AstralStone.cs b/Tiles/Astral/AstralStone.cs index b37d924ccd..170fbdc0f1 100644 --- a/Tiles/Astral/AstralStone.cs +++ b/Tiles/Astral/AstralStone.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.Astral dustType = ModContent.DustType(); drop = ModContent.ItemType(); - soundType = 21; + soundType = SoundID.Tink; AddMapEntry(new Color(45, 36, 63)); diff --git a/Tiles/Astral/AstralTallPlants.cs b/Tiles/Astral/AstralTallPlants.cs index d89541dd5a..0335b5bc86 100644 --- a/Tiles/Astral/AstralTallPlants.cs +++ b/Tiles/Astral/AstralTallPlants.cs @@ -1,8 +1,9 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Tiles.Astral { @@ -21,7 +22,7 @@ namespace CalamityMod.Tiles.Astral dustType = ModContent.DustType(); soundStyle = 1; - soundType = 6; + soundType = SoundID.Grass; AddMapEntry(new Color(127, 111, 144)); diff --git a/Tiles/Astral/AstralTree.cs b/Tiles/Astral/AstralTree.cs index 93e9b6d296..1357ebc013 100644 --- a/Tiles/Astral/AstralTree.cs +++ b/Tiles/Astral/AstralTree.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework.Graphics; using Terraria.ModLoader; namespace CalamityMod.Tiles.Astral diff --git a/Tiles/Astral/AstralTreeSapling.cs b/Tiles/Astral/AstralTreeSapling.cs index b52702b9eb..1261d8e4fc 100644 --- a/Tiles/Astral/AstralTreeSapling.cs +++ b/Tiles/Astral/AstralTreeSapling.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Tiles/Astral/AstralVines.cs b/Tiles/Astral/AstralVines.cs index 06934898d5..7b2d1fc82f 100644 --- a/Tiles/Astral/AstralVines.cs +++ b/Tiles/Astral/AstralVines.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.Astral dustType = ModContent.DustType(); - soundType = 6; + soundType = SoundID.Grass; soundStyle = 1; AddMapEntry(new Color(65, 56, 83)); diff --git a/Tiles/AstralBar.cs b/Tiles/AstralBar.cs index 38711e3b1e..f7bcedc5c9 100644 --- a/Tiles/AstralBar.cs +++ b/Tiles/AstralBar.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Tiles/AstralBrick.cs b/Tiles/AstralBrick.cs index bb34563cd8..01c81403f5 100644 --- a/Tiles/AstralBrick.cs +++ b/Tiles/AstralBrick.cs @@ -4,6 +4,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Tiles { @@ -16,7 +17,7 @@ namespace CalamityMod.Tiles { Main.tileSolid[Type] = true; Main.tileBlockLight[Type] = true; - soundType = 21; + soundType = SoundID.Tink; minPick = 150; drop = ModContent.ItemType(); AddMapEntry(new Color(128, 128, 158)); diff --git a/Tiles/AstralDesert/AstralDesertLargePiles.cs b/Tiles/AstralDesert/AstralDesertLargePiles.cs index 71a18d1542..e603c336da 100644 --- a/Tiles/AstralDesert/AstralDesertLargePiles.cs +++ b/Tiles/AstralDesert/AstralDesertLargePiles.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/AstralDesert/AstralDesertMediumPiles.cs b/Tiles/AstralDesert/AstralDesertMediumPiles.cs index 78db07b980..af498e69c0 100644 --- a/Tiles/AstralDesert/AstralDesertMediumPiles.cs +++ b/Tiles/AstralDesert/AstralDesertMediumPiles.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/AstralDesert/AstralDesertSmallPiles.cs b/Tiles/AstralDesert/AstralDesertSmallPiles.cs index cc18366160..1247a89797 100644 --- a/Tiles/AstralDesert/AstralDesertSmallPiles.cs +++ b/Tiles/AstralDesert/AstralDesertSmallPiles.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/AstralDesert/AstralDesertStalactite.cs b/Tiles/AstralDesert/AstralDesertStalactite.cs index e0175a1dd9..d2f72a8089 100644 --- a/Tiles/AstralDesert/AstralDesertStalactite.cs +++ b/Tiles/AstralDesert/AstralDesertStalactite.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/AstralDesert/AstralPalmSapling.cs b/Tiles/AstralDesert/AstralPalmSapling.cs index 46b1a0e45c..a063e2d644 100644 --- a/Tiles/AstralDesert/AstralPalmSapling.cs +++ b/Tiles/AstralDesert/AstralPalmSapling.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/Tiles/AstralDesert/AstralPalmTree.cs b/Tiles/AstralDesert/AstralPalmTree.cs index a48b85c300..4d7cb94fd6 100644 --- a/Tiles/AstralDesert/AstralPalmTree.cs +++ b/Tiles/AstralDesert/AstralPalmTree.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using Microsoft.Xna.Framework.Graphics; using Terraria.ModLoader; namespace CalamityMod.Tiles.AstralDesert diff --git a/Tiles/AstralSnow/AstralIce.cs b/Tiles/AstralSnow/AstralIce.cs index d840ba687e..39c05dbfb2 100644 --- a/Tiles/AstralSnow/AstralIce.cs +++ b/Tiles/AstralSnow/AstralIce.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.AstralSnow dustType = 173; drop = ModContent.ItemType(); - soundType = 2; + soundType = SoundID.Item; soundStyle = 50; AddMapEntry(new Color(153, 143, 168)); diff --git a/Tiles/AstralSnow/AstralIceLargePiles.cs b/Tiles/AstralSnow/AstralIceLargePiles.cs index 0352bb700e..c67751a01a 100644 --- a/Tiles/AstralSnow/AstralIceLargePiles.cs +++ b/Tiles/AstralSnow/AstralIceLargePiles.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/AstralSnow/AstralIceMediumPiles.cs b/Tiles/AstralSnow/AstralIceMediumPiles.cs index 56c2943b30..8478a1731b 100644 --- a/Tiles/AstralSnow/AstralIceMediumPiles.cs +++ b/Tiles/AstralSnow/AstralIceMediumPiles.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/AstralSnow/AstralIceSmallPiles.cs b/Tiles/AstralSnow/AstralIceSmallPiles.cs index b94e209d0b..d0b65efc19 100644 --- a/Tiles/AstralSnow/AstralIceSmallPiles.cs +++ b/Tiles/AstralSnow/AstralIceSmallPiles.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/AstralSnow/AstralIceStalactite.cs b/Tiles/AstralSnow/AstralIceStalactite.cs index 1b197346ad..51f0974bf2 100644 --- a/Tiles/AstralSnow/AstralIceStalactite.cs +++ b/Tiles/AstralSnow/AstralIceStalactite.cs @@ -1,4 +1,4 @@ - + using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; diff --git a/Tiles/AstralSnow/AstralSnow.cs b/Tiles/AstralSnow/AstralSnow.cs index 83c0920d73..c3a455775a 100644 --- a/Tiles/AstralSnow/AstralSnow.cs +++ b/Tiles/AstralSnow/AstralSnow.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.AstralSnow dustType = 173; drop = ModContent.ItemType(); - soundType = 2; + soundType = SoundID.Item; soundStyle = 48; AddMapEntry(new Color(189, 211, 221)); diff --git a/Tiles/AstralSnow/AstralSnowTree.cs b/Tiles/AstralSnow/AstralSnowTree.cs index 0a3fa157ed..1d3c22882a 100644 --- a/Tiles/AstralSnow/AstralSnowTree.cs +++ b/Tiles/AstralSnow/AstralSnowTree.cs @@ -1,4 +1,4 @@ -using Terraria.ModLoader; +using Terraria.ModLoader; using Microsoft.Xna.Framework.Graphics; namespace CalamityMod.Tiles diff --git a/Tiles/AstralSnow/AstralSnowTreeSapling.cs b/Tiles/AstralSnow/AstralSnowTreeSapling.cs index 8b51531c58..8eaa8b4515 100644 --- a/Tiles/AstralSnow/AstralSnowTreeSapling.cs +++ b/Tiles/AstralSnow/AstralSnowTreeSapling.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; diff --git a/Tiles/CalamityGlobalTile.cs b/Tiles/CalamityGlobalTile.cs index fc3e2d46f7..1137bed448 100644 --- a/Tiles/CalamityGlobalTile.cs +++ b/Tiles/CalamityGlobalTile.cs @@ -135,7 +135,7 @@ namespace CalamityMod.Tiles { WorldGen.KillTile(xPos, yPos, false, false, false); if (!Main.tile[xPos, yPos].active() && Main.netMode != NetmodeID.SinglePlayer) - NetMessage.SendData(17, -1, -1, null, 0, xPos, yPos, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, xPos, yPos, 0f, 0, 0, 0); } } diff --git a/Tiles/ChaoticBrick.cs b/Tiles/ChaoticBrick.cs index fe0edc6ee5..ff5cdb4f55 100644 --- a/Tiles/ChaoticBrick.cs +++ b/Tiles/ChaoticBrick.cs @@ -1,6 +1,8 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles { public class ChaoticBrick : ModTile @@ -15,7 +17,7 @@ namespace CalamityMod.Tiles ModTranslation name = CreateMapEntryName(); name.SetDefault("Chaotic Brick"); AddMapEntry(new Color(255, 0, 0), name); - soundType = 21; + soundType = SoundID.Tink; } public override void NumDust(int i, int j, bool fail, ref int num) diff --git a/Tiles/Cinderplate.cs b/Tiles/Cinderplate.cs index 5b034e95c6..d3d9126417 100644 --- a/Tiles/Cinderplate.cs +++ b/Tiles/Cinderplate.cs @@ -3,6 +3,8 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles { public class Cinderplate : ModTile @@ -15,7 +17,7 @@ namespace CalamityMod.Tiles CalamityUtils.MergeWithGeneral(Type); - soundType = 21; + soundType = SoundID.Tink; mineResist = 1f; minPick = 65; drop = ModContent.ItemType(); diff --git a/Tiles/Crags/BrimstoneSlag.cs b/Tiles/Crags/BrimstoneSlag.cs index 0a000e9658..a9a36f3708 100644 --- a/Tiles/Crags/BrimstoneSlag.cs +++ b/Tiles/Crags/BrimstoneSlag.cs @@ -3,6 +3,8 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.Crags { public class BrimstoneSlag : ModTile @@ -19,7 +21,7 @@ namespace CalamityMod.Tiles.Crags CalamityUtils.MergeWithHell(Type); CalamityUtils.SetMerge(Type, ModContent.TileType()); - soundType = 21; + soundType = SoundID.Tink; mineResist = 3f; minPick = 180; drop = ModContent.ItemType(); diff --git a/Tiles/CryonicBrick.cs b/Tiles/CryonicBrick.cs index 4d83c033e9..f126caf6f3 100644 --- a/Tiles/CryonicBrick.cs +++ b/Tiles/CryonicBrick.cs @@ -2,6 +2,8 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles { public class CryonicBrick : ModTile @@ -16,7 +18,7 @@ namespace CalamityMod.Tiles CalamityUtils.MergeWithGeneral(Type); CalamityUtils.MergeDecorativeTiles(Type); - soundType = 21; + soundType = SoundID.Tink; minPick = 100; drop = ModContent.ItemType(); AddMapEntry(new Color(99, 131, 199)); diff --git a/Tiles/Furniture/CraftingStations/AncientAltar.cs b/Tiles/Furniture/CraftingStations/AncientAltar.cs index f8306aadad..f4ccf63e90 100644 --- a/Tiles/Furniture/CraftingStations/AncientAltar.cs +++ b/Tiles/Furniture/CraftingStations/AncientAltar.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Tiles/Furniture/CraftingStations/AshenAltar.cs b/Tiles/Furniture/CraftingStations/AshenAltar.cs index 77a368f614..aafc37e040 100644 --- a/Tiles/Furniture/CraftingStations/AshenAltar.cs +++ b/Tiles/Furniture/CraftingStations/AshenAltar.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Tiles/Furniture/CraftingStations/BotanicPlanter.cs b/Tiles/Furniture/CraftingStations/BotanicPlanter.cs index 4f0edb4072..559fee4265 100644 --- a/Tiles/Furniture/CraftingStations/BotanicPlanter.cs +++ b/Tiles/Furniture/CraftingStations/BotanicPlanter.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts.Furniture; +using CalamityMod.Dusts.Furniture; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs b/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs index e6995b91ea..b976098f64 100644 --- a/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs +++ b/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.Enums; diff --git a/Tiles/Furniture/CraftingStations/PlagueInfuser.cs b/Tiles/Furniture/CraftingStations/PlagueInfuser.cs index 8e53a4b8a4..26b9986987 100644 --- a/Tiles/Furniture/CraftingStations/PlagueInfuser.cs +++ b/Tiles/Furniture/CraftingStations/PlagueInfuser.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.Enums; diff --git a/Tiles/Furniture/CraftingStations/ProfanedBasin.cs b/Tiles/Furniture/CraftingStations/ProfanedBasin.cs index b2f07f4b01..2fe608cb69 100644 --- a/Tiles/Furniture/CraftingStations/ProfanedBasin.cs +++ b/Tiles/Furniture/CraftingStations/ProfanedBasin.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts.Furniture; +using CalamityMod.Dusts.Furniture; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Tiles/Furniture/CraftingStations/SilvaBasin.cs b/Tiles/Furniture/CraftingStations/SilvaBasin.cs index fc056c2d02..890557fb4a 100644 --- a/Tiles/Furniture/CraftingStations/SilvaBasin.cs +++ b/Tiles/Furniture/CraftingStations/SilvaBasin.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts.Furniture; +using CalamityMod.Dusts.Furniture; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Tiles/Furniture/CraftingStations/StaticRefiner.cs b/Tiles/Furniture/CraftingStations/StaticRefiner.cs index 820d169c47..7329f743c6 100644 --- a/Tiles/Furniture/CraftingStations/StaticRefiner.cs +++ b/Tiles/Furniture/CraftingStations/StaticRefiner.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; diff --git a/Tiles/Furniture/CraftingStations/VoidCondenser.cs b/Tiles/Furniture/CraftingStations/VoidCondenser.cs index 7f7edd2cc4..b32a0abd58 100644 --- a/Tiles/Furniture/CraftingStations/VoidCondenser.cs +++ b/Tiles/Furniture/CraftingStations/VoidCondenser.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; diff --git a/Tiles/FurnitureAbyss/SmoothAbyssGravel.cs b/Tiles/FurnitureAbyss/SmoothAbyssGravel.cs index 4908935f52..ed68af1592 100644 --- a/Tiles/FurnitureAbyss/SmoothAbyssGravel.cs +++ b/Tiles/FurnitureAbyss/SmoothAbyssGravel.cs @@ -2,6 +2,8 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.FurnitureAbyss { public class SmoothAbyssGravel : ModTile @@ -17,7 +19,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss CalamityUtils.MergeDecorativeTiles(Type); CalamityUtils.MergeWithAbyss(Type); - soundType = 21; + soundType = SoundID.Tink; mineResist = 2f; minPick = 65; drop = ModContent.ItemType(); diff --git a/Tiles/FurnitureAbyss/SmoothAbyssGravelPlatform.cs b/Tiles/FurnitureAbyss/SmoothAbyssGravelPlatform.cs index 7c7794f71f..63af8d5bc3 100644 --- a/Tiles/FurnitureAbyss/SmoothAbyssGravelPlatform.cs +++ b/Tiles/FurnitureAbyss/SmoothAbyssGravelPlatform.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Tiles.FurnitureAbyss public override void SetDefaults() { this.SetUpPlatform(); - soundType = 21; + soundType = SoundID.Tink; AddMapEntry(new Color(191, 142, 111)); drop = ModContent.ItemType(); disableSmartCursor = true; diff --git a/Tiles/FurnitureAncient/AncientBasin.cs b/Tiles/FurnitureAncient/AncientBasin.cs index c937c4458b..5c59623ee5 100644 --- a/Tiles/FurnitureAncient/AncientBasin.cs +++ b/Tiles/FurnitureAncient/AncientBasin.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Tiles/FurnitureAshen/AshenBasin.cs b/Tiles/FurnitureAshen/AshenBasin.cs index 05410badd8..24f777d1e1 100644 --- a/Tiles/FurnitureAshen/AshenBasin.cs +++ b/Tiles/FurnitureAshen/AshenBasin.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; diff --git a/Tiles/FurnitureAshen/AshenSlab.cs b/Tiles/FurnitureAshen/AshenSlab.cs index 3e1acf5a47..93e9d4bf63 100644 --- a/Tiles/FurnitureAshen/AshenSlab.cs +++ b/Tiles/FurnitureAshen/AshenSlab.cs @@ -2,6 +2,8 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.FurnitureAshen { public class AshenSlab : ModTile @@ -12,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureAshen Main.tileMergeDirt[Type] = false; Main.tileBlockLight[Type] = true; drop = ModContent.ItemType(); - soundType = 21; + soundType = SoundID.Tink; mineResist = 5f; minPick = 180; AddMapEntry(new Color(40, 24, 48)); diff --git a/Tiles/FurnitureAshen/SmoothBrimstoneSlag.cs b/Tiles/FurnitureAshen/SmoothBrimstoneSlag.cs index f260f2e062..2dcc063aa7 100644 --- a/Tiles/FurnitureAshen/SmoothBrimstoneSlag.cs +++ b/Tiles/FurnitureAshen/SmoothBrimstoneSlag.cs @@ -3,6 +3,8 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.FurnitureAshen { public class SmoothBrimstoneSlag : ModTile @@ -18,7 +20,7 @@ namespace CalamityMod.Tiles.FurnitureAshen CalamityUtils.MergeDecorativeTiles(Type); CalamityUtils.MergeWithHell(Type); - soundType = 21; + soundType = SoundID.Tink; mineResist = 5f; minPick = 180; drop = ModContent.ItemType(); diff --git a/Tiles/FurnitureAstral/MonolithChest.cs b/Tiles/FurnitureAstral/MonolithChest.cs index ce698812ab..f0270e566e 100644 --- a/Tiles/FurnitureAstral/MonolithChest.cs +++ b/Tiles/FurnitureAstral/MonolithChest.cs @@ -114,7 +114,7 @@ namespace CalamityMod.Tiles.FurnitureAstral { if (player.chest < 0) { - Main.PlaySound(4, Style: 22, volumeScale: 0.5f); + Main.PlaySound(SoundID.NPCKilled, Style: 22, volumeScale: 0.5f); } } } diff --git a/Tiles/FurnitureCosmilite/CosmiliteBrick.cs b/Tiles/FurnitureCosmilite/CosmiliteBrick.cs index c391a8a0e4..a183059c13 100644 --- a/Tiles/FurnitureCosmilite/CosmiliteBrick.cs +++ b/Tiles/FurnitureCosmilite/CosmiliteBrick.cs @@ -3,6 +3,8 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.FurnitureCosmilite { public class CosmiliteBrick : ModTile @@ -11,7 +13,7 @@ namespace CalamityMod.Tiles.FurnitureCosmilite { Main.tileSolid[Type] = true; Main.tileBlockLight[Type] = true; - soundType = 21; + soundType = SoundID.Tink; mineResist = 5f; minPick = 275; drop = ModContent.ItemType(); diff --git a/Tiles/FurnitureEutrophic/SmoothNavystone.cs b/Tiles/FurnitureEutrophic/SmoothNavystone.cs index b354a98f67..5a15bb089c 100644 --- a/Tiles/FurnitureEutrophic/SmoothNavystone.cs +++ b/Tiles/FurnitureEutrophic/SmoothNavystone.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.FurnitureEutrophic CalamityUtils.MergeWithDesert(Type); TileID.Sets.ChecksForMerge[Type] = true; - soundType = 21; + soundType = SoundID.Tink; minPick = 55; drop = ModContent.ItemType(); AddMapEntry(new Color(39, 48, 53)); diff --git a/Tiles/FurnitureOccult/OccultStone.cs b/Tiles/FurnitureOccult/OccultStone.cs index e25dbcad83..e7170e7e3a 100644 --- a/Tiles/FurnitureOccult/OccultStone.cs +++ b/Tiles/FurnitureOccult/OccultStone.cs @@ -1,8 +1,10 @@ -using CalamityMod.Dusts.Furniture; +using CalamityMod.Dusts.Furniture; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.FurnitureOccult { public class OccultStone : ModTile @@ -20,7 +22,7 @@ namespace CalamityMod.Tiles.FurnitureOccult CalamityUtils.MergeDecorativeTiles(Type); CalamityUtils.MergeSmoothTiles(Type); - soundType = 21; + soundType = SoundID.Tink; mineResist = 10f; minPick = 200; drop = ModContent.ItemType(); diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs index 377e26ef99..d920da9a36 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlate.cs @@ -3,6 +3,8 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.FurniturePlaguedPlate { public class PlaguedPlate : ModTile @@ -11,7 +13,7 @@ namespace CalamityMod.Tiles.FurniturePlaguedPlate { Main.tileSolid[Type] = true; Main.tileBlockLight[Type] = true; - soundType = 21; + soundType = SoundID.Tink; mineResist = 3f; minPick = 210; drop = ModContent.ItemType(); diff --git a/Tiles/FurniturePlaguedPlate/PlaguedPlateBasin.cs b/Tiles/FurniturePlaguedPlate/PlaguedPlateBasin.cs index 27593f00db..715a6364c9 100644 --- a/Tiles/FurniturePlaguedPlate/PlaguedPlateBasin.cs +++ b/Tiles/FurniturePlaguedPlate/PlaguedPlateBasin.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Tiles/FurnitureProfaned/ProfanedCrystal.cs b/Tiles/FurnitureProfaned/ProfanedCrystal.cs index 418edb3b5c..578d4dacfc 100644 --- a/Tiles/FurnitureProfaned/ProfanedCrystal.cs +++ b/Tiles/FurnitureProfaned/ProfanedCrystal.cs @@ -2,6 +2,8 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.FurnitureProfaned { public class ProfanedCrystal : ModTile @@ -18,7 +20,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned CalamityUtils.MergeDecorativeTiles(Type); CalamityUtils.MergeSmoothTiles(Type); - soundType = 13; + soundType = SoundID.Shatter; mineResist = 1f; minPick = 225; drop = ModContent.ItemType(); diff --git a/Tiles/FurnitureProfaned/ProfanedRock.cs b/Tiles/FurnitureProfaned/ProfanedRock.cs index 0b28736693..75737dcea3 100644 --- a/Tiles/FurnitureProfaned/ProfanedRock.cs +++ b/Tiles/FurnitureProfaned/ProfanedRock.cs @@ -4,6 +4,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Tiles.FurnitureProfaned { @@ -19,7 +20,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned CalamityUtils.MergeDecorativeTiles(Type); CalamityUtils.MergeSmoothTiles(Type); - soundType = 21; + soundType = SoundID.Tink; mineResist = 4f; minPick = 225; drop = ModContent.ItemType(); diff --git a/Tiles/FurnitureProfaned/ProfanedSlab.cs b/Tiles/FurnitureProfaned/ProfanedSlab.cs index 08b7de818c..cf993d76fb 100644 --- a/Tiles/FurnitureProfaned/ProfanedSlab.cs +++ b/Tiles/FurnitureProfaned/ProfanedSlab.cs @@ -3,6 +3,7 @@ using CalamityMod.Dusts.Furniture; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Tiles.FurnitureProfaned { @@ -18,7 +19,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned CalamityUtils.MergeSmoothTiles(Type); CalamityUtils.SetMerge(Type, ModContent.TileType()); - soundType = 21; + soundType = SoundID.Tink; mineResist = 4f; minPick = 225; drop = ModContent.ItemType(); diff --git a/Tiles/FurnitureProfaned/RunicProfanedBrick.cs b/Tiles/FurnitureProfaned/RunicProfanedBrick.cs index 455f53665c..351f4b5da1 100644 --- a/Tiles/FurnitureProfaned/RunicProfanedBrick.cs +++ b/Tiles/FurnitureProfaned/RunicProfanedBrick.cs @@ -4,6 +4,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Tiles.FurnitureProfaned { @@ -18,7 +19,7 @@ namespace CalamityMod.Tiles.FurnitureProfaned CalamityUtils.MergeDecorativeTiles(Type); CalamityUtils.MergeSmoothTiles(Type); - soundType = 21; + soundType = SoundID.Tink; mineResist = 4f; minPick = 225; drop = ModContent.ItemType(); diff --git a/Tiles/FurnitureSilva/SilvaCrystal.cs b/Tiles/FurnitureSilva/SilvaCrystal.cs index 88cdd34d8b..e45e25040e 100644 --- a/Tiles/FurnitureSilva/SilvaCrystal.cs +++ b/Tiles/FurnitureSilva/SilvaCrystal.cs @@ -3,6 +3,7 @@ using CalamityMod.Dusts.Furniture; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; namespace CalamityMod.Tiles.FurnitureSilva { @@ -13,7 +14,7 @@ namespace CalamityMod.Tiles.FurnitureSilva Main.tileSolid[Type] = true; Main.tileMergeDirt[Type] = false; Main.tileBlockLight[Type] = true; - soundType = 21; + soundType = SoundID.Tink; mineResist = 2f; minPick = 275; drop = ModContent.ItemType(); diff --git a/Tiles/FurnitureStratus/StratusBricks.cs b/Tiles/FurnitureStratus/StratusBricks.cs index c6ab8105f1..b3db9584b8 100644 --- a/Tiles/FurnitureStratus/StratusBricks.cs +++ b/Tiles/FurnitureStratus/StratusBricks.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.FurnitureStratus CalamityUtils.MergeWithGeneral(Type); - soundType = 21; + soundType = SoundID.Tink; mineResist = 5f; minPick = 225; drop = ModContent.ItemType(); diff --git a/Tiles/FurnitureVoid/SmoothVoidstone.cs b/Tiles/FurnitureVoid/SmoothVoidstone.cs index 3c141139fd..d430b4a72e 100644 --- a/Tiles/FurnitureVoid/SmoothVoidstone.cs +++ b/Tiles/FurnitureVoid/SmoothVoidstone.cs @@ -3,6 +3,8 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.FurnitureVoid { public class SmoothVoidstone : ModTile @@ -18,7 +20,7 @@ namespace CalamityMod.Tiles.FurnitureVoid CalamityUtils.MergeDecorativeTiles(Type); CalamityUtils.MergeWithAbyss(Type); - soundType = 21; + soundType = SoundID.Tink; mineResist = 7f; minPick = 180; drop = ModContent.ItemType(); diff --git a/Tiles/FurnitureVoid/VoidstoneSlab.cs b/Tiles/FurnitureVoid/VoidstoneSlab.cs index cb3753725a..9ca593cd3e 100644 --- a/Tiles/FurnitureVoid/VoidstoneSlab.cs +++ b/Tiles/FurnitureVoid/VoidstoneSlab.cs @@ -2,6 +2,8 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.FurnitureVoid { public class VoidstoneSlab : ModTile @@ -11,7 +13,7 @@ namespace CalamityMod.Tiles.FurnitureVoid Main.tileSolid[Type] = true; Main.tileMergeDirt[Type] = true; Main.tileBlockLight[Type] = true; - soundType = 21; + soundType = SoundID.Tink; mineResist = 7f; minPick = 180; drop = ModContent.ItemType(); diff --git a/Tiles/Ores/AerialiteOre.cs b/Tiles/Ores/AerialiteOre.cs index 283a487eb5..eb0efe86ad 100644 --- a/Tiles/Ores/AerialiteOre.cs +++ b/Tiles/Ores/AerialiteOre.cs @@ -2,6 +2,8 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.Ores { public class AerialiteOre : ModTile @@ -20,7 +22,7 @@ namespace CalamityMod.Tiles.Ores AddMapEntry(new Color(0, 255, 255), name); mineResist = 2f; minPick = 65; - soundType = 21; + soundType = SoundID.Tink; Main.tileSpelunker[Type] = true; } diff --git a/Tiles/Ores/AstralOre.cs b/Tiles/Ores/AstralOre.cs index c08d18c8e7..0d6ea46047 100644 --- a/Tiles/Ores/AstralOre.cs +++ b/Tiles/Ores/AstralOre.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Tiles.Ores name.SetDefault("Astral Ore"); AddMapEntry(new Color(255, 153, 255), name); mineResist = 5f; - soundType = 21; + soundType = SoundID.Tink; TileID.Sets.Ore[Type] = true; TileID.Sets.ChecksForMerge[Type] = true; diff --git a/Tiles/Ores/AuricOre.cs b/Tiles/Ores/AuricOre.cs index f740c52870..cdde9877c3 100644 --- a/Tiles/Ores/AuricOre.cs +++ b/Tiles/Ores/AuricOre.cs @@ -3,6 +3,8 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.Ores { public class AuricOre : ModTile @@ -25,7 +27,7 @@ namespace CalamityMod.Tiles.Ores AddMapEntry(new Color(255, 200, 0), name); mineResist = 10f; minPick = 275; - soundType = 21; + soundType = SoundID.Tink; } public override bool CanExplode(int i, int j) diff --git a/Tiles/Ores/ChaoticOre.cs b/Tiles/Ores/ChaoticOre.cs index b98a848824..605c9cdfcd 100644 --- a/Tiles/Ores/ChaoticOre.cs +++ b/Tiles/Ores/ChaoticOre.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Tiles.Ores AddMapEntry(new Color(255, 0, 0), name); mineResist = 4f; minPick = 210; - soundType = 21; + soundType = SoundID.Tink; } public override void NearbyEffects(int i, int j, bool closer) diff --git a/Tiles/Ores/CharredOre.cs b/Tiles/Ores/CharredOre.cs index 9f642b8b1b..413aef9b9f 100644 --- a/Tiles/Ores/CharredOre.cs +++ b/Tiles/Ores/CharredOre.cs @@ -3,6 +3,8 @@ using CalamityMod.Tiles.Crags; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.Ores { public class CharredOre : ModTile @@ -26,7 +28,7 @@ namespace CalamityMod.Tiles.Ores AddMapEntry(new Color(17, 16, 26), name); mineResist = 6f; minPick = 180; - soundType = 21; + soundType = SoundID.Tink; dustType = 235; Main.tileSpelunker[Type] = true; } diff --git a/Tiles/Ores/CryonicOre.cs b/Tiles/Ores/CryonicOre.cs index 8ffa13280f..d16ea586ab 100644 --- a/Tiles/Ores/CryonicOre.cs +++ b/Tiles/Ores/CryonicOre.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Tiles.Ores AddMapEntry(new Color(0, 0, 150), name); mineResist = 3f; minPick = 180; - soundType = 21; + soundType = SoundID.Tink; Main.tileSpelunker[Type] = true; } diff --git a/Tiles/Ores/ExodiumOre.cs b/Tiles/Ores/ExodiumOre.cs index 9c08ce117c..d77178885a 100644 --- a/Tiles/Ores/ExodiumOre.cs +++ b/Tiles/Ores/ExodiumOre.cs @@ -1,8 +1,10 @@ - + using CalamityMod.Items.Placeables.Ores; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.Ores { public class ExodiumOre : ModTile @@ -19,7 +21,7 @@ namespace CalamityMod.Tiles.Ores AddMapEntry(new Color(51, 48, 68), name); mineResist = 5f; minPick = 225; - soundType = 21; + soundType = SoundID.Tink; Main.tileValue[Type] = 760; Main.tileSpelunker[Type] = true; drop = ModContent.ItemType(); diff --git a/Tiles/Ores/PerennialOre.cs b/Tiles/Ores/PerennialOre.cs index 37974a382c..ac1c95fe97 100644 --- a/Tiles/Ores/PerennialOre.cs +++ b/Tiles/Ores/PerennialOre.cs @@ -2,6 +2,8 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles.Ores { public class PerennialOre : ModTile @@ -22,7 +24,7 @@ namespace CalamityMod.Tiles.Ores AddMapEntry(new Color(200, 250, 100), name); mineResist = 3f; minPick = 200; - soundType = 21; + soundType = SoundID.Tink; Main.tileSpelunker[Type] = true; } diff --git a/Tiles/Ores/UelibloomOre.cs b/Tiles/Ores/UelibloomOre.cs index 0b42d74c35..070d71d91f 100644 --- a/Tiles/Ores/UelibloomOre.cs +++ b/Tiles/Ores/UelibloomOre.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.Ores AddMapEntry(new Color(0, 255, 0), name); mineResist = 5f; minPick = 225; - soundType = 21; + soundType = SoundID.Tink; Main.tileSpelunker[Type] = true; } diff --git a/Tiles/PerennialBrick.cs b/Tiles/PerennialBrick.cs index c9e10b5008..297566b394 100644 --- a/Tiles/PerennialBrick.cs +++ b/Tiles/PerennialBrick.cs @@ -2,6 +2,8 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles { public class PerennialBrick : ModTile @@ -16,7 +18,7 @@ namespace CalamityMod.Tiles CalamityUtils.MergeDecorativeTiles(Type); drop = ModContent.ItemType(); - soundType = 21; + soundType = SoundID.Tink; minPick = 150; AddMapEntry(new Color(17, 133, 46)); animationFrameHeight = 90; diff --git a/Tiles/RoxTile.cs b/Tiles/RoxTile.cs index 56e45e585d..79f0272927 100644 --- a/Tiles/RoxTile.cs +++ b/Tiles/RoxTile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; diff --git a/Tiles/SunkenSea/BrainCoral.cs b/Tiles/SunkenSea/BrainCoral.cs index 6fdd80e54f..cb986aeae3 100644 --- a/Tiles/SunkenSea/BrainCoral.cs +++ b/Tiles/SunkenSea/BrainCoral.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Tiles/SunkenSea/FanCoral.cs b/Tiles/SunkenSea/FanCoral.cs index b983df6440..108cf62bf7 100644 --- a/Tiles/SunkenSea/FanCoral.cs +++ b/Tiles/SunkenSea/FanCoral.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.Enums; using Terraria.ModLoader; diff --git a/Tiles/SunkenSea/Navystone.cs b/Tiles/SunkenSea/Navystone.cs index 58b3e28939..657024ec36 100644 --- a/Tiles/SunkenSea/Navystone.cs +++ b/Tiles/SunkenSea/Navystone.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Tiles.SunkenSea AddMapEntry(new Color(0, 50, 50), name); mineResist = 2f; minPick = 55; - soundType = 21; + soundType = SoundID.Tink; } public override bool CanKillTile(int i, int j, ref bool blockDamaged) diff --git a/Tiles/SunkenSea/SeaAnemone.cs b/Tiles/SunkenSea/SeaAnemone.cs index ad390269f4..79170af7aa 100644 --- a/Tiles/SunkenSea/SeaAnemone.cs +++ b/Tiles/SunkenSea/SeaAnemone.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; diff --git a/Tiles/SunkenSea/SeaPrism.cs b/Tiles/SunkenSea/SeaPrism.cs index f820476eaa..03acfe7ddd 100644 --- a/Tiles/SunkenSea/SeaPrism.cs +++ b/Tiles/SunkenSea/SeaPrism.cs @@ -1,4 +1,3 @@ - using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; @@ -25,7 +24,7 @@ namespace CalamityMod.Tiles.SunkenSea AddMapEntry(new Color(0, 150, 200), name); mineResist = 3f; minPick = 55; - soundType = 21; + soundType = SoundID.Tink; Main.tileSpelunker[Type] = true; } diff --git a/Tiles/SunkenSea/SeaPrismCrystals.cs b/Tiles/SunkenSea/SeaPrismCrystals.cs index f6bd9bf85c..789244a49e 100644 --- a/Tiles/SunkenSea/SeaPrismCrystals.cs +++ b/Tiles/SunkenSea/SeaPrismCrystals.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.SunkenSea name.SetDefault("Sea Prism Crystal"); AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); AddMapEntry(new Color(0, 150, 200), name); - soundType = 2; + soundType = SoundID.Item; soundStyle = 27; dustType = 67; drop = ModContent.ItemType(); diff --git a/Tiles/SunkenSea/SmallBrainCoral.cs b/Tiles/SunkenSea/SmallBrainCoral.cs index aab74c8501..000f914a56 100644 --- a/Tiles/SunkenSea/SmallBrainCoral.cs +++ b/Tiles/SunkenSea/SmallBrainCoral.cs @@ -1,4 +1,4 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Tiles/SunkenSea/SmallTubeCoral.cs b/Tiles/SunkenSea/SmallTubeCoral.cs index 38054a0c3a..b055d0dcaa 100644 --- a/Tiles/SunkenSea/SmallTubeCoral.cs +++ b/Tiles/SunkenSea/SmallTubeCoral.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; diff --git a/Tiles/SunkenSea/SunkenSeaStalactite.cs b/Tiles/SunkenSea/SunkenSeaStalactite.cs index a024434b34..1df118cef9 100644 --- a/Tiles/SunkenSea/SunkenSeaStalactite.cs +++ b/Tiles/SunkenSea/SunkenSeaStalactite.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Tiles.SunkenSea diff --git a/Tiles/SunkenSea/TableCoral.cs b/Tiles/SunkenSea/TableCoral.cs index c48902dd77..d90b3f0d9f 100644 --- a/Tiles/SunkenSea/TableCoral.cs +++ b/Tiles/SunkenSea/TableCoral.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.Enums; diff --git a/Tiles/SunkenSea/TubeCoral.cs b/Tiles/SunkenSea/TubeCoral.cs index ff2b12befa..7a48e7e4bc 100644 --- a/Tiles/SunkenSea/TubeCoral.cs +++ b/Tiles/SunkenSea/TubeCoral.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; diff --git a/Tiles/UelibloomBrick.cs b/Tiles/UelibloomBrick.cs index 7a672a1688..f0997a6249 100644 --- a/Tiles/UelibloomBrick.cs +++ b/Tiles/UelibloomBrick.cs @@ -1,9 +1,11 @@ - + using CalamityMod.Dusts.Furniture; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Tiles { public class UelibloomBrick : ModTile @@ -20,7 +22,7 @@ namespace CalamityMod.Tiles CalamityUtils.MergeWithGeneral(Type); CalamityUtils.MergeDecorativeTiles(Type); - soundType = 21; + soundType = SoundID.Tink; minPick = 200; drop = ModContent.ItemType(); AddMapEntry(new Color(174, 108, 46)); diff --git a/UI/AcidRainUI.cs b/UI/AcidRainUI.cs index 300b6563a9..474e066518 100644 --- a/UI/AcidRainUI.cs +++ b/UI/AcidRainUI.cs @@ -1,4 +1,4 @@ -using CalamityMod.Events; +using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; diff --git a/UI/AstralArcanumUI.cs b/UI/AstralArcanumUI.cs index f55defae90..508605e955 100644 --- a/UI/AstralArcanumUI.cs +++ b/UI/AstralArcanumUI.cs @@ -1,4 +1,4 @@ - + using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -134,7 +134,7 @@ namespace CalamityMod.UI { LastHovered = selectedCircle; if (LastHovered != -1) - Main.PlaySound(12, -1, -1, 1, 1f, 0f); + Main.PlaySound(SoundID.MenuTick, -1, -1, 1, 1f, 0f); } string text = "Select"; @@ -158,11 +158,11 @@ namespace CalamityMod.UI if (Main.netMode == NetmodeID.SinglePlayer) { p.TeleportationPotion(); - Main.PlaySound(2, (int)p.position.X, (int)p.position.Y, 6, 1f, 0f); + Main.PlaySound(SoundID.Item, (int)p.position.X, (int)p.position.Y, 6, 1f, 0f); } else if (Main.netMode == NetmodeID.MultiplayerClient) { - NetMessage.SendData(73, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TeleportationPotion, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); } } else diff --git a/UI/BossHealthBarManager.cs b/UI/BossHealthBarManager.cs index a92be8d623..fca35471cf 100644 --- a/UI/BossHealthBarManager.cs +++ b/UI/BossHealthBarManager.cs @@ -1,4 +1,4 @@ -using CalamityMod.Events; +using CalamityMod.Events; using CalamityMod.NPCs.Abyss; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.AstrumDeus; diff --git a/UI/RipperUI.cs b/UI/RipperUI.cs index d8ead9eb62..709c7b7238 100644 --- a/UI/RipperUI.cs +++ b/UI/RipperUI.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; diff --git a/UI/StealthUI.cs b/UI/StealthUI.cs index 0dc77fd126..76bd3d240d 100644 --- a/UI/StealthUI.cs +++ b/UI/StealthUI.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Graphics; diff --git a/Utilities/BezierCurve.cs b/Utilities/BezierCurve.cs index 3a78bf0d9c..0076f82598 100644 --- a/Utilities/BezierCurve.cs +++ b/Utilities/BezierCurve.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System.Collections.Generic; namespace CalamityMod diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index d8285b60a6..5ce5fa184c 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items; +using CalamityMod.Items; using CalamityMod.Items.Accessories; using CalamityMod.Items.Accessories.Wings; using CalamityMod.Items.Critters; diff --git a/Utilities/CalamityUtils.cs b/Utilities/CalamityUtils.cs index e7251ed1be..92658a75e7 100644 --- a/Utilities/CalamityUtils.cs +++ b/Utilities/CalamityUtils.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items; using CalamityMod.Items.Tools.ClimateChange; using CalamityMod.NPCs; @@ -382,7 +382,7 @@ namespace CalamityMod // Hitbox size adjustments Rectangle hitbox = new Rectangle((int)hitbox_X, (int)hitbox_Y, 32, 32); - if (item.damage >= 0 && item.type > 0 && !item.noMelee && player.itemAnimation > 0) + if (item.damage >= 0 && item.type > ItemID.None && !item.noMelee && player.itemAnimation > 0) { if (!Main.dedServ) { @@ -400,7 +400,7 @@ namespace CalamityMod } // Broadsword use style - if (item.useStyle == 1) + if (item.useStyle == ItemUseStyleID.SwingThrow) { // Third hitbox size adjustments if (player.itemAnimation < player.itemAnimationMax * 0.333) @@ -1069,7 +1069,7 @@ namespace CalamityMod WorldGen.KillTile(i, j, false, false, false); if (!Main.tile[i, j].active() && Main.netMode != NetmodeID.SinglePlayer) { - NetMessage.SendData(17, -1, -1, null, 0, (float)i, (float)j, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, (float)i, (float)j, 0f, 0, 0, 0); } } } @@ -1129,7 +1129,7 @@ namespace CalamityMod } if (player.editedChestName) { - NetMessage.SendData(33, -1, -1, NetworkText.FromLiteral(Main.chest[player.chest].name), player.chest, 1f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.SyncPlayerChest, -1, -1, NetworkText.FromLiteral(Main.chest[player.chest].name), player.chest, 1f, 0f, 0f, 0, 0, 0); player.editedChestName = false; } @@ -1143,7 +1143,7 @@ namespace CalamityMod } else { - NetMessage.SendData(31, -1, -1, null, left, (float)top, 0f, 0f, 0, 0, 0); + NetMessage.SendData(MessageID.RequestChestOpen, -1, -1, null, left, (float)top, 0f, 0f, 0, 0, 0); Main.stackSplit = 600; } } @@ -1470,7 +1470,7 @@ namespace CalamityMod NetMessage.SendData(MessageID.SyncPlayerChest, -1, -1, NetworkText.FromLiteral(Main.chest[player.chest].name), player.chest, 1f, 0f, 0f, 0, 0, 0); player.editedChestName = false; } - if (Main.netMode == 1 && !isLocked) + if (Main.netMode == NetmodeID.MultiplayerClient && !isLocked) { // Right clicking the chest you currently have open closes it. This counts as interaction. if (left == player.chestX && top == player.chestY && player.chest >= 0) @@ -1496,7 +1496,7 @@ namespace CalamityMod // If you right click the locked chest and you can unlock it, it unlocks itself but does not open. This counts as interaction. if (Chest.Unlock(left, top)) { - if (Main.netMode == 1) + if (Main.netMode == NetmodeID.MultiplayerClient) { NetMessage.SendData(MessageID.Unlock, -1, -1, null, player.whoAmI, 1f, (float)left, (float)top); } diff --git a/Utilities/Circle.cs b/Utilities/Circle.cs index be30166bc9..d918e9edda 100644 --- a/Utilities/Circle.cs +++ b/Utilities/Circle.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using Terraria; diff --git a/Utilities/Downed.cs b/Utilities/Downed.cs index bc3043b175..298afa28ae 100644 --- a/Utilities/Downed.cs +++ b/Utilities/Downed.cs @@ -1,4 +1,4 @@ -using CalamityMod.World; +using CalamityMod.World; using System; namespace CalamityMod diff --git a/Utilities/Enums.cs b/Utilities/Enums.cs index 4401d332ab..ee589e1ee3 100644 --- a/Utilities/Enums.cs +++ b/Utilities/Enums.cs @@ -1,4 +1,4 @@ -namespace CalamityMod +namespace CalamityMod { public enum ConvertType { diff --git a/Utilities/TileFraming.cs b/Utilities/TileFraming.cs index 1ccf5a7cc1..e7d21ef6ff 100644 --- a/Utilities/TileFraming.cs +++ b/Utilities/TileFraming.cs @@ -1,4 +1,4 @@ -using CalamityMod.Tiles.Abyss; +using CalamityMod.Tiles.Abyss; using CalamityMod.Tiles.Astral; using CalamityMod.Tiles.AstralDesert; using CalamityMod.Tiles.AstralSnow; diff --git a/Walls/AstralDirtWall.cs b/Walls/AstralDirtWall.cs index cf6d5ee9b8..c43513f7d7 100644 --- a/Walls/AstralDirtWall.cs +++ b/Walls/AstralDirtWall.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/AstralDirtWallSafe.cs b/Walls/AstralDirtWallSafe.cs index 359c28624e..6d15ef8f86 100644 --- a/Walls/AstralDirtWallSafe.cs +++ b/Walls/AstralDirtWallSafe.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/AstralFossilWall.cs b/Walls/AstralFossilWall.cs index e3cd022f03..2cccbcdf8a 100644 --- a/Walls/AstralFossilWall.cs +++ b/Walls/AstralFossilWall.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/AstralGrassWall.cs b/Walls/AstralGrassWall.cs index c3c63c3fb0..b835a060d5 100644 --- a/Walls/AstralGrassWall.cs +++ b/Walls/AstralGrassWall.cs @@ -1,4 +1,4 @@ - + using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/AstralIceWall.cs b/Walls/AstralIceWall.cs index 0b10b48a97..ad86e235ad 100644 --- a/Walls/AstralIceWall.cs +++ b/Walls/AstralIceWall.cs @@ -1,4 +1,4 @@ - + using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/AstralIceWallSafe.cs b/Walls/AstralIceWallSafe.cs index 4f73846aca..6c60031a30 100644 --- a/Walls/AstralIceWallSafe.cs +++ b/Walls/AstralIceWallSafe.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/AstralSandstoneWall.cs b/Walls/AstralSandstoneWall.cs index ae0e642820..579c5a2592 100644 --- a/Walls/AstralSandstoneWall.cs +++ b/Walls/AstralSandstoneWall.cs @@ -1,4 +1,4 @@ - + using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/AstralSandstoneWallSafe.cs b/Walls/AstralSandstoneWallSafe.cs index 339c3a2764..3aeb1022cf 100644 --- a/Walls/AstralSandstoneWallSafe.cs +++ b/Walls/AstralSandstoneWallSafe.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/AstralSnowWall.cs b/Walls/AstralSnowWall.cs index 85f1a29158..b6c6e9db13 100644 --- a/Walls/AstralSnowWall.cs +++ b/Walls/AstralSnowWall.cs @@ -1,4 +1,4 @@ - + using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/AstralSnowWallSafe.cs b/Walls/AstralSnowWallSafe.cs index cb250532ce..bb440de98f 100644 --- a/Walls/AstralSnowWallSafe.cs +++ b/Walls/AstralSnowWallSafe.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/AstralStoneWall.cs b/Walls/AstralStoneWall.cs index bb06206db2..c9f22fb2f4 100644 --- a/Walls/AstralStoneWall.cs +++ b/Walls/AstralStoneWall.cs @@ -1,4 +1,4 @@ - + using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/AstralStoneWallSafe.cs b/Walls/AstralStoneWallSafe.cs index 37669c60c3..cfc4f105c6 100644 --- a/Walls/AstralStoneWallSafe.cs +++ b/Walls/AstralStoneWallSafe.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/HardenedAstralSandWall.cs b/Walls/HardenedAstralSandWall.cs index 2638ca92cd..ebcfced2bd 100644 --- a/Walls/HardenedAstralSandWall.cs +++ b/Walls/HardenedAstralSandWall.cs @@ -1,4 +1,4 @@ - + using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/Walls/HardenedAstralSandWallSafe.cs b/Walls/HardenedAstralSandWallSafe.cs index 9a8046ce2e..a7edb7df12 100644 --- a/Walls/HardenedAstralSandWallSafe.cs +++ b/Walls/HardenedAstralSandWallSafe.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; diff --git a/World/CalamityWorld.cs b/World/CalamityWorld.cs index 0241a79a34..508e4064c5 100644 --- a/World/CalamityWorld.cs +++ b/World/CalamityWorld.cs @@ -1326,8 +1326,9 @@ namespace CalamityMod.World case 19: for (int doom = 0; doom < Main.maxNPCs; doom++) { - if (Main.npc[doom].active && (Main.npc[doom].type == 493 || Main.npc[doom].type == 422 || Main.npc[doom].type == 507 || - Main.npc[doom].type == 517)) + bool isPillar = Main.npc[doom].type == NPCID.LunarTowerStardust || Main.npc[doom].type == NPCID.LunarTowerVortex || + Main.npc[doom].type == NPCID.LunarTowerNebula || Main.npc[doom].type == NPCID.LunarTowerSolar; + if (Main.npc[doom].active && isPillar) { Main.npc[doom].active = false; Main.npc[doom].netUpdate = true; diff --git a/World/CustomActions.cs b/World/CustomActions.cs index a2b42eb335..6f21af366a 100644 --- a/World/CustomActions.cs +++ b/World/CustomActions.cs @@ -1,4 +1,4 @@ - + using Microsoft.Xna.Framework; using Terraria; diff --git a/World/CustomConditions.cs b/World/CustomConditions.cs index 2fb8f97739..786fb031a8 100644 --- a/World/CustomConditions.cs +++ b/World/CustomConditions.cs @@ -1,4 +1,4 @@ - + using Terraria; using Terraria.World.Generation; diff --git a/World/Planets/GrassPlanet.cs b/World/Planets/GrassPlanet.cs index 54c1ba147f..7a6c000dca 100644 --- a/World/Planets/GrassPlanet.cs +++ b/World/Planets/GrassPlanet.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using Terraria; diff --git a/World/Planets/HeartPlanet.cs b/World/Planets/HeartPlanet.cs index 498288fe28..9138468659 100644 --- a/World/Planets/HeartPlanet.cs +++ b/World/Planets/HeartPlanet.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.World.Generation; diff --git a/World/Planets/MainPlanet.cs b/World/Planets/MainPlanet.cs index f808d58a7b..6e10274be9 100644 --- a/World/Planets/MainPlanet.cs +++ b/World/Planets/MainPlanet.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; diff --git a/World/Planets/MudPlanet.cs b/World/Planets/MudPlanet.cs index 5ec3afd48a..0fb1bbd85b 100644 --- a/World/Planets/MudPlanet.cs +++ b/World/Planets/MudPlanet.cs @@ -1,4 +1,4 @@ - + using Microsoft.Xna.Framework; using Terraria; using Terraria.GameContent.Generation; diff --git a/World/Planets/Planetoid.cs b/World/Planets/Planetoid.cs index dbda167d2c..5d5043a34f 100644 --- a/World/Planets/Planetoid.cs +++ b/World/Planets/Planetoid.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System.Collections.Generic; using Terraria; using Terraria.ID; diff --git a/World/WorldGenerationMethods.cs b/World/WorldGenerationMethods.cs index 6cf3b5a228..d0c7a002f7 100644 --- a/World/WorldGenerationMethods.cs +++ b/World/WorldGenerationMethods.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.Mounts; using CalamityMod.Items.Pets; @@ -1770,9 +1770,9 @@ namespace CalamityMod.World break; case TileID.LeafBlock: WorldGen.KillTile(x, y); - if (Main.netMode == 1) + if (Main.netMode == NetmodeID.MultiplayerClient) { - NetMessage.SendData(17, -1, -1, null, 0, x, y); + NetMessage.SendData(MessageID.TileChange, -1, -1, null, 0, x, y); } break; case TileID.LargePiles: From c802fd7a92df0f618e7cc60572f431ab42062c75 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 30 May 2020 18:15:49 -0400 Subject: [PATCH 5/7] fixed typos which led to 2,255 compiler errors --- CalPlayer/CalamityPlayer.cs | 13 +++++-------- NPCs/CalamityGlobalAI.cs | 2 -- Projectiles/Boss/HolyLight.cs | 1 - Tiles/Abyss/Tenebris.cs | 1 + 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 80615b051b..cf847957b9 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5,16 +5,15 @@ using CalamityMod.Buffs.Potions; using CalamityMod.Buffs.StatBuffs; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; -using CalamityMod.Items.Armor; using CalamityMod.Items.Accessories; using CalamityMod.Items.Accessories.Vanity; +using CalamityMod.Items.Armor; using CalamityMod.Items.DifficultyItems; using CalamityMod.Items.Mounts; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; -using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Items.Weapons.Summon; using CalamityMod.NPCs; using CalamityMod.NPCs.Abyss; @@ -28,12 +27,12 @@ using CalamityMod.NPCs.SunkenSea; using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.NPCs.Yharon; using CalamityMod.Projectiles.Boss; +using CalamityMod.Projectiles.Environment; using CalamityMod.Projectiles.Melee; using CalamityMod.Projectiles.Ranged; using CalamityMod.Projectiles.Rogue; using CalamityMod.Projectiles.Summon; using CalamityMod.Projectiles.Typeless; -using CalamityMod.Projectiles.Environment; using CalamityMod.Tiles; using CalamityMod.UI; using CalamityMod.World; @@ -52,7 +51,6 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; using Terraria.ModLoader.IO; -using Terraria.ModLoader.Config; namespace CalamityMod.CalPlayer { @@ -7139,11 +7137,10 @@ namespace CalamityMod.CalPlayer player.immuneTime += iFramesToAdd; } } - } - #endregion + #endregion - #region Kill Player - public void KillPlayer() + #region Kill Player + public void KillPlayer() { deathCount++; if (player.whoAmI == Main.myPlayer && Main.netMode == NetmodeID.MultiplayerClient) diff --git a/NPCs/CalamityGlobalAI.cs b/NPCs/CalamityGlobalAI.cs index 2e8f812687..70eb5f23f3 100644 --- a/NPCs/CalamityGlobalAI.cs +++ b/NPCs/CalamityGlobalAI.cs @@ -555,10 +555,8 @@ namespace CalamityMod.NPCs if (Main.netMode == NetmodeID.Server && num255 < Main.maxNPCs) NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, num255, 0f, 0f, 0f, 0, 0, 0); } - } } } - return false; } #endregion diff --git a/Projectiles/Boss/HolyLight.cs b/Projectiles/Boss/HolyLight.cs index 2285425b82..b1c04c1a28 100644 --- a/Projectiles/Boss/HolyLight.cs +++ b/Projectiles/Boss/HolyLight.cs @@ -53,7 +53,6 @@ namespace CalamityMod.Projectiles.Boss Main.player[num487].statLife = Main.player[num487].statLifeMax2; } NetMessage.SendData(MessageID.SpiritHeal, -1, -1, null, num487, num492, 0f, 0f, 0, 0, 0); - z projectile.Kill(); } } diff --git a/Tiles/Abyss/Tenebris.cs b/Tiles/Abyss/Tenebris.cs index d793566d44..8a1297511f 100644 --- a/Tiles/Abyss/Tenebris.cs +++ b/Tiles/Abyss/Tenebris.cs @@ -1,6 +1,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Tiles.Abyss From aee38e68a9fc88fd6056769f8f4602a39c8b45cd Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 27 May 2020 16:57:55 -0400 Subject: [PATCH 6/7] I do not have the patience or energy to continue this right now --- Items/Weapons/Melee/Murasama.cs | 144 ++++++++++++++-------------- Projectiles/Melee/MurasamaProj.cs | 102 -------------------- Projectiles/Melee/MurasamaProj.png | Bin 4290 -> 0 bytes Projectiles/Melee/MurasamaSlash.cs | 139 +++++++++++++++++++++++++++ Projectiles/Melee/MurasamaSlash.png | Bin 0 -> 30391 bytes 5 files changed, 212 insertions(+), 173 deletions(-) delete mode 100644 Projectiles/Melee/MurasamaProj.cs delete mode 100644 Projectiles/Melee/MurasamaProj.png create mode 100644 Projectiles/Melee/MurasamaSlash.cs create mode 100644 Projectiles/Melee/MurasamaSlash.png diff --git a/Items/Weapons/Melee/Murasama.cs b/Items/Weapons/Melee/Murasama.cs index 97562f52d6..1382bf4833 100644 --- a/Items/Weapons/Melee/Murasama.cs +++ b/Items/Weapons/Melee/Murasama.cs @@ -8,82 +8,84 @@ using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Melee { - public class Murasama : ModItem - { - private int frameCounter = 0; - private int frame = 0; - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Murasama"); - Tooltip.SetDefault("There will be blood!\n" + - "ID and power-level locked\n" + - "Prove your strength or have the correct user ID to wield this sword"); - } + public class Murasama : ModItem + { + private int frameCounter = 0; + private int frame = 0; + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Murasama"); + Tooltip.SetDefault("There will be blood!\n" + + "ID and power-level locked\n" + + "Prove your strength or have the correct user ID to wield this sword"); + } - public override void SetDefaults() - { - item.height = 128; - item.width = 56; - item.damage = 999; - item.crit += 30; - item.melee = true; - item.noMelee = true; - item.noUseGraphic = true; - item.channel = true; - item.useAnimation = 25; - item.useStyle = ItemUseStyleID.HoldingOut; - item.useTime = 5; - item.knockBack = 6.5f; - item.autoReuse = false; - item.value = Item.buyPrice(2, 50, 0, 0); - item.rare = 10; - item.shoot = ModContent.ProjectileType(); - item.shootSpeed = 24f; - item.Calamity().customRarity = CalamityRarity.Violet; - Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 14)); - } + public override void SetDefaults() + { + item.height = 128; + item.width = 56; + item.damage = 999; + item.crit += 30; + item.melee = true; + item.noMelee = true; + item.noUseGraphic = true; + item.channel = true; + item.useAnimation = 25; + item.useStyle = ItemUseStyleID.HoldingOut; + item.useTime = 5; + item.knockBack = 6.5f; + item.autoReuse = false; + item.value = Item.buyPrice(2, 50, 0, 0); + item.rare = 10; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 24f; + item.Calamity().customRarity = CalamityRarity.Violet; + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 14)); + } - private Rectangle getCurrentFrame() - { - //0 = 6 frames, 8 = 3 frames] - int applicableCounter = frame == 0 ? 36 : frame == 8 ? 24 : 6; - - if (frameCounter >= applicableCounter) - { - frameCounter = -1; - frame = frame == 13 ? 0 : frame + 1; - } + private Rectangle getCurrentFrame() + { + //0 = 6 frames, 8 = 3 frames] + int applicableCounter = frame == 0 ? 36 : frame == 8 ? 24 : 6; + + if (frameCounter >= applicableCounter) + { + frameCounter = -1; + frame = frame == 13 ? 0 : frame + 1; + } - if (!Main.gamePaused) - { - frameCounter++; - } - return new Rectangle(0, item.height * frame, item.width, item.height); - } + //if (!Main.gamePaused) + //{ + frameCounter++; + //} + return new Rectangle(0, item.height * frame, item.width, item.height); + } - public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) - { - Texture2D tex = ModContent.GetTexture(Texture); - spriteBatch.Draw(tex, position, getCurrentFrame(), Color.White, 0f, origin, scale, SpriteEffects.None, 0); - return false; - } + public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) + { + Texture2D tex = ModContent.GetTexture(Texture); + spriteBatch.Draw(tex, position, getCurrentFrame(), Color.White, 0f, origin, scale, SpriteEffects.None, 0); + return false; + } - public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) - { - Texture2D tex = ModContent.GetTexture(Texture); - spriteBatch.Draw(tex, item.position - Main.screenPosition + new Vector2(), getCurrentFrame(), Color.White, 0f, new Vector2(), 1f, SpriteEffects.None, 0); - return false; - } + public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) + { + Texture2D tex = ModContent.GetTexture(Texture); + spriteBatch.Draw(tex, item.position - Main.screenPosition + new Vector2(), getCurrentFrame(), Color.White, 0f, new Vector2(), 1f, SpriteEffects.None, 0); + return false; + } - public override bool CanUseItem(Player player) - { - return CalamityWorld.downedYharon || player.name == "Sam" || player.name == "Samuel Rodrigues"; - } + public override bool CanUseItem(Player player) + { + if (player.ownedProjectileCounts[item.shoot] > 0) + return false; + return CalamityWorld.downedYharon || player.name == "Sam" || player.name == "Samuel Rodrigues"; + } - 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, type, damage, knockBack, player.whoAmI, 0f, 0f); - return false; - } - } + 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, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 0f); + return false; + } + } } diff --git a/Projectiles/Melee/MurasamaProj.cs b/Projectiles/Melee/MurasamaProj.cs deleted file mode 100644 index ccf85333a5..0000000000 --- a/Projectiles/Melee/MurasamaProj.cs +++ /dev/null @@ -1,102 +0,0 @@ -using CalamityMod.Dusts; -using Microsoft.Xna.Framework; -using System; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Melee -{ - public class MurasamaProj : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Murasama"); - Main.projFrames[projectile.type] = 28; - } - - public override void SetDefaults() - { - projectile.width = 148; - projectile.height = 68; - projectile.friendly = true; - projectile.penetrate = -1; - projectile.tileCollide = false; - projectile.melee = true; - projectile.ownerHitCheck = true; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 0; - projectile.Calamity().trueMelee = true; - } - - public override void AI() - { - Player player = Main.player[projectile.owner]; - float num = 0f; - Vector2 vector = player.RotatedRelativePoint(player.MountedCenter, true); - if (projectile.spriteDirection == -1) - { - num = 3.14159274f; - } - if (++projectile.frame >= Main.projFrames[projectile.type]) - { - projectile.frame = 0; - } - projectile.soundDelay--; - if (projectile.soundDelay <= 0) - { - Main.PlaySound(SoundID.Item15, projectile.Center); - projectile.soundDelay = 24; - } - if (Main.myPlayer == projectile.owner) - { - if (player.channel && !player.noItems && !player.CCed) - { - float scaleFactor6 = 1f; - if (player.ActiveItem().shoot == projectile.type) - { - scaleFactor6 = player.ActiveItem().shootSpeed * projectile.scale; - } - Vector2 vector13 = Main.MouseWorld - vector; - vector13.Normalize(); - if (vector13.HasNaNs()) - { - vector13 = Vector2.UnitX * (float)player.direction; - } - vector13 *= scaleFactor6; - if (vector13.X != projectile.velocity.X || vector13.Y != projectile.velocity.Y) - { - projectile.netUpdate = true; - } - projectile.velocity = vector13; - } - else - { - projectile.Kill(); - } - } - Vector2 vector14 = projectile.Center + projectile.velocity * 3f; - Lighting.AddLight(vector14, 3f, 0.2f, 0.2f); - if (Main.rand.NextBool(3)) - { - int num30 = Dust.NewDust(vector14 - projectile.Size / 2f, projectile.width, projectile.height, (int)CalamityDusts.Brimstone, projectile.velocity.X, projectile.velocity.Y, 100, default, 2f); - Main.dust[num30].noGravity = true; - Main.dust[num30].position -= projectile.velocity; - } - projectile.position = player.RotatedRelativePoint(player.MountedCenter, true) - projectile.Size / 2f; - projectile.rotation = projectile.velocity.ToRotation() + num; - projectile.spriteDirection = projectile.direction; - projectile.timeLeft = 2; - player.ChangeDir(projectile.direction); - player.heldProj = projectile.whoAmI; - player.itemTime = 2; - player.itemAnimation = 2; - player.itemRotation = (float)Math.Atan2((double)(projectile.velocity.Y * (float)projectile.direction), (double)(projectile.velocity.X * (float)projectile.direction)); - } - - public override Color? GetAlpha(Color lightColor) - { - return new Color(200, 0, 0, 0); - } - } -} diff --git a/Projectiles/Melee/MurasamaProj.png b/Projectiles/Melee/MurasamaProj.png deleted file mode 100644 index 3680218463aa0cbd2262a9cf71c4913d96201249..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4290 zcmYjVc|26>8z06x!Wg@3laVDF71?Dr#@ZYvg_23#GB=@HLRWTUjAe*Kwi(K4%1tsz zi$W=MD~4h!go?~9St{%AsC)bTo^&*CXeO-PN2&`p1^bW70f$CK{QMf2%#1w)Ts<>h9PX_7f>`CdaN|1Cj_{<;`6YEN ztCjGEcl#;S7?1J=pJ-jA)g9mgd)Rp05t%gJ(4)hFXW-lfj4`jaPSuN?U-ZKU8c)b+ zVTX-^Jc-;5{U^}zdl!(Z*4Ld`*<|Vf$9&WGx0%5uiA0&qSacLyPv@g1*o~ z(C5_#S4(3|2UEYEwv%IKcq_ox;-&W|h}Twth93FgZs(@6;z&sh8h9Sqn~UKYJ^{Y2 zN=LgUC|!LW7r(kO)4~8yI_CU3zHRT}#ER}8_U6`ynm>C2 z0ZX2%`vWu(7|i`_fkAZQxv}cHG$A4}An40A*IO_lf)NnZ?ya-Fo%>d@im0ZdioMZi z21u%&bvXx`V*usLIqo_a5;*$*y~BeIsaba7mX7w<*j0s{lPQI%Rwi%%CNTn*v%W^ zHDA?sQFmYzm^?!3kF89qgQk!26y!OuMht+%wi zT*rG3HiST#lvafXC~8`%2gHE6R^NtkYkdS6&wb}nG*BEb1~dxaS7a})uTKC^k-}om zue9~IXl22>I|{8=`*OjK+7?zrrf2)rCs4X~#7Ze$FN4v5Eh3qoE^B2HH{fOc;-!(R z5-1hbQEqNk^T^{60p}Wm4cc17)-{ZOvSq?uenkX11G%{0PQDwV^uFEGP=&~DPMT}q z`|L5dyqa>jcl!=IRA1}gfq8Gf?{?vC?Dr=q?9|aBQ@@9}<~ZE`wo`^VIDfGuC!j1i z$e~Xkker`FzBn$Jg(20fT04<1l)ysUV5;rdD6Y{;;HGWCyX58gCaxM722UP%brECS z`7_J9yQjXf3vWgkk4fS%beYGk+%&nFfoy-W;GUNH5#W|mM)A2n>&#nlz|2Kb`!OQd z#qW*^D;NzB+T2duU4MhLgCd~ZNy+j*L*l+=TVQ@I`(yd3Wy0oQ1AstQLrETj-gyL| zFuXee{9uGEljomv*Z7kVusSL%LW;>R7wnVIU`TX1#ixI?vJS)u*^U zr#D>UEhwMz6@6SGuRcN(@`P&#VO8){{G0OaDsX0Y09X^ zOUeCa={SCJ#3Fepb#U95L(;>*h%)yiF1O85%i~V;Q6w`XA}sX}O{uJ30o-^h6BDDv zpktr>c6vpQsYU4VcGj7(W^G=HM@_!0tZ*2#4E|yZR?<=}=R?5-{WzUn=Zy9Ty>sCP zt=G&XD}U^z2*WLUD-~MaWJ{Ga)c634p)*``#!i>8i~LdL=fjWhCwq_uApzybO=U9z zl50c_%vmqcDQp?Gqf~_L6Nb@Q~Y z28w^za|1nV`@UB1!)Rb`_tq@+8pZ{csvB&uygUjgaUUv%TZ*l%+;=S3HW4<@znW7P zpD>^Qc>>varc`6GclpLLQ{aeVUjlv6|~SX0l( zT|6tbkqx@mnpb_o)!dH-Lp>+*gz1TtxK~5o{C>w?A@*^B2pFLe-OPLi@=wlY)*Dx&M_)?1RE?VvTQF7xU|BO;e@5 zp2O;6!l8^flE7}EoWaX003t?JH6 zI|K*ffUdl!yPc^wPwvlj4-o^VJ&MLe5=1_B;T;z4OC}3So^gH1&H@om7Naq#wDHg; zF~A0?#&_xNUy@r(_|vOwEIAmQemu%j?NTh?oAQ9u=_}Z&_af+?O|CS-OVMt~t1G92 zq#m$y4de(4DGRk_6px@xyAi*6Bz3kn((2kU_N6ycuynt{@x!;p4yy>+RY~5k|c{{`rayWAUiKkAfq?Bj*Z-|J=xP z81S22cr=dN@0&yvU8!BDmrz6P8l~JqvH}?BQ?!MKj9|%vZxet9Jgw^3jWikpJtTj%RM!VRL(^w^$`mfz(<58jb!t(fqhvb%afS_{Iz|n}m-1NV;xN1p6u+QgMKzgBZHGK7jx)rybQ(7{ zE4+;;BB9CQiFh^}RHAH7!o)9$XErZyuSG&+@Ecko(rmK9Skp3vfJTP>D}(mE_)?=h zY_1~FclheuKJdMb(I})CM)GK6fs>O$8j)20UB>jF5uRdYru7n%7S2>hc5@YzM-$b> zL)r&oQZQOz8wadsPKxmN8lcLA8z$(a6SHb{O|xb<8pC8WCgtxk2h-d)jsWLN8AQ^K z%(HGbf+f-$n7a`gm{E^r6SOnLS2U!!gZm1jZ$(-1bePgpc4oZ0P3ig&-3|3%7oCB| zf;=(>Qf>o>8|Fi-MXp#BU$qcV;y$y%&{q>)eC3vDrY-sjw$+Ebh%Uz2(-l2c@>7Xn z3<$-iYyW~onP9u0Lr=-=nglTPCRt$TCW!K56-$|t%z?R3997S173|b5a2DsL8I>x^ z_P2Gr31!piZZn+lM^WMxYicCAXKRwLw^X`Fg1~QltnD%6ts$7rAMKDg=pGN0O`(_9 zRlIH7rJhg$rc;9xMrBe0stqZ_Kk&`oU`)%mChPesg4liy)ZU9wW zmKl&YdF}awqt!&gxBM-kgE579Y;fA-edFcSqekm^4kO=Cht6n$9VS@#eM;k{7F-); z>7sRaJ15{-p4HMOj4O&H1i80yBYx<)N{X2cqFtOz=^`8I zBO1rHOF(Lpd%(w%yNUNO(_DIp_(XByJBS+7^^l0#)i-ozh(`Oz~U z>#v)KY-cDA>jUP0-RawFIi|LJQ<;2(su{vMW^4VL8a7~pF{X3PU18Ekh;{|yu3q&) zh4|0^(aX=}7tgUh&RVD(H~DHQSdqR!m_%nhb@AGHBS$&w!kW53a#W@SfV!eg$<8%RHW;#Jw1%%>fCEnN5jE}Bbg<2byND9|Dm}*i zLX2`Nz_|LJ$J!Qjxqp0QbbrCnnMWS_&MIG$l#sjBUU%X#Ns`1q*4f^|Q|SQ)v?zUK z-{vS*2Cj>f5SeJ7D@lA%sjO_8m_nR$@l3GC%3C=d@^lx*=nHB>OJ_^LbG>IGM~Tf5 z?+v-_y(w~4k-qzFwM{o;Ddk{fzEIOiI-+oeF1>2U>jk^zPFKC=4wJ@D`m zqmXByc@xVdBERT4zDz&CcuZCmD$6;Kx6=lU%Z2+R!PbDghC1$V{44}AEZ{PvgbtFx z*|1c?95&D>{7NJ4^(W{i?<;L$(Q)F2Fqj%Iy>Sh9q_Y{ZZ@qNhtSe}O4@niA0b6t? zXR%XA!$}sfJd)S$D~{|tJyUjjCKx=P3+K;7fP4?!s4y)>ltOrdHQzwCp~l5DyK1FH zY<}%6BM7@Vfj=o<{LsjI1C8=~rUrlNGxT7Xbj@{zH{KS4An$I|mROmIHcFR*I1T9d z>@7wEo+7cW6+onZrwZy&)QQ@&_cf5I4vFG`5}0XxaU=qa?%;>xm8^BWTuAK;;?HK$ z1!Ml(GNj4?SnB5O80EZ?Oe~v^Cwd+ zU#*MY0w{CuE+?M7+x&*3u6f!muE{4-jrZWU7(UgTy}aUR%Pu>s%Za1 z1<@ydZl5=Pt&v*m9ulgoNrr5;v9?S`5+qPfR4%Qx9s~Aii}&rJ-Dpwa=w>FES#F?= zGmTzG+<(6kh>&L#?|A)re;2E!u#F7{iH^G_GBd6yE*%$sII65{Rlmg5hpl63;n$ie z2+j5+yzuuW3)rCO^>2rMUr8m(GY5-7(b`ZW<`ztCpeg<6h@DZWRJc4E_?IqetMKQ= X%APKTH!efJ8encDZ{lD0;H3Wn-SWdA diff --git a/Projectiles/Melee/MurasamaSlash.cs b/Projectiles/Melee/MurasamaSlash.cs new file mode 100644 index 0000000000..c566e2165b --- /dev/null +++ b/Projectiles/Melee/MurasamaSlash.cs @@ -0,0 +1,139 @@ +using CalamityMod.Dusts; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Melee +{ + public class MurasamaSlash : ModProjectile + { + public int frameX = 0; + public int frameY = 0; + public int currentFrame => frameY + frameX * 14; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Murasama"); + } + + public override void SetDefaults() + { + projectile.width = 318; + projectile.height = 262; + projectile.friendly = true; + projectile.penetrate = -1; + projectile.tileCollide = false; + projectile.melee = true; + projectile.ownerHitCheck = true; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 0; + projectile.Calamity().trueMelee = true; + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Rectangle frame = new Rectangle(frameX * projectile.width, frameY * projectile.height, projectile.width, projectile.height); + SpriteEffects spriteEffects = SpriteEffects.None; + if (projectile.spriteDirection == -1) + spriteEffects = SpriteEffects.FlipHorizontally; + spriteBatch.Draw(Main.projectileTexture[projectile.type], projectile.Center - Main.screenPosition, frame, Color.White, projectile.rotation, projectile.Size / 2, 1f, spriteEffects, 0f); + return false; + } + + public override void AI() + { + Player player = Main.player[projectile.owner]; + + //Frames and crap + projectile.frameCounter += 1; + if (projectile.frameCounter % 5 == 0) + { + frameY += 1; + if (frameY >= 7) + { + frameX += 1; + frameY = 0; + } + if (frameX >= 2) + { + frameX = 0; + frameY = 0; + } + } + + //Play the droning noise + projectile.soundDelay--; + if (projectile.soundDelay <= 0) + { + Main.PlaySound(SoundID.Item15, projectile.Center); + projectile.soundDelay = 24; + } + + //Create light and dust + Vector2 origin = projectile.Center + projectile.velocity * 3f; + Lighting.AddLight(origin, 3f, 0.2f, 0.2f); + if (Main.rand.NextBool(3)) + { + int redDust = Dust.NewDust(origin - projectile.Size / 2f, projectile.width, projectile.height, (int)CalamityDusts.Brimstone, projectile.velocity.X, projectile.velocity.Y, 100, default, 2f); + Main.dust[redDust].noGravity = true; + Main.dust[redDust].position -= projectile.velocity; + } + + Vector2 playerPos = player.RotatedRelativePoint(player.MountedCenter, true); + if (Main.myPlayer == projectile.owner) + { + if (player.channel && !player.noItems && !player.CCed) + { + float scaleFactor6 = 1f; + if (player.ActiveItem().shoot == projectile.type) + { + scaleFactor6 = player.ActiveItem().shootSpeed * projectile.scale; + } + Vector2 direction = Main.MouseWorld - playerPos; + direction.Normalize(); + if (direction.HasNaNs()) + { + direction = Vector2.UnitX * (float)player.direction; + } + direction *= scaleFactor6; + if (direction.X != projectile.velocity.X || direction.Y != projectile.velocity.Y) + { + projectile.netUpdate = true; + } + projectile.velocity = direction; + } + else + { + projectile.Kill(); + } + } + + //Rotation + float rotationAmt = 0f; + if (projectile.spriteDirection == -1) + { + rotationAmt = MathHelper.Pi; + } + projectile.rotation = projectile.velocity.ToRotation() + rotationAmt; + player.itemRotation = (float)Math.Atan2((double)(projectile.velocity.Y * (float)projectile.direction), (double)(projectile.velocity.X * (float)projectile.direction)); + + projectile.position.Y = playerPos.Y - projectile.height / 2f; + projectile.position.X = playerPos.X - ((projectile.width / 2f) * ((projectile.spriteDirection == -1) ? 1.5f : 0.5f)); + + //direction + projectile.spriteDirection = projectile.direction; + player.ChangeDir(projectile.direction); + //Prevents the projectile from dying + projectile.timeLeft = 2; + //Channel weapon shit + player.heldProj = projectile.whoAmI; + player.itemTime = 2; + player.itemAnimation = 2; + } + + public override Color? GetAlpha(Color lightColor) => new Color(200, 0, 0, 0); + } +} diff --git a/Projectiles/Melee/MurasamaSlash.png b/Projectiles/Melee/MurasamaSlash.png new file mode 100644 index 0000000000000000000000000000000000000000..c637d8ec89e2390924fca6047c28b08e6d2c99b6 GIT binary patch literal 30391 zcmb@uc{rQt`!}4{s2N>+XGWP;$@DvEYbn|)X(>8mv=eL9l3Jq+N{|+@MMS5gomSN} zYOm@>OAw@lkVF^MzDBG`)h;2{ghZ0}7CO&!yvOf7-sg|UKXSx%U-xyL*SUVq&*k0) zyYssh_bY-xpxv-Pe!mC;ZI1zg6tutH0er*VUa1EB+7^28{BNM*wgb~3(9a;)@4q@l zKH&~yANUBcY(aa*@S(H;&ycjozq=_t_~ZC-pSzDetjhkdEFbuEKjFpS2aF#bl-Jz# z`Vkl8|MW@I^zWsAgOyY0XlL1FOn897iK zWO^l9Ra*I3$*`M8E6ALMPZYN!4<;!E1r`Z`QI`tE1T)}Qng7l!DR1@B1~Ego-okMQ z>XM=^u7W^{ujjXw^tQ1jzwE@Wio6FMMTVR2*z1YB(kv)B;TNgMx<827l`bIn^T2S~J>~6suleeAq=| zl=WT#bm3II5~vK1hdPD&-n>7$zq+0M%DGn2yI7$G;Nf68B^; zWJPEhWRanp>sr4X0P1b48l1BWi8|=^wpf{p&K}Qt6*YujAg~sxa%8e@?9TL7Wb-aC z2sG?-M=9<_A@VyN#y?o`4#gq<w`h(|e)EFaQ!t<6#t+!shgr6~cTfvwpvqI% zqg$J{Y$|;k>xvmoY6)u{)Y6P`0959_AJ`0}51EBeDh0kB_Z7^s+On=`J|Zg1Ou!+HT3l|l`6eMU>#eQ=r*zH zvJS^gCHCQnd9vMeyInyp#X%#SXh8I^c;1)t0NffB521?a#?uFxAr(b>*g-n>InMGS znP-i6BFBUjG-SNcM17nY%G^-4%GOgw^4>m&_p18vPME-7R2sm_R#@N}_G&6`xZ7p` zI4Bn9rf%-8-dx^${U@_&%@}er1km4>K0y}xjy<3s&%VvN>9(`B%T`;jiRH5+_6XAw zc|XLE5sOal0Y`{J1$dw?HJguO zAkvP@hv8fQh~6zb7^B6bs&RE{rj9El7=DS2^T}@@)#qh9R7W~yHB@sGchW9eCNOF- zx;Qy-#3!?Om&rXcMQQ`|t?(91)Y59)%#5K6$I}}IyJK;!`#w%^S_P&i%T=@Jb zJrmL|yhlGd{vl8WSoX6Uz*|ENDQCspTBHaZbM*&O4CX>wS!sNrQ)gC0zgn)VFq8ax zeDe73`mktwQ&Wxzr7U|ctNeHQxcIEM#t|;^X|>uJXFf1b)}d?(-rIPtrq!e1{dpsO%|KI+R+7`_P{z)XzDc@v#tG__BE?o8>FW>zIjf zU714)^%1yZz#bQV{KW;^<^r0WU(-dV5*>Yr`FdE9gh|hV01j}SU}Vzk#K)Oo6IUu^_%}tZ z1yWPo>L2(<=1fp3E%S>)+EL1U5vDWimFs!|6g)?dX&$L>8U5HrP9;5P?yZ>LU3F*f zT>Iv%j;lWfuzZMBO%+Dd;;ixFX`v1giKhE5U`C!EDS%YXs1x^BQfXiA{;81csjbWI zi&`^|C&qj6ez{G=O|L=H?&owty$0W>WfQw2yl(bO{w^v$?%_7=xS4Vs_jd5%-Pzfm zNJV(g1SH=d_VP3uWv*6t)Ks8s*KS+u>FXv`mDOt$9~%4)2%yA~>Xo^dR_vd;RcO)9 ziy3L`*nW#djQNItwR2egqpXrq8D#A_=votnG#P~Y8|nwX@Yzdqo0dlsbBXK3_AvOs zr@xU3JZ-F+VKb2NfRyb<25+dEEwn*k=)rPv8WUm2#PWNo^Mz zSL+3#(Tl(Aj#tC8oK_E;dO46{Wd2y0w%a+4>KP4$m16i2e*`~M#7U$`3z~=Dw(#Fw z1B_PF;4wW>^O7wom3EPCMgmrj_%y-v>GoZdS&vqXny*toL7b&zn(+$TpY@jRrKOiM zTaB6IwFw|qG3UOqa!E^NrO`5FX6U$==8!iWQS1`XSzzlRys!6sDRYDnG;lOW=Ivas zSlGDpf#@=^_gFxd%W44BRMgO#wVx0vPI(d2+I3=jph^U;;kxBH`llAo3^SczU813B z$aqSjL!K@+7whS(8>5QI@YpbI5XJhT=1`#z(cfvBGcYq4LV~Y5VCJ}?fSIzBKCM?7Xbg7NLKSEd`d6)ABe~mMIUX(;S2!FrN zSy*8nQSgS?@Po+#-eCBz$7#^BL^4v=Be`K1oWtC9*fMW*)`4 zo8J`Ia#jiv2@Gl?Jz`kTJt*-g7K|(Fait|dTURg0v5&B$>gsp|SQ4|*)l3%iLM$4z zFdW$Q%iq&fX~Kaj>E#s2BubitZ^5MmdP-)#z^Q9Dq~q>;$lAwM5&i#kMT}fE<P- zy>3u>a1bk(S7$CAh2dv0JUCz_A0gUj>dhqoPuUy_xJFdnG zA4;G9Zo^>a9;q7V>0#V)6kPm+S+@D0HU74AwjB1DihjB5@Tax>xSEMRf*kq*%x#(5 ztwQqI`)Z%B=>AbG;FXvnG^56fUCf}o)C8PQA=vf#FXuct_Whh4xk-9J&?grNtK|zR zKQlP=mAq0t(bktfC3)l^abKdS!=*uRrS)IxD!~V|vb7J~aH2c54&z3ta zIc3J=qJz1-FIoGEsB6=M$~%u@vupBX+EBSs#N2Ur>aSj_0%CGQQVnH|U)mmX_ri|X z7t*K$*ap@=*Pbmi5bfGk%PmgRS52vUjk#sy;F*i?_QKhL9OBwiF|#uJ&mMF0h!mOw zomU^-?g>24-w zEJ55QhzBBLzu=vI+uA4Zvf~C9ObDSO`ft71mC1j);A(CGEsH7sECZ}U?96Rv{DIYK z^GDajQpM1AXt|$kb|8f+TWsEqn5tc9drZq>9t?!GcF`KBr7)4@WF@ z46>s~R%i_hin9D3zSJLqO=>F=;U;VD#EsVq9#%z87(k>a}B78%h>X9leGS{Dx~ zf;q2|^7)q2I=?X`^rM4$DVvtWxj9hv>&zm0ymv1Q|5D+hjR^_L*?Y{bs5hH@nmfqk zTm5XUgT-3#kEVSXus|IRi zfZ!2o*5lTwAo)^x^Od*5I3+8mfXxu*mooQfIn`yhYN`DQ%!?h1tKQ~Vi1%!COgPB= zl8rWWS`ugGFn@#d9=f3ik75!iKb+_7q@x&mI^7Jhz<-ecvV zi3xRUrN2Iq_jl(9BxL5R84i-U`)GNlEz60S{c0=Jnt!^W1udqja7aeY{Ro%p;@VDJ z-s)MY)dAnN^w$msG3XHzCE2!wBXH7(J(Mi73-Duo_R=D|wq;qeVDNz)siTEyj$U`w z_0B`Fl1!2cgGpS@x0I{)FGS_zeoo?T#BOuIMQYzCHgmddpjS|qHOTvKE+-Dv65OJIBA ztGKEk4K_T$*^!oc-M{~YX2VDk)r#)=u&2c0>nqCFi3Zr#MWce{azlRLo_uhsI8!(T+3T8eKOf=*6kBWaMAz+>O{ECV?x!o8V{`diqNyysX%vAAB=ASapS#B))3zjKbXvL%wdl}d@ZiB+H>z@LK zO;c!-^mT?dOz#ZtFf61sCyLW2(hopT{kPQd{Oh9yQ`;`&QA%dDu|>W@+R{9e0EwE5 zkObk!mQ{JS_$TWt?DXcnPg6HH@m}HT87i7l;1aRz*m}!(+i_bG+2w$U zdRe9YQ(Q38UD#%}R#ci4x-!V_!o8M`A}zqU;f=r*@3{Kx>}zxBbpXp*5dac*H>+y; zuZ7#1${7Ht|2@XXHwb&(T(tWCuGDYE{%+8eE1g4QI- zs5Y!EW{q%_&6_ge1+w1u=E{nOCxB=IYbYOQ2eL0uNia^!uho@!`yH^$D(;u;%nLkI@`xO?!~pXpJ8N3Lpu1e|&I{Vbt9-b5>THb`3o3os`KO zYn|$+rFh)4kZH)qf(t7Mq38RZm-R5+M;l0*TMD4r*QkGnG-Cmpy6-{=_0xUvq#bn!HO~MO06fe$TKgPuQqe_+s9{|U3K~XZaU1Nn~=t0 zq}lesHx7gVdr7m@1h%+pzK*~{{Ai1eTV!zLTKNjt#Ch?Y41Ib%|L#BNPRCE6-obS2 zf?hRe4qiOyiWc!=xhNwZa2^}7ljx{xMJ8_@hxgybX;judRTu2Hpk^bjmEEr>=Oy*+ z53uxNsmAp!%=Fz)D@WN0r~iSRP7fuVdD46aaLF(hMw$p@ar$STLh^&n%F3>8zf@Xk z5g|~=e6Zm$(OaUtKH}ZBg15Gutv^%VHM%dCGCB@a$r`Kt0wsCx{vC?LZy4p(d}npz z>WE1Lgj(cFX9|Gz0(PeE(muy1xC#f-XtUKi=L36cyIP;u?#9LesNh%QPC4T&xx?QVPsD5J}ZTm%GBHz3|??Xc4h>SprhK zHZ?PJvH9QGELx)D6DfVeZ%x-{(QC+5+Jq=c8(Uns?bsV8N1<9pG-sHSy}WInM@AO5Ppm&Q(n;y)7LvavSWY`cA8@@TnL1Am2Q0 zq72Ln{v{&o4uzZDAN5=0^^aUuS&abOeh8*vf^`N~5!H|adu$p9J6F`^%-Gx7ShdMojexAgBGQY=K@~m zsb8`t22}V}!;nRK(dZ15w+8uwCRXp+ek79Rqn}8(Fpr*j8f9(<;%02bu~YF$$XD7Gzd#PZe9Ci0GHC~zO zdoSzD{u&GEL*VscGDs1aHU6iI9rzZM3o-mH+!+>92&GLWo-Uqfa9##!KHPe9)%DVW z3jcu@P(Ehmb&h2AIhl=F?!CnXH|w0k#t=~3G*dT5$||AW5AB{JzA07uvVSmO&~xJA z;+*lydxUi$Z*fEJY=;wectr^a(S$}$uNBKw2?H|>-wd*MmICa#6AOcWN)#x)NyS9!oZuian&xX{?lRloy z5_a|#fxuUID#=TnnZZK221oPdisl6GP3^glYvGC1ob7+8Zpj^_Xh@k#%&by#UXC?_ zg|JKQ%Y~ItkH}(%xOe!~50Mi&xGF2WMTBPx;E~tHz9=dB$|6dzv;e4t*Y;oJyA{2l z^7_>3Y2ri?@uz6fy)?Uus8!2M4&6mPy1f;KH^{-hk_wgRX0SzI1%MY?x0j;zVZlOb zL@xp^b*mqcsrjVqcV{n$@1;HW0Wvz)n?IqAKPVyyY-gysVD&epFRPE>M_>tukoA6k|Ma z;Lp6ucjH@140?dRX*eh0>^#?32Ip8kN2dO9$?xllgfJ|N80BF{`ahUqikiHb znwYQJtn}=d^U4TB4nEYEOnhRV1*y7x$D&_srRAeU+0rY8vpO$}E06zGrhxqF#A`39 z3PuJy`THqN8ih(*dj}Q0?Ym3N3{&tn{JO4PmwF6CZZTxRd-5-(xT?rm4l9*On+qbC z?ehNi$VT>N@Ij&E;2Z!n!|{G-tg~H7*8DrI;4j(G(yq@HE)mtU@ zZq=t*&7#ZTZp zRQ5}@pw1Ng1S!da0?7O9Ff)molVecw6?=S00g8Hsqy7A56-D&`=V&D!$`o;>$u@SFVcjMj{ufN-$zmt9M z$Q@c#PkTa?=e?Ky%)*=9Z??Z#f2Z+vuHY{2Mn|Fabpsu+%sZ^ujWkGT6XUezxb7X_ zwo4z4?pIq2y&^?hpv)G!8Y{q2pYq>JiP^cJTL!-!L#6{_PeM70pk&t3r=nL5b_5>xos0`_c)N+QeZc zRPR3OK-~-IubyA@R4VV*vvJHqR&7I3f;W#fJ2B}K`BV6o7c}f@$uAUcX zWb2DBNmmp!Z1F>)=kFRE*1f}53K$NezShNmsu59uIT@|?rW%BHxAi8vVXKk8_MNxC z-!eaSgC)bzh?w#9{#(p6&u=(iBDzW7Kk!b(nf4!oq@37(0&C@Ugzvg!RKj80P4=K! zxh~wUtCBQHB$#C1wM-wBGvRX4`}oGK`H;nW?yb(H-EDIWAL81nBf^A1J+qgH)bm71 z-7O~POIkMLw*Ju4$2JKTyswgtZ7@su7~pm3FQ6T#;5+u%aB8c@U}p|;Xcz!E?A~QE z)6V$k3$!Ft(BcQ~&zQv^e#ljFnf}6k`d%ShmL}PaxH~Ro4s!||>Ud-Hm_Ps*Bt&kD z>-=|3v%pk*CIQh)xG9*45DcH;&!VU|Y8WDR`fI=;p1gXgojbhNA`<5E(r5#Sx@v>L zzM)&}K(I~tq!`FVHN-T1yOmg%$=?LBBM2RSXW0E@n6MKO&VP+;n=AK>uZF*D8q#bX z^%qH!&617?R(AS%9=3}e$pDIc46_ts1%5!{xKXH=Q8`Y+;wVw#21>F@z-wYV0B}qO zlN9BfFYLsffQ1NmvhDC5OT}qQRQ8Kz7A4=DO$lQ~N!7&}wCpbClW9l(GpeWb#j&0> zaBOKBL=?-v50uEj8|K5#W~ZKpII6A_9s?t8#~T zr8~`JqKF9yaaqtbGWEUhw1|HsXDaQE{jwjPkG(;`)_W)0R4XAIL!q~P*9a(M0KS*w zygd zcoucA6)WX#Yc?j(%@wTJX|y#4<3Q_^EgS0nSl}zjWY!lE|2kgqvDJ;0N0q)cz}n_W zF3^vyZ&V9FnJVcb0f?^o;*2cgHR~RIe|Z0zV4N8qEG-{Fu?$JCr%L%V`=|#Gp`IJwrJ+((=vPDf2+r{lTqKxKPtIw0y4EnIeZ%D(vz}X2|oh z*sIyXyypaT^`hW+S?aovb|`C<>t$+v!Mytoe$1P<-Y0_2t_)OKXyEij%7$zdd_m3m zhr6+{<|Wt@jky`r<2xR*ZNORFaw5iEs-&J_`{yCfSovnlYGcoJG>k>guRVmn?1DTE z=WSlP*3Tg8A4Wep+0=L7KD&0I$0wL*f=`N;`mSM)13(A6snZn>*2aQ7Jh0Uq!S&Z$ z7Lq#F(u}glKM~@9=Hf$1zeO_3hpYWe#URLnO*G112kihiZzI8iB&Lb1|*_?{> z-D0n-hy~<;^Li#fY~2d%Y2**4MW+PAi+=_syyXZkFA2`2^xXwgUBkD7G(Ca3b#ch`tbszS6#H(MKqKRiGj5qSRTe?a&yTdXY=2PDZ+J~tI* z2s%CQ1wX-pK*tQque{4kA4bl646H3=)(oS^6H;3084acriU(dkWFG}*GoOqQve(wh zK$m#&D*VXt4+@Rr1~E)TKmDAje>N2GbES-&AoJx}1%NT*xP?CIekv}5XXVc`da28d z!+Yt+ErW8$18o)@g_><|fG#qRvq3ZZAzle@9nb5#6}v{e!l~_`Z;-D*I=S<@e}snf z)>z>wkak3*7HqLAoW88i%?4Mp|C60Qu9mCk$F`GZbVh`Xzhaai9op`2*-*Z;JuynV z@rz*ZUs35!s~Zqt&*&|^>k=>a20hGsh5G^OXW=Wrdko-sLdV-`9*I?Xvv1*lUb03n zWL}Y0msj2i5-;32An1_lr};{i&5V7x0>cZN5zBXVBJdM^K`AEjh*%A`w7;UfxNSc1 zM4e%9^@(n>O2c>EKb>d>($aIs0G3&;o52U@5p)LTrr+MVcUbtI8tQBY&i@eVu?n+t z*3he1WRruOz4#=QJe>V8Hs-?i&E%E+B->0HqYv{MGIKxF*eQ431#?!tGv!Yg9vM33 zRx4+qz9PBJAD8o1mpM5D)Z6nGE{r{o-`Hj}W|5B*t}p`(xo;Tt#WlaGUdr7$>zccB zb1CM?<5ykos~BLB3+Upc?iLNti$t2d(cR5T74>V&Tx&ym7uhA%ng96riRUahF)hI$ z2Dv6s+{%d++3S&aYR(e8603t}x|pxlkMAbjyd1jaYx$oFH4-|mxS)z$bmU4{TVc86 z&P*9JZ+Z7{T8Fk5=+4&yz<8|KQHc-%vT6NpBP>3d|5afKsEZ$Ac(YUEU1z|cT{mRQ zIucV-@0;C^bogdl-_M&#KiF(4?sy8Z3Y?>J19W4bOlaDmus@cp_E%3VXX=D0NP-8e zmAs8)*<1);DiW;NTHsh3LjLV$lQ%%K8Sq@8?-hLBoVc{IgFj9RQ1vFA-gG}^Q$Lep zK+WihaWWHka^nnzrApw(t+W^r=Ge8A;3He!;MwiNtzU+3j8s7ylSL09us!@X-Su?P zCB#;pHB~afie`GPw$+xSIbDJnbX~2us8_!4=+@sg&w6qtpJ&WF>Ca28dw}wTj~|=o zTf1ZbP=xMy`Q~a&jY-VdZjTeq^|dtvqoEsOw3Uf zCH3B#)VU=SG8E3~1y-Za=>XkdY^n0Yz(T|+OaO-UeX#|){@GK<0}9t9DniW9%E82p zG<BAy&?rkqjI3iGo;SX@L0o*)VSo*Knv|=v&^I=f`P*n{7 zn>cDzsc{JaeEj%T{?~97$q)1}o(P{EN4<#5nlSDSXGWuSQ`?o#KNiu=JVom=Uc|;E zx2a1OC?Y(AVGv6;8*Fv^nb`6fI!Cec{3fiy#4v=zE|rgj$SM^#GiX15d9 zBpgYU&W1L+^ST|Lr3e+(m|hhAXsu)WBtfSD5*5p7f>b}v-+q#-4WGTUrst2gE9L&s zd*$%WDRqFBbw`*4;GAnM%pEM+oF#D+#M@`4`A4XfI>CKfrf{^QFN2;C;Wo@=cPPaG z^%~gO-QzIveRjn+ZB7#Yh4sw3 zG9YV3#0CK<<{DArmIA@8v!%(9YM1fw8ZJYoxhXdX6x9OYBS0h|EYgUveCv_JR~vNTPu?2b6ZKz?LQfosGdS_tyiKpqWb0)H;kpFJe+T&mx*CuBl zK#u8kBiq9-e|VsUDc7!w3AgW;%QFN5mx?n@lJLg$lF|ohmD1I~MD1lN58N!0G#qE^^U*O=oUoLI3RPET?yuYh&ncuA& zYrCWuT>a4R5IAQG3JOyPxp*_`P>g@SSv~;jtu06xd<#a5aJD9B-{!r$=<)&qbz#+b zvq0(&1x>{{@1-9Ut!Txl%kaWBU|Y}RGA)DPQOLZCa+-@iVUt}uZ3hV1|Mm&kFSuVxJE#L4#adKy%6D^D}lFrN59rUa*L6}*cQwH)Lg zzossr^)}noz^KC9`>x4O=Ztupcae<)Kl8EKPco**ki;3tfgl)dOsmK` zx4NOFQJHcj2iu0j1s#J* zXO=T^H5zJ~yhuIeksi58iJPdESqvy%?IPc$3^Dwo$!m%434R^baI3wVmeWOM-HBoE zVysKeXI5-wqXAB?rV~-{2-3)J$Qg=?dhw|&qTeL(=`3wQ0eE9;S4}#W? zE7j9qJy^F_+{5Zq1hV6Dg|rR40+7&eqY8Oln!aGK`GrEies}bOf3^MRJe7PczQdDc z@yTV;b%s<5mw~85zE3B%D?ii2RHFvOO#lnk8NhSqUc!vX+@b_eL{2HeR-blpiuv4s zK!nY?j+m91x5<)=!3VoZ=bDI$5JPCxm*-(9tPPG^#HJXQtOA~Fo> z5%h01Pq`lyI=)YCVyz9*@nc=O zf^mk>e6F~u6kwM~ZkuBYt?*gl#jlPR39Z!29pGOs@F#qoGPD=n=%nKMY$xMEm2O)Z zs8{^PPYHAgppOK%IKuGVQLZTvX=6UF`txXJWsXO38T9vQ(PE+&s;G(esy(9DwRZE| zf=Tuf+j=|R`tSnza9D_Cn-aDLXtkW_zS#rtGF)j|iaGC3oC6-!rPP+|zVZ}NbnnX) znGm+E_v2e1Vg-R)PTetm>17k^KdlX53dQO2zF=q3V!1ey6nlV#=4>^N6iQ<6q*BRV zr=CKh0Fbm)(Ee8$H2+ZD7C9YiZ zdNj5OL>dP|sC&zVtz~|HmQVYlt!Tlwq@!%IX+LSJ>AS5ksg#7VMNbphu>ivZAWyp} zs6_mA^g|i3)P&cNJ>9g=;5s_~hkv`}>fJ|U?csNUq9t5pgCCoi)NqyjTI!eZbQ~#K z#bockX1bLvfG7k6KN{VSiOE&?Fx2Xkin8f+@3HwAx#>Je(Q$jLE0x$g+0*oz8J{3H z$K_rbyx<_b_IhRjuKIWqygW*Z?&Nd2Qri7ow}O=1rP2c74SfZy<94Y3i@2YW1ty`hjT+bva@T-2H7g`!6%~zR;+QxzZ$a9;a%eRbAag6voyWX|? zY02gd3LN2VFyPG(R2NGZ??YD*8WKr1CZ^rP{Hfo8TF4}BwGPrKY0sWz&wm0J&tJb} zQRKVULOK3GrsH3Bvd0hcnk3Cw5kMhd^_Av#aHNrwrm=y=U}-$YjI#8A12ij`ghkK> z)@cJQe?qKd_Cs%@GAZVz%WQabIB|B@FQYQKaq6eV8XiN;nT%wUL#S1n3qYjkspSBz znqWP!G|$ic*t~G3;0%DUJM$tLwX^rZ7YI_HFYZdqenPLPhId~0^`6x`oN5RpxKV0(;<{~c&1KQSY(LN8+$9Xyr1GQygy{>KEGd!pXi7=bz`*vbR zB|1C6K=Vb8_%w2Q%%)*sia|d$FSKos_5QrCsSzOzz}2HB_ldEn*q>n`%>284!pO4% z1_6y&>%V=KCzz+f%PC#kebU1bw7!N%o-!%#bzjw^%=pN)-PnEcli+1KjPJZ6~T4+95kX9km2Ozl}gd}WKuZ8bDU!X9K zr0)q>xfi~=4@8jaQLgB*5x4ZcNXh34aB8bsi6uH0?uEQIE6O z14^d{pbXV{{u zIfa-80q{AgLa#dRGIDa#L3(mKkVATW*Ngs|6Cqq+1hXj2CHN`c z@q^_#tiEdwY1Ch!2tfTq8$leDft zddRrXguEoYRgu&kU=BH?l%7W6G9H^!uJtmiELiO)*av00sTGs9OS#fPG|36aW4>&OL(%cuF@$L}U*z=)fP2{70p+!OY4 zwgBAzQ(SHVF$!~#_vD6s-?y#o4_9$G)C_l%Y2r~D&uf{ar$A0G-zM6G__J#qGEr>j zbt941wvvjcrm+=Pc%F1>H+5`Lys8n~kcEdZS>eZEA;Yr@3SdAYRtFdWn=|c*7ni=? zm!^vTRHE7~G2@Fco9+KP6&fii<_K)Dh%N#=o-Li36BV^AqMee6%YYXDMqvkg%BGyS z$Ed6o_6goe+Dmul{B*jR$wq&E9$P9(=9wF>dz~i&eGsLm1t^E#FDVq!lsFkRFy?1Z zWhv57$pl_MfyS9XC5-ydl1jXq5Mejv4pDr;#1b8eEJsZjeNV!-E& zv*K8gCmi4?87dS&`i&(qKM-zQRzI2GOIil_cboTBO5=&WCJVpeUr{6lr2h`cLRC$(n49E+l~ZERXS3~MKj4nw!sHISQt8xd z30B;o?XVg*HvqVorTc2mSHKRJ?x-9h2F(zD*r)|<^4Is#MpcQA2E)zG;$CcYtRaoJ z?wXOl{Bmn9{fY`ow|$d4u@|v=&NFmTs6+!=i$CTZt5ygbYTIitgBmEAP8yt5hSlAKw}(;EpgO*uYo!GP*vGEtnF~J(wv8y;OTST4mF>6 zc~n=(V6L)-%#W$LuhRJTIdg{^32byFZbGc@5`79}K(Jf3X7O9^Dun-X>PDsXiG=l% ze7F=0_Q@QvQd!ata146PtZ|uxEYY@D=ZQKo?Hc9)xVF*s@G3*r%RhTLgB&x8_~niC z(5NAKmUm=3DJHD%0P$Mq+t+^?<=1W?p{rS(U50|u zL7MnFK((Q)|GKX}uM##M^teKx=FFWa&#drwI{jn|fk91Xpm;~vkH@+KpmD|fHco4Q zb%!M>wa7AsObr08r_}}wI|xvsHCap^1UTs8&J4-ErRmU}{k$FC{cY?eA*8W)_6R%% zQo9S_bMF4hdHa!8jb8Z+8>rWY`A3`6qJ5Q~oum>4e*6OWaFkN&yOw7-ub(E%RE&z}w<+_cfkyo-F2oba&`mUs6Luw#f^qaa8ej3mhBXx5zN5Wn zoeybzjxw(V*n{Z_4@QR?Ak7nT~y2FZ6T*y~wQ_~&mP|uoUa+>_|l)MeT!l3dL z;C{l(nc-R+FevMt483caf9Jc=usYtXa7+QDCn&GG9JlW)ko&dx z_ls39s{MyExhH#sGhm|#n*BO|R%;3rWEA(K>^`^*W&OYOaTc+%4U`ZH+`)tcoX)~+ zTS5%12w(uX?U${@-kY?1XE+kb`qHomKt~_RHuAqo)gY!Mqp(fB?`K7@LGW7tS1tem zNh_Q6?Q)si9(e5QyecFNNbM^VMt*~;ag`k$uH;SHf;gWAuFQCBjM?B@X#xaCA2m&k zuK;AUQC!M?N-7G6=S|e^&7XsyDx#fUp~+dFZZn)L`$EGQc_(u zOPCb2P!SaP>R?@QFW=+!RM%!T_@LVb7@wFil2x&~*L8CwS`@Yy9VN zU76M@F3!`6~jBc4|=R^>%FTJ1Oh27}9Fm zET;e(OB{ZeZd2>_O8>gAWb;~&#Ejg5!dLGLPSV?z=^Lx7(-DQK#N`e;+ucb`>9SVj zT(HUnu`4aW@?g;*i19(|AwO_g8<*BM>=E?rcV9vHSG_ot)U*j;(liH)x z!{QSw1O&gO0W(&f3}9zgy^j#yngpPwC5g%5qTX@~Xl+QVNxoC#y5ftAefxswNduCn zJljaoxy|tz@8QFXjgT~eL3yW4p=AG(FlrE4GepR+dj8)^qf9pZDz2TJz2F|PBssIW z;n9;3X`b<@u3b6EneAbpl;wjvoAnzc!A=sDtMJbK&hz!D)Psc3yKQqt$PqQi1B=eJxhTfXi1f8Lj56_JD2KUV! zNij!{u0a}+YWnB%&G_T_W^H-<9al5!RjM80QO-W7J7SPKRwA3*7{0pMp93z3yg}{P zjDat=0odX!eT2U_}_VV5lProL@DZ)bi>F*@jzU%9of)2hzbRqVdu1o_L2pJ7RzxPMLTyrL7 zydl=l`RG341E^q6=&VIcZfz^Z1;skoDhU#{uqlXxS04hD!s!9J1#crbA9M2C ziI{zVgykv)C|jFV22(N(w9Z=Bx6Mn*5x7!3OW@gHPOA1I&T_%b@S36@tB zDzhg~uj<=^v-d0C#J!Qfw-fST1oYxxaXbIHaH#TO$gRIFSi-)c7F22$U8t=q?*1n8 z>>CTm*Io_zOk{)TNCmSR({|(ds|H$~1!h@E`amQR}aO zi+(0!&67`qg+2dOeD;N$Zpb=Zy6YsJd@ANv4xpuS=t{22X|sCeRRwx#TtfxYd}r<+D&#wYrYvWq<$K_v(3P-Mwd zkGJdPoI|tI*Gf`ahr4i4~W9 zY&!^83lOA%C20dq{}Py|R_uy1B_R{Oe#I!3pprhKW+IhEIE^Z)wZj0($cp{;B3%E5tvSk-!E_W-{C``>icFJv?HhHfG{I9f&uK0exBdXQ zE9?DZW*gtxXU;1i#}=b`Bo{{$Wqjc+)YMWUy2L-=ZJJSeh9Cu9d|sLfZf`JeCsz z)PtRv^OMSxc86gPadQN<(+@qNL5yH$zP8M3hZoO#ve;lqW3z~ihuC|@-qdN3uMH;L zM~q)Q=fizI^wVLo_2(BRet~Yz!iPVZkS_=+o7fW|ZF9ET|I^-=$3wmMegEXbITZIf zElvsNx|$M_N}|N5b0TX>V>jcp5JFjIFvjR|$`uD?2}zVA9g{8D%_uF7eap^FvNL8Z zV`j`4?(h75oa=er&+ERQ|DNZcXa1^LzQ6DG+25bHom9>DqGEBAeuPh63XR}TNEoBn zNE;0et;EYPV5XW9_K| zBpmVRg4!j!?B=*Zj|wj()82iYjf^bM<`Dss2o!Ol47YmQdAc$K&_ngw{sh+wYy(xvv$z(>w4b}WEq(5kTBNBu047l)Z_f}aejXx zU9u!+h-0mqM4Z7|aKc!J%j1>O0NoU>@5?6_-&bBnCC zP_SgT-TrzTlO763F1GxL5AsSycpVnS-qFj>58FXWdHbRSZ`FkDdhWnj0S>i0yruw* z0_0s(0D3nC%{bRVors|2x|GO(?@EZXNR1dYL%+(>2uXhbT+bu-Hy=mByYv@WE`3#0 zE^W5>HkZw4Two%H1p9{>7PBYxz_wWMoS&224_YXXaHMk#3qc*r7#8uj#@qYQhL6B z_5}Pr`~c*p#ajQ9^d7ZB_rnfwpB0%jV$qwAbciX(h5J1~sS1P&>LjU4TmiD*pzHEY zUR4`Cu{Ko0Y%#k@XqG@EPuJfwTU?x6f74yan;%v{nH{F_+$n`k*T8_A$L|o6$05Ng zj=nZgifSOKo*ed?rpPk%{KU47QQgxxd(66jR&R3^-re|VN;Ed3t{kf>z-5|0XD)AI zW+Gw-gq<&Uv}lsL>=@RXVaew#GBLD7($oxkkLYU~EfEzWcmc}XI`iMABwet*;dWS<;fJgzbVAf?-16T2r_2= zZS`%jD#6|ykp@w;(RwTCM!Cljm39oqun(9?D=@merkyWSw}y{>Xt>`tOB|`ro-!0h zUhE(W)IO=GZe8o2kdH3ioJRY%UFNuPBAVBYN(XD;lrq&rt2f#XWsGxyik$k%lo7Hv z$~b?FR94_a8h-av$0*RqaBmKj@j1D(H>HmEjKVWP9fnzRv$js2+(G+SRIcnC+BeSCv$c@ z>$FUldctK`fJyzguN$trl|D#77LI}Oj)Dd(XfeKPP&@~IaKi6wKSkvMS9bIKBb1*r z=l&8o=8OB++h&H2ZQgb_J$0giI4t}3%R$n@AIf@vfce|Q4|z_zu8Q$RBQ7eCag?%p zm=3Q7vzm&CSjGt`OEvFTd)1jlZmM{;2cJ;3KvQ?Vr39(9a?-}HA`Z%7Q2a8T00bfN zuq#woxfO~~c`YduBi8W$=a-wuwlV-I;&k28f5PXxeJR{E_4w+bIQ!Dm1OhtB9+g#v zse}JZrtg3FC$dFT(U%AhHm^8j0B_h7VZdNB!vW##rmq)nCaEC2b=T`&UUwzp^a71m z)D(Sq!v+4|{}*7c71H&Wa_aWY`F`r}Kpy_v*AygF-SSp?Yt(y_Hl?kr-IhWofbrVs zr+fz$Ntntq-h9?uU|;(fe*zve03;$wi!@;>*P56pU>e1acJz8;T*CC5XSk zq^5E$>>}qY(!RZ3*sbFPMHDzZpK4K=K_C}HJ+hgg+t{+J7gH9b)jUy^DYD_;1}=Q_RBaWPj8ad{lo5E)5L z(+)hrMwzXB8edNv!-MY#{011aYx@hGr6U{kEMW1{Biv)J?u*}+IHsw+IwFXdhNh~# zmM4EaTEal`tGno)U~tB7j;mhhZ(fMn~XPUMr5`h?AKS6D$-_tTd$jon(thRBNngQP z+Q{b=ro%$6dpK;8SFqpg@LtuOG~k_FS}P*Dv^C%d>Q5EPo{Ic-o*CZ(c!Wz>>ryWm?@T{1t6 zu8POft4?s|d*jeguL0tqgh5K6g0d<#t!(rY&=>1g)b=j#mTy0_)k~o`P(zsxqa2Rm9Mqlb3c5qLxPGd^6Ciw!62b|_12Y} z-K>YYTOxlRaZZ9Yl7SpUn;g!GQ6;-^xRNpyZ}QB;1+}&5cWKMLxV_qU0-81NsD_V8 zMgsC876|?9!};%v6o$fx6KNt*R_Z3kWd7U(_jk?n!usJPa&W)YNP2>5-Rhpn;9BO%9THHOaJ3v z20G(5>BuQvu*u1&kU9P|iqOh61b4MX#i4D}i;2iT`DEB&zV%B1s$u*ppkH+5`i}8` zGy~yeVwC+~ac%oFJZsNo-Vr_`Jng7g4wFxl=Ta$(gSskFHqxGYU zjaRP9ZEn=T&-4@{PzG3B1&X|1$gMXD7kzCh#w3X|6U@Hot06BZwSCjPgS1t;JGu4Ixdq^ zUW8675!V-sZ6mKOWBzcbyM=7-|JmmBVc|r+65xHNkpH+(37RcXu-;ok^&WVIv*nVa zc5dF{P%lZ|uy@$OQXUB9Zt92fNkTTTU7x-LoA@=YQgR<(eC58aHjFiWzfH&-_t3*z z+90QLcuQ7p9ti2{dN?#<6kvMp?ZMx)J;Whc_p%1^ZL>v_)>npwpNAzAZIh+|0#@*RFo3DQi*mO2Bg#`J02Lh<$xG~d^}$|jT8^fL*oA8#GM z`f{oRX{ZJ_`Dt3QIpGx_lT+yHwBk)HWqH@Du~#o@-|u=_?rUX%qmE(dKg8K>N9*?~ z5m#w?w9>B+&j{hm2=>^}UOU{B+moR`%A;lqXPn|aoJ&GtyXHb5XqT1vZv7_AwC6*- zW(a44gGRy4w0SVHd~Qnxt5dJAuiLe<0u91Pg*IR1NbR+SMHwmO&6@0wW|3R?M4-$G z3cmSoqWqi-49P*4nXEzF)Y6XAcqD5G@|z~&Je`kf-Ou&ta=K8K6+Lpxze0KI6OAO; zIy~vZLtk!;P{NO%-$Ah{%5#J^X8T)piTj z7WnI8JW^o)kE0mBRQ2^e4S{eU5aG(FnW3~-(GpNui`TF_EM3a3IkSxS5)sy^0JI#A zGos)X|MC#p9YNy1xFd`Xa=fX5Y$JJnIG`x54%kPSG#R~cOL`j=_%Gq2F8m8t-}}mA zVfyw@c1uDe8%9W^H2eSr_W|RHGE&!*z9V*nI0m*F6`$^c7A|NCN&g4P;Y#JAK%1AF zbKa6dHA%}9ei*19T~mxZ^PB^Ig>c1!O@-s02T@L3kjtGlIgnIXtnH{GgH%BX8YY?qt!`+m_jhn=&ojle= znCr&izK8lQTCuA)TpTS|eqP4OR<^6sfrjOG_u*~GPj%!rv$T-o2ip_Qc1oBg&h=Q} zN=5neBwJumX&N&+i;vtsuG75ZsvvS~_>~#g((B>O{mD zDfb^qf0hiQvFJCCwO&!$_Vg5flh<3l{#3^-p`1>2!b$zj=G6N0Gal+8v#{6aJO6ds zG!dm%qG!oEbZt3-TRIvaPhG!HP1!@vH&Zz5yc)N+w^_4WzzgsS)-m%Z-ReDJ7QPk< z(Bw6tzbN(A-{Dy-d17;EGC0kQ(}2Pia| zRUc)xXj&L%&|m@(nQ4`IdfVb>N2&pvi%S^01=SGsQ~;bRgA}X^s-Yo0CjXN3R9+qv z6TZm5-yy>Ac%Wc)n~_NZU5ZU|C4jC){mfvVd zz8R?6S<89v=QkT1p@pOe?qaIEFSf8i%OYqbO_V7ivayx==M#vnMm0J6ByZT0@P#a~ zk$tvLqRJeWGv&MNndNd*N)VbqQt+zB^*o0A;*Z9s{f1fWdu?II&HNY0zp=^*g6^yD zQI$2dz$^yTyL3tJTRSdB%l#l*}^%)b?4qhl!r{V_lhZQrpPKc7N@~D4d*FIekmrm2 zJVjID*i%wpslkzS^nQRmAefHK3J(E@PS#~2P5_8OV?7EFn5l&6Uo9ba*S>Y3GZ>#n zB$Q!?)0btfgsz$$`w=jRjd_^ZCupx)Cyecr(FurYU9?IsP3N9kp0t-LyyV(peHE{8 zuqED*~c4g-koAXZp{b@wU@d ?TMZvX7m*`^i6?!w8{}!U$~6!rWu$s z)=Do<6DN92bJ#KKry4TO`C^|@oH;8&9+@CWYxsg&d!LMz$%;DA%Isdxk?KS2-5yZ0 z{bgEMzka}Mae`3W^^#LM7uQd<$L(%m87{sn4R?*Os$Ooq^#H|N%K*0|# zm@hiajLKo>*Pc%}J+Fs0e7rwoZ7^G}^s8P=V(p4w0B7k6$R=fd2m91YgC4i}25s@- z3lqs5gEFnH&blWGG>EFfHv*d(wMpU>eJWziKFQ+7i#S$%n{374@#PLCU58A`*|!Bc z2>04m#46INq@o#p#qvf=V@`20P!@u`E5q_<+yUMbeR~JOi+W#=WqY1o8{cZ$Qu%QxXjA*c`yQ=tlqG+e7r{TjwM=|ALbd_S5YW zhEG10oKnm(g$GL;iQG0&cZgo|x8CF{-@M(k5uUkitFl|1DZ$G%Z#~Qjf~Gc0DsS9O zj(StZbTz!wopimy<6-0`2p-&|wl~uA&iOraJPqA|v#0=1Y0(G%7D|&W@V2IoZp2c@ zi|$}5x@Rp9k-Pyh%XkGPGp7G+gfFav0sZY(@6_&e;eKznLYzwdE{n&%%CukI2rX0H z91wl{WczgKdWFjQgF?d;-23swc%zR?oxM> zC<(Q)aaDuMtNv#v@|HHtvAaO-u0jB7htJ^eo^ zW{JTU#v`vfb8MSud@_EQvDqZl$jD*_0YwmjAbJ6Zss?bedp2OU^(K|ISdZNUk_VBg z-HneuLg`fij#|=2ykGAGDhovj+4&A5r|UZpLxJ%dbF@qCmW*I+BwmVlh^Mc*u}{0M z*eO5)SVW)1>UjR#uSxIAl;VDtIv4~0SSQR9%)IrFwQ6%BBn1yK>Gkxe`!fEiqfx|` zjXP`l{q^{t+*cr^eAfybh}W_yCz}@~cEH%lCrw=Ct9J2H>Lf@C_BH^KeVh%~Apujp z@y28x)kYb6w|a_Q>7%N>4-6HGT>d6bU0|@C-?OuyN6uExCK*MjAahu(`H!3=s^_Uy z(VRw(!iEe~9%BEY(o(T4fh+rNMVqy`G3>Ae8)jxbxDk(3mHaCfukzVn^M@px4j54qcFP6XSjWo|rc0eVOw}>+hOOmyX$Eb|i+yj@I`n zH~2N!wXm}D(~^A%AJ1V*`890F0Di$?Bpkope%iMwkCK^7Qf2Xa_fQBDCy-FP$_Jfe=R>z}w7YS*Y46xhnT=YGi%Hj?TlQ0IbKGs~^Est2Y-`DoIqXojj_b%d0wRf= z_T#A|-s8c9mz-|0jSo39Lm-lDC&2T3GGF}Qom)F^=GdQmnz+AawmH>eqnM4nZ`&;p zJ{)aVyY3i6f^(lUfw?q^Y5f*gsEE!z*TOf_JV&a9NE=y&tLi>GbsBB7pK2yq1w=sJ zu)PCZ%2J1_&W6~#uV`ovMYYQ-LEak`;>c|WZ%o|25(?s+s?FN|;KdJzaL(5iB9=Gq z`k9!=tPdA|)FDEMAOdPypM;jbNrA3clYYsm&7KVJXJ0Js+FO+xRgB}|Q?}*bhzU%b zmI8k$Bc4FF;Xb{hR>DRuFt(yfQia%k;{@Qo2KR+YB0v>LszP#FRnuQUB_2Jp5X!ga-W#r{Lq7)cAmV>;4bRY^G9Zb$-{G-&6 z2zb)$NyGc<`%CNWcMGNSuSjpI<=$UnLT&gOK=$Hc*()(m`G;=Ch%?71SSlr7pl7%K z&Y@Ip!+yBr+r9~*cq*nobM~x{+l?!q?!}dRGK@tPPNI`g(Qf!sHqT#tlc!&Li&5h# z<$H^>oUU>qvUfOI(B=&q=ODw)E7W~lD^M=^?Y77EGkNiCE~Vahg-tDf$Rl_8Ms7@y zBd0AQje<`$ia=mkV)CpPEqTel-R#~x*9a9@olWNLef>F3soHMKB%;R(PBbU$mr58Z@V9i~UN;F4g^5ZZ6xjwaxMM);j|!j2zf z)BLS0I%_cbvxhG&;XgTygXXh$QovYPZc5(8ZG^8v%|?=mSI!ubD0wDhzW9xNOMmr5U?{sq;5{IOAB`8?Qfi@0^=S+H23MZ zmfL0RyBIo}Edu56TR%y8(@D}LqB<}_(Q$b6V-nk2(udRSQk`6es~%x!+sx_8nXfw) zT{2$FylsTn)gWbg+z;=E^?ZD>^Mupt#2obc-ssI3K!WX!d@gNR&QvLrtHEaXQ}<)b z*90+Mmse+qOZbW@41ni5!5vA~Mh7jaZdy+Nvdb8D{yICf@N7TMze94?yn`a9>xR=C z`n#XmG(Dnu-t`;)=o$MFAQ%h5_PQZ>g@$kMI*!l+bbP8#FT3f^<$;k;AW4Y(KB~}M zDq+3m9J|-PmOT7oXf+MjKh-<91*oA|Sj5z{cetBOQ@lBh@EA&fLgwop$-ced(|lMu z)O2>_-Ssb$()tF~fL5s(BWNF(B-0ukIlkJ8Ej`_(b0HeKes4I7lHnBc@cdqDI z8E?Lf Date: Fri, 29 May 2020 21:25:09 -0500 Subject: [PATCH 7/7] Murasama changes/refactor --- Items/Weapons/Melee/Murasama.cs | 20 +++-- Projectiles/Melee/MurasamaSlash.cs | 121 +++++++++++++++-------------- 2 files changed, 70 insertions(+), 71 deletions(-) diff --git a/Items/Weapons/Melee/Murasama.cs b/Items/Weapons/Melee/Murasama.cs index 1382bf4833..731ec4afcf 100644 --- a/Items/Weapons/Melee/Murasama.cs +++ b/Items/Weapons/Melee/Murasama.cs @@ -6,6 +6,8 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using Terraria.ID; + namespace CalamityMod.Items.Weapons.Melee { public class Murasama : ModItem @@ -24,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee { item.height = 128; item.width = 56; - item.damage = 999; + item.damage = 20001; item.crit += 30; item.melee = true; item.noMelee = true; @@ -43,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Melee Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 14)); } - private Rectangle getCurrentFrame() + internal Rectangle GetCurrentFrame() { //0 = 6 frames, 8 = 3 frames] int applicableCounter = frame == 0 ? 36 : frame == 8 ? 24 : 6; @@ -53,25 +55,21 @@ namespace CalamityMod.Items.Weapons.Melee frameCounter = -1; frame = frame == 13 ? 0 : frame + 1; } - - //if (!Main.gamePaused) - //{ - frameCounter++; - //} + frameCounter++; return new Rectangle(0, item.height * frame, item.width, item.height); } public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) { - Texture2D tex = ModContent.GetTexture(Texture); - spriteBatch.Draw(tex, position, getCurrentFrame(), Color.White, 0f, origin, scale, SpriteEffects.None, 0); + Texture2D texture = ModContent.GetTexture(Texture); + spriteBatch.Draw(texture, position, GetCurrentFrame(), Color.White, 0f, origin, scale, SpriteEffects.None, 0); return false; } public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) { - Texture2D tex = ModContent.GetTexture(Texture); - spriteBatch.Draw(tex, item.position - Main.screenPosition + new Vector2(), getCurrentFrame(), Color.White, 0f, new Vector2(), 1f, SpriteEffects.None, 0); + Texture2D texture = ModContent.GetTexture(Texture); + spriteBatch.Draw(texture, item.position - Main.screenPosition, GetCurrentFrame(), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0); return false; } diff --git a/Projectiles/Melee/MurasamaSlash.cs b/Projectiles/Melee/MurasamaSlash.cs index c566e2165b..9792dc8e3b 100644 --- a/Projectiles/Melee/MurasamaSlash.cs +++ b/Projectiles/Melee/MurasamaSlash.cs @@ -12,7 +12,19 @@ namespace CalamityMod.Projectiles.Melee { public int frameX = 0; public int frameY = 0; - public int currentFrame => frameY + frameX * 14; + + public int CurrentFrame + { + get => frameX * 7 + frameY; + set + { + frameX = value / 7; + frameY = value % 7; + } + } + + // A "slash" is only present during 2 specific frames (ones with a slash effect) right before they transition to the next frame. + public bool Slashing => CurrentFrame % 7 == 0 && projectile.frameCounter % 3 == 2; public override void SetStaticDefaults() { @@ -21,8 +33,8 @@ namespace CalamityMod.Projectiles.Melee public override void SetDefaults() { - projectile.width = 318; - projectile.height = 262; + projectile.width = 236; + projectile.height = 180; projectile.friendly = true; projectile.penetrate = -1; projectile.tileCollide = false; @@ -35,11 +47,11 @@ namespace CalamityMod.Projectiles.Melee public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { - Rectangle frame = new Rectangle(frameX * projectile.width, frameY * projectile.height, projectile.width, projectile.height); - SpriteEffects spriteEffects = SpriteEffects.None; - if (projectile.spriteDirection == -1) - spriteEffects = SpriteEffects.FlipHorizontally; - spriteBatch.Draw(Main.projectileTexture[projectile.type], projectile.Center - Main.screenPosition, frame, Color.White, projectile.rotation, projectile.Size / 2, 1f, spriteEffects, 0f); + Texture2D texture = Main.projectileTexture[projectile.type]; + Vector2 origin = texture.Size() / new Vector2(2f, 7f) * 0.5f; + Rectangle frame = texture.Frame(2, 7, frameX, frameY); + SpriteEffects spriteEffects = projectile.spriteDirection == 1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture, projectile.Center - Main.screenPosition, frame, Color.White, projectile.rotation, origin, 1f, spriteEffects, 0f); return false; } @@ -48,31 +60,21 @@ namespace CalamityMod.Projectiles.Melee Player player = Main.player[projectile.owner]; //Frames and crap - projectile.frameCounter += 1; - if (projectile.frameCounter % 5 == 0) + projectile.frameCounter++; + if (projectile.frameCounter % 3 == 0) { - frameY += 1; - if (frameY >= 7) - { - frameX += 1; - frameY = 0; - } + CurrentFrame++; if (frameX >= 2) - { - frameX = 0; - frameY = 0; - } + CurrentFrame = 0; } - //Play the droning noise - projectile.soundDelay--; - if (projectile.soundDelay <= 0) + // Play a "droning" noise every so often. + if (Slashing) { Main.PlaySound(SoundID.Item15, projectile.Center); - projectile.soundDelay = 24; } - //Create light and dust + // Create idle light and dust. Vector2 origin = projectile.Center + projectile.velocity * 3f; Lighting.AddLight(origin, 3f, 0.2f, 0.2f); if (Main.rand.NextBool(3)) @@ -82,58 +84,57 @@ namespace CalamityMod.Projectiles.Melee Main.dust[redDust].position -= projectile.velocity; } - Vector2 playerPos = player.RotatedRelativePoint(player.MountedCenter, true); + Vector2 playerRotatedPoint = player.RotatedRelativePoint(player.MountedCenter, true); if (Main.myPlayer == projectile.owner) { if (player.channel && !player.noItems && !player.CCed) - { - float scaleFactor6 = 1f; - if (player.ActiveItem().shoot == projectile.type) - { - scaleFactor6 = player.ActiveItem().shootSpeed * projectile.scale; - } - Vector2 direction = Main.MouseWorld - playerPos; - direction.Normalize(); - if (direction.HasNaNs()) - { - direction = Vector2.UnitX * (float)player.direction; - } - direction *= scaleFactor6; - if (direction.X != projectile.velocity.X || direction.Y != projectile.velocity.Y) - { - projectile.netUpdate = true; - } - projectile.velocity = direction; - } + HandleChannelMovement(player, playerRotatedPoint); else - { projectile.Kill(); - } } - //Rotation - float rotationAmt = 0f; - if (projectile.spriteDirection == -1) - { - rotationAmt = MathHelper.Pi; - } - projectile.rotation = projectile.velocity.ToRotation() + rotationAmt; - player.itemRotation = (float)Math.Atan2((double)(projectile.velocity.Y * (float)projectile.direction), (double)(projectile.velocity.X * (float)projectile.direction)); + // Rotation and directioning. + float velocityAngle = projectile.velocity.ToRotation(); + projectile.rotation = velocityAngle + (projectile.spriteDirection == -1).ToInt() * MathHelper.Pi; + projectile.direction = (Math.Cos(velocityAngle) > 0).ToDirectionInt(); - projectile.position.Y = playerPos.Y - projectile.height / 2f; - projectile.position.X = playerPos.X - ((projectile.width / 2f) * ((projectile.spriteDirection == -1) ? 1.5f : 0.5f)); + // Positioning close to the end of the player's arm. + projectile.position = playerRotatedPoint - projectile.Size * 0.5f + velocityAngle.ToRotationVector2() * 80f; - //direction + // Sprite and player directioning. projectile.spriteDirection = projectile.direction; player.ChangeDir(projectile.direction); - //Prevents the projectile from dying + + // Prevents the projectile from dying projectile.timeLeft = 2; - //Channel weapon shit + + // Player item-based field manipulation. + player.itemRotation = (projectile.velocity * projectile.direction).ToRotation(); player.heldProj = projectile.whoAmI; player.itemTime = 2; player.itemAnimation = 2; } + public void HandleChannelMovement(Player player, Vector2 playerRotatedPoint) + { + float speed = 1f; + if (player.ActiveItem().shoot == projectile.type) + { + speed = player.ActiveItem().shootSpeed * projectile.scale; + } + Vector2 newVelocity = (Main.MouseWorld - playerRotatedPoint).SafeNormalize(Vector2.UnitX * player.direction) * speed; + + // Sync if a velocity component changes. + if (projectile.velocity.X != newVelocity.X || projectile.velocity.Y != newVelocity.Y) + { + projectile.netUpdate = true; + } + projectile.velocity = newVelocity; + } + public override Color? GetAlpha(Color lightColor) => new Color(200, 0, 0, 0); + + // You could possibly mess with the local immunity, but I personally prefer this method since it's actually specific. + public override bool CanDamage() => Slashing; } }