summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-03 19:49:17 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-03 19:49:17 +0200
commit26d3869046718fe8f2ee99336ebc00a5a7d037b7 (patch)
tree5f0795814f54054270f9b2acc94dc597aa2ee302 /rules.ts
parentec9ea06c5850ce5275b1f3e15a29c2b9ea872106 (diff)
downloadplantagenet-26d3869046718fe8f2ee99336ebc00a5a7d037b7.tar.gz
fix scaling of distance vs carts
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.ts b/rules.ts
index 348b364..0609746 100644
--- a/rules.ts
+++ b/rules.ts
@@ -3956,7 +3956,7 @@ function search_supply_by_way(result, start: Locale, carts: number, ships: numbe
}
if (is_friendly_locale(here)) {
- if (next_dist <= carts) {
+ if ((next_dist >> 3) <= carts) {
for (let next of data.locales[here].adjacent) {
if (!search_seen[next]) {
search_seen[next] = 1