diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-14 21:12:48 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-14 21:12:48 +0300 |
| commit | 893f6ecd8ac49627185c035adba94065dddcdd85 (patch) | |
| tree | b43bcd85142450d90dba52ab2ea300b954dc6930 /apps/fparkan-game | |
| parent | 999d8dd743ce39f38b20ad3e8c8e4df391e3ae94 (diff) | |
| download | fparkan-893f6ecd8ac49627185c035adba94065dddcdd85.tar.xz fparkan-893f6ecd8ac49627185c035adba94065dddcdd85.zip | |
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.
Diffstat (limited to 'apps/fparkan-game')
| -rw-r--r-- | apps/fparkan-game/src/script_coverage.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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}"); } |
