aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/mining.rs
Commit message (Collapse)AuthorAgeFilesLines
* fix(ai): advance clan cycles when units registerValentin Popov10 days1-3/+3
| | | | | | | | | | | | | | | 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.
* feat(ai): find and reserve sites for scripted constructionValentin Popov2026-11-141-1/+1
| | | | 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.
* feat(ai): let clan scripts resume mining at existing shaftsValentin Popov2026-11-141-1/+32
| | | | Handle the free-mine lookup and the mine order in Problems0. Preserve a live shaft's deposit binding, claim nearby free reserves, and leave neighboring live shafts alone. Stock Single.02 now reaches the mine limit check instead of stopping on the lookup.
* fix(mining): feed placed mines from nearby depositsValentin Popov2026-11-141-10/+122
| | | | Bind stock mines to TMA reserves within the Behavior collection radius and report the live clan reserve to Problems0. Verified extraction from stock Single.01 and preserved the Field Camp mine order. Single.01 reaches Handler(56) in the 120-second report and renders with clean Vulkan validation.
* feat(runtime): deploy mines and supply ore to factoriesValentin Popov2026-11-141-0/+252