Reduce maximum player count to 9 and bump version
This commit is contained in:
parent
f045cd56d3
commit
f972f8f7fe
4 changed files with 3 additions and 3 deletions
BIN
packages/engine/outpost-engine-0.2.1.tgz
Normal file
BIN
packages/engine/outpost-engine-0.2.1.tgz
Normal file
Binary file not shown.
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "outpost-engine",
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.1",
|
||||
"description": "Unofficial Outpost rules engine for boardgamers.space",
|
||||
"license": "AGPL-3.0",
|
||||
"files": [
|
||||
|
|
|
|||
|
|
@ -133,4 +133,4 @@ export const ROBOT_COST = 10;
|
|||
export const MID_THRESHOLD = 10;
|
||||
|
||||
export const MIN_PLAYERS = 2;
|
||||
export const MAX_PLAYERS = 10;
|
||||
export const MAX_PLAYERS = 9;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { startDevBackend } from "./dev-backend";
|
|||
import { launch } from "./viewer";
|
||||
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const players = Math.min(10, Math.max(2, Number(params.get("players") ?? 4)));
|
||||
const players = Math.min(9, Math.max(2, Number(params.get("players") ?? 4)));
|
||||
const seed = params.get("seed") ?? undefined;
|
||||
const auto = params.get("auto") === "1" || params.get("auto") === "true";
|
||||
const delayMs = params.get("delay") ? Number(params.get("delay")) : undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue