From d38171123d67fad0e97eef49912b4a37f13b2e7d Mon Sep 17 00:00:00 2001 From: soul Date: Sat, 28 Nov 2026 19:09:55 +0100 Subject: [PATCH] LaunchSuppressor: stop insulating the rig; read mild against strong on the conducting hull every ship has Heat per steady launch (strong over mild, bound 1.51 from shipped 2.284 and a 1.0 mutant) on both hulls, and launches hidden in a 600-launch fight on the Djinni, which runs out (456 against 297, bound 1.24); the Longinus never runs out on a conducting hull. Co-Authored-By: Claude Sonnet 5.5 --- .../LaunchSuppressorCatalogTests.cs | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/LaunchSuppressorCatalogTests.cs b/tests/Aetheria.Shared.Tests/LaunchSuppressorCatalogTests.cs index 9afbc99ce..903ff3ff8 100644 --- a/tests/Aetheria.Shared.Tests/LaunchSuppressorCatalogTests.cs +++ b/tests/Aetheria.Shared.Tests/LaunchSuppressorCatalogTests.cs @@ -119,9 +119,6 @@ public sealed class LaunchSuppressorCatalogTests var items = new ItemManager(1u, Cache, ledger, settings, _ => { }); var zone = new Zone(items, new PlanetSettings(), new ZonePack(), new GalaxyZone { Name = "Test", Owner = null }, null); Ship = new Ship(items, zone, new EquippableItem { Data = Cache.RefOf(hull), Durability = hull.Durability, Lot = 1 }, settings.DefaultEntitySettings); - // The rig measures the suppressor's own heat on an insulated hull, as its fights (36 and 33 launches, 10 and 10) were probed; a hull that - // conducts from construction bleeds the cell and neither design runs out within the 60 launches. - foreach (var v in hull.Shape.Coordinates) Ship.HullConductivity[v.x, v.y] = default; var lot = 2; var thrusters = Cache.GetAll().Where(g => g.Hardpoint == HardpointType.Thruster).ToArray(); @@ -359,16 +356,31 @@ public sealed class LaunchSuppressorCatalogTests Assert.All(fight.Skip(hold), l => Assert.True(Math.Abs(l.Stored - hidden) < .01f || l.Stored == flash, $"{hull}: a launch stored {l.Stored}, neither hidden nor bright")); } + // On a hull that conducts from construction (every shipped ship), a Longinus bleeds the cell and neither design runs out in 600 launches, so + // "outlasts" is read as what decides it: the heat a launch puts in the cell. A steady fight's launch, mild against strong, at both flashes and + // on both hulls: shipped 2.284 (4.649 against 10.620 at 1000, 1.395 against 3.186 at 300), a design with the other's heat 1.0 (the least claimed + // mutant). Bound sqrt(2.284 x 1.0) = 1.51, separation 2.28 (deterministic-bound-margin). [Theory] [InlineData("Longinus")] [InlineData("Djinni")] - public void MildSuppressorSurvivesALongerFightThanStrong(string hull) + public void MildSuppressorCostsLessHeatPerLaunchThanStrong(string hull) { foreach (var flash in new[] { 300f, Flash }) { - var mild = LeadingSuppressed(hull, MildName, flash); - var strong = LeadingSuppressed(hull, StrongName, flash); - Assert.True(mild > strong, $"{hull}: mild {mild} did not outlast strong {strong} at {flash}"); + var mild = Fight(hull, MildName, flash, 10)[9].Rise; + var strong = Fight(hull, StrongName, flash, 10)[9].Rise; + Assert.True(strong / mild > 1.51f, $"{hull}: strong {strong} over mild {mild} at {flash} is {strong / mild}, not above 1.51"); } } + + // The Djinni's hull is the one that runs out (the Longinus never does on a conducting hull): at one 1000 flash a second, 600 launches, mild keeps + // hiding 456 launches and strong 297. Ratio 1.535 shipped, 1.0 for the least claimed mutant (equal designs); bound sqrt(1.535 x 1.0) = 1.24, + // separation 1.535. At a 300 flash the two end 473 and 464 (1.02), a difference no bound claims, so only the 1000 flash is read. + [Fact] + public void MildSuppressorHidesLongerThanStrongOnAHullThatRunsOut() + { + var mild = LeadingSuppressed("Djinni", MildName, Flash, 600); + var strong = LeadingSuppressed("Djinni", StrongName, Flash, 600); + Assert.True(strong < 600 && mild / (float) strong > 1.24f, $"Djinni: mild {mild} against strong {strong} of 600 at {Flash}"); + } }