diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-10 16:39:03 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-10 16:39:03 +0100 |
commit | 0d09d30e9d34100c60b54e7a264b7430cf756347 (patch) | |
tree | d596ad1f871152ef74d88b366334291994c427aa /play.js | |
parent | e43c00ffe5a00483da67898fb8abcf87cce5d419 (diff) | |
download | 1989-dawn-of-freedom-0d09d30e9d34100c60b54e7a264b7430cf756347.tar.gz |
Added permanently removed view
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
|