From 83b1b62a92b31631fb1551b3ea4a56ddceaf5d00 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 13 Oct 2026 06:30:32 +0200 Subject: [PATCH] ConsumableSupplyTests: re-pin the generators' residual Random with the tractor beam's draw The old pin (d4a27def) is exactly what this tree leaves with EquipPickup's call removed (run: passes), so the new values differ from it only by the one product draw each generated ship makes for its beam. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs b/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs index 0cd2c76fc..cd968e885 100644 --- a/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs +++ b/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs @@ -335,11 +335,13 @@ public sealed class ConsumableSupplyTests : IDisposable } // What the plain catalog leaves in both generators' Random, measured on the tree before consumables existed - // (origin/master d4a27def, the same fixture and seeds). The gated and plain catalogs agreeing is not enough: - // a step that drew unconditionally would draw in both. This pins the value itself. + // (origin/master d4a27def, the same fixture and seeds), plus the one product draw each of the three generated + // ships makes for its tractor beam (loot-2): with that draw taken out the tree leaves the d4a27def values + // 0.85624266, 0.037778974, 0.7931649, 0.3596493, 0.17511952, 0.6642336, 0.31897342, 0.5977364. The gated and + // plain catalogs agreeing is not enough: a step that drew unconditionally would draw in both. This pins the value itself. var beforeConsumables = new[] { - 0.85624266f, 0.037778974f, 0.7931649f, 0.3596493f, 0.17511952f, 0.6642336f, 0.31897342f, 0.5977364f + 0.3596493f, 0.03616327f, 0.8790466f, 0.16682059f, 0.5977364f, 0.08633745f, 0.2869571f, 0.6890472f }; var plainAfter = AfterGeneration(plain); Assert.Equal(beforeConsumables, plainAfter);