summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-01 10:52:20 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-16 11:46:21 +0100
commit6bbe2935e74b0d6674272b0adfef6dd5b07f7051 (patch)
tree04cc2d58010918f8feb1a538ee626d8cafb47889
parent14f2f6fe0cd034d0002530b88c4edb34c6e1d802 (diff)
download1989-dawn-of-freedom-6bbe2935e74b0d6674272b0adfef6dd5b07f7051.tar.gz
updates to gameplay and prompt
-rw-r--r--events.txt2
-rw-r--r--play.html2
-rw-r--r--rules.js28
3 files changed, 17 insertions, 15 deletions
diff --git a/events.txt b/events.txt
index 5c39655..b57b96e 100644
--- a/events.txt
+++ b/events.txt
@@ -122,7 +122,7 @@ roundtable_talks
CARD 18 - Poszgay Defends the Revolution
# Place Communist SPs in 4 spaces in Hungary not under Democratic control.
poszgay
-prompt 'spaces in Hungary not under Democratic control'
+prompt 'to 4 spaces in Hungary not under Democratic control'
add_limited_infl 4 1
permanently_remove
diff --git a/play.html b/play.html
index ac1f14a..0d24f6d 100644
--- a/play.html
+++ b/play.html
@@ -62,7 +62,7 @@
<div id="log"></div>
</aside>
-<main data-min-zoom="1">
+<main data-min-zoom="0.5" data-max-zoom = "2.0>
<!-- MAP, EVENTS -->
<section id="sec_map">
diff --git a/rules.js b/rules.js
index ed752af..d023f8d 100644
--- a/rules.js
+++ b/rules.js
@@ -5237,7 +5237,7 @@ states.vm_dash_for_the_west = {
let com_control = check_presence('East_Germany').com_spaces
if (roll > com_control) {
- log(`More than the ${com_control} controlled spaces in East Germany`)
+ log(`More than the ${com_control} Communist controlled spaces in East Germany`)
log('+1 VP')
game.vp++
check_vp()
@@ -5311,7 +5311,7 @@ states.vm_deutsche_marks = {
return `resolve ${cards[20].name}.`
},
prompt() {
- if(cards[game.temp].side === 'C' && game.playable_cards[game.temp].playable === 1) {
+ if(cards[game.vm_event].side === 'C' && game.playable_cards[game.vm_event].playable === 1) {
view.prompt = `You must play ${clean_name(cards[this_card()].name)} for the event.`
gen_action('event')
} else {
@@ -5324,28 +5324,28 @@ states.vm_deutsche_marks = {
}
},
event() {
- log(`Played C${cards[game.temp].number} for the event`)
+ log(`Played C${cards[game.vm_event].number} for the event`)
game.return === game.active
- goto_vm(game.temp)
+ goto_vm(game.vm_event)
},
influence() {
push_undo()
- log(`Played C${cards[game.temp].number} for influence`)
- game.vm_available_ops = cards[game.temp].ops
+ log(`Played C${cards[game.vm_event].number} for influence`)
+ game.vm_available_ops = cards[game.vm_event].ops
if (game.persistent_events['perestroika']) {game.vm_available_ops++ }
valid_spaces_infl()
game.state = 'vm_add_infl'
},
support_check() {
push_undo()
- log(`Played C${cards[game.temp].number} for support checks`)
+ log(`Played C${cards[game.vm_event].number} for support checks`)
game.vm_available_ops = 2
game.state='vm_support_check_prep'
valid_spaces_sc()
},
tst() {
push_undo()
- log(`Played C${cards[game.temp].number} to the Tiananmen Square Track`)
+ log(`Played C${cards[game.vm_event].number} to the Tiananmen Square Track`)
game.state='vm_tiananmen_square_attempt'
}
}
@@ -5748,20 +5748,22 @@ states.vm_switch_infl = {
gen_action_infl(spaces[space_id].name_unique);
//}
}
- } else {
- view.prompt = 'Inluence replaced.'
+ } /*else {
+ view.prompt = 'Influence replaced.'
gen_action('done')
- }
+ }*/
},
infl(space) {
+ push_undo()
vm_switch_infl(space)
if (game.vm_available_ops === 0) {
game.valid_spaces = []
}
+ vm_next()
},
- done() {
+ /*done() {
vm_next()
- }
+ }*/
}
states.vm_malta_summit = {