Reduced Neptune's Bounty's redirect range from 5000 to 1000 pixels centered on the clamped cursor.
This commit is contained in:
1 parent
08d5192151
commit
7a1b1a97ea
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user