diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-04-02 13:31:17 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:16 +0200 |
commit | 8ce60ae049b47177e83560468c36e68a153b9cfb (patch) | |
tree | b651e1c88120ec15bc5cb9bc2819c846f92b3211 | |
parent | 9480c9625a3109c44b9c5d185bc88d68801cbbee (diff) | |
download | andean-abyss-8ce60ae049b47177e83560468c36e68a153b9cfb.tar.gz |
TEST
-rw-r--r-- | play.html | 1 | ||||
-rw-r--r-- | rules.js | 10 |
2 files changed, 9 insertions, 2 deletions
@@ -32,6 +32,7 @@ <div class="menu_item" onclick="send_restart('Quick')">⚠ Restart Quick</div> <div class="menu_item" onclick="send_restart('3P Quick')">⚠ Restart 3P Quick</div> <div class="menu_item" onclick="send_restart('2P Quick')">⚠ Restart 2P Quick</div> + <div class="menu_item" onclick="send_restart('Test')">⚠ Restart Test</div> </div> </div> <div class="icon_button" onclick="toggle_pieces()"><img src="/images/earth-america.svg"></div> @@ -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 } |