🐞 fix(副将): 保存副将同时返回皮肤id和武将id

This commit is contained in:
luying
2023-03-31 10:35:05 +08:00
parent f900179fbb
commit c865c475ff
9 changed files with 20 additions and 7 deletions

View File

@@ -206,6 +206,7 @@ export class HeroDetailParam {
school: number;
};
subHid: number = 0;
subActorId: number = 0;
artifacts: {artifactId: number, lv: number }[] = []
constructor(hero: HeroType) {
@@ -228,6 +229,7 @@ export class HeroDetailParam {
}
this.connections = hero.connections;
this.subHid = hero.subHid;
this.subActorId = hero.subActorId;
}
setAttributes(attributes: {hp: number, atk: number, def: number, mdef: number}) {

View File

@@ -63,6 +63,7 @@ export class HeroParam {
artifact: number = 0;
subHid: number = 0;
subActorId: number = 0;
talent: Talent[] = [];
usedTalentPoint: number = 0;
totalTalentPoint: number = 0;
@@ -98,6 +99,7 @@ export class HeroParam {
this.ePlace = hero.ePlace;
this.artifact = hero.artifact;
this.subHid = hero.subHid;
this.subActorId = hero.subActorId;
}
}