- Add server-side payload-time normalization to prevent alive mobs from being sent with dead/hurt animations - Enforce dead state/death animation payload consistency for non-alive mobs - Apply normalization in both dungeon enter flows and recurring dungeon state sends - Update pending-clientChanges.md: client must treat currentAnimation as authoritative and gate loot prompt by hasLoot
1.1 KiB
1.1 KiB
Pending Client Changes
Status
Two client-side updates are still required for animation/loot interaction consistency.
Required Client Update
- Gate loot prompt (
E) byhasLoot.
- Server now sends
hasLootfor each mob in join/state payloads. - Show corpse loot interaction only when:
isAlive == falsehasLoot == true
- Hide loot interaction if
hasLoot == false(corpse remains, but not lootable).
- Treat
currentAnimationas authoritative on mob update.
- Server now sends
currentAnimationon join/state payloads. - On each update for an existing mob entity, client should apply server animation directly.
- Do not keep a previous local animation state when server sends a different value.
Notes
- Server now includes
isAlive/hasLoot/currentAnimationconsistently in mob payloads and sendsmobCatalogon dungeon-enter responses and one-time in dungeon state. - If invisible mobs still occur, keep a fallback render path when
spriteConfigis null:
- Use
definitionId-> local/default sprite mapping. - Apply default tint
#ffffffand scale1.0.