From a74de35c82717aa713112fc5bfbfb65b0e1b5575 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 18 Oct 2026 19:08:22 +0200 Subject: [PATCH] Boss_carries_exactly: the open slot's brand is an available product of its design (a weighted draw need not reach every one) Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/RunGoalTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/RunGoalTests.cs b/tests/Aetheria.Shared.Tests/RunGoalTests.cs index c4f7eaf2e..80f9ab1f9 100644 --- a/tests/Aetheria.Shared.Tests/RunGoalTests.cs +++ b/tests/Aetheria.Shared.Tests/RunGoalTests.cs @@ -186,9 +186,9 @@ public sealed partial class RunStartTests string Cell(LoadoutSlot slot, string brand) => $"{slot.Position.x},{slot.Position.y},{slot.Rotation},{_cache.Get(slot.Design).Name},{brand}"; var pinned = loadout.Slots.Where(slot => slot != open).Select(slot => Cell(slot, _cache.Get(slot.Product).Name)).OrderBy(x => x, StringComparer.Ordinal).ToArray(); - // The brands the context can choose for it: what the antagonist's own outfitter picks over many draws, never by key order. - var brands = Enumerable.Range(1, 64).Select(seed => GeneratorFor(galaxy, _items, antagonist, (uint) seed).ChooseProduct(_cache.Get(open.Design))?.Name) - .Where(name => name != null).Distinct().ToArray(); + // The brands the context can choose for it: the products of the design the antagonist's outfitter can get, never any maker's. + var outfitter = GeneratorFor(galaxy, _items, antagonist, 1); + var brands = _cache.GetAll().Where(product => product.Design.Key.Equals(open.Design.Key) && outfitter.IsAvailable(product)).Select(product => product.Name).ToArray(); Assert.NotEmpty(brands); var items = LoggingItems(new List());