diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 15ed5177a4..fe8964ca63 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -2070,6 +2070,7 @@ namespace CalamityMod.NPCs.Yharon int direction = (targetData.Center.X > vectorCenter.X) ? 1 : -1; npc.velocity = new Vector2(direction, 0f) * fireballBreathPhaseVelocity; npc.direction = npc.spriteDirection = direction; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonFire"), npc.Center); } if (npc.ai[1] >= fireballBreathTimer) @@ -2131,6 +2132,7 @@ namespace CalamityMod.NPCs.Yharon npc.rotation += pie; npc.velocity = vector6 * splittingFireballBreathPhaseVelocity; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonFire"), npc.Center); } else { diff --git a/Sounds/Custom/YharonFire.cs b/Sounds/Custom/YharonFire.cs new file mode 100644 index 0000000000..41c010f6b6 --- /dev/null +++ b/Sounds/Custom/YharonFire.cs @@ -0,0 +1,18 @@ +using Microsoft.Xna.Framework.Audio; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Sounds.Custom +{ + public class YharonFire : ModSound + { + public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) + { + soundInstance = sound.CreateInstance(); + soundInstance.Volume = volume; + soundInstance.Pan = pan; + Main.PlaySoundInstance(soundInstance); + return soundInstance; + } + } +} diff --git a/Sounds/Custom/YharonFire.ogg b/Sounds/Custom/YharonFire.ogg new file mode 100644 index 0000000000..e1684f2f2f Binary files /dev/null and b/Sounds/Custom/YharonFire.ogg differ