Merge branch 'master' of https://github.com/CalamityTeam/CalamityMod
This commit is contained in:
commit
3f29f80e8f
1 file changed
+2
-4
@@ -52,10 +52,8 @@ namespace CalamityMod.NPCs.Other
|
||||
npc.netUpdate = true;
|
||||
}
|
||||
|
||||
Vector2 destination = Vector2.Lerp(Owner.Center, Main.MouseWorld, 0.3f);
|
||||
if (!Owner.WithinRange(Main.MouseWorld, 225f))
|
||||
destination = Owner.Center + Owner.SafeDirectionTo(Main.MouseWorld) * 225f;
|
||||
npc.Center = Vector2.Lerp(npc.Center, destination, 0.035f).MoveTowards(destination, 5f);
|
||||
Vector2 destination = Vector2.Lerp(Owner.Center, Main.MouseWorld, 0.625f);
|
||||
npc.Center = Vector2.Lerp(npc.Center, destination, 0.035f).MoveTowards(destination, 8f);
|
||||
if (!npc.WithinRange(destination, 2000f))
|
||||
npc.Center = Owner.Center;
|
||||
|
||||
|
||||
Reference in new issue
Block a user