summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2025-01-04 08:07:55 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2025-01-04 08:07:55 +0000
commit5cdc38e52ca0a6f120738ff1d9e744e5e6124372 (patch)
treeb2e7a9930b9578a3b66ae19d679e49c7f764bc2f
parent2a924526251c6aba437fcb83005947891f02a685 (diff)
download1989-dawn-of-freedom-5cdc38e52ca0a6f120738ff1d9e744e5e6124372.tar.gz
Resolve power struggle as other events
-rw-r--r--rules.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 095008b..c54177c 100644
--- a/rules.js
+++ b/rules.js
@@ -1745,7 +1745,7 @@ states.finish_scoring = {
return
}
reset_power()
- end_round()
+ vm_return()
},
}
@@ -3777,7 +3777,7 @@ function end_round() {
delete game.vm_event_to_do
delete game.vm_infl_to_do
delete game.vm_active_country
- game.return_state = ''
+ delete game.return_state
game.discard = false
game.return = ''
game.valid_cards = []
@@ -4180,6 +4180,7 @@ function reset_power() {
game.power_struggle_discard = []
game.dem_pwr_hand = []
game.com_pwr_hand = []
+ delete game.return_state
delete game.phase
delete game.raised_stakes_round
delete game.raised_stakes
@@ -4968,9 +4969,9 @@ function vm_take_control(space) {
game.valid_spaces = game.valid_spaces.filter(id => id !== space)
let end_control = check_control(space)
if (game.state === 'vm_kremlin_coup_take_control')
- logi('Took control of %' + space + get_icons(starting_control, end_control) +'.')
+ logi('Took control of %' + space + '.' + get_icons(starting_control, end_control))
else
- log('Took control of %' + space + get_icons(starting_control, end_control) +'.')
+ log('Took control of %' + space +'.' + get_icons(starting_control, end_control))
}
function vm_do_add_infl_free(space) {