summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-11 23:02:49 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commitecfedbb41323efbf5cf1ff6000e2d0a1bdd183e6 (patch)
treeb1d97395df0e648864e0960ed50d7c03706ad840 /rules.js
parent8bf330fbae688779a81fe4b0a6a2f11d1b722238 (diff)
downloadplantagenet-ecfedbb41323efbf5cf1ff6000e2d0a1bdd183e6.tar.gz
fix supply amounts
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 5d5d603..565b784 100644
--- a/rules.js
+++ b/rules.js
@@ -4430,11 +4430,18 @@ function get_port_supply_amount(loc) {
function get_stronghold_supply_amount(loc) {
if (!has_exhausted_marker(loc)) {
- let supply = 1
+ let supply
+
if (loc === LOC_LONDON || loc === LOC_CALAIS)
+ supply = 3
+ else if (is_city(loc))
supply = 2
+ else
+ supply = 1
+
if (command_has_stafford_branch(loc))
supply += 1
+
return modify_supply(loc, supply)
}
return 0