From efe06a1e78e1dbf8147fbd35b0afd07b01026a6d Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Sat, 1 Aug 2020 15:21:05 -0500 Subject: [PATCH] 1 - Fuck the Eater of Worlds in Boss Rush, I just force despawned it and called NPCLoot to force the next stage if it's below 5% HP. --- NPCs/CalamityGlobalAI.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/NPCs/CalamityGlobalAI.cs b/NPCs/CalamityGlobalAI.cs index d29ea50942..cbc20ab25f 100644 --- a/NPCs/CalamityGlobalAI.cs +++ b/NPCs/CalamityGlobalAI.cs @@ -1483,6 +1483,20 @@ namespace CalamityMod.NPCs if (CalamityWorld.bossRushActive) { + if (npc.life <= npc.lifeMax * 0.05) + { + npc.life = 0; + npc.HitEffect(0, 10.0); + npc.checkDead(); + npc.NPCLoot(); + + for (int n = 0; n < Main.maxNPCs; n++) + { + if (Main.npc[n].aiStyle == npc.aiStyle) + Main.npc[n].active = false; + } + } + // Check if other segments are still alive, if not, die if (npc.type > NPCID.EaterofWorldsHead) {