From 8a0f5a059b60879794d9a51d654a68802a2ea877 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Tue, 17 Sep 2024 14:52:05 +0100 Subject: further debugging steps --- rules.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rules.js b/rules.js index 82e7414..416bf3e 100644 --- a/rules.js +++ b/rules.js @@ -528,7 +528,7 @@ states.play_card ={ }, event() { push_undo() - console.log('played event, game.active', game.active) + console.log('played event, game.active', game.active, 'game.view_opp_hand', game.view_opp_hand) log_gap(`Played C${cards[game.played_card].number} for the event`) if (scoring_cards.includes(game.played_card)) {game.phase = 0} else {game.phase = 1} @@ -949,7 +949,7 @@ states.draw_power_cards = { }, draw() { push_undo() - console.log('called draw cards, game.active', game.active) + console.log('called draw cards, game.active', game.active, 'game.view_opp_hand', game.view_opp_hand) let presence = check_presence(game.pwr_struggle_in) if (presence.dem_spaces > 0) { game.dem_pwr_hand_limit = 6 + 2*(presence.dem_spaces - 1) @@ -999,7 +999,7 @@ states.draw_power_cards = { } else { log_h2('Raise the Stakes') game.state = 'raise_stakes_1' - console.log('game.state', game.state, 'game.active', game.active) + console.log('game.state', game.state, 'game.active', game.active, 'game.view_opp_hand', game.view_opp_hand) } } } @@ -1078,7 +1078,7 @@ states.raise_stakes_1 = { inactive: 'raise the stakes', prompt () { - console.log('raise the stakes: game.played_power_card', game.played_power_card) + console.log('raise the stakes: game.played_power_card', game.played_power_card, 'game.active', game.active, 'game.view_opp_hand', game.view_opp_hand) if (game.raised_stakes_discard === 3) { view.prompt = 'Raise the stakes: done.' gen_action('done') @@ -4690,7 +4690,7 @@ function vm_poszgay() { } function vm_power_struggle() { - console.log('in vm_power_struggle. game.vm_event', game.vm_event, 'game.active', game.active) + console.log('in vm_power_struggle. game.vm_event', game.vm_event, 'game.active', game.active, 'game.view_opp_hand', game.view_opp_hand) game.is_pwr_struggle = true //Check if Power Struggle is because of an event -- cgit v1.2.3