From 2656cca01b65745e9e6aa7b11d80414039e4cc67 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 14:03:31 +0400 Subject: feat(ai): select convoy targets using original class queries Connect Handler(71) to least-defended hostile buildings of the requested class and Handler(72) to the object's prototype size class. The stock Convoy script now assigns its delayed attack instead of stopping at these queries. Keep descriptor binding, guard strength and candidate order explicit approximations with coverage counters. Execute the original ai.dll handlers and Behavior.dll class getter in native oracles, including strict radius, ties, missing objects and name classes. Add a Rust class rule test and a licensed stock-start test for the delayed attack; check owner independence separately with a debug change after the stock assertion. Validate fmt, workspace check/tests, licensed test, release simulation and the running mission with Vulkan validation. Accelerated scene time is a mechanic check, not mission-completion acceptance. Handler(30) message dispatch remains the next Convoy script stop. --- apps/fparkan-game/src/script_coverage.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/fparkan-game/src/script_coverage.rs') diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs index 28df2db2..968a6280 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -60,6 +60,12 @@ pub(super) fn log_clan_ai_stops(report: &SimulationReport) { for &(clan, mode, count) in &report.script_group_recruitments { eprintln!("sim_coverage script_group_recruitment_approx={count} clan={clan} mode={mode}"); } + for &(clan, class, target, count) in &report.script_class_target_queries { + eprintln!("sim_coverage script_class_target_approx={count} clan={clan} class={class} target={target}"); + } + for &(clan, unit, count) in &report.script_size_class_queries { + eprintln!("sim_coverage script_size_class_approx={count} clan={clan} unit={unit}"); + } for &(clan, problem, count) in &report.script_problem_waits { eprintln!("sim_coverage script_problem_wait_approx={count} clan={clan} problem={problem}"); } -- cgit v1.2.3