summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-18 13:28:02 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commit26073215b9a279d3ea77274143da385615dd8a65 (patch)
treee7f2bf59efb4d458807b03a796818aae9da7505f /play.js
parente73f785e5353c5b7b0fc437c8ce2cbbc82adbd1e (diff)
downloadnevsky-26073215b9a279d3ea77274143da385615dd8a65.tar.gz
2E supply rules.
Only show Supply button if supply is possible. Smarter Lodya when Novgorod is in enemy hands.
Diffstat (limited to 'play.js')
-rw-r--r--play.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/play.js b/play.js
index fd4237e..ace1c6c 100644
--- a/play.js
+++ b/play.js
@@ -1231,9 +1231,10 @@ function update_locale(loc) {
ui.locale[loc].classList.toggle("action", is_locale_action(loc) || is_laden_march_action(loc))
ui.locale[loc].classList.toggle("laden", is_laden_march_action(loc))
+ ui.locale[loc].classList.toggle("supply_path", !!(view.supply && view.supply[0] === loc))
+ ui.locale[loc].classList.toggle("supply_source", !!(view.supply && view.supply[1] === loc))
if (ui.locale_name[loc]) {
ui.locale_name[loc].classList.toggle("action", is_locale_action(loc) || is_laden_march_action(loc))
- ui.locale_name[loc].classList.toggle("laden", is_laden_march_action(loc))
}
ui.locale_markers[loc].replaceChildren()