From 717e2410dc5936a76e760ff9b73042ee00e9a539 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 29 Jun 2026 15:33:44 -0400 Subject: [PATCH] A few Boss Rush changes: * Decreased cooldown between boss spawns in tier 4 from 4 seconds to 3 * Fixed Twins only requiring killing Spazmatism to progress * Fixed DoG still using its spawn dialogue --- Events/BossRushEvent.cs | 20 ++++++++++++++++--- .../en-US/Mods.CalamityMod.NPCs.hjson | 2 +- NPCs/DevourerofGods/DevourerofGodsHead.cs | 5 ++++- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index ce412a01e9..48cbda15d3 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -586,12 +586,14 @@ namespace CalamityMod.Events // Cooldown and boss spawn. if (BossRushSpawnCountdown <= 0 && BossRushStage < Bosses.Count) { - // Cooldown before next boss spawns. + // Cooldown before next boss spawns. Defaults to 1 second. BossRushSpawnCountdown = 60; - // Increase cooldown post-Moon Lord. + // Cooldown increases to 3 seconds in tier 4 and 4 seconds in tier 5. if (BossRushStage >= Bosses.FindIndex(boss => boss.EntityID == NPCID.MoonLordCore)) - BossRushSpawnCountdown += 180; + BossRushSpawnCountdown += 120; + if (BossRushStage >= Bosses.FindIndex(boss => boss.EntityID == ModContent.NPCType())) + BossRushSpawnCountdown += 60; // Override the spawn countdown if specified. if (BossRushStage < Bosses.Count - 1 && Bosses[BossRushStage + 1].SpecialSpawnCountdown != -1) @@ -691,6 +693,18 @@ namespace CalamityMod.Events } } + // Both Twins must be killed to progress. + else if (npc.type == NPCID.Spazmatism || npc.type == NPCID.Retinazer) + { + int bossType = npc.type == NPCID.Spazmatism ? NPCID.Retinazer : NPCID.Spazmatism; + if (!NPC.AnyNPCs(bossType)) + { + BossRushStage++; + CalamityUtils.KillAllHostileProjectiles(); + HostileProjectileKillCounter = 3; + } + } + // Anahita and Leviathan manually check for each other (this probably isn't necessary). else if (npc.type == ModContent.NPCType() || npc.type == ModContent.NPCType()) { diff --git a/Localization/en-US/Mods.CalamityMod.NPCs.hjson b/Localization/en-US/Mods.CalamityMod.NPCs.hjson index 9c0835999f..e21ebc6a6a 100644 --- a/Localization/en-US/Mods.CalamityMod.NPCs.hjson +++ b/Localization/en-US/Mods.CalamityMod.NPCs.hjson @@ -598,7 +598,7 @@ TownPiggy: { Techno: Techno JohnPork: John Pork Piglet: Piglet - Poogie: Poogie + Poogie: Poogie } Chat: { diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index 2d45fb0d1d..fed2affc2e 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -306,10 +306,13 @@ namespace CalamityMod.NPCs.DevourerofGods public override void OnSpawn(IEntitySource source) { + // Don't display the dialogue in Boss Rush + if (BossRushEvent.BossRushActive) + return; + string key = "Mods.CalamityMod.Status.Boss.DoGSpawn"; Color messageColor = Color.Cyan; CalamityUtils.BroadcastLocalizedText(key, messageColor); - DialogueDisplaySystem.StartDialogue("Mods.CalamityMod.DevourerOfGods.Phases", NPC, 0, 120, false, new BossText()); }