From 4edfad996c57a840f5b024200c8da2190a5c8079 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 23 Apr 2024 10:52:14 +0200 Subject: fix can_supply_at again --- rules.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rules.ts') diff --git a/rules.ts b/rules.ts index 74fafd1..41f27b1 100644 --- a/rules.ts +++ b/rules.ts @@ -3635,12 +3635,12 @@ states.command = { // === 4.5 ACTION: SUPPLY (SEARCH) === -function can_supply_at(loc: Locale, ships: number) { - // if theoretically possible to supply (does not check carts or ships) - if (is_stronghold(loc) && is_friendly_locale(loc)) { - if (ships > 0 && (is_seaport(loc) || is_exile_box(loc))) +function can_supply_at(source: Locale, ships: number) { + // if theoretically possible to supply from this source (does not check carts or ships) + if (is_stronghold(source) && is_friendly_locale(source)) { + if (ships > 0 && is_seaport(source)) return true - if (!has_exhausted_marker(loc)) + if (!has_exhausted_marker(source)) return true } return false -- cgit v1.2.3