summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-21 18:05:17 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-21 00:28:20 +0200
commit373cff9c9aa7885084cd260f82357998392f884a (patch)
tree85e51bd628f9e5f243448c606902297ed5f2cf67
parent7d7bf01a9f9919dd094b7e22ee747ec54a3858a2 (diff)
downloadwashingtons-war-373cff9c9aa7885084cd260f82357998392f884a.tar.gz
capture washington
-rw-r--r--rules.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 416790f..c2bc472 100644
--- a/rules.js
+++ b/rules.js
@@ -4,6 +4,14 @@
// TODO: campaign messed up who is who after battle
// TODO: retreat with 0 CU after battle
+/* washington's capture
+ - winning general with no CU on enemy PC (no undo anyway)
+ - retreat after battle (no undo anyway)
+
+ - place reinforcements (no player shift)
+ - move (no player shift)
+*/
+
// campaign
// event
@@ -758,7 +766,8 @@ function capture_washington() {
game.french_alliance = 0
}
- goto_george_washington_captured()
+ // set flag to handle washington's capture!
+ game.captured_washington = 1
}
function capture_british_general(where) {
@@ -1346,6 +1355,12 @@ function end_strategy_card() {
return
}
+ if (game.captured_washington) {
+ delete game.captured_washington
+ goto_george_washington_captured()
+ return
+ }
+
if (game.campaign) {
if (--game.campaign > 0) {
game.count = 3 // can activate any general!