summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-17 09:49:56 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-17 09:49:56 +0100
commit699ea2411ccdc70c4f6023f7efd09f2f03d5b80f (patch)
tree468107769c65539527471813d6b2309e17836f71 /rules.js
parent4fafa995e4f76e7fe50e4218b9d97cadcd72bbb0 (diff)
download1989-dawn-of-freedom-699ea2411ccdc70c4f6023f7efd09f2f03d5b80f.tar.gz
Update to allow General Strike to continue between turns
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 82c107b..57ffa48 100644
--- a/rules.js
+++ b/rules.js
@@ -825,7 +825,11 @@ states.tst_goddess = {
} else {
log_side()
}
- game.state = 'choose_card'
+ if (game.persistent_events['general_strike']) {
+ game.state = 'general_strike'
+ } else {
+ game.state = 'choose_card'
+ }
},
done() {
@@ -3032,7 +3036,12 @@ function new_turn() {
log_h2("Action Round " + game.round)
log_side()
//console.log('in start new AR call, game.active', game.active)
- game.state = 'choose_card'
+ if (game.persistent_events['general_strike']) {
+ game.state = 'general_strike'
+ }
+ else {
+ game.state = 'choose_card'
+ }
}
}