Normalize mob visual state on tick and document remaining client loot prompt gating

- Add server-side state sanity checks so alive mobs cannot remain in dead/death animation state

- Enforce dead state/death animation for dead mobs every tick

- Remove Damaged-state assignment on hit to avoid hurt-loop visual lock-in

- Update pending-clientChanges.md: client should gate loot prompt by isAlive=false && hasLoot=true
This commit is contained in:
dingo
2026-02-09 10:11:54 -05:00
parent 5d3de08037
commit 8256b01fa4
2 changed files with 30 additions and 6 deletions
+10 -2
View File
@@ -1,10 +1,18 @@
# Pending Client Changes
## Status
No mandatory client changes are currently required for the latest server fixes.
One client-side update is still required for corpse interaction UX.
## Required Client Update
1. Gate loot prompt (`E`) by `hasLoot`.
- Server now sends `hasLoot` for each mob in join/state payloads.
- Show corpse loot interaction only when:
- `isAlive == false`
- `hasLoot == true`
- Hide loot interaction if `hasLoot == false` (corpse remains, but not lootable).
## Notes
1. Server now includes `isAlive` consistently in mob payloads and sends `mobCatalog` on dungeon-enter responses and one-time in dungeon state.
1. Server now includes `isAlive`/`hasLoot`/`currentAnimation` consistently in mob payloads and sends `mobCatalog` on dungeon-enter responses and one-time in dungeon state.
2. If invisible mobs still occur, keep a fallback render path when `spriteConfig` is null:
- Use `definitionId` -> local/default sprite mapping.
- Apply default tint `#ffffff` and scale `1.0`.