Loot fix
This commit is contained in:
@@ -4901,6 +4901,10 @@ public partial class DungeonHandler
|
|||||||
// Send updated inventory
|
// Send updated inventory
|
||||||
await HandleInventoryRequest(connection, session, ct);
|
await HandleInventoryRequest(connection, session, ct);
|
||||||
|
|
||||||
|
// Send updated mob loot state so client knows what's left
|
||||||
|
await HandleMobLootRequest(connection, session, System.Text.Encoding.UTF8.GetBytes(
|
||||||
|
System.Text.Json.JsonSerializer.Serialize(new { mobId = request.MobId })), ct);
|
||||||
|
|
||||||
_log.LogDebug("Player {Player} looted {Item} x{Qty} from mob {Mob}",
|
_log.LogDebug("Player {Player} looted {Item} x{Qty} from mob {Mob}",
|
||||||
session.Character.Name, lootItem.Item.Name, lootItem.Quantity, mob.Name);
|
session.Character.Name, lootItem.Item.Name, lootItem.Quantity, mob.Name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user