feat(rng-seam): HeadlessBattleMgr override + decoupling/parity tests (F2 resolved)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-06 10:33:59 -04:00
parent 201158db5d
commit c47f8d9fa7
3 changed files with 88 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ namespace SVSim.BattleEngine.Rng
{
// The ONE place engine roll-logic is re-authored (the virtual-override seam restates it rather than
// body-patching the Engine file). Isolated here so it is unit-testable and pinned to the verbatim
// engine by the parity test (RngSeamTests.SeededSource_matches_engine_generator / Task 5). Mirrors
// engine by the parity test (RngSeamTests.Default_source_matches_engine_generator_and_formula). Mirrors
// BattleManagerBase.StableRandom: `(int)Math.Floor((double)val * unit)`.
public static class RandomSourceBridge
{