aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/boarding.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-25 19:14:25 +0300
committerValentin Popov <valentin@popov.link>2026-11-25 19:14:25 +0300
commit5cc5602b3fa42e5864d205a1c42c895504038b10 (patch)
treee6a664fcfd8b4f69b0d0958da661e2e059d53d92 /crates/fparkan-runtime/src/boarding.rs
parent85474bcd60f66b610985c90a697351837208528b (diff)
downloadfparkan-5cc5602b3fa42e5864d205a1c42c895504038b10.tar.xz
fparkan-5cc5602b3fa42e5864d205a1c42c895504038b10.zip
fix(ai): start player and clan cycles on the first update
Fresh AI contexts enter their first cycle immediately, including the player context with an empty Problems0. Share their logical clock with Mission timeouts and registration notifications. The stock original confirms the first Mission callback sees zero before the first AI cycle. Run the player Problems0 path and support TAKE_ALL_BATTLE_UNITS: preserve reserved and same-kind assignments, take warbots from other combat tasks. Native ai.dll calls verify recruitment and the initial shared RNG draws. Validation: workspace fmt/check/tests, release build, licensed stock-clock test, all 29 stock missions at --sim-report 900 without script stops, and stock mission windows 28 and 20. Full AI chronology, native occupancy and remaining RNG consumers are still approximate.
Diffstat (limited to 'crates/fparkan-runtime/src/boarding.rs')
0 files changed, 0 insertions, 0 deletions