aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-14 22:19:00 +0300
committerValentin Popov <valentin@popov.link>2026-11-14 22:19:00 +0300
commit41ff7eec69baff620f97a636bd5a7709f7e27eb1 (patch)
treecbfe7e0c454f57e8038afc1d3d095b3191bf559a /apps
parent16450724fa9d3052d315442a07b71e8d445c6cc3 (diff)
downloadfparkan-41ff7eec69baff620f97a636bd5a7709f7e27eb1.tar.xz
fparkan-41ff7eec69baff620f97a636bd5a7709f7e27eb1.zip
feat(ai): evaluate factory guards and threats to the base
Single.01 reaches the end of Problems0 and enters its building protection and construction jobs. Confirm radius boundaries, first-factory order, hero priority and duplicate exclusion via GOG ai.dll. Unavailable building upgrades log a stub and return no eligible target.
Diffstat (limited to 'apps')
-rw-r--r--apps/fparkan-game/src/script_coverage.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs
index 436ec426..82146541 100644
--- a/apps/fparkan-game/src/script_coverage.rs
+++ b/apps/fparkan-game/src/script_coverage.rs
@@ -27,6 +27,12 @@ pub(super) fn log_clan_ai_stops(report: &SimulationReport) {
for &(clan, count) in &report.script_attack_queries {
eprintln!("sim_coverage script_attack_target_approx={count} clan={clan}");
}
+ for &(clan, target, count) in &report.script_factory_defence_queries {
+ eprintln!("sim_coverage script_factory_defence_approx={count} clan={clan} target={target}");
+ }
+ for &(clan, target, count) in &report.script_base_threat_queries {
+ eprintln!("sim_coverage script_base_threat_approx={count} clan={clan} target={target}");
+ }
for &(clan, target, count) in &report.script_group_orders {
eprintln!("sim_coverage script_group_order_approx={count} clan={clan} target={target}");
}