summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2025-01-29 20:39:11 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2025-01-29 20:39:11 +0000
commit44a88f3c8896a7b1aa49be7cbd8d5384800de0e7 (patch)
treefbafb495177e16cb01fe637638e223446e126071
parenta2d108a49352b135d832bc2a222e4e7e7eac8ead (diff)
download1989-dawn-of-freedom-44a88f3c8896a7b1aa49be7cbd8d5384800de0e7.tar.gz
Adjust indents and fix typo
-rw-r--r--rules.js39
1 files changed, 21 insertions, 18 deletions
diff --git a/rules.js b/rules.js
index e9cab19..6dac1ea 100644
--- a/rules.js
+++ b/rules.js
@@ -767,10 +767,13 @@ states.play_card = {
push_undo()
log_ops_banner()
check_ligachev_non_event()
-
- log('Tiananmen Square Attempt:')
- finish_play_card()
- game.state = 'tiananmen_square_attempt'
+ if (game.state === 'game_over') {
+ return
+ } else {
+ log('Tiananmen Square Attempt:')
+ finish_play_card()
+ game.state = 'tiananmen_square_attempt'
+ }
},
support_check() {
push_undo()
@@ -779,11 +782,11 @@ states.play_card = {
if (game.state === 'game_over') {
return
} else {
- log('Support Checks:')
- finish_play_card()
- game.available_ops = 2
- game.state = 'support_check_prep'
- valid_spaces_sc()
+ log('Support Checks:')
+ finish_play_card()
+ game.available_ops = 2
+ game.state = 'support_check_prep'
+ valid_spaces_sc()
}
},
tst_7() { /* Cancel opponent event */
@@ -2262,7 +2265,7 @@ states.stasi_play_ceh = {
game.available_ops = 2
game.state = 'support_check_prep'
valid_spaces_sc()
- }
+ }
},
}
@@ -3230,7 +3233,7 @@ function remove_from_hand(card) {
function check_ligachev_non_event() {
if (game.active === DEM && game.persistent_events.includes(C_LIGACHEV)) {
- log(`-3 VP from C${C_LIGACHEV}`)
+ log(`-3 VP from C${C_LIGACHEV}.`)
game.vp -= 3
if (check_vp()) {
return
@@ -3243,7 +3246,7 @@ function check_ligachev_non_event() {
function check_ligachev_event(card) {
if (game.active === DEM && game.persistent_events.includes(C_LIGACHEV)) {
if (card !== C_GORBACHEV_CHARMS_THE_WEST) {
- log(`-3 VP from C${C_LIGACHEV}`)
+ log(`-3 VP from C${C_LIGACHEV}.`)
game.vp -= 3
if (check_vp()) {
return
@@ -8133,12 +8136,12 @@ states.vm_tst_8 = {
if (game.state === 'game_over') {
return
} else {
- log_event(game.played_card)
- game.vm_event_to_do = false
- game.return_state = 'vm_tst_8'
- game.return = game.active
- game.vm_event = game.played_card
- goto_vm(game.vm_event)
+ log_event(game.played_card)
+ game.vm_event_to_do = false
+ game.return_state = 'vm_tst_8'
+ game.return = game.active
+ game.vm_event = game.played_card
+ goto_vm(game.vm_event)
}
},
ops() {