From b9ecf1b7125c080d228852320f6f6b0a06ba0b3e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 8 Sep 2022 00:25:30 +0200 Subject: Click on unit in base to build CVs during buildup. --- rules.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index 9c07479..defbfd4 100644 --- a/rules.js +++ b/rules.js @@ -5663,7 +5663,7 @@ function apply_reinforcements() { }) } - log(`Reinforcements at #${base}:`) + log(`Reinforcements at #${base}`) if (refitted > 0) log(`>${refitted} refitted`) log(`>${scheduled} on schedule`) @@ -5892,6 +5892,8 @@ states.spending_bps = { game.buildup.changed = 0 } else { if (who === game.selected) { + if (unit_hex(who) === friendly_base() && unit_lost_steps(who) > 0 && available_bps() >= replacement_cost(who)) + return this.replacement() if (!game.buildup.changed) pop_undo() else @@ -6281,7 +6283,7 @@ function is_valid_deployment_hex(base, x, n) { } states.free_deployment = { - inactive: "free deployment", + inactive: "setup", prompt() { let scenario = current_scenario() let axis = (game.active === AXIS) @@ -6352,7 +6354,7 @@ function goto_initial_supply_cards() { } states.initial_supply_cards = { - inactive: "initial supply cards", + inactive: "setup", prompt() { view.prompt = `Setup: You may discard your entire hand and redraw a new one.` gen_action('discard') -- cgit v1.2.3