From 85e435e99d5a4d3d642a6789c9729fabd2d96d32 Mon Sep 17 00:00:00 2001 From: hided62 Date: Sun, 26 Jul 2026 20:12:13 +0000 Subject: [PATCH] compare: expose disband membership fields --- hwe/compare/turn_command_trace.php | 2 ++ hwe/compare/turn_state_snapshot.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/hwe/compare/turn_command_trace.php b/hwe/compare/turn_command_trace.php index 816f1f80..e08408fb 100644 --- a/hwe/compare/turn_command_trace.php +++ b/hwe/compare/turn_command_trace.php @@ -366,6 +366,8 @@ function comparisonApplyTurnFixtureSetup(mixed $setup): void 'expLevel' => 'explevel', 'officerLevel' => 'officer_level', 'officerCityId' => 'officer_city', + 'belong' => 'belong', + 'permission' => 'permission', 'betray' => 'betray', 'makeLimit' => 'makelimit', 'injury' => 'injury', diff --git a/hwe/compare/turn_state_snapshot.php b/hwe/compare/turn_state_snapshot.php index 1631d974..46bcf32e 100644 --- a/hwe/compare/turn_state_snapshot.php +++ b/hwe/compare/turn_state_snapshot.php @@ -278,6 +278,8 @@ function comparisonTurnStateSnapshot(array $request): array 'expLevel' => 'explevel', 'officerLevel' => 'officer_level', 'officerCityId' => 'officer_city', + 'belong' => 'belong', + 'permission' => 'permission', 'betray' => 'betray', 'makeLimit' => 'makelimit', 'injury' => 'injury', @@ -327,6 +329,7 @@ function comparisonTurnStateSnapshot(array $request): array ] as $key) { $result[$key] = comparisonOptionalCode($result[$key] ?? null); } + $result['maxBelong'] = (int)($result['meta']['max_belong'] ?? 0); return $result; }, comparisonRowsById('general', 'no', $generalIds),