diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-10 15:44:13 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-01-10 15:44:13 +0000 |
commit | 9925fbde2385f345c2ea0a48675f84b1dd492d32 (patch) | |
tree | 6faea26d22dec8bc20860007a05a30e40c6873c2 | |
parent | e388e2aff09916f18851a93988013dad02bc2b97 (diff) | |
download | 1989-dawn-of-freedom-9925fbde2385f345c2ea0a48675f84b1dd492d32.tar.gz |
Fix 2 op TST support check
-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() } } |