summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-29 22:44:08 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-01 16:11:22 +0200
commitcbb859a1593d565543f2d4a0203cb223e1e29656 (patch)
treec1893a1b94330b410ad7ecc3af07996e1e1c0fae /rules.js
parent0da3cc2279295813214950eed623fd188db9067f (diff)
downloadwaterloo-campaign-1815-cbb859a1593d565543f2d4a0203cb223e1e29656.tar.gz
Show supporting units.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 96f3017..b72bb10 100644
--- a/rules.js
+++ b/rules.js
@@ -1941,6 +1941,7 @@ function goto_defend_support() {
states.attack_support = {
inactive: "attack",
prompt() {
+ view.support = game.count
if (data.map.names[game.attack])
prompt("Attack " + piece_name(game.target) +
" at " + data.map.names[game.attack] +
@@ -1983,6 +1984,7 @@ states.attack_support = {
states.defend_support = {
inactive: "commit cavalry",
prompt() {
+ view.support = game.count
if (data.map.names[game.attack])
prompt(piece_name(game.who) +
" attacks " + piece_name(game.target) +