1 parent
8c91767392
commit
fe797b1449
1 file changed
+3
-3
@@ -163,8 +163,8 @@ export function getQQVersionConfigPath(exePath: string = ''): string | undefined
|
|||||||
|
|
||||||
export function calcQQLevel(level?: QQLevel) {
|
export function calcQQLevel(level?: QQLevel) {
|
||||||
if (!level) return 0;
|
if (!level) return 0;
|
||||||
const { crownNum, sunNum, moonNum, starNum } = level;
|
const { penguinNum, crownNum, sunNum, moonNum, starNum } = level;
|
||||||
return crownNum * 64 + sunNum * 16 + moonNum * 4 + starNum;
|
return penguinNum * 256 + crownNum * 64 + sunNum * 16 + moonNum * 4 + starNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function stringifyWithBigInt(obj: any) {
|
export function stringifyWithBigInt(obj: any) {
|
||||||
@@ -204,4 +204,4 @@ export function parseAppidFromMajor(nodeMajor: string): string | undefined {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user