diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-07 19:12:12 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-07 19:12:12 +0100 |
commit | 709c5f22e4e3c2e71f7385edbee0ce9922b25863 (patch) | |
tree | fa0ae7136621da44e6766da015bda89f5e1e6fb2 /play.js | |
parent | f0d938b50aa2a06e4223df1c2297e7310b0c9221 (diff) | |
download | 1989-dawn-of-freedom-709c5f22e4e3c2e71f7385edbee0ce9922b25863.tar.gz |
Final tweaks to view
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -225,6 +225,7 @@ function hide_popup_menu() { document.getElementById("popup").style.display = "none"
document.getElementById("popup_ceh_check").style.display = "none"
document.getElementById("popup_opp_event").style.display = "none"
+ document.getElementById("popup_tst_8").style.display = "none"
}
@@ -268,8 +269,14 @@ function on_click_card(evt) { if (send_action('card', card)) {
evt.stopPropagation();
}
- //Check for Common European Home
- } else if (is_card_action('card_ceh', card)) {
+ }
+ //First check for TST special power
+ else if (is_card_action('card_tst_8', card)) {
+ show_popup_menu(evt, "popup_tst_8", card, cards[card].name)
+ }
+
+ //Check for Common European Home
+ else if (is_card_action('card_ceh', card)) {
show_popup_menu(evt, "popup_ceh_check", card, cards[card].name)
} else if (is_card_action('card_opp_event', card)) {
console.log('in action card_opp_event')
|