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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user