From 7eccedf3e0ec6cf88b2e09b88a168170a0a98428 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 28 Sep 2024 07:38:52 +0100 Subject: Debugging Reformer --- rules.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rules.js') 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) -- cgit v1.2.3