From e270a58ec7c5e6a4058d07410fe00db7ad6831b7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 23 Apr 2023 11:50:44 +0200 Subject: WIP test "setup" command - send_restart([events]) to seed the deck. --- rules.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rules.js b/rules.js index 0984f9d..668aa15 100644 --- a/rules.js +++ b/rules.js @@ -296,7 +296,6 @@ exports.setup = function (seed, scenario, options) { log_h1("Scenario: " + scenario) switch (scenario) { - default: case "Standard": if (options.seeded) log("Seeded Deck") @@ -320,6 +319,11 @@ exports.setup = function (seed, scenario, options) { for (let i = 1; i < PROPAGANDA; ++i) game.deck.push(i) break + default: + setup_deck(3, 10, 5) + for (let i = 0; i < scenario.length; ++i) + game.deck[i] = scenario[i] + break } log("DEBUG DECK " + game.deck.join(", ")) -- cgit v1.2.3