summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui.js b/ui.js
index 1751566..7f03005 100644
--- a/ui.js
+++ b/ui.js
@@ -261,9 +261,12 @@ function on_update(state, player) {
document.getElementById("persian_info").textContent = persian_info();
if (!game.discard)
- document.getElementById("last_played").className = "card show card_back";
+ document.getElementById("discard").className = "card show card_back";
else
- document.getElementById("last_played").className = "card show card_" + game.discard;
+ document.getElementById("discard").className = "card show card_" + game.discard;
+
+ document.getElementById("deck_info").textContent =
+ "Deck: " + game.deck_size + " \u2014 Discard: " + game.discard_size;
show_action_button("#button_battle", "battle");
show_action_button("#button_build", "build");