diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-10 13:11:47 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-10 13:11:47 +0100 |
commit | e43c00ffe5a00483da67898fb8abcf87cce5d419 (patch) | |
tree | b5109b04e9cc93acca2d2872b957accbbe995e5a /rules.js | |
parent | 89c9aa28c304a17b3a9478bd426031e17303b6a6 (diff) | |
download | 1989-dawn-of-freedom-e43c00ffe5a00483da67898fb8abcf87cce5d419.tar.gz |
New logic for handling TST 7
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 () {
|