From 4e02396991054acf4473d47ae3ae5a828ffb1cea Mon Sep 17 00:00:00 2001 From: iainp5 Date: Mon, 23 Sep 2024 08:08:45 +0100 Subject: Small updates --- data.js | 2 +- events.txt | 3 ++- rules.js | 7 +++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/data.js b/data.js index 1913177..73c8946 100644 --- a/data.js +++ b/data.js @@ -147,7 +147,7 @@ const cards = [ {number: 64, period: 2, side: 'D', name: 'Legacy of 1968*', ops: 4, remove: 1, playable: 1, red: false}, {number: 65, period: 2, side: 'D', name: 'Presidential Visit*', ops: 3, remove: 1, playable: 1, red: false}, {number: 66, period: 2, side: 'D', name: 'New Forum*', ops: 1, remove: 1, playable: 1, red: false}, - {number: 67, period: 2, side: 'N', name: 'Reformer Rehabilitated*', ops: 2, remove: 1, playable: 0, red: false}, + {number: 67, period: 2, side: 'N', name: 'Reformer Rehabilitated*', ops: 2, remove: 1, playable: '', red: false}, {number: 68, period: 2, side: 'D', name: 'Klaus and Komarek*', ops: 3, remove: 1, playable: 1, red: false}, {number: 69, period: 2, side: 'C', name: 'Systematization*', ops: 3, remove: 1, playable: 1, red: false}, {number: 70, period: 2, side: 'C', name: 'Securitate*', ops: 2, remove: 1, playable: 1, red: false}, diff --git a/events.txt b/events.txt index 0d8a57a..f8ca126 100644 --- a/events.txt +++ b/events.txt @@ -225,7 +225,7 @@ permanently_remove CARD 33 - Sajudis* # +1 VP. Reduce USSR stability by 1. Place sufficient Democratic support in any Minorities space for control. Allows play of The Baltic Way. -valid_spaces 56 70 +sajudis_check prompt 'any Minorities space' take_control_prep 1 sajudis @@ -249,6 +249,7 @@ permanently_remove CARD 36 - Dash for the West* # Roll a die. If the die roll exceeds the number of Communist controlled spaces in Germany, +1 VP and select any Blue Event with asterisk(*) from the discard pile. The event occurs immediately. permanently_remove +prompt 'select any Democratic event with an asterix(*) from the discard pile. Event occurs immediately.' dash_for_the_west diff --git a/rules.js b/rules.js index 9538139..07f8913 100644 --- a/rules.js +++ b/rules.js @@ -2638,12 +2638,15 @@ function do_tst_attempt() { } } // Check whether The Reformer is playable: - if ((game.dem_tst_position > game.com_tst_position)) { + if (game.dem_tst_position > game.com_tst_position) { game.playable_cards[67].playable = DEM } - if ((game.dem_tst_position < game.com_tst_position)) { + if (game.dem_tst_position < game.com_tst_position) { game.playable_cards[67].playable = COM } + if (game.dem_tst_position === game.com_tst_position) { + game.playable_cards[67].playable = '' + } } function check_presence(country) { -- cgit v1.2.3