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',