diff --git a/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs b/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs index 336ab30f2..0cd2c76fc 100644 --- a/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs +++ b/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs @@ -83,7 +83,8 @@ public sealed class ConsumableSupplyTests : IDisposable var stranger = seed.Upsert(new Faction { Name = "Stranger", ShortName = "STR" }); maker = seed.Upsert(new Faction { Name = "Maker", ShortName = "MKR", Allegiance = { { ally, 1f } } }); - var skiff = seed.Upsert(new HullData { Name = "Skiff", HullType = HullType.Ship, Shape = Solid(4, 3), Price = 100 }); + // Interior for the crate, the capacitor and the tractor beam every generated ship carries. + var skiff = seed.Upsert(new HullData { Name = "Skiff", HullType = HullType.Ship, Shape = Solid(5, 3), Price = 100 }); var platform = seed.Upsert(new HullData { Name = "Platform", HullType = HullType.Station, Shape = Solid(5, 5), Price = 100 }); // A hold with no cell cannot take a consumable. var crate = seed.Upsert(new CargoBayData diff --git a/tests/Aetheria.Shared.Tests/EvasionTermTests.cs b/tests/Aetheria.Shared.Tests/EvasionTermTests.cs index 3b558a90e..00996179c 100644 --- a/tests/Aetheria.Shared.Tests/EvasionTermTests.cs +++ b/tests/Aetheria.Shared.Tests/EvasionTermTests.cs @@ -306,10 +306,11 @@ public sealed partial class RunStartTests else { // The envelope sums the live columns, the drives' yaw among them (turn-authority-full), so its reach sits above - // the allocated one by the turn the drives add: 1.24 nose-on and 1.12 broadside at the last measurement. The - // ceiling is that, from the columns the allocator solves with, not an open bound: an envelope inflated by a - // factor (doubled: 2.5 and 2.2) breaks it. - Assert.InRange(reach.noseOn, measured.noseOn * .9f, allocated.noseOn * 1.3f); + // the allocated one by the turn the drives add: 1.37 nose-on and 1.17 broadside at the last measurement + // (1.24 and 1.12 before every generated ship drew a tractor beam: the extra draw per ship fits the Longinus + // with other rolls). The ceiling is that, from the columns + // the allocator solves with, not an open bound: an envelope inflated by a factor (doubled: 2.7 and 2.3) breaks it. + Assert.InRange(reach.noseOn, measured.noseOn * .9f, allocated.noseOn * 1.5f); Assert.InRange(reach.broadside, measured.broadside * .9f, allocated.broadside * 1.2f); Assert.InRange(measured.noseOn, allocated.noseOn * .9f, allocated.noseOn * 1.15f); Assert.InRange(measured.broadside, allocated.broadside * .85f, allocated.broadside * 1.15f);