名将擂台:初始刷新对手问题

This commit is contained in:
luying
2022-08-11 20:30:55 +08:00
parent 64e23dfb68
commit e2ff9e76af
2 changed files with 13 additions and 1 deletions

View File

@@ -169,7 +169,7 @@ function randomRank(isBefore: boolean, myRank: number, range: number, len: numbe
if(rand) {
let ratio = isBefore? -1: 1;
let rank = myRank + ratio * rand;
if( rank > 3001) rank = 3001;
if( rank > 3001) rank = 3002;
arr.push(rank);
}
}