- Include active projectiles in DUNGEON_STATE payload, spatially filtered - Track per-ability projectile diagnostics (spawn/hit/expiry) in simulation - Log periodic projectile diagnostics for ability troubleshooting - Update pending-clientChanges.md with required projectile rendering update
1.4 KiB
1.4 KiB
Pending Client Changes
Status
Three client-side updates are still required for animation/loot/projectile 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.
- Render active projectiles from
projectilesinDUNGEON_STATE.
- Server now sends active projectile entities each tick (spatial-filtered).
- Use
x/y,velocityX/velocityY,spriteKey, and linear metadata (isLinear,frontX/frontY,backX/backY) for rendering. - Keep existing
events.projectileHits/events.projectileExpiredhandling for impact/cleanup effects.
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.