diff options
author | Joël Simoneau <simoneaujoel@gmail.com> | 2025-04-18 13:20:23 -0400 |
---|---|---|
committer | Joël Simoneau <simoneaujoel@gmail.com> | 2025-04-18 13:20:23 -0400 |
commit | ffa5fa0d1b5c28f9f43e51a75cdb6155fde11ce3 (patch) | |
tree | 6d8dc62224a1341f493a43199c34d9434e7b1214 | |
parent | 89231ed0521637619335925b02cc8726388e1fd9 (diff) | |
download | vijayanagara-ffa5fa0d1b5c28f9f43e51a75cdb6155fde11ce3.tar.gz |
Favicon for non-players
-rw-r--r-- | play.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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") |