From c30c0cc441f9e54b61db3b17a0fcb4632573ff7c Mon Sep 17 00:00:00 2001 From: dingo Date: Sun, 18 Jan 2026 16:00:49 -0500 Subject: [PATCH] Working on projectiles3 --- Game/Dungeon/DungeonHandler.cs | 1 + Game/Dungeon/DungeonSimulation.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Game/Dungeon/DungeonHandler.cs b/Game/Dungeon/DungeonHandler.cs index 3f62910..c91a135 100644 --- a/Game/Dungeon/DungeonHandler.cs +++ b/Game/Dungeon/DungeonHandler.cs @@ -1086,6 +1086,7 @@ public sealed partial class DungeonHandler : IClientMessageHandler }; dungeon.Simulation.Projectiles.TryAdd(projectile.Id, projectile); + Console.WriteLine($"[HandleFireProjectile] Added projectile {projectile.Id} to simulation. Total projectiles: {dungeon.Simulation.Projectiles.Count}"); // Broadcast projectile spawned foreach (var dungeonPlayer in dungeon.Simulation.Players.Values) diff --git a/Game/Dungeon/DungeonSimulation.cs b/Game/Dungeon/DungeonSimulation.cs index 4997d2a..7ae75fb 100644 --- a/Game/Dungeon/DungeonSimulation.cs +++ b/Game/Dungeon/DungeonSimulation.cs @@ -519,6 +519,11 @@ public partial class DungeonSimulation private void UpdateProjectiles() { + if (Projectiles.Count > 0) + { + Console.WriteLine($"[UpdateProjectiles] Updating {Projectiles.Count} projectiles. Mobs alive: {Mobs.Values.Count(m => m.IsAlive)}"); + } + var toRemove = new List(); foreach (var projectile in Projectiles.Values)