summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/rules.js b/rules.js
index 3dd44f5..27299ab 100644
--- a/rules.js
+++ b/rules.js
@@ -3289,6 +3289,13 @@ function finish_the_wall() {
}
}
+function finish_we_are_the_people() {
+ game.valid_spaces = [...S_EAST_GERMANY]
+ game.vm_max_infl = 2
+ game.vm_available_ops = game.vm_influence_added[S_LUTHERAN_CHURCH]
+ game.state = 'vm_we_are_the_people_add'
+}
+
// =========== MOVING THROUGH TURNS ============
function end_round() {
@@ -7571,10 +7578,7 @@ states.vm_we_are_the_people_remove = {
space(space) {
remove_infl(space, 'vm_available_ops')
if (game.vm_influence_added[S_LUTHERAN_CHURCH] === 4) {
- game.valid_spaces = [...S_EAST_GERMANY]
- game.vm_max_infl = 2
- game.vm_available_ops = 4
- game.state = 'vm_we_are_the_people_add'
+ finish_we_are_the_people()
}
},
done() {
@@ -7584,10 +7588,7 @@ states.vm_we_are_the_people_remove = {
log('No SPs removed')
vm_next()
} else {
- game.valid_spaces = [...S_EAST_GERMANY]
- game.vm_max_infl = 2
- game.vm_available_ops = game.vm_influence_added[S_LUTHERAN_CHURCH]
- game.state = 'vm_we_are_the_people_add'
+ finish_we_are_the_people()
}
}
}