From f2340d7786ad61e581edaa45550f00bf1c846ba5 Mon Sep 17 00:00:00 2001 From: soul Date: Sat, 28 Nov 2026 01:12:55 +0100 Subject: [PATCH] DemoLoop reads the one station by hull type: the Pirates demo station is now the Arsenal Depot, not Zenith Pirates' mining stand-in lands on the depot hull; the test named the hull Zenith. Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/DemoLoopTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/DemoLoopTests.cs b/tests/Aetheria.Shared.Tests/DemoLoopTests.cs index e60734a3b..64da07c56 100644 --- a/tests/Aetheria.Shared.Tests/DemoLoopTests.cs +++ b/tests/Aetheria.Shared.Tests/DemoLoopTests.cs @@ -10,7 +10,7 @@ using UniRx; using Xunit; // The demo loop on the shipped catalog (aetheria-release, mining 5a): the player's own gun breaks a rock -// through the trigger, the ore lands in the hold, the Pirates station Zenith buys it, repairs the hull and sells a unit back. +// through the trigger, the ore lands in the hold, the Pirates' one station (a depot stand-in, so the Arsenal Depot hull) buys it, repairs the hull and sells a unit back. public sealed partial class RunStartTests { [Fact] @@ -56,7 +56,7 @@ public sealed partial class RunStartTests Assert.All(gains, gain => Assert.Equal((GainKind.Mined, 0), (gain.Kind, gain.Adrift))); Assert.Equal(held.Sum(h => h.stack.Quantity), gains.Sum(gain => gain.Stored)); - var zenith = arena.Entities.Single(entity => entity.HullData.Name == "Zenith"); + var zenith = arena.Entities.Single(entity => entity.HullData.HullType == HullType.Station); var credits = 0; // Every mined stack goes in one sale: the market takes it all, whatever the full hold of Zenith has room for. var value = StationServices.OreValue(_items, player.CargoBays); @@ -116,7 +116,7 @@ public sealed partial class RunStartTests for (var y = 0; y < player.MaxArmor.GetLength(1); y++) player.Armor[x, y] = 0; var repair = StationServices.RepairCost(_items, player); - var zenith = arena.Entities.Single(entity => entity.HullData.Name == "Zenith"); + var zenith = arena.Entities.Single(entity => entity.HullData.HullType == HullType.Station); var cheapest = zenith.CargoBays.SelectMany(bay => bay.Cargo.Keys.OfType()).Min(piece => _items.GetData(piece).Price); Assert.True(repair > 0 && cheapest > 0);