From 3f08cf4d53202273dc08cdb7249af44bb37f24fa Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 25 Jul 2022 17:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8D=E5=B0=86=E6=93=82=E5=8F=B0=EF=BC=9A?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=88=98=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/battleField/ladder.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shared/domain/battleField/ladder.ts b/shared/domain/battleField/ladder.ts index b9471ab8c..c16d78cce 100644 --- a/shared/domain/battleField/ladder.ts +++ b/shared/domain/battleField/ladder.ts @@ -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) {