Files
CalamityModPublic/Sounds/Custom/LightningStrike.cs
T
Andrew Marheine ef50b596ea Death Mode weather adjustments.
Sea Serpent speed reduced.
Lightning Strike sound.
2020-01-31 18:32:03 -06:00

19 lines
554 B
C#

using Microsoft.Xna.Framework.Audio;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Sounds.Custom
{
public class LightningStrike : ModSound
{
public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type)
{
soundInstance = sound.CreateInstance();
soundInstance.Volume = volume * 1.5f;
soundInstance.Pan = pan;
Main.PlaySoundInstance(soundInstance);
return soundInstance;
}
}
}