summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-09 13:26:22 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-21 00:28:20 +0200
commit25a8893d22b611e2d25cc1ec28b3d9e086e541d3 (patch)
treea786b821b556df7a9455e4b8efc0aa40c58d2b9d
parent7044a825dca95cc97e912c35c345a014d7948519 (diff)
downloadwashingtons-war-25a8893d22b611e2d25cc1ec28b3d9e086e541d3.tar.gz
tournament rule
-rw-r--r--about.html8
-rw-r--r--rules.js16
2 files changed, 21 insertions, 3 deletions
diff --git a/about.html b/about.html
index 41f1cfd..8e814f9 100644
--- a/about.html
+++ b/about.html
@@ -5,6 +5,14 @@ control, weather or exploit a wide variety of diplomatic, political, cultural
and military events in order to either help the United States win its
independence or to retain the 13 colonies as British dominions.
+<p>
+Designer: Mark Herman.
+<br>
+Copyright &copy; 2009, 2014
+<a href="https://www.gmtgames.com/p-735-washingtons-war-3rd-printing.aspx">GMT Games, LLC</a>.
+<br>
+Programming &copy; 2024 Tor Andersson.
+
<ul>
<li><a href="/washingtons-war/info/rulebook.html">Rulebook</a>
<li><a href="/washingtons-war/info/playbook.html">Playbook</a>
diff --git a/rules.js b/rules.js
index 46c727e..9446d70 100644
--- a/rules.js
+++ b/rules.js
@@ -1385,8 +1385,6 @@ states.end_strategy_card = {
function next_strategy_card() {
clear_undo()
- game.card = 0
-
if (!has_flag(F_FRENCH_ALLIANCE_TRIGGERED) && game.french_alliance === 9) {
log("The French signed an alliance with the Americans!")
set_flag(F_FRENCH_ALLIANCE_TRIGGERED)
@@ -1401,6 +1399,18 @@ function next_strategy_card() {
reset_moved_generals()
reset_moved_cu()
+ // Tournament rule for DoI and Franklin events
+ if (CARDS[game.card].tournament && game.active === P_BRITAIN) {
+ game.card = 0
+ log_br()
+ log("Tournament Rule!")
+ log("British replacement card.")
+ set_add(game.b_hand, deal_card())
+ goto_strategy_phase(game.active)
+ return
+ }
+
+ game.card = 0
goto_strategy_phase(ENEMY[game.active])
}
@@ -3228,7 +3238,7 @@ function advance_french_alliance(count) {
game.french_alliance += count
if (game.french_alliance > 9)
game.french_alliance = 9
- log("French Alliance advanced to " + count + ".")
+ log("French Alliance advanced to " + game.french_alliance + ".")
}
}