aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-14 22:31:36 +0300
committerValentin Popov <valentin@popov.link>2026-11-14 22:31:36 +0300
commit947be441148cea94b2a847268b885cc20d36b2aa (patch)
treece91ecadac2760341f8c87cbbf1b6bfd4d5d9a8b /apps
parent41ff7eec69baff620f97a636bd5a7709f7e27eb1 (diff)
downloadfparkan-947be441148cea94b2a847268b885cc20d36b2aa.tar.xz
fparkan-947be441148cea94b2a847268b885cc20d36b2aa.zip
feat(ai): keep the scripted factory patrol active
Run the active factory protection event before Problems0. Its group retains assigned warbots and can recruit replacements. Release the patrol when the factory is lost. The stock Two Fortresses run assigned a patrol around the enemy factory in both simulation and the Vulkan window. A direct x86 DLL call confirmed Handler(45) sums assigned ratings and skips free slots. Live comparison with the original remains open.
Diffstat (limited to 'apps')
-rw-r--r--apps/fparkan-game/src/script_coverage.rs3
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 82146541..4a7cc110 100644
--- a/apps/fparkan-game/src/script_coverage.rs
+++ b/apps/fparkan-game/src/script_coverage.rs
@@ -39,6 +39,9 @@ pub(super) fn log_clan_ai_stops(report: &SimulationReport) {
for &(clan, problem, count) in &report.script_problem_waits {
eprintln!("sim_coverage script_problem_wait_approx={count} clan={clan} problem={problem}");
}
+ for &(clan, target, count) in &report.script_factory_patrol_continues {
+ eprintln!("sim_coverage script_factory_patrol_continue_approx={count} clan={clan} target={target}");
+ }
for &(clan, count) in &report.script_capturer_queries {
eprintln!("sim_coverage script_nearest_capturer_approx={count} clan={clan}");
}