test(compare): 월 이벤트 장수 turntime 입력을 논리 tick으로 맞춘다

This commit is contained in:
2026-08-24 09:07:37 +00:00
parent ea54ffbbff
commit 20bd059e96
+3
View File
@@ -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);
}