Items done

This commit is contained in:
IbanPlay committed 2022-05-24 01:24:49 +02:00
1 parent 23e0a2d94d
commit 229cefa45d
38 files changed
+81 -54

No files matched your search

+3 -3
View File
@@ -293,7 +293,7 @@ namespace CalamityMod.Events
player.ClearBuff(ModContent.BuffType<ExtremeGravity>());
}
}
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(CalamityMod.Instance, "Sounds/Custom/SupremeCalamitasSpawn"), Main.player[ClosestPlayerToWorldCenter].Center);
SoundEngine.PlaySound(SupremeCalamitas.SpawnSound, Main.player[ClosestPlayerToWorldCenter].Center);
CalamityUtils.SpawnBossBetter(Main.player[ClosestPlayerToWorldCenter].Top - new Vector2(42f, 84f), type);
}, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType<SCalWormArm>(), ModContent.NPCType<SCalWormHead>(), ModContent.NPCType<SCalWormBody>(), ModContent.NPCType<SCalWormBodyWeak>(), ModContent.NPCType<SCalWormTail>(),
ModContent.NPCType<SoulSeekerSupreme>(), ModContent.NPCType<BrimstoneHeart>(), ModContent.NPCType<SupremeCataclysm>(), ModContent.NPCType<SupremeCatastrophe>() }),
@@ -304,7 +304,7 @@ namespace CalamityMod.Events
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(CalamityMod.Instance, "Sounds/Custom/DevourerSpawn"), player.Center);
SoundEngine.PlaySound(DevourerofGodsHead.SpawnSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<DevourerofGodsBody>(), ModContent.NPCType<DevourerofGodsTail>() })
};
@@ -461,7 +461,7 @@ namespace CalamityMod.Events
// Play the typical boss roar sound.
if (!Bosses[BossRushStage].UsesSpecialSound)
SoundEngine.PlaySound(SoundID.Roar, Main.player[ClosestPlayerToWorldCenter].position, 0);
SoundEngine.PlaySound(SoundID.Roar, Main.player[ClosestPlayerToWorldCenter].position);
// And spawn the boss.
Bosses[BossRushStage].SpawnContext.Invoke(CurrentlyFoughtBoss);
+2 -2
View File
@@ -130,7 +130,7 @@ namespace CalamityMod.Gores
gore.frameCounter = 0;
if (gore.type != 716 && gore.type != 717 && gore.type != 943)
{
SoundEngine.PlaySound(SoundID.Drip, (int)gore.position.X + 8, (int)gore.position.Y + 8, Main.rand.Next(2), 1f, 0f);
SoundEngine.PlaySound(SoundID.Drip, gore.position + Vector2.One * 8);
}
}
}
@@ -142,7 +142,7 @@ namespace CalamityMod.Gores
gore.frameCounter = 0;
if (gore.type != 716 && gore.type != 717 && gore.type != 943)
{
SoundEngine.PlaySound(SoundID.Drip, (int)gore.position.X + 8, (int)gore.position.Y + 8, 2, 1f, 0f);
SoundEngine.PlaySound(SoundID.Drip, gore.position + Vector2.One * 8);
}
((WaterShaderData)Filters.Scene["WaterDistortion"].GetShader()).QueueRipple(gore.position + new Vector2(8f, 8f), 1f, RippleShape.Square, 0f);
}
+1 -1
View File
@@ -56,7 +56,7 @@ namespace CalamityMod.ILEditing
WorldGen.TileFrame(doorX, y);
// Play the door closing sound (lab doors do not use the door opening sound)
SoundEngine.PlaySound(SoundID.DoorClosed, doorX * 16, doorY * 16);
SoundEngine.PlaySound(SoundID.DoorClosed, new Vector2(doorX * 16, doorY * 16));
return true;
}
+1 -1
View File
@@ -141,7 +141,7 @@ namespace CalamityMod.Items.Accessories
fx.MaxUpdates = 2; // Make the animation play at double speed.
// Play a weird dimensional lightning sound simultaneously.
var extraSound = SoundID.DD2_EtherianPortalDryadTouch.WithVolume(1.4f);
var extraSound = SoundID.DD2_EtherianPortalDryadTouch with { Volume = 1.4f };
SoundEngine.PlaySound(extraSound, player.Center);
// Display a level up text notification.
+1 -1
View File
@@ -471,7 +471,7 @@ namespace CalamityMod.Items
position += muzzleOffset;
}
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<FallenStarProj>(), damage, knockBack, player.whoAmI);
SoundEngine.PlaySound(SoundID.Item11.WithPitchVariance(0.05f), position);
SoundEngine.PlaySound(SoundID.Item11 with { PitchVariance = 0.05f }, position);
return false;
}
if (item.type == ItemID.PearlwoodBow)
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<PlaguebringerGoliath>());
else
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 2);
SoundEngine.PlaySound(SoundID.ScaryScream, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int npc = NPC.NewNPC(new EntitySource_BossSpawn(player), (int)(player.position.X + Main.rand.Next(-250, 251)), (int)(player.position.Y - 500f), ModContent.NPCType<RavagerBody>(), 1);
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int npc = NPC.NewNPC(new EntitySource_BossSpawn(player), (int)(player.position.X + Main.rand.Next(-250, 251)), (int)(player.position.Y - 500f), ModContent.NPCType<AstrumAureus>(), 1);
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<Bumblefuck>());
else
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<CalamitasRun3>());
else
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<PerforatorHive>());
else
+1 -1
View File
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, NPCID.Plantera);
else
+1 -1
View File
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<BrimstoneElemental>());
else
+1 -1
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<Yharon>());
else
+1 -1
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.SummonItems
Color messageColor = Color.Cyan;
CalamityUtils.DisplayLocalizedText(key, messageColor);
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/DevourerSpawn"), (int)player.position.X, (int)player.position.Y);
SoundEngine.PlaySound(DevourerofGodsHead.SpawnSound, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<DevourerofGodsHead>());
else
+1 -1
View File
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<Cryogen>());
else
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int npc = NPC.NewNPC(new EntitySource_BossSpawn(player), (int)(player.position.X + Main.rand.Next(-250, 251)), (int)(player.position.Y - 500f), ModContent.NPCType<CrabulonIdle>(), 1);
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<DesertScourgeHead>());
else
+1 -1
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<Polterghast>());
else
+1 -1
View File
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, NPCID.Golem);
else
+1 -1
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<SlimeGodCore>());
else
+1 -1
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/ProvidenceSpawn"), (int)player.position.X, (int)player.position.Y);
SoundEngine.PlaySound(Providence.SpawnSound, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int npc = NPC.NewNPC(new EntitySource_BossSpawn(player), (int)(player.position.X + Main.rand.Next(-500, 501)), (int)(player.position.Y - 250f), ModContent.NPCType<Providence>(), 1);
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<ProfanedGuardianBoss>());
else
+1 -1
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (player.ZoneDungeon)
{
if (Main.netMode != NetmodeID.MultiplayerClient)
+1 -1
View File
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<GreatSandShark>());
else
+1 -1
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<AquaticScourgeHead>());
else
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.SummonItems
public override bool? UseItem(Player player)
{
SoundEngine.PlaySound(SoundID.Roar, player.position, 0);
SoundEngine.PlaySound(SoundID.Roar, player.position);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<HiveMind>());
else
+1 -1
View File
@@ -76,7 +76,7 @@ namespace CalamityMod.Items.Weapons.Melee
if (multiplier > 1.5f)
{
SoundEngine.PlaySound(SoundID.Item105, Main.player[Main.myPlayer].position);
SoundEngine.PlaySound(SoundID.Item105, player.position);
bool blue = Main.rand.NextBool();
float angleStart = Main.rand.NextFloat(0f, MathHelper.TwoPi);
float var = 0.05f + (2f - multiplier);
+1 -1
View File
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
SoundEngine.PlaySound(SoundID.Item5, (int)player.Center.X, (int)player.Center.Y);
SoundEngine.PlaySound(SoundID.Item5, player.Center);
if (totalProjectiles > 4)
{
+1 -1
View File
@@ -59,7 +59,7 @@ namespace CalamityMod.Items.Weapons.Ranged
if (player.Calamity().soundCooldown <= 0)
{
// WoF vomit sound.
SoundEngine.PlaySound(SoundID.NPCKilled, (int)position.X, (int)position.Y, 13, 0.5f, 0f);
SoundEngine.PlaySound(SoundID.NPCDeath13 with { Volume = SoundID.NPCDeath13 * 0.5f}, position);
player.Calamity().soundCooldown = 120;
}
return false;
+1 -1
View File
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
SoundEngine.PlaySound(SoundID.Item38, (int)player.Center.X, (int)player.Center.Y);
SoundEngine.PlaySound(SoundID.Item38, player);
int bulletAmt = Main.rand.Next(25, 36);
for (int index = 0; index < bulletAmt; ++index)
+3 -1
View File
@@ -13,6 +13,8 @@ namespace CalamityMod.Items.Weapons.Ranged
{
public class ScorchedEarth : ModItem
{
public static readonly SoundStyle ShootSound = new("Sounds/Item/ScorchedEarthShot", 3);
private int counter = 0;
public override void SetStaticDefaults()
{
@@ -56,7 +58,7 @@ namespace CalamityMod.Items.Weapons.Ranged
if (counter == 0)
{
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/ScorchedEarthShot" + Main.rand.Next(1,4)), position);
SoundEngine.PlaySound(ShootSound, position);
}
counter++;
+1 -1
View File
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
SoundEngine.PlaySound(SoundID.NPCKilled, (int)player.position.X, (int)player.position.Y, 9, 2, 0);
SoundEngine.PlaySound(SoundID.NPCDeath9 with { Volume = SoundID.NPCDeath9 * 2f }, player.position);
if (player.Calamity().StealthStrikeAvailable())
{
+1 -1
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Summon
else
{
// Play some demonic noises prior to a target being selected.
SoundEngine.PlaySound(SoundID.Zombie, player.Center, 93);
SoundEngine.PlaySound(SoundID.Zombie with { Variants = stackalloc int[] { 93 }, player.Center);
SoundEngine.PlaySound(SoundID.Item119, player.Center);
}
return false;
@@ -15,6 +15,10 @@ namespace CalamityMod.Items.Weapons.Summon
{
public class PrototypeAndromechaRing : ModItem
{
//Note: In the future i may just do some changes to this item, and the cripple effect will probably be gone. But in the meanwhile
//- Iban
public static readonly SoundStyle CrippleSound = new("Sounds/Custom/AndromedaCripple");
public override void Load()
{
if (Main.netMode != NetmodeID.Server)
@@ -87,7 +91,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
player.Calamity().andromedaCripple = CrippleTime;
player.AddBuff(ModContent.BuffType<AndromedaCripple>(), player.Calamity().andromedaCripple);
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/AndromedaCripple"), position);
SoundEngine.PlaySound(CrippleSound, position);
}
return false;
}
+3 -2
View File
@@ -21,6 +21,7 @@ using CalamityMod.Items.Weapons.DraedonsArsenal;
using CalamityMod.NPCs.TownNPCs;
using CalamityMod.Projectiles.Boss;
using CalamityMod.World;
using CalamityMod.Sounds;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
@@ -137,8 +138,8 @@ namespace CalamityMod.NPCs.DevourerofGods
public int DestroyedSegmentCount;
//Sounds
public static readonly SoundStyle SpawnSound = new("Sounds/Custom/DevourerSpawn");
public static readonly SoundStyle AttackSound = new("Sounds/Custom/DevourerAttack");
public static readonly SoundStyle HitSound = new("Sounds/NPCHit/OtherworldlyHit");
public override void SetStaticDefaults()
{
@@ -2448,7 +2449,7 @@ namespace CalamityMod.NPCs.DevourerofGods
if (NPC.soundDelay == 0)
{
NPC.soundDelay = 8;
SoundEngine.PlaySound(HitSound, NPC.Center);
SoundEngine.PlaySound(CommonNPCSounds.OtherwordlyHitSound, NPC.Center);
}
if (NPC.life <= 0)
{
+24 -14
View File
@@ -152,6 +152,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas
private const int sepulcherSpawnCastTime = 75;
private const int brothersSpawnCastTime = 150;
//Sounds
public static readonly SoundStyle SpawnSound = new("Sounds/Custom/SupremeCalamitasSpawn");
public static readonly SoundStyle SepulcherSummonSound = new("Sounds/Custom/SCalSounds/SepulcherSpawn");
public static readonly SoundStyle BrimstoneShotSound = new("Sounds/Custom/SCalSounds/BrimstoneShoot");
public static readonly SoundStyle BrimstoneBigShotSound = new("Sounds/Custom/SCalSounds/BrimstoneBigShoot"); //DON'T YOU WANNA BE A [BIG SHOT]
public static readonly SoundStyle DashSound = new("Sounds/Custom/SCalSounds/SCalDash");
public static readonly SoundStyle HellblastSound = new("Sounds/Custom/SCalSounds/BrimstoneHellblastSound");
// TODO -- This is cumbersome. Change it to be better in 1.4.
internal static void LoadHeadIcons()
{
@@ -1422,7 +1432,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
canFireSplitingFireball = false;
randomShot = ModContent.ProjectileType<BrimstoneFireblast>();
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/BrimstoneBigShoot"), NPC.Center);
SoundEngine.PlaySound(BrimstoneBigShotSound, NPC.Center);
for (int i = 0; i < 15; i++)
{
@@ -1445,7 +1455,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
canFireSplitingFireball = false;
randomShot = ModContent.ProjectileType<BrimstoneGigaBlast>();
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/BrimstoneShoot"), NPC.Center);
SoundEngine.PlaySound(BrimstoneShotSound, NPC.Center);
for (int i = 0; i < 20; i++)
{
@@ -1468,7 +1478,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
canFireSplitingFireball = true;
randomShot = ModContent.ProjectileType<BrimstoneBarrage>();
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/BrimstoneBigShoot"), NPC.Center);
SoundEngine.PlaySound(BrimstoneBigShotSound, NPC.Center);
float rotation = MathHelper.ToRadians(20);
int numProj = 8;
for (int j = 0; j < numProj; j++)
@@ -1511,7 +1521,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
shieldRotation = NPC.velocity.ToRotation();
NPC.netUpdate = true;
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/SCalDash"), NPC.Center);
SoundEngine.PlaySound(DashSound, NPC.Center);
}
NPC.ai[1] = 2f;
@@ -1603,7 +1613,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (NPC.ai[3] >= 20f)
{
NPC.ai[3] = 0f;
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/BrimstoneHellblastSound"), NPC.Center);
SoundEngine.PlaySound(HellblastSound, NPC.Center);
// Release a burst of magic dust along with a brimstone hellblast skull.
for (int i = 0; i < 25; i++)
@@ -1691,7 +1701,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (Main.netMode != NetmodeID.MultiplayerClient)
{
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/BrimstoneBigShoot"), NPC.Center);
SoundEngine.PlaySound(BrimstoneBigShotSound, NPC.Center);
Vector2 projectileVelocity = player.Center - NPC.Center;
projectileVelocity.Normalize();
Vector2 projectileSpawn = NPC.Center + projectileVelocity * 8f;
@@ -1755,7 +1765,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
for (int num388 = 0; num388 < 50; num388++)
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Brimstone, Main.rand.Next(-30, 31) * 0.2f, Main.rand.Next(-30, 31) * 0.2f, 0, default, 1f);
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SupremeCalamitasSpawn"), NPC.Center);
SoundEngine.PlaySound(SpawnSound, NPC.Center);
}
}
@@ -1941,7 +1951,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
int randomShot = Main.rand.Next(6);
if (randomShot == 0 && canFireSplitingFireball)
{
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/BrimstoneBigShoot"), NPC.Center);
SoundEngine.PlaySound(BrimstoneBigShotSound, NPC.Center);
canFireSplitingFireball = false;
randomShot = ModContent.ProjectileType<BrimstoneFireblast>();
@@ -1964,7 +1974,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
}
else if (randomShot == 1 && canFireSplitingFireball)
{
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/BrimstoneShoot"), NPC.Center);
SoundEngine.PlaySound(BrimstoneShotSound, NPC.Center);
canFireSplitingFireball = false;
randomShot = ModContent.ProjectileType<BrimstoneGigaBlast>();
@@ -1987,7 +1997,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
}
else
{
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/BrimstoneBigShoot"), NPC.Center);
SoundEngine.PlaySound(BrimstoneBigShotSound, NPC.Center);
canFireSplitingFireball = true;
randomShot = ModContent.ProjectileType<BrimstoneBarrage>();
float rotation = MathHelper.ToRadians(20);
@@ -2030,7 +2040,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
shieldRotation = NPC.velocity.ToRotation();
NPC.netUpdate = true;
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/SCalDash"), NPC.Center);
SoundEngine.PlaySound(DashSound, NPC.Center);
}
NPC.ai[1] = 2f;
@@ -2119,7 +2129,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (NPC.ai[3] >= 24f)
{
NPC.ai[3] = 0f;
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/BrimstoneHellblastSound"), NPC.Center);
SoundEngine.PlaySound(HellblastSound, NPC.Center);
// Release a burst of magic dust along with a brimstone hellblast skull.
for (int i = 0; i < 25; i++)
@@ -2211,7 +2221,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (Main.netMode != NetmodeID.MultiplayerClient)
{
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/BrimstoneBigShoot"), NPC.Center);
SoundEngine.PlaySound(BrimstoneBigShotSound, NPC.Center);
Vector2 projectileVelocity = player.Center - NPC.Center;
projectileVelocity.Normalize();
Vector2 projectileSpawn = NPC.Center + projectileVelocity * 8f;
@@ -2322,7 +2332,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.netUpdate = true;
}
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Custom/SCalSounds/SepulcherSpawn"), target.Center);
SoundEngine.PlaySound(SepulcherSummonSound, target.Center);
}
}
+10
View File
@@ -0,0 +1,10 @@
using System;
using Terraria.Audio;
namespace CalamityMod.Sounds
{
public static class CommonNPCSounds
{
public static readonly SoundStyle OtherwordlyHitSound = new("Sounds/NPCHit/OtherworldlyHit");
}
}