summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-09-08 00:25:30 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:27 +0100
commitb9ecf1b7125c080d228852320f6f6b0a06ba0b3e (patch)
tree02ddaf34d0b4afb0a68bf6602c516bcf2e7207ef
parent6c9834e241b38fb9780510039eb87a11054a53ed (diff)
downloadrommel-in-the-desert-b9ecf1b7125c080d228852320f6f6b0a06ba0b3e.tar.gz
Click on unit in base to build CVs during buildup.
-rw-r--r--rules.js8
1 files 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')