test: 군주 승계 비교 fixture에 상성과 가상 모드 입력 추가

This commit is contained in:
2026-09-16 15:31:00 +00:00
parent 2239ff667b
commit 12c8e43797
+7
View File
@@ -104,6 +104,12 @@ function comparisonApplyTurnFixtureSetup(mixed $setup): void
throw new \InvalidArgumentException('setup.world.freezeClock must be a boolean');
}
$game = KVStorage::getStorage($db, 'game_env');
if (array_key_exists('fiction', $world)) {
if (!in_array($world['fiction'], [0, 1], true)) {
throw new \InvalidArgumentException('setup.world.fiction must be 0 or 1');
}
$game->setValue('fiction', $world['fiction']);
}
foreach (['year', 'month', 'startyear', 'init_year', 'init_month'] as $key) {
$fixtureKey = match ($key) {
'startyear' => 'startYear',
@@ -487,6 +493,7 @@ function comparisonApplyTurnFixtureSetup(mixed $setup): void
'specAge2' => 'specage2',
'killTurn' => 'killturn',
'npcState' => 'npc',
'affinity' => 'affinity',
'blockState' => 'block',
'picture' => 'picture',
'imageServer' => 'imgsvr',