From 12c8e43797215fc7e7831a46c07273226546d64f Mon Sep 17 00:00:00 2001 From: hided62 Date: Wed, 16 Sep 2026 15:31:00 +0000 Subject: [PATCH] =?UTF-8?q?test:=20=EA=B5=B0=EC=A3=BC=20=EC=8A=B9=EA=B3=84?= =?UTF-8?q?=20=EB=B9=84=EA=B5=90=20fixture=EC=97=90=20=EC=83=81=EC=84=B1?= =?UTF-8?q?=EA=B3=BC=20=EA=B0=80=EC=83=81=20=EB=AA=A8=EB=93=9C=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/compare/turn_command_trace.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hwe/compare/turn_command_trace.php b/hwe/compare/turn_command_trace.php index be1a1b47..c6601d28 100644 --- a/hwe/compare/turn_command_trace.php +++ b/hwe/compare/turn_command_trace.php @@ -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',