diff --git a/server/config.json5 b/server/config.json5 index 369d6ef..f8b9e0b 100644 --- a/server/config.json5 +++ b/server/config.json5 @@ -83,9 +83,23 @@ audienceMode: false, decks: [ // { + // // A built-in deck. // source: "BuiltIn", + // // The id (filename without `.deck.json5`. // id: "cah-base-en", // }, + // { + // // A deck from JSON Against Humanity + // source: "JAH", + // // The id can be found in the JSON as the key for the deck. + // id: "Base", + // }, + // { + // // A deck from Many Decks + // source: "ManyDecks", + // // The deck code, as given on Many Decks. + // deckCode: "ABCDE", + // }, ], }, diff --git a/server/src/ts/lobby.ts b/server/src/ts/lobby.ts index c45c8f1..5c9c59c 100644 --- a/server/src/ts/lobby.ts +++ b/server/src/ts/lobby.ts @@ -92,7 +92,9 @@ export const fromDefaults = ( rules: Rules.fromDefaults(defaults.rules), public: defaults.public, audienceMode: defaults.audienceMode, - decks: [], + decks: defaults.decks.map((d) => ({ + source: d, + })), }, tasks: tasks, };