diff --git a/Projectiles/Melee/GaelSkull.cs b/Projectiles/Melee/GaelSkull.cs index 8e5ffc540a..6bd071b5e2 100644 --- a/Projectiles/Melee/GaelSkull.cs +++ b/Projectiles/Melee/GaelSkull.cs @@ -42,11 +42,17 @@ namespace CalamityMod.Projectiles.Melee if (target != null) { - float homingSpeed = projectile.velocity.Length() * (projectile.Distance(target.Center) < 220f ? 1.3f : 1f); + float distanceFromTarget = projectile.Distance(target.Center); + float homingSpeed = projectile.velocity.Length() * (distanceFromTarget < 220f ? 1.25f : 1f); + if (homingSpeed > 22f) + homingSpeed = 22f; + Vector2 idealVelocity = projectile.SafeDirectionTo(target.Center) * homingSpeed; float inertia = projectile.Distance(target.Center) < 240f ? 4f : 13f; - projectile.velocity = (projectile.velocity * inertia + idealVelocity) / (inertia + 0.4f); + projectile.velocity = (projectile.velocity * inertia + idealVelocity) / (inertia + 1f); + if (distanceFromTarget < 300f) + projectile.velocity = projectile.velocity.MoveTowards(idealVelocity, 2f); projectile.velocity.Normalize(); projectile.velocity *= homingSpeed; } diff --git a/Projectiles/Melee/GaelSkull2.cs b/Projectiles/Melee/GaelSkull2.cs index 4fbe0627ec..6e8d99c501 100644 --- a/Projectiles/Melee/GaelSkull2.cs +++ b/Projectiles/Melee/GaelSkull2.cs @@ -64,7 +64,7 @@ namespace CalamityMod.Projectiles.Melee Vector2 idealVelocity = projectile.SafeDirectionTo(target.Center) * homingSpeed; float inertia = projectile.Distance(target.Center) < 240f ? 4f : 13f; - projectile.velocity = (projectile.velocity * inertia + idealVelocity) / (inertia + 0.4f); + projectile.velocity = (projectile.velocity * inertia + idealVelocity) / (inertia + 1f); projectile.velocity.Normalize(); projectile.velocity *= homingSpeed; }