1 - Artemis and Apollo move a bit further down on the Y axis while all 4 mechs are attacking.

This commit is contained in:
Andrew Marheine committed 2021-12-20 23:15:29 -06:00
1 parent a34e3f76e9
commit 35007dce80
2 files changed
+8 -2

No files matched your search

+4 -1
View File
@@ -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)
+4 -1
View File
@@ -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)