summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorFrans Bongers <fransbongers@franss-mbp.home>2024-12-27 22:00:22 +0100
committerFrans Bongers <fransbongers@franss-mbp.home>2024-12-27 22:00:22 +0100
commit4e1517da77e796406befa8264242065687c672f5 (patch)
tree44292a96e084fffa481fb881b64c25f722da1d7b /play.js
parent8749fad48dfca5d4374e15539b160db28a4ed2dc (diff)
downloadland-and-freedom-4e1517da77e796406befa8264242065687c672f5.tar.gz
play additional card
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/play.js b/play.js
index ffef09f..00a436a 100644
--- a/play.js
+++ b/play.js
@@ -330,6 +330,7 @@ function on_update() {
ui.turn_info.style.display = 'none';
}
else {
+ ui.turn_info.style.display = '';
ui.turn_info_card.setAttribute('data-card-id', view.played_card + '');
}
for (let g = 0; g < view.glory.length; ++g) {
@@ -346,8 +347,6 @@ function on_update() {
action_button('d_foreign_aid', 'Decrease Foreign Aid');
action_button('d_government', 'Decrease Government');
action_button('d_soviet_support', 'Decrease Soviet Support');
- action_button('draw_card', 'Draw a card');
- action_button('draw_cards', 'Draw cards');
action_button('foreign_aid', 'Foreign Aid');
action_button('government', 'Government');
action_button('liberty', 'Liberty');
@@ -357,6 +356,8 @@ function on_update() {
action_button('Communist', 'Communist');
action_button('Moderate', 'Moderate');
action_button('gain_hp', 'Gain Hero Points');
+ action_button('draw_card', 'Draw a card');
+ action_button('draw_cards', 'Draw cards');
action_button('play_for_ap', 'Play card for Action Points');
action_button('play_for_event', 'Play card for Event');
action_button('spend_hp', 'Spend Hero Points');