✨ feat(副将): 设置副将

This commit is contained in:
luying
2022-12-08 15:36:55 +08:00
parent bdbac4b085
commit b684307818
12 changed files with 92 additions and 8 deletions
+2
View File
@@ -342,6 +342,7 @@ export class LadderOppDetailHeroReturn {
seid: string = ''; // 技能
spine: string = ''; // 动画
talent: Talent[] = [];
subHid: number = 0; // 副将
constructor(warJson: DicWarJson, defensHero: LadderDefenseHero) {
this.dataId = warJson.dataId;
@@ -371,6 +372,7 @@ export class LadderOppDetailHeroReturn {
let skin = hero.skins.find(cur => cur.enable);
if(skin) this.talent = skin.talent;
this.job = hero.job;
this.subHid = hero.subHid;
}
}
}