From bbd6088b7fb1162a976bcfa1ca6720c2c91e8a72 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 15 Nov 2026 00:04:40 +0400 Subject: feat(ai): find and reserve sites for scripted construction Handler 18 scans base rings, checks terrain and clearance, and writes the site back to the script. The stock Two Fortresses window found a tower site and reached the builder order. The native DLL returned the expected site with and without a reservation, and zero for missing areas. The builder task remains explicit in coverage. --- crates/fparkan-runtime/src/mining.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/fparkan-runtime/src/mining.rs') diff --git a/crates/fparkan-runtime/src/mining.rs b/crates/fparkan-runtime/src/mining.rs index 6448dc13..61266b9d 100644 --- a/crates/fparkan-runtime/src/mining.rs +++ b/crates/fparkan-runtime/src/mining.rs @@ -70,7 +70,7 @@ impl MineSite { } } - fn live_mine(&self, world: &World) -> Option { + pub(super) fn live_mine(&self, world: &World) -> Option { self.placed_mine .and_then(|id| handle_by_original_id(world, id)) .or_else(|| handle_by_original_id(world, self.control.as_ref()?.original_id?)) -- cgit v1.2.3