From acfbe0da4f2f170d372d7a0fd98e19e1fdb6e6bc Mon Sep 17 00:00:00 2001 From: dingo Date: Sat, 20 Dec 2025 13:33:13 -0500 Subject: [PATCH] Increased logging --- Game/Dungeon/DungeonHandler.cs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Game/Dungeon/DungeonHandler.cs b/Game/Dungeon/DungeonHandler.cs index 0b5b259..7bdafbb 100644 --- a/Game/Dungeon/DungeonHandler.cs +++ b/Game/Dungeon/DungeonHandler.cs @@ -118,6 +118,19 @@ public sealed class DungeonHandler : IClientMessageHandler _log.LogInformation("Seeded {Count} default mob definitions", defaults.Count); } + // Debug: Log which mobs have SpriteConfigJson + foreach (var mob in mobs) + { + if (!string.IsNullOrEmpty(mob.SpriteConfigJson)) + { + _log.LogInformation("Mob {Name} has SpriteConfigJson: {Json}", mob.Name, mob.SpriteConfigJson.Substring(0, Math.Min(100, mob.SpriteConfigJson.Length))); + } + else + { + _log.LogInformation("Mob {Name} has NO SpriteConfigJson", mob.Name); + } + } + _mobDefinitions = mobs.ToDictionary(m => m.Id); } @@ -128,10 +141,7 @@ public sealed class DungeonHandler : IClientMessageHandler { await InitializeAsync(); } - if (opCode == DungeonOpCodes.ASSET_MANIFEST_REQUEST) - { - await HandleAssetManifestRequest(connection, ct); - } + // All dungeon operations require authentication if (!_sessions.TryGet(connection.Id, out var accountId, out _)) {