aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/mission_events.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-14 22:19:00 +0300
committerValentin Popov <valentin@popov.link>2026-11-14 22:19:00 +0300
commit41ff7eec69baff620f97a636bd5a7709f7e27eb1 (patch)
treecbfe7e0c454f57e8038afc1d3d095b3191bf559a /crates/fparkan-runtime/src/mission_events.rs
parent16450724fa9d3052d315442a07b71e8d445c6cc3 (diff)
downloadfparkan-41ff7eec69baff620f97a636bd5a7709f7e27eb1.tar.xz
fparkan-41ff7eec69baff620f97a636bd5a7709f7e27eb1.zip
feat(ai): evaluate factory guards and threats to the base
Single.01 reaches the end of Problems0 and enters its building protection and construction jobs. Confirm radius boundaries, first-factory order, hero priority and duplicate exclusion via GOG ai.dll. Unavailable building upgrades log a stub and return no eligible target.
Diffstat (limited to 'crates/fparkan-runtime/src/mission_events.rs')
-rw-r--r--crates/fparkan-runtime/src/mission_events.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/fparkan-runtime/src/mission_events.rs b/crates/fparkan-runtime/src/mission_events.rs
index e90743fd..c19c53f8 100644
--- a/crates/fparkan-runtime/src/mission_events.rs
+++ b/crates/fparkan-runtime/src/mission_events.rs
@@ -157,7 +157,7 @@ impl MissionEvents {
world: &'a World,
owner: OwnerId,
free_only: bool,
- ) -> impl Iterator<Item = ObjectHandle> + 'a {
+ ) -> impl Iterator<Item = ObjectHandle> + Clone + 'a {
self.placed_clan_objects
.iter()
.filter_map(move |&(handle, class)| {