diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-14 22:11:20 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-14 22:11:20 +0300 |
| commit | 16450724fa9d3052d315442a07b71e8d445c6cc3 (patch) | |
| tree | bd0c982ce51976e810addcc627ea299b4d9e5318 /crates/fparkan-runtime/src/lib.rs | |
| parent | e1f26ba007532eca4b6afe4d49aca58799c1ce05 (diff) | |
| download | fparkan-16450724fa9d3052d315442a07b71e8d445c6cc3.tar.xz fparkan-16450724fa9d3052d315442a07b71e8d445c6cc3.zip | |
feat(ai): wait on scripted capture and group conditions
Single.01 now reaches ST_SOLVING after dispatching a capturer and patrol. Compare the capture and destruction predicates with the original ai.dll at RVA 0x5180. Keep the default OR_TASK behavior and report the approximate lifecycle.
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index 6c7f0fe7..56063ca9 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -47,6 +47,7 @@ mod building_door; mod clan_ai_events; mod clan_combat_groups; mod clan_combat_strength; +mod clan_problem_conditions; mod clan_script_init; mod clan_targeting; mod mesh_collision; @@ -2931,6 +2932,7 @@ pub struct SimulationReport { pub script_capture_queries: Vec<(usize, u64)>, pub script_attack_queries: Vec<(usize, u64)>, pub script_group_orders: Vec<(usize, u32, u64)>, + pub script_problem_waits: Vec<(usize, u32, u64)>, pub script_capturer_queries: Vec<(usize, u64)>, pub script_capture_approaches: Vec<(u32, u32, u64)>, /// First factory completion by clan, in milliseconds. @@ -2978,6 +2980,7 @@ pub fn simulate_mission_report( script_capture_queries: Vec::new(), script_attack_queries: Vec::new(), script_group_orders: Vec::new(), + script_problem_waits: Vec::new(), script_capturer_queries: Vec::new(), script_capture_approaches: Vec::new(), first_factory_completion_ms: Default::default(), @@ -3069,6 +3072,9 @@ pub fn simulate_mission_report( .script_group_orders .extend(loaded.clan_ai_events.group_orders()); report + .script_problem_waits + .extend(loaded.clan_ai_events.wait_starts()); + report .script_capturer_queries .extend(loaded.clan_ai_events.capturer_queries()); report |
