diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-14 23:04:40 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-14 23:04:40 +0300 |
| commit | bbd6088b7fb1162a976bcfa1ca6720c2c91e8a72 (patch) | |
| tree | a6aa1a70682a50af3830730c878887bd467d5b6d /apps/fparkan-game | |
| parent | 64bb8b476b525706d08d00be7c6f6cc397606c06 (diff) | |
| download | fparkan-bbd6088b7fb1162a976bcfa1ca6720c2c91e8a72.tar.xz fparkan-bbd6088b7fb1162a976bcfa1ca6720c2c91e8a72.zip | |
feat(ai): find and reserve sites for scripted construction
Handler 18 scans base rings, checks terrain and clearance, and writes the site back to the script. The stock Two Fortresses window found a tower site and reached the builder order. The native DLL returned the expected site with and without a reservation, and zero for missing areas. The builder task remains explicit in coverage.
Diffstat (limited to 'apps/fparkan-game')
| -rw-r--r-- | apps/fparkan-game/src/script_coverage.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs index 9d2a6613..a67ddde3 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -45,6 +45,11 @@ pub(super) fn log_clan_ai_stops(report: &SimulationReport) { for &(clan, unit, count) in &report.script_ore_transport_orders { eprintln!("sim_coverage script_ore_transport_approx={count} clan={clan} unit={unit}"); } + for &(clan, class, count) in &report.script_building_site_queries { + eprintln!( + "sim_coverage script_building_site_approx={count} clan={clan} class={class:#010x}" + ); + } for &(clan, count) in &report.script_capturer_queries { eprintln!("sim_coverage script_nearest_capturer_approx={count} clan={clan}"); } |
