diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-06-26 01:06:20 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-07 19:05:52 +0200 |
commit | 3ec19c1c349ed7fb81bca5f1d1a02c532eb2e81b (patch) | |
tree | e882d3894b0033a7fe1d8996193e34310eb16501 /play.js | |
parent | d91729e13fd3081907bf38b5a6823aab161c6509 (diff) | |
download | time-of-crisis-3ec19c1c349ed7fb81bca5f1d1a02c532eb2e81b.tar.gz |
Combine crisis + dice array. Split IP array.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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]) |