From 3ec19c1c349ed7fb81bca5f1d1a02c532eb2e81b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 26 Jun 2023 01:06:20 +0200 Subject: Combine crisis + dice array. Split IP array. --- play.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'play.js') 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]) -- cgit v1.2.3