test: 전투 차등 계측 범위를 엄격하게 보강한다
fixture 시각을 DB 변경 없이 고정하고 활성 스킬과 fixture identity를 노출해 Core의 전체 상태·RNG·로그 비교가 첫 차이에서 실패하도록 한다.
This commit is contained in:
@@ -120,6 +120,24 @@ class WarUnit
|
||||
return $this->logActivatedSkill;
|
||||
}
|
||||
|
||||
/**
|
||||
* Comparison traces observe a phase before clearActivatedSkill() runs.
|
||||
* Keep the product-facing cumulative accessor above unchanged, while
|
||||
* exposing the canonical logged + currently-active view used by Core's
|
||||
* WarBattleTraceUnitSnapshot.
|
||||
*/
|
||||
function getActivatedSkillTraceSnapshot(): array
|
||||
{
|
||||
$snapshot = $this->logActivatedSkill;
|
||||
foreach ($this->activatedSkill as $skillName => $state) {
|
||||
if (!$state) {
|
||||
continue;
|
||||
}
|
||||
$snapshot[$skillName] = ($snapshot[$skillName] ?? 0) + 1;
|
||||
}
|
||||
return $snapshot;
|
||||
}
|
||||
|
||||
function getRawNation(): array
|
||||
{
|
||||
return $this->rawNation;
|
||||
|
||||
Reference in New Issue
Block a user