名将擂台:添加战力

This commit is contained in:
luying
2022-07-25 17:43:19 +08:00
parent 6613470061
commit 3f08cf4d53

View File

@@ -374,6 +374,7 @@ export class LadderOppDetailReturn {
title: number = 1;
warId: number = 0;
heroes: LadderOppDetailHeroReturn[] = [];
defCe: number = 0;
constructor(ladderRec: LadderMatchRecType) {
this.battleCode = ladderRec.battleCode;
@@ -398,6 +399,7 @@ export class LadderOppDetailReturn {
if(warJson) {
let obj = new LadderOppDetailHeroReturn(warJson, hero);
this.heroes.push(obj);
this.defCe += hero.ce;
}
}
}
@@ -407,6 +409,7 @@ export class LadderOppDetailReturn {
this.isRobot = true;
this.roleId = `robot${dicLadderDifficultRatio.rank}`;
this.warId = dicLadderDifficultRatio.gkId;
this.defCe = dicLadderDifficultRatio.ce;
}
setAttribute(hid: number, attribute: string) {