diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-23 17:38:31 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-23 17:38:31 +0100 |
commit | ebfa35806351a4ef202bb7b8f11bea44a2adf017 (patch) | |
tree | 560d8e2cfedafeaa3365c14a38fd9bfb7976dab0 | |
parent | 6435b401b8c666eab9bd41848ac074536a11d444 (diff) | |
download | 1989-dawn-of-freedom-ebfa35806351a4ef202bb7b8f11bea44a2adf017.tar.gz |
Final updates
-rw-r--r-- | play.js | 9 | ||||
-rw-r--r-- | rules.js | 3 |
2 files changed, 9 insertions, 3 deletions
@@ -505,14 +505,19 @@ if (view.ceausescu_cards.length > 0 && view.is_pwr_struggle === true) { // UPDATE EVENT MARKERS
for (let id in view.persistent_events) {
- let marker = document.getElementById(id);
+ let marker = document.getElementById(id)
if (marker && view.persistent_events[id]) {
- marker.style.display = 'block';
+ marker.style.display = 'block'
} else if (marker && !view.persistent_events[id]) {
marker.style.display = 'none'
+ } else if (marker && view.persistent_events[id] !== "") {
+ marker.style.display = 'block'
+ } else if(marker && view.persistent_events[id] === '') {
+ marker.style.display = 'none'
}
}
+
// CHECK WHETHER ANY EVENT MARKERS ARE SHOWING IN THE ASIDE
aside_events_showing = false
for (let id of aside_events) {
@@ -1065,7 +1065,7 @@ states.the_crowd_turns_against_ceausescu = { return `resolve ${cards[54].name}.`
},
prompt() {
- view.prompt = `You have ${game.temp} influence points. Play for:`
+ view.prompt = `You have ${game.temp} operations points. Play for:`
gen_action('influence')
gen_action('support_check')
},
@@ -8242,6 +8242,7 @@ CODE[105] = [ // Public Against Violence* CODE[106] = [ // Social Democratic Platform Adopted*
[ vm_social_democratic_platform_adopted ],
[ vm_valid_spaces_country ],
+ [ vm_prompt, ()=>`${country_name(game.vm_active_country)}`],
[ vm_add_infl_free, 2 ],
[ vm_valid_spaces_country_sc ],
[ vm_prompt, ()=>`make a Support Check in ${country_name(game.vm_active_country)}` ],
|