From 0a9f4129e132900fce0d1b83803b1495e7d09a5d Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 29 Nov 2024 18:55:38 +0000 Subject: Update handling of the Chinese Solution --- rules.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index 84c3d83..fe97cce 100644 --- a/rules.js +++ b/rules.js @@ -2782,6 +2782,10 @@ function do_tst_attempt() { game.com_tst_position++ game.com_tst_attempted = 0 + // Check if the Chinese Solution becomes playable + if (game.active === COM && game.com_tst_position === 7) { + game.playable_cards.push(C_THE_CHINESE_SOLUTION) + } // Check if they have reached box 7 or 8 first if (game.com_tst_position === 7 && game.dem_tst_position < 7) { game.tst_7 = false @@ -3404,10 +3408,6 @@ function event_is_playable(card) { else if (game.stasi_card === C_COMMON_EUROPEAN_HOME && card === C_COMMON_EUROPEAN_HOME && game.active === DEM) { return false } - // Check for The Chinese Solution - else if (game.com_tst_position >= 7 && card === C_THE_CHINESE_SOLUTION) { - return true - } // Check for Gorbachev Charms the West after Breakaway Baltic Republics else if (card === C_GORBACHEV_CHARMS_THE_WEST && !game.playable_cards.includes(C_GORBACHEV_CHARMS_THE_WEST)) { @@ -5629,7 +5629,12 @@ function vm_tank_column() { } else { game.com_tst_position++ game.com_tst_attempted = 0 + // Check if the Chinese Solution becomes playable + if (game.com_tst_position === 7) { + game.playable_cards.push(C_THE_CHINESE_SOLUTION) + } } + // Check if TST Awards occur if (game.active === DEM) { if (game.dem_tst_position === 3 && game.com_tst_position < 3) { -- cgit v1.2.3