summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-23 11:50:44 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commite270a58ec7c5e6a4058d07410fe00db7ad6831b7 (patch)
tree9bebd398b250088b872856793837b0f20d9a16fe
parent918d358f7870e3e950be6168424ddfd160507b6d (diff)
downloadandean-abyss-e270a58ec7c5e6a4058d07410fe00db7ad6831b7.tar.gz
WIP test "setup" command - send_restart([events]) to seed the deck.
-rw-r--r--rules.js6
1 files changed, 5 insertions, 1 deletions
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(", "))