diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -358,8 +358,10 @@ function on_update() { let w1 = data.cards[view.front[0][0]].wing let w2 = data.cards[view.front[1][0]].wing - ui.role_panel[0].className = "role " + side_color[w1] - ui.role_panel[1].className = "role " + side_color[w2] + ui.role_panel[0].classList.add(side_color[w1]) + ui.role_panel[0].classList.remove(side_color[w2]) + ui.role_panel[1].classList.add(side_color[w2]) + ui.role_panel[1].classList.remove(side_color[w1]) ui.role_name[0].textContent = data.scenarios[view.scenario].players[0].name ui.role_name[1].textContent = data.scenarios[view.scenario].players[1].name |