pvp:刷新

This commit is contained in:
luying
2022-08-22 20:44:24 +08:00
parent 8c01ccbe43
commit 31671d7b91
5 changed files with 44 additions and 6 deletions

View File

@@ -130,6 +130,23 @@ export async function matchPlayerByRank(seasonNum: number, chosenOpps: string[],
oppRank++;
}
}
} else if (myRank == 2) { // 第二名
if (pos == 1) {
oppRank = 1;
while (ridRanks.includes(oppRank)) {
oppRank--;
}
} else if (pos == 2) {
oppRank = 3;
while (ridRanks.includes(oppRank)) {
oppRank++;
}
} else {
oppRank = 4;
while (ridRanks.includes(oppRank)) {
oppRank++;
}
}
} else {
if (pos == 1 || pos == 2) { // 刷新我前一名
oppRank = myRank - 1;