fix: sync adjusted QTE total to ring animation via qteTimer event

This commit is contained in:
2026-06-09 20:06:16 +08:00
parent 5eb727f17e
commit 1c00ff9de5

View File

@@ -98,7 +98,8 @@ export function useGameEngine(videoEls: () => [HTMLVideoElement | null, HTMLVide
store.showQTE(qte)
})
engine.on('qteTimer', ({ remaining }) => {
engine.on('qteTimer', ({ remaining, total }) => {
store.qteTotal.value = total
store.updateQTE(remaining)
})