aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/lib.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-14 20:07:29 +0300
committerValentin Popov <valentin@popov.link>2026-11-14 20:07:29 +0300
commit423ef8a52d38721b296791c887ec3674f18e74c8 (patch)
treead9ea861ca04b546b29c4f45a85f52d779cbd033 /crates/fparkan-runtime/src/lib.rs
parent6e18e9f05c1ae92a54dd671b6e47f3e21e299d4f (diff)
downloadfparkan-423ef8a52d38721b296791c887ec3674f18e74c8.tar.xz
fparkan-423ef8a52d38721b296791c887ec3674f18e74c8.zip
fix(ai): report unloaded research status during problem checks
Handler(65) can continue with the native unloaded-catalog result, with an explicit per-clan count. A direct ai.dll call confirms the unloaded and no-table guards. Single.01 now reaches the float resource result.
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
-rw-r--r--crates/fparkan-runtime/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs
index 3b857586..ed6b6aa6 100644
--- a/crates/fparkan-runtime/src/lib.rs
+++ b/crates/fparkan-runtime/src/lib.rs
@@ -2899,6 +2899,8 @@ pub struct SimulationReport {
pub mission_event_stops: Vec<MissionEventStop>,
/// Uncovered clan AI instructions and the number of invocations they stopped.
pub clan_ai_event_stops: Vec<(MissionEventStop, u64)>,
+ /// Research status calls handled with an unloaded catalog, grouped by clan.
+ pub clan_research_status_stubs: Vec<(usize, u64)>,
/// Total requests for mission information messages.
pub mission_messages: u64,
/// Clock of the first autonomous shot, in milliseconds.
@@ -2933,6 +2935,7 @@ pub fn simulate_mission_report(
mission_events: 0,
mission_event_stops: Vec::new(),
clan_ai_event_stops: Vec::new(),
+ clan_research_status_stubs: Vec::new(),
mission_messages: 0,
autodemo_first_shot_ms: None,
autodemo_first_destroyed_ms: None,
@@ -2984,6 +2987,9 @@ pub fn simulate_mission_report(
.stops()
.map(|(stop, count)| (stop.clone(), count)),
);
+ report
+ .clan_research_status_stubs
+ .extend(loaded.clan_ai_events.research_status_stubs());
}
Ok(report)
}