diff --git a/src/common/helper.ts b/src/common/helper.ts index e97de9b2..0213be69 100644 --- a/src/common/helper.ts +++ b/src/common/helper.ts @@ -163,8 +163,8 @@ export function getQQVersionConfigPath(exePath: string = ''): string | undefined export function calcQQLevel(level?: QQLevel) { if (!level) return 0; - const { crownNum, sunNum, moonNum, starNum } = level; - return crownNum * 64 + sunNum * 16 + moonNum * 4 + starNum; + const { penguinNum, crownNum, sunNum, moonNum, starNum } = level; + return penguinNum * 256 + crownNum * 64 + sunNum * 16 + moonNum * 4 + starNum; } export function stringifyWithBigInt(obj: any) { @@ -204,4 +204,4 @@ export function parseAppidFromMajor(nodeMajor: string): string | undefined { } return undefined; -} \ No newline at end of file +}