RunStartTests: commit the maker assembly override so the scenario's ItemManager reads it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-17 07:01:49 +02:00
commit 12a7864a4a

View file

@ -49,11 +49,16 @@ public sealed partial class RunStartTests : IDisposable
// These scenarios measure what the gear does, not the luck of a maker's assembly: every maker assembles well and
// with the spread that makes two lots of one design differ (the scenarios compare a heated drive with its twin),
// so the ceiling (min(part, assembly)) rarely bites and no scenario stands on one maker's dice.
foreach (var faction in _cache.GetAll<Faction>())
var makers = _cache.GetAll<Faction>().ToArray();
foreach (var faction in makers)
{
faction.AssemblyMean = .75f;
faction.AssemblyDeviation = .15f;
}
_cache.Commit(batch =>
{
foreach (var faction in makers) batch.Upsert(typeof(Faction), faction, _cache.RefOf(faction).Key);
});
var authored = AuthoredSettings.Load(repo);
_zoneSettings = authored.Read<ZoneGenerationSettings>("ZoneSettings");