diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-04-27 22:41:09 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-04-27 22:52:28 +0200 |
commit | ab1a6bca2b9a2a399efb46edfa9c8621e70371df (patch) | |
tree | 39d510086ba22ff339def7942f38d2ae79b41a4b | |
parent | b4d2ea5ee7a14f52d512c5b4774314fe0ce896b2 (diff) | |
download | plantagenet-ab1a6bca2b9a2a399efb46edfa9c8621e70371df.tar.gz |
-rw-r--r-- | rules.js | 3 | ||||
-rw-r--r-- | rules.ts | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -3460,6 +3460,9 @@ function get_port_supply_amount(loc, report) { return 0; } function get_stronghold_supply_amount(loc, report) { + let uses_port = map_get(game.supply, loc, 0) & 7; + if (uses_port) + return 0; if (!has_exhausted_marker(loc)) { let supply = 0; if (loc === LOC_LONDON || loc === LOC_CALAIS) @@ -4211,6 +4211,9 @@ function get_port_supply_amount(loc: Locale, report: boolean) { } function get_stronghold_supply_amount(loc: Locale, report: boolean) { + let uses_port = map_get(game.supply, loc, 0) & 7 + if (uses_port) + return 0 if (!has_exhausted_marker(loc)) { let supply = 0 |