From 85474bcd60f66b610985c90a697351837208528b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 19:41:17 +0400 Subject: fix(ai): advance clan cycles when units register Advance the signed AI deadline by 1400 ms when an active clan receives a new unit. Connect production, construction, mines, reinforcements and ownership transfers through the shared spawn path. Preserve negative deadlines and count registration notifications per clan. Move the common spawn code and result type out of AutoDemo without changing its public API. Native ai.dll calls cover duplicate and missing IDs, the disabled guard, both registration kinds, negative deadlines and unchanged RNG. A live original warbot registration confirms the same advance. Workspace checks, the licensed stock factory timing test and all 29 900-second reports pass; a stock mission-28 window runs through successive factory outputs. Initial clock phase, complete RNG ordering and full G7 chronology remain open. --- crates/fparkan-runtime/src/mining.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/fparkan-runtime/src/mining.rs') diff --git a/crates/fparkan-runtime/src/mining.rs b/crates/fparkan-runtime/src/mining.rs index 61266b9d..c3be7e07 100644 --- a/crates/fparkan-runtime/src/mining.rs +++ b/crates/fparkan-runtime/src/mining.rs @@ -1,7 +1,7 @@ use super::{ - add_behavior_registered_object, - autodemo::{spawn_prepared_unit, SpawnedUnit}, - behavior_ore_index_for_handle, BehaviorOreState, BehaviorRegisteredObject, Engine, EngineError, + add_behavior_registered_object, behavior_ore_index_for_handle, + unit_spawn::{spawn_prepared_unit, SpawnedUnit}, + BehaviorOreState, BehaviorRegisteredObject, Engine, EngineError, MissionControlDeviceTableState, MissionObjectDraft, StartingCockpit, }; use fparkan_assets::ExtraRecord28; -- cgit v1.2.3