Commit graph Aetheria/tests/Aetheria.Shared.Tests/ConsumableSupplyTests.cs
Author SHA1 Message Date
Meta Vens
35af29304e ConsumableSupplyTests: seed the VerseGrammar global (master's new test used TestCatalogGlobal, which verse-grammar retired)
Mechanical merge fix. The merge commit before this does not build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 15:34:06 +02:00
Meta Vens
863d6c8fad ConsumableSupplyTests: 1500 station seeds, a ship hull with three interior cells, units reach the maximum on each station hull
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 11:30:46 +02:00
Meta Vens
1a81d07e3a ConsumableSupplyTests: shipped hulls, tight holds, two hulls per kind, 3000 ship seeds
Station and ship rates are measured per hull on two station hulls and two ship hulls with holds that
sixteen gear picks fill, on a station whose first bay refuses, and on the shipped catalog's own hulls.
The ship band is 3000 seeds so chances of .12, .15 and .05 fall outside it. These tests fail on the
generator as it stands (consumable stocked after the gear); the next commit fixes the generator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 11:02:27 +02:00
Meta Vens
eff21e0513 ConsumableSupplyTests: spell the ruling's chances and units out instead of reading the constants
A mutant that changed a constant moved the test's expectation with it and survived (station chance 1,
ship chance 0 and 1, station units 3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 08:02:48 +02:00
Meta Vens
293747c5f9 ConsumableSupplyTests: pin the generator's Random after generation to the pre-consumable tree
The gated-versus-plain comparison alone cannot see an unconditional draw (both catalogs draw).
Values measured on origin/master d4a27def with the same fixture. The roll-before-availability
mutant survived the full suite without this pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 07:57:32 +02:00
Meta Vens
e8d42df258 ConsumableSupplyTests: ship hull with two interior cells (cargo bay and capacitor)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 05:56:45 +02:00
Meta Vens
87528dbda4 ConsumableSupplyTests: a station roll can also stock a single unit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 05:47:37 +02:00
Meta Vens
a5aac29055 ConsumableSupplyTests: roomy holds (gear stock draws 16 with replacement), drop the probe, pin the station maximum
Commit 54d200ec before this is a diagnostic probe (builds, test deliberately red).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 05:47:11 +02:00
Meta Vens
54d200ec60 probe
x
2026-10-10 05:37:21 +02:00
Meta Vens
c2e46a4637 ConsumableSupplyTests: count consumables in docking-bay holds too (a station's first bay is its dock)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 05:34:47 +02:00
Meta Vens
7b73e51346 Consumable supply: scarce stock at stations and on ships through the one availability rule
LoadoutGenerator.AvailableProducts and RandomProducts now range over CraftedItemData; only
equippable gear needs a hull home. StockConsumables is the last step of GenerateShipLoadout and
GenerateStationLoadout: it draws nothing when no consumable is on offer. Unbuilt/untested at
this commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 05:32:50 +02:00