From e6af89c81ec99113759f0c6d92b4ef60ba2b2b4a Mon Sep 17 00:00:00 2001 From: DominicKarma <51094361+DominicKarma@users.noreply.github.com> Date: Wed, 10 Nov 2021 20:29:01 -0600 Subject: [PATCH] Ares arms work with the swapping hands --- NPCs/ExoMechs/Ares/AresBody.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index c052bbe542..d4a1150b51 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -854,6 +854,25 @@ namespace CalamityMod.NPCs.ExoMechs.Ares if (AIState == (int)Phase.Deathrays) CalamityUtils.SwapArrayIndices(ref armProperties, 1, 3); + // Normal Position: Laser, Tesla, Plasma, Laser + switch ((int)npc.ai[3]) + { + // Gauss, Tesla, Plasma, Laser + case 1: + CalamityUtils.SwapArrayIndices(ref armProperties, 0, 1); + break; + // Gauss, Plasma, Telsa, Laser + case 2: + case 5: + CalamityUtils.SwapArrayIndices(ref armProperties, 0, 1); + CalamityUtils.SwapArrayIndices(ref armProperties, 2, 3); + break; + // Laser, Plasma, Telsa, Gauss + case 3: + CalamityUtils.SwapArrayIndices(ref armProperties, 2, 3); + break; + } + if (laserArm != -1) DrawArm(spriteBatch, Main.npc[laserArm].Center, armGlowmaskColor, armProperties[0].Item1, armProperties[0].Item2); if (gaussArm != -1)