From b553096eb9a4d9ccaa46ec2616c5c392e8a39325 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 12:30:01 +0400 Subject: feat(ai): evaluate scripted area defence strength Execute Handler(44) for XY and logical-object targets, an explicit clan or hostile clans. Reuse the strict horizontal radius calculation and report approximate query counts by clan, event and instruction. Direct GOG AI DLL calls cover target forms, DWORD coordinates, clan filtering, missing targets and the radius boundary. A stock mission regression runs the query through the script dispatcher. Five affected missions complete 900 simulated seconds, with the remaining point-group selection failures exposed explicitly. Mission 10 ran in the window with clean Vulkan validation. Workspace formatting, checking and tests pass. --- apps/fparkan-game/src/script_coverage.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/fparkan-game/src') diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs index de7d50b4..2e3d276a 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -35,6 +35,9 @@ pub(super) fn log_clan_ai_stops(report: &SimulationReport) { "sim_coverage script_building_defence_approx={count} clan={clan} target={target}" ); } + for &(clan, event, instruction, count) in &report.script_area_strength_queries { + eprintln!("sim_coverage script_area_strength_approx={count} clan={clan} event={event} instruction={instruction}"); + } for &(clan, target, count) in &report.script_base_threat_queries { eprintln!("sim_coverage script_base_threat_approx={count} clan={clan} target={target}"); } -- cgit v1.2.3