Add 3D dice roll animation for thrown rocks

Emit the individual rock-die faces (0/0/1/1/2/2) from the battle
resolver so the client can render a real CSS 3D cube per die that
tumbles and settles on the rolled face, replacing the flat random
damage number. Falls back to the flying-rock cue for older battle logs
without per-die data.
This commit is contained in:
Greyson Parrelli
2026-07-23 01:01:00 -04:00
parent da00d0fcd7
commit 71fa20493a
5 changed files with 169 additions and 9 deletions
+1
View File
@@ -59,6 +59,7 @@ export interface BattleEvent {
died?: boolean[]
// rock / strip / steal
roll?: number
dice?: number[] // rock: individual die faces (each 0, 1, or 2)
damageAfter?: number
targetDied?: boolean
// eat (new bonus total) / reveal (starting bonus)