Increased logging

This commit is contained in:
dingo
2025-12-20 13:33:13 -05:00
parent dbeef82f45
commit acfbe0da4f
+14 -4
View File
@@ -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 _))
{