diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-20 18:03:14 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-09-20 18:03:14 +0100 |
commit | 55e5f3588683cab8151f361f88761ba3c37d9aa7 (patch) | |
tree | 8685eaafc331511bd0b4bd23825ca4c72aa6074c | |
parent | d9f1ad83080733e0d2b39b6148b6d439bdf25b99 (diff) | |
download | 1989-dawn-of-freedom-55e5f3588683cab8151f361f88761ba3c37d9aa7.tar.gz |
Fix New Years Eve Party
-rw-r--r-- | rules.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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')
}
|