for real this time

This commit is contained in:
IbanPlay committed 2022-07-19 20:03:05 +02:00
1 parent 9e702a4e79
commit 74dd1e52a0
1 file changed
+2 -2
+2 -2
View File
@@ -72,8 +72,8 @@ namespace CalamityMod.Projectiles.Melee
if (EndLag == 0) //Initialization
{
EndLag = (float)Math.Max(Owner.ActiveItem().useTime - MaxTime, 1);
TrueDirection = Owner.SafeDirectionTo(Owner.Calamity().mouseWorld, Vector2.Zero).ToRotation(); //Store this for the screw hit
Projectile.velocity = Owner.SafeDirectionTo(Owner.Calamity().mouseWorld, Vector2.Zero).RotatedByRandom(MathHelper.PiOver4 * 0.15f);
TrueDirection = (Owner.Calamity().mouseWorld - Owner.MountedCenter).SafeNormalize(Vector2.Zero).ToRotation(); //Store this for the screw hit
Projectile.velocity = (Owner.Calamity().mouseWorld - Owner.MountedCenter).SafeNormalize(Vector2.Zero).RotatedByRandom(MathHelper.PiOver4 * 0.15f);
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2;
}