Ammo-run test: a shooter is stocked exactly to its hold when its draw exceeds it

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-28 19:09:56 +01:00
commit d3edd71e4f

View file

@ -87,7 +87,8 @@ public sealed partial class RunStartTests
return worst.Select(kv => (kv.Key.Item1, kv.Key.Item2, kv.Value.drawn, kv.Value.stocked, kv.Value.full)).ToList();
}
// Stocked to its draw, or its hold is full (a ship that holds every gun down for ten minutes may run dry). Measured draws at the 600 s window with every hull
// Six draws exceed their holds (the rest are launchers that draw under a reload): a shooter is stocked exactly to its hold's capacity for an ammunition when its draw exceeds it, and runs dry (Self's stocking ruling,
// the coordinator's message of 2026-11-28, given in chat and not admitted). Measured draws at the 600 s window with every hull
// conducting: Arcs turret 110 Ammo, player 230 Ammo; Pursuit pursuer 199 Ammo and 14 Missiles, player 42 Mines and 195 Ammo.
// Arcs, run to its end twice: the player holding every gun down, and the player standing in the hostile turret's range while the turret
// shoots. Kills: a crate count nobody measured (the turret's 30 and the player's none were estimates), a scenario shooter stocked below
@ -98,7 +99,7 @@ public sealed partial class RunStartTests
var run = WorstRun(new Arcs(), (true, false), (false, true));
Assert.Contains(run, r => r.shooter == 2 && r.ammo == "Ammo" && r.drawn > 0);
Assert.Contains(run, r => r.shooter == -1 && r.ammo == "Ammo" && r.drawn > 0);
Assert.All(run, r => Assert.True(r.stocked >= r.drawn || r.full, $"Arcs shooter {r.shooter} drew {r.drawn} {r.ammo} over a run and was stocked {r.stocked} with room left"));
Assert.All(run, r => Assert.True(r.full == r.drawn > r.stocked, $"Arcs shooter {r.shooter} drew {r.drawn} {r.ammo} and was stocked {r.stocked}, hold full: {r.full}"));
}
// Pursuit, the player holding every gun down and the pursuer shooting back, then the player idle. Kills: as above, for the Mine Launcher's
@ -109,6 +110,6 @@ public sealed partial class RunStartTests
var run = WorstRun(new Pursuit(), (true, false), (false, false));
Assert.Contains(run, r => r.shooter == -1 && r.ammo == "Mines" && r.drawn > 0);
Assert.Contains(run, r => r.shooter == 0 && r.ammo == "Ammo" && r.drawn > 0);
Assert.All(run, r => Assert.True(r.stocked >= r.drawn || r.full, $"Pursuit shooter {r.shooter} drew {r.drawn} {r.ammo} over a run and was stocked {r.stocked} with room left"));
Assert.All(run, r => Assert.True(r.full == r.drawn > r.stocked, $"Pursuit shooter {r.shooter} drew {r.drawn} {r.ammo} and was stocked {r.stocked}, hold full: {r.full}"));
}
}