From 3c1ae85c4614cabbc84d2aa515885028c3e5bb0b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 5 Nov 2024 23:17:46 +0100 Subject: Pragmatic Army to England event. --- play.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'play.js') 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 `${n}` } -- cgit v1.2.3