diff --git a/src/frontend/components/menus/lobby.tsx b/src/frontend/components/menus/lobby.tsx index 4c4efa9..b016ac0 100644 --- a/src/frontend/components/menus/lobby.tsx +++ b/src/frontend/components/menus/lobby.tsx @@ -119,15 +119,14 @@ export function ActiveLobby({ [gameInstance], ); - const viableToStart = true; - // const viableToStart = useMemo(() => - // gameInstance.isHost && members.length >= 2 && proposedTeams.length >= 2 && - // proposedTeams.reduce>>((v, o) => ({ - // ...v, - // [o.group]: (v[o.group] ?? 0) + 1 - // }), { }) - // , [gameInstance, members, proposedTeams]); + const viableToStart = useMemo(() => + gameInstance.isHost && members.length >= 2 && proposedTeams.length >= 2 && + proposedTeams.reduce>>((v, o) => ({ + ...v, + [o.group]: (v[o.group] ?? 0) + 1 + }), { }) + , [gameInstance, members, proposedTeams]); const lobbyLink = `${window.location.origin}${window.location.pathname}?gameRoomId=${encodeURIComponent(gameInstance.roomId)}`; return ( diff --git a/src/frontend/components/menus/online-play.tsx b/src/frontend/components/menus/online-play.tsx index 336eb4f..bde99a8 100644 --- a/src/frontend/components/menus/online-play.tsx +++ b/src/frontend/components/menus/online-play.tsx @@ -34,7 +34,7 @@ function LoggedInView({ client .createGameRoom({ rules: { - winWhenOneGroupRemains: false, + winWhenOneGroupRemains: true, wormHealth: 100, ammoSchema: DefaultWeaponSchema, },