diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-02 10:43:17 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:19:39 +0100 |
commit | 7a2db3d328956a876e8c982beaf434b05bc884fd (patch) | |
tree | f37d26b41c38ada1b5740a5e0a0bf777858c479d /ui.js | |
parent | 8de16476a5ea639ae59045bcc618832412d41c79 (diff) | |
download | crusader-rex-7a2db3d328956a876e8c982beaf434b05bc884fd.tar.gz |
crusader: Show turn info and player roles as other games.
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -568,11 +568,14 @@ function update_map() { document.getElementById("frank_vp").textContent = game.f_vp + " VP"; document.getElementById("saracen_vp").textContent = game.s_vp + " VP"; document.getElementById("timeline").className = "year_" + game.year; - if (game.turn < 6) - document.getElementById("turn").textContent = + if (game.turn < 1) + document.querySelector(".turn_info").textContent = + "Year " + game.year; + else if (game.turn < 6) + document.querySelector(".turn_info").textContent = "Turn " + game.turn + " of Year " + game.year; else - document.getElementById("turn").textContent = + document.querySelector(".turn_info").textContent = "Winter Turn of Year " + game.year; for (let town in TOWNS) |