summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-17 14:52:05 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-17 14:52:05 +0100
commit8a0f5a059b60879794d9a51d654a68802a2ea877 (patch)
tree696e964121e7ccfb96c7f080c585e4d279d8a706 /rules.js
parent13e1109ed52324739a7f422502ad0c6e4572db25 (diff)
download1989-dawn-of-freedom-8a0f5a059b60879794d9a51d654a68802a2ea877.tar.gz
further debugging steps
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js10
1 files 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