diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index 976084f12e..fab4a3f01f 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; +using CalamityMod.Items.SummonItems; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.AstrumAureus; using CalamityMod.NPCs.AstrumDeus; @@ -183,7 +184,13 @@ namespace CalamityMod.Events CalamityUtils.BossAwakenMessage(sans); }, permittedNPCs: NPCID.SkeletronHand), - new Boss(ModContent.NPCType(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), }), + new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(RuneofKos.StormSound, player.Center); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), }), new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), @@ -226,7 +233,13 @@ namespace CalamityMod.Events new Boss(NPCID.Plantera, permittedNPCs: new int[] { NPCID.PlanterasTentacle, NPCID.PlanterasHook, NPCID.Spore }), - new Boss(ModContent.NPCType(), permittedNPCs: ModContent.NPCType()), + new Boss(ModContent.NPCType(), spawnContext: type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(RuneofKos.CVSound, player.Center); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + }, usesSpecialSound: true, permittedNPCs: ModContent.NPCType()), new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), @@ -236,7 +249,13 @@ namespace CalamityMod.Events new Boss(ModContent.NPCType(), permittedNPCs: ModContent.NPCType()), - new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), + new Boss(ModContent.NPCType(), spawnContext: type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(RuneofKos.SignutSound, player.Center); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), new Boss(ModContent.NPCType(), spawnContext: type => { @@ -280,7 +299,13 @@ namespace CalamityMod.Events }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), - new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), + new Boss(ModContent.NPCType(), spawnContext: type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(Abombination.UseSound, player.Center); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), new Boss(ModContent.NPCType(), TimeChangeContext.Night, specialSpawnCountdown: 420, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), @@ -326,7 +351,13 @@ namespace CalamityMod.Events }, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), - new Boss(ModContent.NPCType(), TimeChangeContext.Day), + new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(Yharon.FireSound, player.Center); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + }, usesSpecialSound: true), new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => {