From f7f17d5d8e464bbe3406dafe39df7afb13dd455a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 16 Dec 2022 12:08:29 +0100 Subject: Explicit legate selection tracking. --- play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'play.js') 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") -- cgit v1.2.3