diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-18 13:28:02 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | 26073215b9a279d3ea77274143da385615dd8a65 (patch) | |
tree | e7f2bf59efb4d458807b03a796818aae9da7505f /play.js | |
parent | e73f785e5353c5b7b0fc437c8ce2cbbc82adbd1e (diff) | |
download | nevsky-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.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() |