ench and phantom spawn sounds

This commit is contained in:
GinYuH authored and Cameron Ewell committed 2022-09-25 15:59:16 -04:00
1 parent 32048e6700
commit 785b34f257
5 files changed
+8 -3

No files matched your search

+2
View File
@@ -54,6 +54,7 @@ namespace CalamityMod.NPCs.Polterghast
public static readonly SoundStyle P2Sound = new("CalamityMod/Sounds/Custom/PolterghastP2Transition");
public static readonly SoundStyle P3Sound = new("CalamityMod/Sounds/Custom/PolterghastP3Transition");
public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/PolterghastSpawn");
public static readonly SoundStyle PhantomSound = new("CalamityMod/Sounds/Custom/PolterghastPhantomSpawn");
public override void SetStaticDefaults()
{
@@ -972,6 +973,7 @@ namespace CalamityMod.NPCs.Polterghast
if (NPC.CountNPCS(ModContent.NPCType<PhantomSpiritL>()) < 2 && Main.netMode != NetmodeID.MultiplayerClient && !charging && !chargePhase)
{
SoundEngine.PlaySound(PhantomSound, NPC.Center);
int num762 = NPC.NewNPC(NPC.GetSource_FromAI(), (int)vector.X, (int)vector.Y, ModContent.NPCType<PhantomSpiritL>());
Main.npc[num762].velocity.X = num758;
Main.npc[num762].velocity.Y = num760;
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -27,6 +27,9 @@ namespace CalamityMod.UI.CalamitasEnchants
public static readonly Vector2 ReforgeUITopLeft = new Vector2(68f, 320f);
public static readonly float ResolutionRatio = Main.screenHeight / 1440f;
public static readonly SoundStyle EnchSound = new("CalamityMod/Sounds/Custom/WeaponEnchant");
public static readonly SoundStyle EXSound = new("CalamityMod/Sounds/Custom/WeaponExhume");
public static Rectangle MouseScreenArea => Utils.CenteredRectangle(Main.MouseScreen, Vector2.One * 2f);
public static bool InRangeOfNPC()
@@ -402,10 +405,10 @@ namespace CalamityMod.UI.CalamitasEnchants
// Reset the enchantment index to prevent index problems on a different item.
EnchantIndex = 0;
SoundEngine.PlaySound(SoundID.DD2_BetsyFlameBreath, Main.LocalPlayer.Center);
if (SelectedEnchantment.Value.Name == EnchantmentManager.UpgradeEnchantName)
SoundEngine.PlaySound(SoundID.DD2_DarkMageHealImpact, Main.LocalPlayer.Center);
SoundEngine.PlaySound(EXSound, Main.LocalPlayer.Center);
else
SoundEngine.PlaySound(EnchSound, Main.LocalPlayer.Center);
}
}
}