This commit is contained in:
手瓜一十雪 committed 2024-09-13 13:54:12 +08:00
1 parent 4be623fec4
commit 8ee31bce3c
3 files changed
+22 -20

No files matched your search

+2 -1
View File
@@ -209,7 +209,8 @@ export function getQQVersionConfigPath(exePath: string = ''): string | undefined
return configVersionInfoPath;
}
export function calcQQLevel(level: QQLevel) {
export function calcQQLevel(level?: QQLevel) {
if (!level) return 0;
const { crownNum, sunNum, moonNum, starNum } = level;
return crownNum * 64 + sunNum * 16 + moonNum * 4 + starNum;
}