summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-04 14:04:46 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-04 14:04:46 +0100
commit21fb502888aa00e5e4536312177e946afb821804 (patch)
treee0b76fcb862a0078376111219352cc4965f4cc2d /play.js
parent098b4694a5247c304407b8e7e1a113c7809ba1ba (diff)
download1989-dawn-of-freedom-21fb502888aa00e5e4536312177e946afb821804.tar.gz
Changes to reduce game object
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/play.js b/play.js
index 2b8741c..55efbb4 100644
--- a/play.js
+++ b/play.js
@@ -413,6 +413,7 @@ for (let c of view.strategy_discard) {
}
// DISCARD FOR EVENTS
+console.log('view.discard',view.discard)
if(view.discard) {
//document.getElementById("discard").replaceChildren()
document.getElementById("discard_panel").classList.remove("hide")
@@ -535,7 +536,7 @@ if (view.ceausescu_cards.length > 0 && view.is_pwr_struggle === true) {
for (let id of board_events) {
let marker = document.getElementById(`event_${id}`)
- console.log('event', id, marker)
+ //console.log('event', id, marker)
if (view.persistent_events.includes(id)) {
marker.style.display = 'block'
} else {
@@ -548,7 +549,7 @@ for (let id of board_events) {
for (let id of box_events) {
let marker = document.getElementById(`event_${id}`)
- console.log('event', id, marker)
+ //console.log('event', id, marker)
if (view.persistent_events.includes(id)) {
marker.style.display = 'block'
} else {