diff options
-rw-r--r-- | rules.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3970,6 +3970,7 @@ function new_turn() { game.tst_8 = false } delete game.selected_space + delete game.return_state // Remove events that only last one turn @@ -4672,6 +4673,7 @@ function vm_prompt() { } function vm_return() { + console.log('vm_return called') // Remove temporary vm variables delete game.support_check_modifier delete game.vm_max_infl @@ -4698,21 +4700,27 @@ function vm_return() { } function vm_end_event() { + console.log('in vm_end_event, game.return_state', game.return_state, 'game.vm_infl_to_do', game.vm_infl_to_do) if (game.return_state === 'ceausescu_check') { end_round() return } if (game.return !== game.active) { + console.log('1') change_player() } if (game.return_state === 'power_struggle') { + console.log('2') do_valid_cards() } if (game.return_state && game.return_state !== '') { + console.log('3') game.state = game.return_state } else if (game.vm_infl_to_do) { + console.log('going to resolve opp event') game.state = 'resolve_opponent_event' } else { + console.log('4') end_round() } } |