aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/clan_script_init.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-25 22:08:00 +0300
committerValentin Popov <valentin@popov.link>2026-11-25 22:08:00 +0300
commit9e5a8867d1a12a66772e6e97c3a0213f9636d56c (patch)
tree1757612044774f3a304d490ba52e8f9be93e3458 /crates/fparkan-runtime/src/clan_script_init.rs
parentf50fb0dcae975cd964b7606cc7248d9e771abb2c (diff)
downloadfparkan-9e5a8867d1a12a66772e6e97c3a0213f9636d56c.tar.xz
fparkan-9e5a8867d1a12a66772e6e97c3a0213f9636d56c.zip
fix(research): advance laboratory Control energy budgets
Paid laboratory work read a work-device coefficient that never received a Control budget update. Run the recovered resource clock and budget for laboratories as well as factories, so energy work follows the actual device allocation. Generalize the state and report counters to control_resource_*. A licensed outage regression drains the lab reserve and removes external power: energy work stays fixed while task time advances, then resumes when the original generation is restored. Stock research for both AI clans, player free research and paid factory production still pass. The original laboratory task reaches its class-3 Control owner, whose native budget runs on the same quarter-second resource path as the factory. Verified this in the running stock mission through Behavior 0x2f76e and Control 0x2d340. Workspace fmt/check/tests and release build pass. All 29 stock missions run 900 seconds without script or resource-budget stops. A stock mission-28 window completes paid technologies and starts subsequent projects. Control initial phase, RNG seed, other owners and global ordering remain approximate.
Diffstat (limited to 'crates/fparkan-runtime/src/clan_script_init.rs')
0 files changed, 0 insertions, 0 deletions