Condemnation Adjustment
This commit is contained in:
1 parent
917bf07ac2
commit
8f77b49e29
1 file changed
+11
@@ -112,6 +112,17 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public void UpdateProjectileHeldVariables(Vector2 armPosition)
|
||||
{
|
||||
if (Main.myPlayer == projectile.owner)
|
||||
{
|
||||
Vector2 oldVelocity = projectile.velocity;
|
||||
projectile.velocity = projectile.SafeDirectionTo(Main.MouseWorld);
|
||||
if (projectile.velocity != oldVelocity)
|
||||
{
|
||||
projectile.netSpam = 0;
|
||||
projectile.netUpdate = true;
|
||||
}
|
||||
}
|
||||
|
||||
projectile.position = armPosition - projectile.Size * 0.5f;
|
||||
projectile.rotation = projectile.velocity.ToRotation();
|
||||
if (projectile.spriteDirection == -1)
|
||||
|
||||
Reference in new issue
Block a user