fix: 유산 전투 특기 고정과 내역 스크롤 수정
초기화 시 전투 특기를 null로 정규화하고 이전 특기 배열을 보존해 다음 월 고정 배정이 daemon 재시작 없이 동작하게 한다. 다중 변경 내역이 문서 높이를 늘리도록 하고 API, 월간 persistence, 실제 Chromium 회귀 검증을 추가한다.
This commit is contained in:
@@ -257,7 +257,7 @@ const zPatchGeneral = z.object({
|
||||
intelligence: zFiniteNumber.optional(),
|
||||
})
|
||||
.optional(),
|
||||
specialWar: z.string().optional(),
|
||||
specialWar: z.string().nullable().optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
@@ -734,10 +734,10 @@ async function handlePatchGeneral(
|
||||
...command.patch.stats,
|
||||
};
|
||||
}
|
||||
if (typeof command.patch.specialWar === 'string') {
|
||||
if (command.patch.specialWar !== undefined) {
|
||||
patch.role = {
|
||||
...general.role,
|
||||
specialWar: command.patch.specialWar,
|
||||
specialWar: command.patch.specialWar === 'None' ? null : command.patch.specialWar,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user