diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -557,6 +557,16 @@ if(view.discard) { }
}
+// UPDATE PERMANENTLY REMOVED CARDS
+document.getElementById("removed").replaceChildren()
+for (let c of view.strategy_removed) {
+ let discard_card = ui.cards[c]
+ document.getElementById("removed").appendChild(discard_card)
+ discard_card.classList.add('discard_card')
+ discard_card.classList.remove('selected')
+}
+
+
// PLAYED CARD PANEL
if (view.played_card > 0) {
document.getElementById("played_card_panel").classList.remove("hide")
@@ -841,6 +851,10 @@ function toggle_discard() { document.getElementById("discard_panel").classList.toggle("hide")
}
+function toggle_removed() {
+ document.getElementById("removed_panel").classList.toggle("hide")
+}
+
function check_dem_control(demInfl, comInfl, space) {
if ((demInfl - comInfl) >= space.stability) {
return true
|