diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-14 23:04:40 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-14 23:04:40 +0300 |
| commit | bbd6088b7fb1162a976bcfa1ca6720c2c91e8a72 (patch) | |
| tree | a6aa1a70682a50af3830730c878887bd467d5b6d /crates/fparkan-runtime/src/mining.rs | |
| parent | 64bb8b476b525706d08d00be7c6f6cc397606c06 (diff) | |
| download | fparkan-bbd6088b7fb1162a976bcfa1ca6720c2c91e8a72.tar.xz fparkan-bbd6088b7fb1162a976bcfa1ca6720c2c91e8a72.zip | |
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.
Diffstat (limited to 'crates/fparkan-runtime/src/mining.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/mining.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<ObjectHandle> { + pub(super) fn live_mine(&self, world: &World) -> Option<ObjectHandle> { 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?)) |
