summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/play.js b/play.js
index cf7d345..20f7187 100644
--- a/play.js
+++ b/play.js
@@ -1376,12 +1376,11 @@ function on_update() {
ui.body.classList.toggle("senate", view.color === 1)
ui.body.classList.toggle("populace", view.color === 2)
- ui.dice[0].className = "dice black d" + view.dice[0]
- ui.dice[1].className = "dice white d" + view.dice[1]
-
- ui.dice[2].className = "dice black d" + view.dice[2]
- ui.dice[3].className = "dice white d" + view.dice[3]
- layout_barbarian_dice(ui.dice[2], ui.dice[3], view.crisis)
+ layout_barbarian_dice(ui.dice[2], ui.dice[3], view.crisis[0])
+ ui.dice[0].className = "dice black d" + view.crisis[1]
+ ui.dice[1].className = "dice white d" + view.crisis[2]
+ ui.dice[2].className = "dice black d" + view.crisis[3]
+ ui.dice[3].className = "dice white d" + view.crisis[4]
ui.active_event.replaceChildren()
ui.active_event.appendChild(ui.event_cards[view.event])