pvp:debug接口设置分数

This commit is contained in:
luying
2022-08-11 19:55:39 +08:00
parent 9c79d48d2c
commit 59ae643854
3 changed files with 10 additions and 8 deletions
+1 -3
View File
@@ -130,8 +130,6 @@ export async function matchPlayerByRank(seasonNum: number, chosenOpps: string[],
oppRank++;
}
}
} else if (myRank == 0) {
return null
} else {
if (pos == 1 || pos == 2) { // 刷新我前一名
oppRank = myRank - 1;
@@ -449,7 +447,7 @@ export async function generMyRecInfo(pvpDefense: PvpDefenseType, role: RoleType,
return { attackInfo, showHeroScores, updateParam }
}
function calLineupScore(lineup: Attack|Defense, heroScores: HeroScore[]) {
export function calLineupScore(lineup: Attack|Defense, heroScores: HeroScore[]) {
if(!lineup) return lineup;
let scores: number[] = [];
for(let { actorId } of lineup.heroes) {