summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')
}