Fire control test: a catalog rewritten since slot 32 loads its weapons exactly

ShippedCatalogIsNeutralOnBlastRadiusAndFuse also pinned that every stored
weapon record predates slot 32 (CompatibleDrift, slot 32 defaulted). The field-
kinds authoring pass rewrote every catalog record through CultCache, so the
weapons now store slot 32 and load Exact. The rule the test protects stands:
no weapon authors a blast radius or fuse, and a record that does drift may
drift by slot 32 and nothing else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-30 14:00:14 +02:00
commit 410173eb27

View file

@ -2600,10 +2600,13 @@ public sealed class FireControlCut124Tests : IDisposable
Assert.Null(w.Fuse);
}
// Mining Cut 3: a catalog written since slot 32 existed (AetherDb field-kinds rewrote every record) stores
// the slot, so its weapons load exactly. A catalog that predates it may drift by slot 32 and nothing else.
var reports = store.LastSchemaMigrationReports.Where(r => r.LocalSchemaName == "aetheria.weaponitemdata").ToList();
Assert.NotEmpty(reports);
foreach (var report in reports)
{
if (report.Kind == CultSchemaMigrationKind.Exact) continue;
Assert.Equal(CultSchemaMigrationKind.CompatibleDrift, report.Kind);
Assert.Equal(new[] { 32 }, report.DefaultedMissingSlots);
Assert.Empty(report.IgnoredExtraSlots);