Carry company stat-band roots into runtime state

This commit is contained in:
Jan Petykiewicz 2026-04-17 20:42:28 -07:00
commit 1e0f88bd62
9 changed files with 180 additions and 15 deletions

View file

@ -96,6 +96,12 @@ pub struct ExpectedRuntimeSummary {
#[serde(default)]
pub selected_company_mutable_support_scalar_value_f32_text: Option<String>,
#[serde(default)]
pub selected_company_stat_band_root_0cfb_count: Option<usize>,
#[serde(default)]
pub selected_company_stat_band_root_0d7f_count: Option<usize>,
#[serde(default)]
pub selected_company_stat_band_root_1c47_count: Option<usize>,
#[serde(default)]
pub player_count: Option<usize>,
#[serde(default)]
pub chairman_profile_count: Option<usize>,
@ -609,6 +615,30 @@ impl ExpectedRuntimeSummary {
));
}
}
if let Some(count) = self.selected_company_stat_band_root_0cfb_count {
if actual.selected_company_stat_band_root_0cfb_count != count {
mismatches.push(format!(
"selected_company_stat_band_root_0cfb_count mismatch: expected {count}, got {}",
actual.selected_company_stat_band_root_0cfb_count
));
}
}
if let Some(count) = self.selected_company_stat_band_root_0d7f_count {
if actual.selected_company_stat_band_root_0d7f_count != count {
mismatches.push(format!(
"selected_company_stat_band_root_0d7f_count mismatch: expected {count}, got {}",
actual.selected_company_stat_band_root_0d7f_count
));
}
}
if let Some(count) = self.selected_company_stat_band_root_1c47_count {
if actual.selected_company_stat_band_root_1c47_count != count {
mismatches.push(format!(
"selected_company_stat_band_root_1c47_count mismatch: expected {count}, got {}",
actual.selected_company_stat_band_root_1c47_count
));
}
}
if let Some(count) = self.player_count {
if actual.player_count != count {
mismatches.push(format!(