diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-07 18:12:20 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-07 18:12:20 +0100 |
commit | f0d938b50aa2a06e4223df1c2297e7310b0c9221 (patch) | |
tree | 9f189fe2086a8525436626a9a1b829c1a153d5be | |
parent | c6928522ceef8da847d005942da4479b340a4851 (diff) | |
download | 1989-dawn-of-freedom-f0d938b50aa2a06e4223df1c2297e7310b0c9221.tar.gz |
Popup with scoring cards
-rw-r--r-- | play.html | 8 | ||||
-rw-r--r-- | play.js | 3 | ||||
-rw-r--r-- | rules.js | 3 |
3 files changed, 7 insertions, 7 deletions
@@ -28,7 +28,7 @@ <!-- <li data-action="card_opp_event"><span>🎴</span> Resolve Opponent Event -->
<li data-action="card_influence"><span>📣</span> Place SPs
<li data-action="card_support_check"><span>💪</span> Support Check
- <li data-action="card_tst"><span>🦻</span> Tiananmen Square Track
+ <li data-action="card_tst"><span>🛢</span> Tiananmen Square Track
</menu>
<menu id="popup_opp_event" class="popup">
@@ -38,7 +38,7 @@ <li data-action="card_opp_event"><span>🎴</span> Resolve Opponent Event
<li data-action="card_influence"><span>📣</span> Place SPs
<li data-action="card_support_check"><span>💪</span> Support Check
- <li data-action="card_tst"><span>🦻</span> Tiananmen Square Track
+ <li data-action="card_tst"><span>🛢</span> Tiananmen Square Track
</menu>
<menu id="popup_ceh_check" class="popup">
@@ -48,7 +48,7 @@ <li data-action="card_opp_event"><span>🎴</span> Resolve Opponent Event
<li data-action="card_influence"><span>📣</span> Place SPs
<li data-action="card_support_check"><span>💪</span> Support Check
- <li data-action="card_tst"><span>🦻</span> Tiananmen Square Track
+ <li data-action="card_tst"><span>🛢</span> Tiananmen Square Track
</menu>
<menu id="popup_select_card" class="popup">
@@ -213,7 +213,7 @@ <section id = "sec_samizdat">
<div id="samizdat_panel" class="panel">
<div id="samizdat_header" class="panel_header">Set aside card</div>
- <div id="samizdat" class="panel_body"></div>
+ <div id="samizdat_card" class="panel_body"></div>
</div>
</section>
@@ -624,8 +624,9 @@ if (view.ceausescu_cards && view.ceausescu_cards.length > 0 && view.is_pwr_strug // SAMIZDAT CARD
if (view.samizdat > 0 ) {
+ let samizdat_card = ui.cards[view.samizdat]
document.getElementById("samizdat_panel").classList.remove("hide")
- document.getElementById("samizdat_hand").appendChild(view.samizdat)
+ document.getElementById("samizdat_card").appendChild(samizdat_card)
} else {
document.getElementById("samizdat_panel").classList.add("hide")
}
@@ -275,7 +275,7 @@ function gen_action(action, argument) { }
view.actions[action].push(argument)
}
- //console.log('view.actions: ', view.actions, 'view.actions[action]: ', view.actions[action])
+ console.log('view.actions: ', view.actions, 'view.actions[action]: ', view.actions[action])
}
function gen_action_infl(space){
@@ -433,7 +433,6 @@ states.choose_card = { if (scoring_cards.includes(card)) {
/*view.prompt = 'Play for:'*/
gen_action('card_event', card)
- return
}
|