diff --git a/Items/Armor/LunicCorps/LunicCorpsBoots.cs b/Items/Armor/LunicCorps/LunicCorpsBoots.cs index fc4efc065f..c51008b5fe 100644 --- a/Items/Armor/LunicCorps/LunicCorpsBoots.cs +++ b/Items/Armor/LunicCorps/LunicCorpsBoots.cs @@ -31,8 +31,8 @@ namespace CalamityMod.Items.Armor.LunicCorps public override void AddRecipes() { CreateRecipe(). - AddIngredient(ItemID.ChlorophyteBar, 8). AddIngredient(8). + AddIngredient(ItemID.ChlorophyteBar, 8). AddTile(TileID.LunarCraftingStation). Register(); } diff --git a/Items/Armor/LunicCorps/LunicCorpsHelmet.cs b/Items/Armor/LunicCorps/LunicCorpsHelmet.cs index 8af73b7b36..a5584887f4 100644 --- a/Items/Armor/LunicCorps/LunicCorpsHelmet.cs +++ b/Items/Armor/LunicCorps/LunicCorpsHelmet.cs @@ -140,10 +140,10 @@ namespace CalamityMod.Items.Armor.LunicCorps public override void AddRecipes() { CreateRecipe(). - AddIngredient(ItemID.ChlorophyteBar, 6). - AddIngredient(6). - AddIngredient(ItemID.Glass, 20). AddIngredient(ItemID.NightVisionHelmet). + AddIngredient(6). + AddIngredient(ItemID.ChlorophyteBar, 6). + AddIngredient(ItemID.Glass, 20). AddTile(TileID.LunarCraftingStation). Register(); } diff --git a/Items/Armor/LunicCorps/LunicCorpsVest.cs b/Items/Armor/LunicCorps/LunicCorpsVest.cs index 1dcd4de647..44875bc88f 100644 --- a/Items/Armor/LunicCorps/LunicCorpsVest.cs +++ b/Items/Armor/LunicCorps/LunicCorpsVest.cs @@ -31,9 +31,9 @@ namespace CalamityMod.Items.Armor.LunicCorps public override void AddRecipes() { CreateRecipe(). - AddIngredient(ItemID.ChlorophyteBar, 11). - AddIngredient(11). AddIngredient(). + AddIngredient(11). + AddIngredient(ItemID.ChlorophyteBar, 11). AddTile(TileID.LunarCraftingStation). Register(); } diff --git a/Items/Weapons/Magic/VeeringWind.cs b/Items/Weapons/Magic/VeeringWind.cs index 03dc148b67..c052a84763 100644 --- a/Items/Weapons/Magic/VeeringWind.cs +++ b/Items/Weapons/Magic/VeeringWind.cs @@ -42,42 +42,37 @@ namespace CalamityMod.Items.Weapons.Magic public override bool CanUseItem(Player player) { if (player.altFunctionUse == 2) - { - Item.useTime = Item.useAnimation = 50; - Item.knockBack = 2f; Item.UseSound = SoundID.Item43; - Item.shootSpeed = 6f; - } else - { - Item.useTime = Item.useAnimation = 25; - Item.knockBack = 10f; Item.UseSound = SoundID.Item66; - Item.shootSpeed = 12f; - } return base.CanUseItem(player); } + public override float UseSpeedMultiplier(Player player) + { + if (player.altFunctionUse == 2) + return 0.5f; + return 1f; + } + + public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback) + { + if (player.altFunctionUse == 2) + { + type = ModContent.ProjectileType(); + knockback *= 0.2f; + velocity *= 0.5f; + } + } + public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { int totalProjectiles = 24; - if (player.altFunctionUse == 2) + for (int i = 0; i < totalProjectiles; i++) { - for (int i = 0; i < totalProjectiles; i++) - { - Vector2 waveVelocity = ((MathHelper.TwoPi * i / (float)totalProjectiles) + velocity.ToRotation()).ToRotationVector2() * velocity.Length() * 0.5f; - Projectile.NewProjectile(source, position, waveVelocity, ModContent.ProjectileType(), damage, knockback, Main.myPlayer); - } + Vector2 waveVelocity = ((MathHelper.TwoPi * i / (float)totalProjectiles) + velocity.ToRotation()).ToRotationVector2() * velocity.Length() * 0.5f; + Projectile.NewProjectile(source, position, waveVelocity, type, damage, knockback, Main.myPlayer); } - else - { - for (int i = 0; i < totalProjectiles; i++) - { - Vector2 waveVelocity = ((MathHelper.TwoPi * i / (float)totalProjectiles) + velocity.ToRotation()).ToRotationVector2() * velocity.Length() * 0.5f; - Projectile.NewProjectile(source, position, waveVelocity, type, damage, knockback, Main.myPlayer); - } - } - return false; } diff --git a/Items/Weapons/Magic/VividClarity.cs b/Items/Weapons/Magic/VividClarity.cs index 260fd73650..6ea7a62aea 100644 --- a/Items/Weapons/Magic/VividClarity.cs +++ b/Items/Weapons/Magic/VividClarity.cs @@ -4,6 +4,7 @@ using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -13,9 +14,12 @@ namespace CalamityMod.Items.Weapons.Magic public class VividClarity : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + + public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/VividClarityShoot"); + public static readonly SoundStyle BeamSound = new("CalamityMod/Sounds/Item/VividClarityBeamAppear"); public override void SetStaticDefaults() { - Item.staff[Item.type] = true; + Item.staff[Item.type] = true; } public override void SetDefaults() @@ -32,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.knockBack = 7.5f; Item.value = CalamityGlobalItem.Rarity15BuyPrice; - Item.UseSound = SoundID.Item60; + Item.UseSound = UseSound; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 6f; diff --git a/Items/Weapons/Summon/MirrorofKalandra.cs b/Items/Weapons/Summon/MirrorofKalandra.cs index 2ce123a592..099f3e0211 100644 --- a/Items/Weapons/Summon/MirrorofKalandra.cs +++ b/Items/Weapons/Summon/MirrorofKalandra.cs @@ -90,9 +90,9 @@ namespace CalamityMod.Items.Weapons.Summon public override void AddRecipes() { CreateRecipe(). + AddIngredient(ItemID.MagicMirror). AddIngredient(10). AddIngredient(10). - AddIngredient(ItemID.MagicMirror). AddCondition(Condition.NearShimmer). Register(); } diff --git a/Projectiles/Magic/VeeringWindAirWave.cs b/Projectiles/Magic/VeeringWindAirWave.cs index 1d4001bc31..c247a336ef 100644 --- a/Projectiles/Magic/VeeringWindAirWave.cs +++ b/Projectiles/Magic/VeeringWindAirWave.cs @@ -27,6 +27,8 @@ namespace CalamityMod.Projectiles.Magic Projectile.extraUpdates = 1; Projectile.timeLeft = 45; Projectile.DamageType = DamageClass.Magic; + Projectile.usesIDStaticNPCImmunity = true; + Projectile.idStaticNPCHitCooldown = 10; } public override void AI() diff --git a/Projectiles/Magic/VeeringWindFrostWave.cs b/Projectiles/Magic/VeeringWindFrostWave.cs index 99984cef2e..0826cb2cb9 100644 --- a/Projectiles/Magic/VeeringWindFrostWave.cs +++ b/Projectiles/Magic/VeeringWindFrostWave.cs @@ -27,6 +27,8 @@ namespace CalamityMod.Projectiles.Magic Projectile.penetrate = -1; Projectile.timeLeft = 90; Projectile.DamageType = DamageClass.Magic; + Projectile.usesIDStaticNPCImmunity = true; + Projectile.idStaticNPCHitCooldown = 10; } public override void AI() diff --git a/Projectiles/Magic/VividBeam.cs b/Projectiles/Magic/VividBeam.cs index 21bd6862ae..160a7d12a1 100644 --- a/Projectiles/Magic/VividBeam.cs +++ b/Projectiles/Magic/VividBeam.cs @@ -1,7 +1,9 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Magic; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.Audio; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { @@ -27,6 +29,7 @@ namespace CalamityMod.Projectiles.Magic { if (!initialized) { + SoundEngine.PlaySound(VividClarity.BeamSound, Projectile.Center); initialized = true; float dustAmt = 16f; int d = 0; diff --git a/Projectiles/Melee/PwnagehammerProj.cs b/Projectiles/Melee/PwnagehammerProj.cs index 6debc636c5..6bd488a6e1 100644 --- a/Projectiles/Melee/PwnagehammerProj.cs +++ b/Projectiles/Melee/PwnagehammerProj.cs @@ -13,8 +13,8 @@ namespace CalamityMod.Projectiles.Melee public new string LocalizationCategory => "Projectiles.Melee"; public override string Texture => "CalamityMod/Items/Weapons/Melee/Pwnagehammer"; - public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/PwnagehammerSound") { Volume = 0.16f, PitchVariance = 0.16f }; - public static readonly SoundStyle HomingSound = new("CalamityMod/Sounds/Item/PwnagehammerHoming") { Volume = 0.3f }; + public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/PwnagehammerSound") { Volume = 0.8f, PitchVariance = 0.16f }; + public static readonly SoundStyle HomingSound = new("CalamityMod/Sounds/Item/PwnagehammerHoming"); public override void SetStaticDefaults() { diff --git a/Sounds/Item/PwnagehammerHoming.ogg b/Sounds/Item/PwnagehammerHoming.ogg index 808b8619cf..e7025c3d4d 100644 Binary files a/Sounds/Item/PwnagehammerHoming.ogg and b/Sounds/Item/PwnagehammerHoming.ogg differ diff --git a/Sounds/Item/PwnagehammerSound.ogg b/Sounds/Item/PwnagehammerSound.ogg index d27268a073..bfb887649d 100644 Binary files a/Sounds/Item/PwnagehammerSound.ogg and b/Sounds/Item/PwnagehammerSound.ogg differ diff --git a/Sounds/Item/VividClarityBeamAppear.ogg b/Sounds/Item/VividClarityBeamAppear.ogg new file mode 100644 index 0000000000..4cc1eae2fc Binary files /dev/null and b/Sounds/Item/VividClarityBeamAppear.ogg differ diff --git a/Sounds/Item/VividClarityShoot.ogg b/Sounds/Item/VividClarityShoot.ogg new file mode 100644 index 0000000000..29632e78a7 Binary files /dev/null and b/Sounds/Item/VividClarityShoot.ogg differ