StationKindTests worlds hold only the station hulls a test adds: station packages go off the market
The Arsenal Depot's offer makes every depot stand-in live, so the shipped composed catalog no longer has dead stand-ins; the worlds that assert dead stand-ins take package stations off the market like Zenith. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6c88753179
commit
115919d7f8
1 changed files with 7 additions and 0 deletions
|
|
@ -73,6 +73,13 @@ public sealed class StationKindTests : IDisposable
|
|||
world.Lucent = cache.GetAll<Faction>().Single(f => f.ShortName == "Lucent");
|
||||
world.Zenith = cache.GetAll<HullData>().Single(h => h.Name == "Zenith");
|
||||
world._zenithProduct = cache.GetAll<FactionProductData>().Single(p => cache.Get(p.Design) == world.Zenith);
|
||||
// Station packages composed into the catalog (the Arsenal Depot) are off the market too: these worlds hold only the station
|
||||
// hulls a test adds, and the depot's offer would make every depot stand-in live (StationPackageTests owns that).
|
||||
foreach (var product in cache.GetAll<FactionProductData>().Where(p => cache.Get(p.Design) is HullData { HullType: HullType.Station } h && h.Visual.IsSet()).ToArray())
|
||||
{
|
||||
product.NotOffered = true;
|
||||
cache.Upsert(product);
|
||||
}
|
||||
if (!zenithOffered)
|
||||
{
|
||||
world._zenithProduct.NotOffered = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue