summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-10 16:39:03 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-10 16:39:03 +0100
commit0d09d30e9d34100c60b54e7a264b7430cf756347 (patch)
treed596ad1f871152ef74d88b366334291994c427aa /play.js
parente43c00ffe5a00483da67898fb8abcf87cce5d419 (diff)
download1989-dawn-of-freedom-0d09d30e9d34100c60b54e7a264b7430cf756347.tar.gz
Added permanently removed view
Diffstat (limited to 'play.js')
-rw-r--r--play.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/play.js b/play.js
index 2c4d482..7ae8644 100644
--- a/play.js
+++ b/play.js
@@ -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