From fa4dcd07ee931ae6123644c8ef32da8bf97222dd Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Wed, 14 May 2025 08:00:39 -0500 Subject: [PATCH] Increased Hive Mind enemy spawn amounts in phase 1, decreased enemy spawn amounts in phase 2. --- NPCs/HiveMind/HiveMind.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 191cabdc62..9db7dd2c90 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -390,12 +390,11 @@ namespace CalamityMod.NPCs.HiveMind break; case 2: - type = NPC.CountNPCS(NPCID.DevourerHead) < 2 ? NPCID.DevourerHead : 0; + type = !NPC.AnyNPCs(NPCID.DevourerHead) ? NPCID.DevourerHead : 0; break; case 3: - case 4: - type = NPC.CountNPCS(ModContent.NPCType()) < 2 ? ModContent.NPCType() : 0; + type = !NPC.AnyNPCs(ModContent.NPCType()) ? ModContent.NPCType() : 0; break; default: @@ -629,7 +628,7 @@ namespace CalamityMod.NPCs.HiveMind if (Main.netMode != NetmodeID.MultiplayerClient) { - int maxSpawns = bossRush ? 10 : death ? 5 : revenge ? 4 : expertMode ? Main.rand.Next(3, 5) : Main.rand.Next(2, 4); + int maxSpawns = bossRush ? 16 : death ? 8 : revenge ? 6 : expertMode ? Main.rand.Next(4, 6) : Main.rand.Next(3, 5); int maxDankSpawns = bossRush ? 4 : death ? Main.rand.Next(2, 4) : revenge ? 2 : expertMode ? Main.rand.Next(1, 3) : 1; for (int i = 0; i < maxSpawns; i++) @@ -1117,7 +1116,7 @@ namespace CalamityMod.NPCs.HiveMind NPC.ai[0] += 1f; if (Main.netMode != NetmodeID.MultiplayerClient && Collision.CanHit(NPC.Center, 1, 1, player.position, player.width, player.height)) { - int maxEaters = revenge ? 3 : 2; + int maxEaters = revenge ? 2 : 1; if (NPC.CountNPCS(NPCID.EaterofSouls) < maxEaters && NPC.Distance(Main.player[NPC.target].Center) > 80f) NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, NPCID.EaterofSouls); } @@ -1362,19 +1361,20 @@ namespace CalamityMod.NPCs.HiveMind { if (Main.netMode != NetmodeID.MultiplayerClient) { - if (Main.rand.NextBool(30)) + if (Main.rand.NextBool(15)) { - if (NPC.CountNPCS(NPCID.EaterofSouls) < 3) + int hiveBlobCount = NPC.CountNPCS(ModContent.NPCType()) + NPC.CountNPCS(ModContent.NPCType()); + if (hiveBlobCount < 3) NPC.NewNPC(NPC.GetSource_FromThis(), (int)NPC.Center.X, (int)NPC.Center.Y, Main.rand.NextBool() ? ModContent.NPCType() : ModContent.NPCType()); } - if (Main.rand.NextBool(60)) + if (Main.rand.NextBool(30)) { if (NPC.CountNPCS(NPCID.EaterofSouls) < 2) NPC.NewNPC(NPC.GetSource_FromThis(), (int)NPC.Center.X, (int)NPC.Center.Y, NPCID.EaterofSouls); } - if (Main.rand.NextBool(150)) + if (Main.rand.NextBool(45)) { if (!NPC.AnyNPCs(NPCID.DevourerHead)) NPC.NewNPC(NPC.GetSource_FromThis(), (int)NPC.Center.X, (int)NPC.Center.Y, NPCID.DevourerHead);