summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2023-09-04 10:05:35 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit49f732f777466d3b187c24a870112c7483a5a913 (patch)
treee073f7e3e89d6c45987267c849888c236e7cf45d /play.js
parent1bfc2c07a1e0de29e10ae73173d8e4dd6c70c920 (diff)
downloadplantagenet-49f732f777466d3b187c24a870112c7483a5a913.tar.gz
debug sail
wrong list of locale for way_sea_3
Diffstat (limited to 'play.js')
-rw-r--r--play.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/play.js b/play.js
index 89990a7..8989551 100644
--- a/play.js
+++ b/play.js
@@ -1122,10 +1122,21 @@ function update_locale(loc) {
ui.locale_markers[loc].appendChild(get_cached_element("marker circle battle"))
+ if (!set_has(view.pieces.depleted,loc) && !set_has(view.pieces.exhausted,loc)) {
+ let cn
+ cn = "depleted"
+ ui.locale_markers[loc].classList.remove(cn)
+ cn = "exhausted"
+ ui.locale_markers[loc].classList.remove(cn)
+ }
+
if (set_has(view.pieces.depleted, loc)) {
let cn
cn = "depleted"
ui.locale_markers[loc].classList.add(cn)
+ cn = "exhausted"
+ ui.locale_markers[loc].classList.remove(cn)
+
}
if (set_has(view.pieces.exhausted, loc)) {
let cn