summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-16 12:08:29 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commitf7f17d5d8e464bbe3406dafe39df7afb13dd455a (patch)
treed0480bda7ac02e6b79673b6c4d46cfd71b54772e /play.js
parent994e87d2490b855b32ff49a43fc5a36275fb66d9 (diff)
downloadnevsky-f7f17d5d8e464bbe3406dafe39df7afb13dd455a.tar.gz
Explicit legate selection tracking.
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/play.js b/play.js
index fb39dc6..ca763aa 100644
--- a/play.js
+++ b/play.js
@@ -27,7 +27,6 @@ const VASSAL_MUSTERED = 2
const NOWHERE = -1
const CALENDAR = 100
-const LEGATE = 20
const LEGATE_INDISPOSED = -2
const LEGATE_ARRIVED = -1
@@ -198,7 +197,7 @@ function is_legate_action() {
}
function is_legate_selected() {
- return view.who === LEGATE || !!(view.group && set_has(view.group, LEGATE))
+ return !!view.call_to_arms.legate_selected
}
const force_type_count = 7
@@ -1243,6 +1242,7 @@ function on_update() {
action_button("use_legate", "Legate")
+ action_button("end_spoils", "End spoils")
action_button("end_avoid_battle", "End avoid battle")
action_button("withdraw", "Withdraw")
action_button("end_withdraw", "End withdraw")