summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-20 18:03:14 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-20 18:03:14 +0100
commit55e5f3588683cab8151f361f88761ba3c37d9aa7 (patch)
tree8685eaafc331511bd0b4bd23825ca4c72aa6074c
parentd9f1ad83080733e0d2b39b6148b6d439bdf25b99 (diff)
download1989-dawn-of-freedom-55e5f3588683cab8151f361f88761ba3c37d9aa7.tar.gz
Fix New Years Eve Party
-rw-r--r--rules.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 6f1d5e0..bb28cd3 100644
--- a/rules.js
+++ b/rules.js
@@ -1592,6 +1592,10 @@ states.finish_scoring ={
} ,
done() {
log('Power Struggle resolved') /*At this point log card dicarded or permanently removed? */
+ if (game.return_state === 'new_years_eve_party') {
+ game.state = 'new_years_eve_party'
+ return
+ }
check_vp()
reset_power()
end_round()
@@ -1816,42 +1820,49 @@ states.new_years_eve_party = {
if (!game.revolutions['Bulgaria']) {gen_action('bulgaria')}
gen_action('pass')
} else {
+ view.prompt = `New Year's Eve Party: done.`
gen_action('end')
}
},
east_germany() {
push_undo()
log('Chose to score East Germany')
+ game.return_state = 'new_years_eve_party'
game.vm_event = 42
goto_vm(42)
},
poland() {
push_undo()
log('Chose to score Poland')
+ game.return_state = 'new_years_eve_party'
game.vm_event = 22
goto_vm(22)
},
czechoslovakia() {
push_undo()
log('Chose to score Czechoslovakia')
+ game.return_state = 'new_years_eve_party'
game.vm_event = 55
goto_vm(55)
},
hungary() {
push_undo()
log('Chose to score Hungary')
+ game.return_state = 'new_years_eve_party'
game.vm_event = 23
goto_vm(23)
},
romania() {
push_undo()
log('Chose to score Romania')
+ game.return_state = 'new_years_eve_party'
game.vm_event = 95
goto_vm(95)
},
bulgaria () {
push_undo()
log('Chose to score Bulgaria')
+ game.return_state = 'new_years_eve_party'
game.vm_event = 43
goto_vm(43)
},
@@ -2737,6 +2748,7 @@ function score_country(country) {
log(`Battlegrounds: -${presence.com_battlegrounds} VP`)
com_vp -= presence.com_battlegrounds
}
+ log(`Total: -${com_vp} VP`)
} else {
log('No presence: 0 VP')
}