From 893f6ecd8ac49627185c035adba94065dddcdd85 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 14 Nov 2026 22:12:48 +0400 Subject: feat(ai): evaluate clan combat strength in scripts Use the live roster and Control weapon and capacity data in Handler(38). The original ai.dll rating formula was exercised with three capacity vectors. Single.01 reaches Handler(35) and retains factory production. Remaining ammunition and the exact selector 0x36 capacity are reported as an approximation. --- 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 b3fc6995..70be567f 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -21,6 +21,9 @@ pub(super) fn log_script_init(engine: &Engine, mission: &str) { } pub(super) fn log_clan_ai_stops(report: &SimulationReport) { + for &(clan, target, count) in &report.script_strength_queries { + eprintln!("sim_coverage script_combat_strength_approx={count} clan={clan} target={target}"); + } for &(clan, plant, count) in &report.script_factory_orders { eprintln!("sim_coverage script_factory_orders_approx={count} clan={clan} plant={plant}"); } -- cgit v1.2.3