✨ feat(gvg): 征战中原锁定对手
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
// 初始加载
|
||||
|
||||
Reference in New Issue
Block a user