1 - AEW smoother movement.
2 - Desert Scourge and Large Perf don't drop down as fast after their lunge.
This commit is contained in:
1 parent
f4269967fc
commit
459a2d0bb3
3 files changed
+4
-5
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user