Increased Hive Mind enemy spawn amounts in phase 1, decreased enemy spawn amounts in phase 2.

This commit is contained in:
mountaindrew10 committed 2025-05-14 08:00:39 -05:00
1 parent 5a4b261760
commit fa4dcd07ee
1 file changed
+9 -9
+9 -9
View File
@@ -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<DankCreeper>()) < 2 ? ModContent.NPCType<DankCreeper>() : 0;
type = !NPC.AnyNPCs(ModContent.NPCType<DankCreeper>()) ? ModContent.NPCType<DankCreeper>() : 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<HiveBlob>()) + NPC.CountNPCS(ModContent.NPCType<HiveBlob2>());
if (hiveBlobCount < 3)
NPC.NewNPC(NPC.GetSource_FromThis(), (int)NPC.Center.X, (int)NPC.Center.Y, Main.rand.NextBool() ? ModContent.NPCType<HiveBlob2>() : ModContent.NPCType<HiveBlob>());
}
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);