From 35007dce80f4241dd07ea6aa55a974846514477e Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Mon, 20 Dec 2021 23:15:29 -0600 Subject: [PATCH] 1 - Artemis and Apollo move a bit further down on the Y axis while all 4 mechs are attacking. --- NPCs/ExoMechs/Apollo/Apollo.cs | 5 ++++- NPCs/ExoMechs/Artemis/Artemis.cs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/NPCs/ExoMechs/Apollo/Apollo.cs b/NPCs/ExoMechs/Apollo/Apollo.cs index 5f79c76000..52238d5fd9 100644 --- a/NPCs/ExoMechs/Apollo/Apollo.cs +++ b/NPCs/ExoMechs/Apollo/Apollo.cs @@ -423,7 +423,10 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo float destinationY = player.Center.Y; float chargeComboXOffset = flyRight ? -500f : 500f; float chargeComboYOffset = npc.ai[2] % 2f == 0f ? 400f : -400f; - Vector2 destination = SecondaryAIState == (float)SecondaryPhase.PassiveAndImmune ? new Vector2(player.Center.X + destinationX * 1.6f, destinationY) : AIState == (float)Phase.LineUpChargeCombo ? new Vector2(player.Center.X + destinationX, destinationY + chargeComboYOffset) : new Vector2(player.Center.X + destinationX, destinationY); + Vector2 destination = SecondaryAIState == (float)SecondaryPhase.PassiveAndImmune ? new Vector2(player.Center.X + destinationX * 1.6f, destinationY) : + SecondaryAIState == (float)SecondaryPhase.Passive ? new Vector2(player.Center.X + destinationX, destinationY + 360f) : + AIState == (float)Phase.LineUpChargeCombo ? new Vector2(player.Center.X + destinationX, destinationY + chargeComboYOffset) : + new Vector2(player.Center.X + destinationX, destinationY); // Add some random distance to the destination after certain attacks if (pickNewLocation) diff --git a/NPCs/ExoMechs/Artemis/Artemis.cs b/NPCs/ExoMechs/Artemis/Artemis.cs index f7d4639b8d..ba732353f2 100644 --- a/NPCs/ExoMechs/Artemis/Artemis.cs +++ b/NPCs/ExoMechs/Artemis/Artemis.cs @@ -471,7 +471,10 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis bool flyLeft = npc.ai[0] % 2f == 0f || npc.ai[0] < 10f || !revenge; float destinationX = flyLeft ? -750f : 750f; float destinationY = player.Center.Y; - Vector2 destination = SecondaryAIState == (float)SecondaryPhase.PassiveAndImmune ? new Vector2(player.Center.X + destinationX * 1.6f, destinationY) : AIState == (float)Phase.Deathray ? spinLocation : new Vector2(player.Center.X + destinationX, destinationY); + Vector2 destination = SecondaryAIState == (float)SecondaryPhase.PassiveAndImmune ? new Vector2(player.Center.X + destinationX * 1.6f, destinationY) : + SecondaryAIState == (float)SecondaryPhase.Passive ? new Vector2(player.Center.X + destinationX, destinationY + 360f) : + AIState == (float)Phase.Deathray ? spinLocation : + new Vector2(player.Center.X + destinationX, destinationY); // Add a bit of randomness to the destination, but only in specific phases where it's necessary if (AIState == (float)Phase.Normal || AIState == (float)Phase.LaserShotgun || AIState == (float)Phase.PhaseTransition)