From 5f6e5e3be60204101912e14dcd3681f710926002 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 19 Feb 2022 13:50:33 +0100 Subject: Add "discard" menu option for faster testing. --- rules.js | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.3