From 3ee6c87eb95b98e98be6bcad273296ef4702dfbc Mon Sep 17 00:00:00 2001 From: dingo Date: Sun, 18 Jan 2026 16:47:43 -0500 Subject: [PATCH] Working on projectiles5 --- Game/Dungeon/DungeonSimulation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Game/Dungeon/DungeonSimulation.cs b/Game/Dungeon/DungeonSimulation.cs index 8f9077e..e74254c 100644 --- a/Game/Dungeon/DungeonSimulation.cs +++ b/Game/Dungeon/DungeonSimulation.cs @@ -555,7 +555,7 @@ public partial class DungeonSimulation Console.WriteLine($"[Projectile {projectile.Id}] Pos: ({projectile.X:F1}, {projectile.Y:F1}), Mob {mob.Id} Pos: ({mob.X:F1}, {mob.Y:F1}), Distance: {distance:F1}"); } - if (distance < 20) + if (distance < 50) // Increased from 20 to account for projectile speed (15px/tick movement) { Console.WriteLine($"[Projectile {projectile.Id}] HIT mob {mob.Id} at distance {distance:F1}! Damage: {projectile.Damage}"); // Get player instance for damage calculation @@ -632,7 +632,7 @@ public partial class DungeonSimulation { foreach (var player in Players.Values.Where(p => p.IsAlive)) { - if (Distance(projectile.X, projectile.Y, player.X, player.Y) < 20) + if (Distance(projectile.X, projectile.Y, player.X, player.Y) < 50) // Increased from 20 to account for projectile speed { // Hit! if (projectile.AoeRadius > 0)