From 7a1b1a97ea86c29267a2cc0fba2d079d9506c05e Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 15 Nov 2024 13:57:44 -0500 Subject: [PATCH] Reduced Neptune's Bounty's redirect range from 5000 to 1000 pixels centered on the clamped cursor. --- Projectiles/Melee/NeptunesBountyProjectile.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Projectiles/Melee/NeptunesBountyProjectile.cs b/Projectiles/Melee/NeptunesBountyProjectile.cs index f86a683e98..7c6c238b60 100644 --- a/Projectiles/Melee/NeptunesBountyProjectile.cs +++ b/Projectiles/Melee/NeptunesBountyProjectile.cs @@ -115,6 +115,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.netUpdate = true; SoundEngine.PlaySound(SoundID.Item1, Projectile.Center); Projectile.Center = Owner.MountedCenter + Projectile.velocity * 12f; + // 15NOV2024: Ozzatron: clamped mouse position unnecessary, only used for direction Projectile.velocity = (Main.MouseWorld - Owner.Center).SafeNormalize(Vector2.UnitX * Owner.direction) * 28; startDamage = Projectile.damage; Projectile.spriteDirection = Projectile.direction; @@ -144,7 +145,7 @@ namespace CalamityMod.Projectiles.Melee Time = 0; bool foundTarget = false; - NPC target = Owner.Calamity().mouseWorld.ClosestNPCAt(5000); + NPC target = Owner.ClampedMouseWorld().ClosestNPCAt(1000); if (target != null) { NPCDestination = target.Center + target.velocity * 5f;