Tests: the consumable rig's hull has an interior cell for the beam; the Longinus reach ceiling follows the new sample

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-13 06:27:15 +02:00
commit 87642a9b4d
2 changed files with 7 additions and 5 deletions

View file

@ -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

View file

@ -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);