From 459a2d0bb33ce96f02bc11724190ab42068eadfd Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Mon, 14 Feb 2022 10:21:31 -0600 Subject: [PATCH] 1 - AEW smoother movement. 2 - Desert Scourge and Large Perf don't drop down as fast after their lunge. --- NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs | 3 ++- NPCs/DesertScourge/DesertScourgeHead.cs | 4 +--- NPCs/Perforator/PerforatorHeadLarge.cs | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs b/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs index 9357498a91..ca7529c13c 100644 --- a/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs +++ b/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs @@ -1272,7 +1272,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm { float targetAngle = npc.AngleTo(destination); float f = npc.velocity.ToRotation().AngleTowards(targetAngle, turnSpeed); - npc.velocity = f.ToRotationVector2() * baseVelocity; + Vector2 desiredVelocity = f.ToRotationVector2() * baseVelocity; + npc.SimpleFlyMovement(desiredVelocity, turnSpeed); } } diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 0c327daf72..418e9b5851 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -91,8 +91,6 @@ namespace CalamityMod.NPCs.DesertScourge public override void AI() { - CalamityGlobalNPC calamityGlobalNPC = npc.Calamity(); - bool malice = CalamityWorld.malice || BossRushEvent.BossRushActive; bool expertMode = Main.expertMode || BossRushEvent.BossRushActive; bool revenge = CalamityWorld.revenge || BossRushEvent.BossRushActive; @@ -333,7 +331,7 @@ namespace CalamityMod.NPCs.DesertScourge // Quickly fall and reset variables once at target's Y position if (quickFall) { - npc.velocity.Y += 1f; + npc.velocity.Y += 0.5f; if (npc.Center.Y >= player.Center.Y) { npc.Calamity().newAI[0] = 0f; diff --git a/NPCs/Perforator/PerforatorHeadLarge.cs b/NPCs/Perforator/PerforatorHeadLarge.cs index 1fd90bcf1e..22a14dc69a 100644 --- a/NPCs/Perforator/PerforatorHeadLarge.cs +++ b/NPCs/Perforator/PerforatorHeadLarge.cs @@ -300,7 +300,7 @@ namespace CalamityMod.NPCs.Perforator // Quickly fall and reset variables once at target's Y position if (quickFall) { - npc.velocity.Y += 1f; + npc.velocity.Y += 0.5f; if (npc.Center.Y >= player.Center.Y) { npc.Calamity().newAI[0] = 0f;