test(compare): 월 이벤트 장수 turntime 입력을 논리 tick으로 맞춘다
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user