summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-05 23:17:46 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-06 01:45:34 +0100
commit3c1ae85c4614cabbc84d2aa515885028c3e5bb0b (patch)
treeb89669543bdccef73320ce63b232e18cebf577a3 /play.js
parent2d5bf7aca72ba2758f49c36b0bc3e71710dff073 (diff)
downloadmaria-3c1ae85c4614cabbc84d2aa515885028c3e5bb0b.tar.gz
Pragmatic Army to England event.
Diffstat (limited to 'play.js')
-rw-r--r--play.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/play.js b/play.js
index 81988d9..0decf5f 100644
--- a/play.js
+++ b/play.js
@@ -1227,10 +1227,12 @@ function layout_electoral_college(ix, pow) {
function update_favicon() {
let favicon = document.querySelector('link[rel="icon"]')
switch (params.role) {
- case "Louis XV": favicon.href = "favicon/louis.png"; break
- case "Frederick": favicon.href = "favicon/fritz.png"; break
+ case R_PLAYER_A:
+ case R_LOUIS_XV: favicon.href = "favicon/louis.png"; break
+ case R_FREDERICK: favicon.href = "favicon/fritz.png"; break
default:
- case "Maria Theresa": favicon.href = "favicon/maria.png"; break
+ case R_PLAYER_B:
+ case R_MARIA_THERESA: favicon.href = "favicon/maria.png"; break
}
}
@@ -1609,6 +1611,8 @@ function sub_piece(match, p1) {
function sub_space(match, p1) {
let x = p1 | 0
+ if (x === ELIMINATED)
+ return "eliminated"
let n = data.cities.name[x]
return `<span class="city_tip" onclick="on_click_city_tip(${x})" onmouseenter="on_focus_city_tip(${x})" onmouseleave="on_blur_city_tip(${x})">${n}</span>`
}