🐞 fix(名将擂台): 守方宝物字段修改
This commit is contained in:
@@ -360,7 +360,7 @@ export class LadderOppDetailHeroReturn {
|
|||||||
talent: Talent[] = [];
|
talent: Talent[] = [];
|
||||||
subHid: number = 0; // 副将
|
subHid: number = 0; // 副将
|
||||||
subActorId: number = 0;
|
subActorId: number = 0;
|
||||||
artifact: HeroArtifact[] = [];
|
artifacts: HeroArtifact[] = [];
|
||||||
|
|
||||||
constructor(warJson: DicWarJson, defensHero: LadderDefenseHero, artifacts: ArtifactModelType[]) {
|
constructor(warJson: DicWarJson, defensHero: LadderDefenseHero, artifacts: ArtifactModelType[]) {
|
||||||
this.dataId = warJson.dataId;
|
this.dataId = warJson.dataId;
|
||||||
@@ -393,7 +393,7 @@ export class LadderOppDetailHeroReturn {
|
|||||||
this.subHid = hero.subHid;
|
this.subHid = hero.subHid;
|
||||||
this.subActorId = hero.subActorId;
|
this.subActorId = hero.subActorId;
|
||||||
let artifact = artifacts.find(cur => cur.seqId == hero.artifact);
|
let artifact = artifacts.find(cur => cur.seqId == hero.artifact);
|
||||||
if(artifact) this.artifact.push({ artifactId: artifact.artifactId, lv: artifact.lv });
|
if(artifact) this.artifacts.push({ artifactId: artifact.artifactId, lv: artifact.lv });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user