Increased logging
This commit is contained in:
@@ -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 _))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user