Reduced Master-exclusive Hive Mind Vile Spit velocity.

This commit is contained in:
mountaindrew10 committed 2024-06-02 17:53:15 -05:00
1 parent 4d09a9e8bd
commit aed2d687cd
2 files changed
+7 -3

No files matched your search

+5 -1
View File
@@ -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;
}
+2 -2
View File
@@ -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);
}
}