diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-29 18:55:38 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-29 18:55:38 +0000 |
commit | 0a9f4129e132900fce0d1b83803b1495e7d09a5d (patch) | |
tree | 016558fcc41b95c17d1e777846d7663af7b6e67f | |
parent | 93d735ddca82f009e52652d84c0ec74233cc72b7 (diff) | |
download | 1989-dawn-of-freedom-0a9f4129e132900fce0d1b83803b1495e7d09a5d.tar.gz |
Update handling of the Chinese Solution
-rw-r--r-- | rules.js | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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) { |