summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-02 10:28:04 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:08:56 +0100
commitd0ea2c239e1380ad43c689f828449a1aa3546870 (patch)
tree4b0b40d6bba81c30e18173008e69e63b6ac2355f /ui.js
parentd8ca6742178d707526bf0d09a6298016d23d4625 (diff)
downloadjulius-caesar-d0ea2c239e1380ad43c689f828449a1aa3546870.tar.gz
Show turn info bar on all block games.
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index 9abea0b..cef0c15 100644
--- a/ui.js
+++ b/ui.js
@@ -668,6 +668,10 @@ function on_update() {
document.getElementById("turn").className = "year_" + game.year;
document.getElementById("caesar_vp").textContent = game.c_vp + " VP";
document.getElementById("pompeius_vp").textContent = game.p_vp + " VP";
+ if (game.turn < 1)
+ document.querySelector(".turn_info").textContent = `Year ${game.year}`;
+ else
+ document.querySelector(".turn_info").textContent = `Turn ${game.turn} of Year ${game.year}`;
show_action_button("#undo_button", "undo");
show_action_button("#surprise_button", "surprise");