summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-12-15 03:29:18 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commit6d081770ec81e431a050d9d7feac6ece4ba87d14 (patch)
treed5f8ee41f67b0a1134ed1f145e14ffb5e001a6b2 /ui.js
parent1341c6003060c6e16d7bdd39b90360cac360c290 (diff)
downloadrichard-iii-6d081770ec81e431a050d9d7feac6ece4ba87d14.tar.gz
richard: Show enemy pools.
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/ui.js b/ui.js
index 5dc0c97..62e676d 100644
--- a/ui.js
+++ b/ui.js
@@ -583,8 +583,17 @@ function update_map() {
}
// Layout blocks on map
- for (let area in AREAS)
- layout_blocks(area, layout[area].Lancaster, layout[area].York);
+ for (let area in AREAS) {
+ if (area === POOL) {
+ layout_blocks("LPool", layout[area].Lancaster, []);
+ layout_blocks("YPool", layout[area].York, []);
+ } else if (area === MINOR) {
+ layout_blocks("LMinor", layout[area].Lancaster, []);
+ layout_blocks("YMinor", layout[area].York, []);
+ } else {
+ layout_blocks(area, layout[area].Lancaster, layout[area].York);
+ }
+ }
for (let where in AREAS) {
if (ui.areas[where]) {