diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-25 17:21:40 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-25 17:21:40 +0300 |
| commit | a09bc5526cb8f5a38099c5c0bc2b6bb4b47ddfda (patch) | |
| tree | 0a07360f53054a197d619528cb7b2feb60fad515 /apps | |
| parent | bef4fbab7701a51945ed93357babe12b416bb9a8 (diff) | |
| download | fparkan-a09bc5526cb8f5a38099c5c0bc2b6bb4b47ddfda.tar.xz fparkan-a09bc5526cb8f5a38099c5c0bc2b6bb4b47ddfda.zip | |
feat(research): unlock dependent and zero-cost technologies
Apply MisLoad's enabled/available/learned flag transitions after laboratory
completion. Scan every enabled unavailable row against all prerequisites,
then follow Behavior's ordered zero-cost child completion. Publish learned
descendants to construction and production and replace the unlock stub with
per-clan availability counters.
Direct calls to original MisLoad.dll 0x2c10 and Behavior.dll 0x23aa0 confirm
flag preservation, disabled prerequisites, positive/negative cost exclusion,
and free child recursion. Licensed table checks cover the stock first AI
project and a project with two automatic child technologies. The first stock
AI project opens no additional rows in either implementation.
Workspace fmt/check/tests, licensed laboratory regression, 29 stock missions
at 900 seconds and a stock Vulkan window check pass. This removes the
completion coverage gap needed by the next research-policy task; it does not
establish full project chaining or live AI chronology. Handlers 65/69 remain
explicit stubs.
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/fparkan-game/src/script_coverage.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs index 1e9c207c..53007d54 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -32,8 +32,8 @@ pub(super) fn log_clan_ai_stops(report: &SimulationReport) { "sim_coverage script_lab_technology_researched={count} clan={clan} lab={lab} row={row}" ); } - for &(clan, row, count) in &report.laboratory.unlock_stubs { - eprintln!("sim_coverage script_research_unlock_stub={count} clan={clan} row={row}"); + for &(clan, row, count) in &report.laboratory.available { + eprintln!("sim_coverage script_research_available={count} clan={clan} row={row}"); } for &(clan, lab, count) in &report.laboratory.stopped { eprintln!("sim_coverage script_lab_research_stopped={count} clan={clan} lab={lab}"); |
