diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -3336,7 +3336,6 @@ function end_round() { return [...new Set(duplicates)]; } - //console.log('game.strategy_deck', game.strategy_deck, 'game.strategy_discard', game.strategy_discard, 'game.strategy_removed', game.strategy_removed, 'game.persistent_events', game.persistent_events, 'game.communist_hand', game.communist_hand, 'game.democrat_hand', game.democrat_hand) card_check = card_check.sort((a, b) => a - b) if (check_duplicates(card_check)) { @@ -3345,9 +3344,7 @@ function end_round() { console.log('game.strategy_deck', game.strategy_deck, 'game.strategy_discard', game.strategy_discard, 'game.strategy_removed', game.strategy_removed, 'game.persistent_events', game.persistent_events, 'game.communist_hand', game.communist_hand, 'game.democrat_hand', game.democrat_hand) throw new Error(`Duplicate cards detected: ${duplicates.join(', ')}`) } - //console.log('cards in game', card_check.length) - //console.log('cards in game', card_check) if (game.turn <= 3) { if (card_check.length !== 40) { console.log('wrong number of cards in game', card_check) @@ -3483,7 +3480,6 @@ function new_turn() { game.round_player = COM game.dem_tst_attempted_this_turn = 0 game.com_tst_attempted_this_turn = 0 - game.return_state = '' if (game.tst_7) {game.tst_7 = false} if (game.tst_8) {game.tst_8 = false} delete game.selected_space @@ -4108,31 +4104,25 @@ function vm_return() { delete game.vm_max_infl delete game.vm_influence_added delete game.communist_hand_red - console.log('in vm_return') game.vm_event = 0 /*Reset to 0 now that event has been completed. Hopefully this doesn't cause issues! */ if (game.persistent_events.includes(C_AUSTRIA_HUNGARY_BORDER_REOPENED)) { - console.log('debug 1') reset_austria_hungary_border_reopened() } //Check if end event state is needed if (game.is_pwr_struggle || game.state === 'vm_tst_6' || game.return_state === 'tiananmen_square_attempt_done') { - console.log('debug 2') vm_end_event() } //Check if auto-resolve opponent event else if (is_auto_resolve(game.played_card) && ((cards[game.played_card].side === 'C' && game.active === DEM) || (cards[game.played_card].side === 'D' && game.active === COM) )) { - console.log('debug 3') vm_end_event() } else { - console.log('debug 4') game.state = 'vm_end_event' } } function vm_end_event() { - console.log('vm_end_event, game.return', game.return, 'game.return_state', game.return_state, 'game.vm_infl_to_do', game.vm_infl_to_do) if (game.return !== game.active) { next_player()} if (game.return_state === 'power_struggle') { @@ -5507,7 +5497,6 @@ states.vm_end_event = { return `resolve ${clean_name(cards[this_card()].name)}.` }, prompt () { - console.log('in state vm_end_event') view.prompt = `${clean_name(cards[this_card()].name)}: done.` if (game.vm_infl_to_do || game.return_state === 'vm_tst_8') { gen_action('done') @@ -5517,7 +5506,6 @@ states.vm_end_event = { }, done() { push_undo() - console.log('done called') vm_end_event() }, end_round() { |