diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-17 13:31:09 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | 9751557b2aabdb3f6550c6f39dee466c834964a1 (patch) | |
tree | 46164e631e4472de85e9e9b13f449485abe41d0f | |
parent | da8e47dee845d1c513fec3f21a0015c48ea1632e (diff) | |
download | table-battles-9751557b2aabdb3f6550c6f39dee466c834964a1.tar.gz |
x
-rw-r--r-- | play.js | 6 | ||||
-rw-r--r-- | rules.js | 2 |
2 files changed, 5 insertions, 3 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 @@ -2550,7 +2550,7 @@ states.bombard = { view.actions.bombard = 1 }, bombard() { - log("Bombard\nC" + c) + log("Bombard\nC" + game.selected) let opp = 1 - player_index() game.morale[opp] -- |