summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-02 13:31:17 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit8ce60ae049b47177e83560468c36e68a153b9cfb (patch)
treeb651e1c88120ec15bc5cb9bc2819c846f92b3211
parent9480c9625a3109c44b9c5d185bc88d68801cbbee (diff)
downloadandean-abyss-8ce60ae049b47177e83560468c36e68a153b9cfb.tar.gz
TEST
-rw-r--r--play.html1
-rw-r--r--rules.js10
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 @@
<div class="menu_item" onclick="send_restart('Quick')">&#x26a0; Restart Quick</div>
<div class="menu_item" onclick="send_restart('3P Quick')">&#x26a0; Restart 3P Quick</div>
<div class="menu_item" onclick="send_restart('2P Quick')">&#x26a0; Restart 2P Quick</div>
+ <div class="menu_item" onclick="send_restart('Test')">&#x26a0; Restart Test</div>
</div>
</div>
<div class="icon_button" onclick="toggle_pieces()"><img src="/images/earth-america.svg"></div>
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
}