From aed2d687cd34da4c487b7776efe59434843a904b Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sun, 2 Jun 2024 17:53:15 -0500 Subject: [PATCH] Reduced Master-exclusive Hive Mind Vile Spit velocity. --- NPCs/CalamityGlobalNPC.cs | 6 +++++- NPCs/HiveMind/HiveMind.cs | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index b2a4ed9359..8a62b88094 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3488,12 +3488,16 @@ namespace CalamityMod.NPCs { if (Main.expertMode || BossRushEvent.BossRushActive) { - if (npc.ai[1] == 69f) + if (npc.ai[1] >= 69f) { if (npc.target == Main.maxPlayers) { npc.TargetClosest(); + float velocity = Main.getGoodWorld ? 10f : (Main.masterMode || BossRushEvent.BossRushActive) ? 8f : 6f; + if (npc.ai[1] == 70f) + velocity *= 0.6f; + npc.velocity = (Main.player[npc.target].Center - npc.Center).SafeNormalize(Vector2.UnitY) * velocity; } diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 868e8357c1..0e9867d1e6 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -956,7 +956,7 @@ namespace CalamityMod.NPCs.HiveMind { NPC.localAI[2] += 1f; if (Collision.CanHitLine(NPC.Center, 1, 1, player.Center, 1, 1) && NPC.Distance(player.Center) > 160f && NPC.localAI[2] % vileSpitFireRate == 0) - NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, NPCID.VileSpitEaterOfWorlds, 0, 0f, 69f); + NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, NPCID.VileSpitEaterOfWorlds, 0, 0f, 70f); } } @@ -994,7 +994,7 @@ namespace CalamityMod.NPCs.HiveMind { NPC.localAI[2] += 1f; if (Collision.CanHitLine(NPC.Center, 1, 1, player.Center, 1, 1) && NPC.Distance(player.Center) > 160f && NPC.localAI[2] % vileSpitFireRate == 0) - NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, NPCID.VileSpitEaterOfWorlds, 0, 0f, 69f); + NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, NPCID.VileSpitEaterOfWorlds, 0, 0f, 70f); } }