1 - AEW smoother movement.

2 - Desert Scourge and Large Perf don't drop down as fast after their lunge.
This commit is contained in:
mountaindrew10 committed 2022-02-14 10:21:31 -06:00
1 parent f4269967fc
commit 459a2d0bb3
3 files changed
+4 -5

No files matched your search

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