名将擂台:添加战力
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user