diff --git a/src/games/acity.ts b/src/games/acity.ts index df2c8458..0244568a 100644 --- a/src/games/acity.ts +++ b/src/games/acity.ts @@ -82,12 +82,14 @@ export class ACityGame extends GameBase { { num: 5, default: "#fff", - explanation: "Colour of the first player" + explanation: "Colour of the first player", + player: 1 }, { num: 6, default: "#000", - explanation: "Colour of the second player" + explanation: "Colour of the second player", + player: 2 }, ], categories: ["goal>score>eog", "mechanic>network", "mechanic>place", "mechanic>random>setup", "board>shape>rect", "board>connect>rect", "components>pyramids", "components>piecepack"], diff --git a/src/games/almatafl.ts b/src/games/almatafl.ts index 3f2a8097..ff9db1f9 100644 --- a/src/games/almatafl.ts +++ b/src/games/almatafl.ts @@ -60,12 +60,14 @@ export class AlmataflGame extends GameBase { { num: 2, default: "#666", - explanation: "Colour of player 1 (the invaders)" + explanation: "Colour of player 1 (the invaders)", + player: 1 }, { num: 3, default: "#fff", - explanation: "Colour of player 2 (the defenders)" + explanation: "Colour of player 2 (the defenders)", + player: 2 }, ], categories: ["goal>royal-capture", "goal>royal-escape", "mechanic>asymmetry", "mechanic>move", "mechanic>stack", "mechanic>differentiate", "board>shape>hex", "board>connect>hex", "components>simple>1per"], diff --git a/src/games/bloqueo.ts b/src/games/bloqueo.ts index 872cd174..b997ce8f 100644 --- a/src/games/bloqueo.ts +++ b/src/games/bloqueo.ts @@ -71,12 +71,14 @@ export class BloqueoGame extends GameBase { { num: 4, default: "#fff", - explanation: "Colour of player 1" + explanation: "Colour of player 1", + player: 1 }, { num: 5, default: 9, - explanation: "Colour of player 2" + explanation: "Colour of player 2", + player: 2 }, ], categories: ["goal>score>eog", "mechanic>share", "mechanic>move", "mechanic>place", "mechanic>displace", "board>shape>rect", "board>connect>rect", "components>simple>5c"], diff --git a/src/games/bluestone.ts b/src/games/bluestone.ts index 935dc75e..bbb4a0da 100644 --- a/src/games/bluestone.ts +++ b/src/games/bluestone.ts @@ -64,7 +64,8 @@ export class BluestoneGame extends GameBase { { num: 1, default: 1, - explanation: "Colour of the first player" + explanation: "Colour of the first player", + player: 1 }, { num: 2, @@ -74,7 +75,8 @@ export class BluestoneGame extends GameBase { { num: 3, default: 3, - explanation: "Colour of the second player" + explanation: "Colour of the second player", + player: 2 }, ], }; diff --git a/src/games/logger.ts b/src/games/logger.ts index 48ae2b5a..7070bcd1 100644 --- a/src/games/logger.ts +++ b/src/games/logger.ts @@ -59,12 +59,14 @@ export class LoggerGame extends GameBase { { num: 1, default: 1, - explanation: "Colour of player 1" + explanation: "Colour of player 1", + player: 1 }, { num: 2, default: 2, - explanation: "Colour of player 2" + explanation: "Colour of player 2", + player: 2 }, { num: 3, @@ -74,12 +76,14 @@ export class LoggerGame extends GameBase { { num: 4, default: 4, - explanation: "Colour of player 3" + explanation: "Colour of player 3", + player: 3 }, { num: 5, default: 5, - explanation: "Colour of player 4" + explanation: "Colour of player 4", + player: 4 }, { num: 6, diff --git a/src/games/prudh.ts b/src/games/prudh.ts index 89c4cd47..001d142d 100644 --- a/src/games/prudh.ts +++ b/src/games/prudh.ts @@ -54,12 +54,14 @@ export class PrudhGame extends GameBase { { num: 2, default: "#fff", - explanation: "Colour of player 1" + explanation: "Colour of player 1", + player: 1 }, { num: 3, default: "#000", - explanation: "Colour of player 2" + explanation: "Colour of player 2", + player: 2 }, ], categories: ["goal>score>eog", "mechanic>move", "mechanic>move>sow", "mechanic>share", "board>shape>rect", "board>connect>rect", "components>simple>1c"], diff --git a/src/games/subdivision.ts b/src/games/subdivision.ts index 923e8054..cec56c6a 100644 --- a/src/games/subdivision.ts +++ b/src/games/subdivision.ts @@ -74,12 +74,14 @@ export class SubdivisionGame extends GameBase { { num: 1, default: 1, - explanation: "Colour of player 1" + explanation: "Colour of player 1", + player: 1 }, { num: 2, default: 2, - explanation: "Colour of player 2" + explanation: "Colour of player 2", + player: 2 }, { num: 3, @@ -89,12 +91,14 @@ export class SubdivisionGame extends GameBase { { num: 4, default: 4, - explanation: "Colour of player 3" + explanation: "Colour of player 3", + player: 3 }, { num: 5, default: 5, - explanation: "Colour of player 4" + explanation: "Colour of player 4", + player: 4 }, ], categories: ["goal>score>eog", "mechanic>place", "mechanic>random>setup", "board>shape>rect", "board>connect>rect", "components>pyramids", "other>2+players"], diff --git a/src/schemas/gameinfo.d.ts b/src/schemas/gameinfo.d.ts index b5bd7117..6dd16a3e 100644 --- a/src/schemas/gameinfo.d.ts +++ b/src/schemas/gameinfo.d.ts @@ -173,6 +173,10 @@ export interface CustomizationPalette { * A free text description of what this colour is used for and perhaps tips on customizing it (if it's complicated). */ explanation: string; + /** + * The player number, if this is a player color. + */ + player?: number; } export interface CustomizationContext { /** diff --git a/src/schemas/gameinfo.json b/src/schemas/gameinfo.json index 2c7f5854..0dba64b4 100644 --- a/src/schemas/gameinfo.json +++ b/src/schemas/gameinfo.json @@ -110,6 +110,10 @@ "explanation": { "description": "A free text description of what this colour is used for and perhaps tips on customizing it (if it's complicated).", "type": "string" + }, + "player": { + "description": "The player number, if this is a player color.", + "type": "integer" } }, "required": ["default", "num", "explanation"], @@ -226,4 +230,4 @@ } }, "required": ["name", "uid", "version", "playercounts", "categories", "dateAdded"] -} \ No newline at end of file +}