Looting fix
This commit is contained in:
@@ -1765,11 +1765,8 @@ public sealed partial class DungeonHandler : IClientMessageHandler
|
||||
mob.DeathLoot = allItems;
|
||||
mob.DeathLootGold = totalGold;
|
||||
|
||||
// If mob has no loot, mark it for corpse removal
|
||||
if (!mob.HasDeathLoot && dungeon != null)
|
||||
{
|
||||
mob.LootEmptiedAtTick = dungeon.Simulation.CurrentTick;
|
||||
}
|
||||
// Don't set LootEmptiedAtTick here - let the simulation do it when dungeon is cleared
|
||||
// This way corpses stay during combat even if they have no loot
|
||||
|
||||
_log.LogDebug("Mob {Mob} died with {Count} items and {Gold} gold loot",
|
||||
mob.Name, allItems.Count, totalGold);
|
||||
|
||||
Reference in New Issue
Block a user