This commit is contained in:
手瓜一十雪
2024-09-13 13:54:12 +08:00
parent 11aa3a0315
commit 90a91e4105
3 changed files with 22 additions and 20 deletions

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;
}