test: 군주 승계 비교 fixture에 상성과 가상 모드 입력 추가
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user