summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-23 09:27:34 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-23 09:27:34 +0100
commit2fdac12b7a6e9a454dda1ef6b1bd74e29ca6b32d (patch)
treec0728830c5737490afb3e8ebdbeabb177497b4ad /play.js
parenta1e9567b3b4c2b2326abefae47c99ba874ee2c26 (diff)
download1989-dawn-of-freedom-2fdac12b7a6e9a454dda1ef6b1bd74e29ca6b32d.tar.gz
Updates to event markers
Diffstat (limited to 'play.js')
-rw-r--r--play.js26
1 files changed, 20 insertions, 6 deletions
diff --git a/play.js b/play.js
index 1220b41..c3b1bf2 100644
--- a/play.js
+++ b/play.js
@@ -23,10 +23,21 @@ const countries= [
]
const aside_events = [
- "eco_glasnost",
- "helsinki_final_act",
+ "honecker",
"st_nicholas_church",
- "we_are_the_people"
+ "helsinki_final_act",
+ "eco_glasnost",
+ "we_are_the_people",
+ "foreign_currency_debt_burden",
+ "li_peng",
+ "austria_hungary_border_reopened",
+ "grenztruppen",
+ "presidential_visit",
+ "securitate",
+ "laslzo_tokes",
+ "stand_fast",
+ "elena",
+ "new_years_eve_party"
]
let aside_events_showing = false
let show_discard = false
@@ -503,7 +514,7 @@ for (let id in view.persistent_events) {
}
// CHECK WHETHER ANY EVENT MARKERS ARE SHOWING IN THE ASIDE
-/*
+
for (let id of aside_events) {
if (view.persistent_events[id]) {
aside_events_showing = true;
@@ -511,8 +522,10 @@ for (let id of aside_events) {
}
if (aside_events_showing) {
- document.getElementById('no_events').style.display = 'none'
-}*/
+ document.getElementById('events_panel').classList.remove("hide")
+} else {
+ document.getElementById('events_panel').classList.add("hide")
+}
let systematization = document.getElementById('systematization')
if (view.persistent_events['systematization'] > 0) {
@@ -569,6 +582,7 @@ if (view.persistent_events['the_tyrant_is_gone'] > 0) {
action_button("done", "Done")
action_button("undo", "Undo")
+ console.log('view.persistent_events', view.persistent_events)
}