🐞 fix(巅峰演武): 修改等级计算、2倍碾压
This commit is contained in:
@@ -511,13 +511,16 @@ export async function generMyRecInfo(pvpDefense: PvpDefenseType, role: RoleType,
|
||||
}
|
||||
|
||||
export function calLineupScore(lineup: Attack|Defense, heroScores: HeroScore[]) {
|
||||
if(!lineup) return lineup;
|
||||
// if(!lineup) return lineup;
|
||||
let scores: number[] = [];
|
||||
for(let { actorId } of lineup.heroes) {
|
||||
let hs = heroScores.find(cur => cur.hid == actorId);
|
||||
if(hs) {
|
||||
scores.push(hs.score);
|
||||
}
|
||||
// for(let { actorId } of lineup.heroes) {
|
||||
// let hs = heroScores.find(cur => cur.hid == actorId);
|
||||
// if(hs) {
|
||||
// scores.push(hs.score);
|
||||
// }
|
||||
// }
|
||||
for(let {score} of heroScores){
|
||||
scores.push(score);
|
||||
}
|
||||
let { pLv, score } = getPlvAndScore(scores);
|
||||
return {...lineup, score, pLv}
|
||||
|
||||
Reference in New Issue
Block a user