Made Slick Cane's hitbox much more accurate

This commit is contained in:
CongratsIsTrash committed 2026-02-11 20:56:42 -05:00
1 parent e084a7a20d
commit eb46d15ce9
1 file changed
+2 -2
+2 -2
View File
@@ -67,9 +67,9 @@ namespace CalamityMod.Projectiles.Rogue
float f2 = Projectile.rotation - MathHelper.PiOver4 *
Math.Sign(Projectile.velocity.X) + (Projectile.spriteDirection == -1).ToInt() * MathHelper.Pi;
float velocityMagnitude = 0f;
float scaleFactor = 35f;
float scaleFactor = 18f;
if (Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(),
Projectile.Center, Projectile.Center + f2.ToRotationVector2() * scaleFactor,
Main.player[Projectile.owner].Center, Projectile.Center + f2.ToRotationVector2() * scaleFactor,
(TravelSpeed + 1f) * Projectile.scale, ref velocityMagnitude))
{
return true;