summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-02-21 18:16:55 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commit62b46581ed460a0282fe1f6efc75ba59d86716fd (patch)
treea6d4b530935a3d42167c77cb437ec189cf535021
parenteb0b3aa995b915dce4111b1fe683f67eb1f93ab2 (diff)
downloadwilderness-war-62b46581ed460a0282fe1f6efc75ba59d86716fd.tar.gz
Pitt should make leaders available.
-rw-r--r--rules.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/rules.js b/rules.js
index 6945240..8e3fe9b 100644
--- a/rules.js
+++ b/rules.js
@@ -28,6 +28,7 @@
// TODO: for_each_exit -> flat list of all exits
// TODO: use is_enemy_occupied(s) instead of has_unbesieged_enemy_units || has_unbesieged_enemy_fortifications
// TODO: use game.french.fortresses for victory checks
+// TODO: use leader box location for 'pool'
// UI: show discard/removed card list in UI
// UI: show pool leaders in their own box
// UI: show dead leaders as grayed out in own box
@@ -1962,14 +1963,16 @@ function find_closest_friendly_unbesieged_fortification(start) {
// SEQUENCE OF PLAY
-function start_year() {
- if (game.year === 1759 && !game.events.pitt) {
- log("Placed Amherst, Forbes, and Wolfe into the British leader pool.");
- game.british.pool.push(AMHERST);
- game.british.pool.push(FORBES);
- game.british.pool.push(WOLFE);
- }
+function place_amherst_forbes_and_wolfe_in_pool() {
+ log("Placed Amherst, Forbes, and Wolfe into the British leader pool.");
+ game.british.pool.push(AMHERST);
+ game.british.pool.push(FORBES);
+ game.british.pool.push(WOLFE);
+}
+function start_year() {
+ if (game.year === 1759 && !game.events.pitt)
+ place_amherst_forbes_and_wolfe_in_pool();
game.season = EARLY;
start_season();
}
@@ -7806,6 +7809,7 @@ events.william_pitt = {
game.events.pitt = 1;
game.state = 'william_pitt';
game.count = 1;
+ place_amherst_forbes_and_wolfe_in_pool();
}
}