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:
parent
b9265a98dd
commit
12a7864a4a
1 changed files with 6 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue