From e43c00ffe5a00483da67898fb8abcf87cce5d419 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 10 Oct 2024 13:11:47 +0100 Subject: New logic for handling TST 7 --- rules.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rules.js') diff --git a/rules.js b/rules.js index e03476b..1b07a3d 100644 --- a/rules.js +++ b/rules.js @@ -440,6 +440,11 @@ states.choose_card = { //Check for Tiananmen Square Track awards special abilities + + if ((game.active === DEM && cards[card].side !== 'C' && game.dem_tst_position >= 7 && game.com_tst_position < 7 && !game.tst_7) || (game.active === COM && cards[card].side !== 'D' && game.com_tst_position >= 7 && game.dem_tst_position < 7 && !game.tst_7)){ + gen_action('card_tst_7', card) + } + console.log('game.tst_8', game.tst_8) if ((game.active === DEM && cards[card].side !== 'C' && game.dem_tst_position >= 8 && game.com_tst_position < 8 && !game.tst_8) || (game.active === COM && cards[card].side !== 'D' && game.com_tst_position >= 8 && game.dem_tst_position < 8 && !game.tst_8)){ gen_action('card_tst_8', card) @@ -595,6 +600,12 @@ states.choose_card = { game.state='support_check_prep' valid_spaces_sc() }, + card_tst_7() { + select_card(card) + game.vm_infl_to_do = true + game.tst_7 = true + game.state = 'resolve_opponent_event' + }, card_tst_8(card) { /*Play card for ops and event */ select_card(card) game.vm_event_to_do = true @@ -855,6 +866,7 @@ states.resolve_opponent_event = { } } + states.finish_add_infl = { inactive: 'add SPs.', prompt () { -- cgit v1.2.3