diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 9e5a570db8..bc4a0f619b 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -2892,11 +2892,11 @@ namespace CalamityMod.CalPlayer //because of ordering, if they do not have the cooldown, it will not check the projectile array. Likewise if there are no bosses alive. //Furthermore, Enumerable#Any is lightweight and returns immediately if a single object matches it's predicate if (!Player.HasCooldown(Cooldowns.ElysianGuard.ID) || - (!Main.projectile.Any(proj => proj.active && proj.owner == Main.myPlayer && proj.type == ModContent.ProjectileType()))) + Player.ownedProjectileCounts[ModContent.ProjectileType()] == 0) { GeneralScreenShakePower = 3.5f; blazingCoreParry = 30; - SoundEngine.PlaySound(SoundID.DD2_CrystalCartImpact); + SoundEngine.PlaySound(BlazingCore.ParryActivateSound, Player.Center); var mySourceIsIMadeItUp = Player.GetSource_FromThis(); int blazingSun = Projectile.NewProjectile(mySourceIsIMadeItUp, Player.Center, Vector2.Zero, ModContent.ProjectileType(), 0, 0f, Player.whoAmI, 0f, 0f); Main.projectile[blazingSun].Center = Player.Center; @@ -5881,13 +5881,13 @@ namespace CalamityMod.CalPlayer { if (!Player.HasCooldown(ElysianGuard.ID)) { - Player.GiveIFrames(45); + Player.GiveIFrames(60, true); blazingCoreEmpoweredParry = true; modifiers.SetMaxDamage(1); //ONLY REDUCE DAMAGE IF NOT ON COOLDOWN modifiers.DisableSound(); //prevents hurt sound from playing, had no idea this was a thing } - SoundEngine.PlaySound(SoundID.Shatter); + SoundEngine.PlaySound(BlazingCore.ParrySuccessSound, Player.Center); blazingCoreSuccessfulParry = 60; Player.AddCooldown(ElysianGuard.ID, 60 * 30, false); //cooldown is frames in seconds multiplied by the desired amount of seconds } diff --git a/Items/Accessories/BlazingCore.cs b/Items/Accessories/BlazingCore.cs index 4690e8915c..b3214c07ce 100644 --- a/Items/Accessories/BlazingCore.cs +++ b/Items/Accessories/BlazingCore.cs @@ -17,6 +17,9 @@ namespace CalamityMod.Items.Accessories private static float offset = 0f; + public static readonly SoundStyle ParryActivateSound = new("CalamityMod/Sounds/Item/BlazingCoreParryActivate") { Volume = 0.7f}; + public static readonly SoundStyle ParrySuccessSound = new("CalamityMod/Sounds/Item/BlazingCoreParry") { Volume = 0.6f}; + public override void SetStaticDefaults() { Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 6)); diff --git a/Localization/en-US/Mods.CalamityMod.Keybinds.hjson b/Localization/en-US/Mods.CalamityMod.Keybinds.hjson index a7c6bfb367..b37414be9f 100644 --- a/Localization/en-US/Mods.CalamityMod.Keybinds.hjson +++ b/Localization/en-US/Mods.CalamityMod.Keybinds.hjson @@ -12,4 +12,4 @@ AdrenalineMode.DisplayName: Adrenaline Mode RageMode.DisplayName: Rage Mode NormalityRelocator.DisplayName: Normality Relocator BlazingCoreParry.DisplayName: Blazing Core Parry -GravistarSabatonHotkey.DisplayName: Gravistar Sabaton Hotkey +GravistarSabatonHotkey.DisplayName: Gravistar Sabaton Hotkey \ No newline at end of file diff --git a/Sounds/Item/BlazingCoreParry.ogg b/Sounds/Item/BlazingCoreParry.ogg new file mode 100644 index 0000000000..b9b01e6e98 Binary files /dev/null and b/Sounds/Item/BlazingCoreParry.ogg differ diff --git a/Sounds/Item/BlazingCoreParryActivate.ogg b/Sounds/Item/BlazingCoreParryActivate.ogg new file mode 100644 index 0000000000..0cc96a8739 Binary files /dev/null and b/Sounds/Item/BlazingCoreParryActivate.ogg differ