From 373cff9c9aa7885084cd260f82357998392f884a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 21 Jun 2024 18:05:17 +0200 Subject: capture washington --- rules.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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! -- cgit v1.2.3