Munition parts: five gear-part behaviours carry a missile type's stats; completeness gate; one-shot migrate command
MunitionHullData, MunitionThrusterData, MunitionSeekerData, MunitionControlData (with Cognition) and MunitionFuelData (Behaviors union 43-47), read through MunitionParts.Of. StatValidation.ValidateMunitionParts refuses a launcher design without exactly one of each and any other design carrying one, at catalog load and Upsert. AetherDb gains munition-parts-migrate; LauncherRoles names the part's thruster stats by type and field (Range and Visibility also name the seeker's and plume's flat stats, which RolesBackfill must not range). Does not pass tests on its own: the shipped catalog is migrated in the next commit, and until then it fails the new gate at load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
730a4e5a52
commit
3c1e1e7421
7 changed files with 443 additions and 4 deletions
|
|
@ -80,6 +80,7 @@ public static class CultRecordRefs
|
|||
{
|
||||
StatValidation.ValidateHeatResponse(data);
|
||||
StatValidation.ValidateStatModifiers(data.Name, data.Behaviors);
|
||||
StatValidation.ValidateMunitionParts(data.Name, data.Behaviors);
|
||||
StatValidation.ValidateRoleUsage(data.Name, data.Roles, data.Behaviors);
|
||||
}
|
||||
if (document is ConsumableItemData consumable)
|
||||
|
|
|
|||
Loading…
Reference in a new issue