diff --git a/hwe/compare/monthly_event_trace.php b/hwe/compare/monthly_event_trace.php index 9a11cf59..9f294b9c 100644 --- a/hwe/compare/monthly_event_trace.php +++ b/hwe/compare/monthly_event_trace.php @@ -72,6 +72,9 @@ function comparisonMonthlyPatch(string $table, int $id, array $values): void if (!is_string($key) || !in_array($key, $definition['allowed'], true)) { throw new \InvalidArgumentException("unsupported {$table} setup field"); } + if ($table === 'general' && $key === 'turntime' && is_string($value)) { + $value = comparisonGameTick($value, "setup.general.{$id}.turntime"); + } if (in_array($key, ['conflict', 'aux'], true) && is_array($value)) { $value = json_encode($value, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE); }