Magic number -> property

This commit is contained in:
Dominic authored and Cameron Ewell committed 2022-11-10 11:11:55 -05:00
1 parent bff14dfb50
commit 8e6e5224fe
1 file changed
+1 -1
+1 -1
View File
@@ -219,7 +219,7 @@ namespace CalamityMod.Projectiles.Melee
{
float progress = MathHelper.Lerp(SwingCompletion, SwingCompletionAtStartOfTrail, i / 20f);
float reelBackAngle = Math.Abs(Projectile.oldRot[0] - Projectile.oldRot[1]) * 0.8f;
if (SwingCompletion > 0.84f)
if (SwingCompletion > RecoveryCompletionRatio)
reelBackAngle = 0.21f;
float offsetAngle = (GetSwingOffsetAngle(progress) - reelBackAngle) * Direction + InitialRotation;