feat(gvg): 征战中原锁定对手

This commit is contained in:
luying
2023-02-01 09:45:05 +08:00
parent 4035645772
commit b727249106
12 changed files with 635 additions and 36 deletions

View File

@@ -1172,15 +1172,15 @@ function parseGVGVestigeCnt() {
}
export function getGVGVestigeRange(myRank: number) {
let latestRank: DicGVGVestigeRange;
let lastRank: DicGVGVestigeRange;
for(let dic of gameData.gvgVestigeRange) {
latestRank = dic;
lastRank = dic;
let { rankMin, rankMax } = dic;
if((rankMin < myRank && (rankMax >= myRank || rankMax == -1))) {
return dic;
}
}
return latestRank
return lastRank
}
// 初始加载