Keep mob corpses persistent and enforce death animation state

- Stop automatic corpse removal after loot is emptied; corpses now remain in world

- On all mob death paths, set dead state plus death animation (death_[dir]) and clear combat/cast targeting

- Include dead mobs in spatial state feed so corpses do not disappear from clients

- Add mob currentAnimation/hasLoot in payload and reject loot interaction when corpse has no loot
This commit is contained in:
dingo
2026-02-09 09:24:14 -05:00
parent d8e4e7430b
commit 5d3de08037
5 changed files with 40 additions and 25 deletions
+7
View File
@@ -37,6 +37,13 @@ public sealed partial class DungeonHandler
return;
}
// No interaction once corpse loot is exhausted
if (!mob.HasDeathLoot)
{
await SendErrorAsync(connection, "Mob has no loot", ct);
return;
}
// Check distance
if (session.PlayerInstance != null)
{