Fixing a few things.
This commit is contained in:
1 parent
9b280fa132
commit
a390f263a0
2 files changed
+6
-6
No files matched your search
@@ -293,11 +293,11 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
// Slow down dramatically while teleporting
|
||||
if (npc.ai[1] == 5f || npc.ai[1] == 6f)
|
||||
{
|
||||
if (npc.velocity.Length() > 0.1f)
|
||||
if (Math.Abs(npc.velocity.X) > 0.1f)
|
||||
{
|
||||
npc.velocity.X *= 0.8f;
|
||||
if (npc.velocity.Length() <= 0.1f)
|
||||
npc.velocity = Vector2.Zero;
|
||||
if (Math.Abs(npc.velocity.X) <= 0.1f)
|
||||
npc.velocity.X = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -61,11 +61,11 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
// Slow down dramatically while teleporting
|
||||
if (npc.ai[0] == 1f || npc.ai[0] == 2f)
|
||||
{
|
||||
if (npc.velocity.Length() > 0.1f)
|
||||
if (Math.Abs(npc.velocity.X) > 0.1f)
|
||||
{
|
||||
npc.velocity.X *= 0.8f;
|
||||
if (npc.velocity.Length() <= 0.1f)
|
||||
npc.velocity = Vector2.Zero;
|
||||
if (Math.Abs(npc.velocity.X) <= 0.1f)
|
||||
npc.velocity.X = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user