diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-14 19:33:41 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-14 19:33:41 +0300 |
| commit | 071ec6a8619c9dfd37582c56dd97108aae3e6c6e (patch) | |
| tree | 85828ac5382fcb26547b92a34a2c2f6b0834a51f /crates/fparkan-runtime/src/mission_events.rs | |
| parent | 9e9833846e7f8b354493b8962123af4508bc0cda (diff) | |
| download | fparkan-071ec6a8619c9dfd37582c56dd97108aae3e6c6e.tar.xz fparkan-071ec6a8619c9dfd37582c56dd97108aae3e6c6e.zip | |
feat(ai): honor scenario warbot shutdown orders
Behavior.dll task dispatch selects ShutDown for order 0x13. Stop autonomous motion and fire until a new supported order is assigned. The field-camp clan now completes Init and all three placed warbots receive the shutdown order.
Diffstat (limited to 'crates/fparkan-runtime/src/mission_events.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/mission_events.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/fparkan-runtime/src/mission_events.rs b/crates/fparkan-runtime/src/mission_events.rs index d63ea43c..1d4c7856 100644 --- a/crates/fparkan-runtime/src/mission_events.rs +++ b/crates/fparkan-runtime/src/mission_events.rs @@ -653,10 +653,9 @@ impl LoadedMissionState { .ok() .flatten() .is_none() - || self - .unit_patrol - .as_ref() - .is_some_and(|patrol| patrol.is_patrolling(handle)) + || self.unit_patrol.as_ref().is_some_and(|patrol| { + patrol.is_patrolling(handle) || patrol.is_shut_down(handle) + }) || self .boarding .is_some_and(|boarding| boarding.cockpit.handle == handle) |
