From 5cdc38e52ca0a6f120738ff1d9e744e5e6124372 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 4 Jan 2025 08:07:55 +0000 Subject: Resolve power struggle as other events --- rules.js | 9 +++++---- 1 file 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) { -- cgit v1.2.3