pvp:debug接口设置分数
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user