diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-02-19 13:50:33 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | 5f6e5e3be60204101912e14dcd3681f710926002 (patch) | |
tree | 22fe6e34b81477b3d26fb22c0511d1ed7219f71e | |
parent | 946d35ee4f932ced82ba41de9165ff3f9761507e (diff) | |
download | wilderness-war-5f6e5e3be60204101912e14dcd3681f710926002.tar.gz |
Add "discard" menu option for faster testing.
-rw-r--r-- | rules.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |