From 6a304b58889de4efd3570a84b7af89e1ea8d897a Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 14 Jun 2021 05:27:59 -0500 Subject: [PATCH] Condemnation rotation issue --- Projectiles/Ranged/CondemnationHoldout.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Projectiles/Ranged/CondemnationHoldout.cs b/Projectiles/Ranged/CondemnationHoldout.cs index b8899add01..1ac21ab858 100644 --- a/Projectiles/Ranged/CondemnationHoldout.cs +++ b/Projectiles/Ranged/CondemnationHoldout.cs @@ -114,8 +114,9 @@ namespace CalamityMod.Projectiles.Ranged { if (Main.myPlayer == projectile.owner) { + float interpolant = Utils.InverseLerp(5f, 25f, projectile.Distance(Main.MouseWorld), true); Vector2 oldVelocity = projectile.velocity; - projectile.velocity = projectile.SafeDirectionTo(Main.MouseWorld); + projectile.velocity = Vector2.Lerp(projectile.velocity, projectile.SafeDirectionTo(Main.MouseWorld), interpolant); if (projectile.velocity != oldVelocity) { projectile.netSpam = 0;