名将擂台:添加战力
This commit is contained in:
@@ -374,6 +374,7 @@ export class LadderOppDetailReturn {
|
|||||||
title: number = 1;
|
title: number = 1;
|
||||||
warId: number = 0;
|
warId: number = 0;
|
||||||
heroes: LadderOppDetailHeroReturn[] = [];
|
heroes: LadderOppDetailHeroReturn[] = [];
|
||||||
|
defCe: number = 0;
|
||||||
|
|
||||||
constructor(ladderRec: LadderMatchRecType) {
|
constructor(ladderRec: LadderMatchRecType) {
|
||||||
this.battleCode = ladderRec.battleCode;
|
this.battleCode = ladderRec.battleCode;
|
||||||
@@ -398,6 +399,7 @@ export class LadderOppDetailReturn {
|
|||||||
if(warJson) {
|
if(warJson) {
|
||||||
let obj = new LadderOppDetailHeroReturn(warJson, hero);
|
let obj = new LadderOppDetailHeroReturn(warJson, hero);
|
||||||
this.heroes.push(obj);
|
this.heroes.push(obj);
|
||||||
|
this.defCe += hero.ce;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -407,6 +409,7 @@ export class LadderOppDetailReturn {
|
|||||||
this.isRobot = true;
|
this.isRobot = true;
|
||||||
this.roleId = `robot${dicLadderDifficultRatio.rank}`;
|
this.roleId = `robot${dicLadderDifficultRatio.rank}`;
|
||||||
this.warId = dicLadderDifficultRatio.gkId;
|
this.warId = dicLadderDifficultRatio.gkId;
|
||||||
|
this.defCe = dicLadderDifficultRatio.ce;
|
||||||
}
|
}
|
||||||
|
|
||||||
setAttribute(hid: number, attribute: string) {
|
setAttribute(hid: number, attribute: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user