test: 전투 차등 계측 범위를 엄격하게 보강한다

fixture 시각을 DB 변경 없이 고정하고 활성 스킬과 fixture identity를 노출해 Core의 전체 상태·RNG·로그 비교가 첫 차이에서 실패하도록 한다.
This commit is contained in:
2026-08-24 03:35:39 +00:00
parent a041a8132f
commit a0b6a48a51
3 changed files with 55 additions and 5 deletions
+4 -2
View File
@@ -661,12 +661,14 @@ function buildWarTraceUnitSnapshot(WarUnit $unit): array
'realPhase' => $unit->getRealPhase(),
'maxPhase' => $unit->getMaxPhase(),
'hp' => $unit->getHP(),
'rawWarPower' => $unit->getRawWarPower(),
// Ref leaves warPower uninitialized until beginPhase(). Canonical
// traces use numeric zero for that not-yet-computed state, as Core does.
'rawWarPower' => $unit->getRawWarPower() ?? 0,
'warPower' => $unit->getWarPower(),
'warPowerMultiplier' => $unit->getWarPowerMultiply(),
'killed' => $unit->getKilled(),
'dead' => $unit->getDead(),
'activatedSkills' => $unit->getActivatedSkillLog(),
'activatedSkills' => $unit->getActivatedSkillTraceSnapshot(),
];
if ($unit instanceof WarUnitGeneral) {