From 338968e474f889f04e4d4ebf8d4ac177160afc78 Mon Sep 17 00:00:00 2001 From: GameDog9988 <alex@grattan.me> Date: Tue, 10 Oct 2023 21:09:33 -0400 Subject: [PATCH] feat: slightly reduce time after face off results --- apps/client/src/components/game/game-machine.tsx | 2 +- .../src/components/game/game-machine.typegen.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/client/src/components/game/game-machine.tsx b/apps/client/src/components/game/game-machine.tsx index f9253212..0e92a1b7 100644 --- a/apps/client/src/components/game/game-machine.tsx +++ b/apps/client/src/components/game/game-machine.tsx @@ -104,7 +104,7 @@ export const gameMachine = createMachine( faceOffResults: { after: { - 20000: [ + 18000: [ { target: "winnerLeadUp", cond: "completedRounds", diff --git a/apps/client/src/components/game/game-machine.typegen.ts b/apps/client/src/components/game/game-machine.typegen.ts index d3745811..acb38b6e 100644 --- a/apps/client/src/components/game/game-machine.typegen.ts +++ b/apps/client/src/components/game/game-machine.typegen.ts @@ -6,8 +6,8 @@ export interface Typegen0 { "xstate.after(10000)#Machine.winner": { type: "xstate.after(10000)#Machine.winner"; }; - "xstate.after(20000)#Machine.faceOffResults": { - type: "xstate.after(20000)#Machine.faceOffResults"; + "xstate.after(18000)#Machine.faceOffResults": { + type: "xstate.after(18000)#Machine.faceOffResults"; }; "xstate.after(4000)#Machine.nextRound": { type: "xstate.after(4000)#Machine.nextRound"; @@ -34,14 +34,14 @@ export interface Typegen0 { services: never; }; eventsCausingActions: { - incrementQuestionIdx: "xstate.after(20000)#Machine.faceOffResults"; + incrementQuestionIdx: "xstate.after(18000)#Machine.faceOffResults"; resetContext: "NEXT"; - startNewRound: "xstate.after(20000)#Machine.faceOffResults"; + startNewRound: "xstate.after(18000)#Machine.faceOffResults"; }; eventsCausingDelays: {}; eventsCausingGuards: { - completedCurrentRound: "xstate.after(20000)#Machine.faceOffResults"; - completedRounds: "xstate.after(20000)#Machine.faceOffResults"; + completedCurrentRound: "xstate.after(18000)#Machine.faceOffResults"; + completedRounds: "xstate.after(18000)#Machine.faceOffResults"; }; eventsCausingServices: {}; matchesStates: