File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ export const useGameStore = defineStore("game", {
3535 dailydoubleTrigger : 0 ,
3636 socket : null ,
3737 rouletteTarget : null ,
38+ // Set by HostView on mount. Host skips the roulette animation and jumps
39+ // straight to the winner so the operator can re-roll quickly for showmanship.
40+ isHost : false ,
3841 } ) ,
3942
4043 getters : {
@@ -180,6 +183,10 @@ export const useGameStore = defineStore("game", {
180183 if ( ! sequence || sequence . length === 0 ) return ;
181184 // Clear any pending roulette first.
182185 if ( this . _rouletteTimer ) clearInterval ( this . _rouletteTimer ) ;
186+ if ( this . isHost ) {
187+ this . ui_state . team = sequence [ sequence . length - 1 ] ;
188+ return ;
189+ }
183190 const queue = [ ...sequence ] ;
184191 this . _rouletteTimer = setInterval ( ( ) => {
185192 if ( queue . length === 0 ) {
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ function resetAnswers() {
2323}
2424
2525onMounted (async () => {
26+ game .isHost = true ;
2627 if (! game .initialized ) await game .refresh ();
2728 if (! game .isInProgress ) {
2829 router .push ({ name: " start" });
You can’t perform that action at this time.
0 commit comments