ConsumableSupplyTests: count consumables in docking-bay holds too (a station's first bay is its dock)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7b73e51346
commit
c2e46a4637
1 changed files with 2 additions and 1 deletions
|
|
@ -132,7 +132,8 @@ public sealed class ConsumableSupplyTests : IDisposable
|
|||
}
|
||||
|
||||
private static ConsumableItem[] Consumables(EntityPack pack) =>
|
||||
pack.CargoContents.SelectMany(bay => bay).Select(entry => entry.item).OfType<ConsumableItem>().ToArray();
|
||||
pack.CargoContents.Concat(pack.DockingBayContents ?? Array.Empty<(int2 position, ItemInstance item)[]>())
|
||||
.SelectMany(bay => bay).Select(entry => entry.item).OfType<ConsumableItem>().ToArray();
|
||||
|
||||
// Distinct, fixed seeds: the same 400 generators on every run.
|
||||
private static uint SeedOf(int i) => (uint) (i * 7919 + 13);
|
||||
|
|
|
|||
Loading…
Reference in a new issue