🐞 fix(gvg): 更新gvg战斗返回
This commit is contained in:
@@ -774,6 +774,7 @@ export class MyTeamInfo {
|
||||
head: number; // 保存头像
|
||||
frame: number; // 保存相框
|
||||
spine: number; // 保存形象
|
||||
lv: number;
|
||||
lineup: {
|
||||
actorId: number; // 武将
|
||||
dataId: number; // 出兵表上的位置
|
||||
@@ -788,12 +789,15 @@ export class MyTeamInfo {
|
||||
defenseTime: number; // 防守保护时间
|
||||
areaId: number; // 出生在的区域
|
||||
pointId: number;
|
||||
curTeamBreak: boolean;
|
||||
|
||||
constructor(team: GVGTeamType) {
|
||||
this.teamCode = team.teamCode;
|
||||
this.index = team.index;
|
||||
this.head = team.head;
|
||||
this.frame = team.frame;
|
||||
this.spine = team.spine;
|
||||
this.lv = team.lv;
|
||||
if(team.lineup) this.lineup = team.lineup.map(({ actorId, dataId, outIndex }) => ({ actorId, dataId, order: outIndex }));
|
||||
this.durability = team.durability;
|
||||
this.maxDurability = team.maxDurability;
|
||||
@@ -804,5 +808,6 @@ export class MyTeamInfo {
|
||||
this.defenseTime = team.defenseTime;
|
||||
this.areaId = team.areaId;
|
||||
this.pointId = team.pointId;
|
||||
this.curTeamBreak = team.curTeamBreak;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user