From 8ce60ae049b47177e83560468c36e68a153b9cfb Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 2 Apr 2023 13:31:17 +0200 Subject: TEST --- play.html | 1 + rules.js | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/play.html b/play.html index 0cf95fa..2d65096 100644 --- a/play.html +++ b/play.html @@ -32,6 +32,7 @@ +
diff --git a/rules.js b/rules.js index 9738132..519c9f3 100644 --- a/rules.js +++ b/rules.js @@ -181,6 +181,7 @@ exports.scenarios = [ "2P Standard", "2P Short", "2P Quick", + "Test", ] function load_game(state) { @@ -284,6 +285,13 @@ exports.setup = function (seed, scenario, options) { setup_deck(4, 0, 15) } + if (scenario === "Test") { + game.deck = [] + for (let i = 1; i < PROPAGANDA; ++i) + if (i !== 1 && i !== 2 && i !== 3 && i !== 7 && i !== 9 && i !== 10 && i !== 11 && i !== 13) + game.deck.push(i) + } + log("DECK " + game.deck.join(", ")) update_control() @@ -5305,8 +5313,6 @@ function end_event() { resume_event_card() } -// EVENT VM - function is_piece_in_event_space(p) { return piece_space(p) === game.vm.s } -- cgit v1.2.3