summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/ui.js b/ui.js
index d9d55e6..90c8ac0 100644
--- a/ui.js
+++ b/ui.js
@@ -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)