summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-02-19 13:50:33 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commit5f6e5e3be60204101912e14dcd3681f710926002 (patch)
tree22fe6e34b81477b3d26fb22c0511d1ed7219f71e
parent946d35ee4f932ced82ba41de9165ff3f9761507e (diff)
downloadwilderness-war-5f6e5e3be60204101912e14dcd3681f710926002.tar.gz
Add "discard" menu option for faster testing.
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 1ee97c0..ef6db0d 100644
--- a/rules.js
+++ b/rules.js
@@ -2080,6 +2080,7 @@ function gen_card_menu(card) {
gen_action('construct_stockades', card);
gen_action('construct_forts', card);
}
+ gen_action('discard', card);
}
function card_name(card) {
@@ -2142,6 +2143,11 @@ states.action_phase = {
construct_forts(card) {
goto_construct_forts(card);
},
+ discard(card) {
+ player.did_construct = 0;
+ discard_card(card, "");
+ end_action_phase();
+ },
pass() {
log(game.active + " pass.");
player.passed = 1;