From 1e366ff4d4b7f7bf8c0d9059d9618604e6f84e8b Mon Sep 17 00:00:00 2001 From: dingo Date: Sun, 18 Jan 2026 16:08:21 -0500 Subject: [PATCH] Working on projectiles4 --- Game/Dungeon/DungeonSimulation.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Game/Dungeon/DungeonSimulation.cs b/Game/Dungeon/DungeonSimulation.cs index 7ae75fb..8f9077e 100644 --- a/Game/Dungeon/DungeonSimulation.cs +++ b/Game/Dungeon/DungeonSimulation.cs @@ -548,6 +548,13 @@ public partial class DungeonSimulation foreach (var mob in Mobs.Values.Where(m => m.IsAlive)) { float distance = Distance(projectile.X, projectile.Y, mob.X, mob.Y); + + // Debug: Log every projectile-mob distance check + if (Projectiles.Count > 0 && projectile.Id % 10 == 0) // Log every 10th projectile to reduce spam + { + 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) { Console.WriteLine($"[Projectile {projectile.Id}] HIT mob {mob.Id} at distance {distance:F1}! Damage: {projectile.Damage}");