PickupGenerationTests: count fitted beams, not a station's stock
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
87642a9b4d
commit
bc082c09a0
1 changed files with 2 additions and 1 deletions
|
|
@ -9,7 +9,8 @@ using Xunit;
|
|||
// it. Generation is the one place a ship's gear is chosen, so this runs the real catalog through it.
|
||||
public sealed partial class RunStartTests
|
||||
{
|
||||
private int PickupGear(EntityPack pack) => EntitySerializer.Items(pack).OfType<EquippableItem>()
|
||||
// The beams a pack carries fitted. A station may stock one in its hold to sell, which is the point of selling it.
|
||||
private int PickupGear(EntityPack pack) => pack.Equipment.Select(fitted => fitted.item)
|
||||
.Count(item => _items.GetData(item) is GearData gear && gear.Behaviors.Any(b => b is PickupData));
|
||||
|
||||
[Fact]
|
||||
|
|
|
|||
Loading…
Reference in a new issue