Files
CalamityModPublic/Sounds/NPCHit/AstralEnemyHit2.cs
T
DominicKarma42 55e89c9b98 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.
2020-05-30 17:56:36 -04:00

19 lines
552 B
C#

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