summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js26
1 files changed, 23 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index bf1cc1b..cccf046 100644
--- a/rules.js
+++ b/rules.js
@@ -107,7 +107,7 @@ const space_names = [
"Catholic Church",
"Social Movements",
"Mont-Valérien",
- "Fort D'Issy",
+ "Fort d'Issy",
"Château de Vincennes",
"Butte Montmartre",
"Butte-Aux-Cailles",
@@ -1168,6 +1168,7 @@ states.play_final_discard = {
card(c) {
push_undo()
log("Discarded C" + c + " to play C" + game.what + ".")
+ discard_final()
discard_card(c)
game.state = "play_final_ops"
},
@@ -1182,13 +1183,11 @@ states.play_final_ops = {
},
political() {
push_undo()
- discard_final()
log("4 Ops.")
goto_operations(4, POLITICAL)
},
military() {
push_undo()
- discard_final()
log("4 Ops.")
goto_operations(4, MILITARY)
},
@@ -2378,6 +2377,16 @@ states.vm_switch = {
game.vm.choice = "ops"
vm_next()
},
+ political() {
+ push_undo()
+ game.vm.choice = "political"
+ vm_next()
+ },
+ military() {
+ push_undo()
+ game.vm.choice = "military"
+ vm_next()
+ },
public_opinion() {
push_undo()
game.vm.choice = "public_opinion"
@@ -2576,6 +2585,7 @@ states.vm_replace = {
},
piece(p) {
push_undo()
+ let s = game.pieces[p]
replace_cube(p)
log("Replaced in S" + s + ".")
if (--game.vm.count === 0 || !can_vm_replace())
@@ -3099,6 +3109,12 @@ function log_h2(msg) {
log_br()
}
+function log_h3(msg) {
+ log_br()
+ log(".h3 " + msg)
+ log_br()
+}
+
// === COMMON LIBRARY ===
function clear_undo() {
@@ -3285,6 +3301,7 @@ CODE[10] = [ // Fortification of Mont-Valérien
CODE[11] = [ // Adolphe Thiers
[ vm_increase_prussian_collaboration ],
+ [ vm_prompt, "Place up to 2 in Royalists." ],
[ vm_place_up_to, 2, ROYALISTS ],
[ vm_return ],
]
@@ -3403,7 +3420,9 @@ CODE[27] = [ // Luise Michel
]
CODE[28] = [ // Jaroslav Dombrowski
+ [ vm_prompt, "Place up to 1 in Paris." ],
[ vm_place_up_to, 1, PARIS ],
+ [ vm_prompt, "You may place a Barricade in Paris." ],
[ vm_may_place_disc, PARIS ],
[ vm_return ],
]
@@ -3556,6 +3575,7 @@ CODE[44] = [ // Commune's Stronghold
CODE[45] = [ // Fighting in Issy Village
[ vm_ops, 2, FORTS ],
[ vm_player, VERSAILLES ],
+ [ vm_prompt, "You may place a Fortification in Fort d'Issy." ],
[ vm_may_place_disc, FORT_D_ISSY ],
[ vm_return ],
]