summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-28 07:38:52 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-28 07:38:52 +0100
commit7eccedf3e0ec6cf88b2e09b88a168170a0a98428 (patch)
treeb06eb59182d68b46028e2bee7f7774b7cf7343b4 /rules.js
parent6583124a109c4d171e0db2c81927ae14aa0daa54 (diff)
download1989-dawn-of-freedom-7eccedf3e0ec6cf88b2e09b88a168170a0a98428.tar.gz
Debugging Reformer
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 1a8b4da..06996f4 100644
--- a/rules.js
+++ b/rules.js
@@ -2764,13 +2764,17 @@ function do_tst_attempt() {
}
}
// Check whether The Reformer is playable:
+ console.log('reformer check, dem pos:', game.dem_tst_position, 'com:', game.com_tst_position)
if (game.dem_tst_position > game.com_tst_position) {
+ console.log('reformer set to DEM')
game.playable_cards[67].playable = DEM
}
if (game.dem_tst_position < game.com_tst_position) {
+ console.log('reformer set to COM')
game.playable_cards[67].playable = COM
}
if (game.dem_tst_position === game.com_tst_position) {
+ console.log(`reformer set to ''`)
game.playable_cards[67].playable = ''
}
console.log('game.playable_cards[67].playable', game.playable_cards[67].playable)