summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-04-18 13:20:23 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2025-04-18 13:20:23 -0400
commitffa5fa0d1b5c28f9f43e51a75cdb6155fde11ce3 (patch)
tree6d8dc62224a1341f493a43199c34d9434e7b1214
parent89231ed0521637619335925b02cc8726388e1fd9 (diff)
downloadvijayanagara-ffa5fa0d1b5c28f9f43e51a75cdb6155fde11ce3.tar.gz
Favicon for non-players
-rw-r--r--play.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/play.js b/play.js
index ce42f5c..53463dd 100644
--- a/play.js
+++ b/play.js
@@ -995,10 +995,13 @@ function on_update() {
once = false
}
+ let curr = view.current === -1 ? VE : view.current
switch (player) {
case "Delhi Sultanate": ui.favicon.href = faction_flags[DS]; break
case "Bahmani Kingdom": ui.favicon.href = faction_flags[BK]; break
case "Vijayanagara Empire": ui.favicon.href = faction_flags[VE]; break
+ case "Solo": ui.favicon.href = faction_flags[curr]; break
+ case "Observer": ui.favicon.href = faction_flags[curr]; break
}
// Dice rolling
@@ -1077,10 +1080,8 @@ function on_update() {
if (s <= last_province) {
-console.log("LAYOUT PROV", data.space_name[s])
troops.length = elites.length = discs.length = 0
filter_piece_list(discs, s, DS, DISC)
-console.log(" DS DISCS", discs.length)
filter_piece_list(elites, s, DS, ELITE)
filter_piece_list(troops, s, DS, TROOPS)
xy = get_layout_xy(s, "DS")