From 0b3f689753ffc9ebe22567f23765b0620e5ce5e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E8=8E=B9?= Date: Wed, 23 Mar 2022 15:26:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A6=E5=B0=86=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/roleField/hero.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shared/domain/roleField/hero.ts b/shared/domain/roleField/hero.ts index 4c432a41f..cf82ac277 100644 --- a/shared/domain/roleField/hero.ts +++ b/shared/domain/roleField/hero.ts @@ -64,11 +64,12 @@ export class HeroParam { skins: HeroSKinParam[] = []; // 皮肤 ePlace: EPlace[]; // 武将装备引用数组 - talent: Talent[]; - usedTalentPoint: number; - totalTalentPoint: number; + talent: Talent[] = []; + usedTalentPoint: number = 0; + totalTalentPoint: number = 0; constructor(hero: HeroType) { + this.seqId = hero.seqId; this.hid = hero.hid; this.hName = hero.hName; this.exp = hero.exp;