summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-26 01:06:20 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-07 19:05:52 +0200
commit3ec19c1c349ed7fb81bca5f1d1a02c532eb2e81b (patch)
treee882d3894b0033a7fe1d8996193e34310eb16501 /play.js
parentd91729e13fd3081907bf38b5a6823aab161c6509 (diff)
downloadtime-of-crisis-3ec19c1c349ed7fb81bca5f1d1a02c532eb2e81b.tar.gz
Combine crisis + dice array. Split IP array.
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])