🐞 fix(gvg): 激战期队伍下发格式修改

This commit is contained in:
luying
2023-02-24 18:03:11 +08:00
parent 42401b317f
commit d7b9167e0f
3 changed files with 16 additions and 9 deletions

View File

@@ -655,6 +655,7 @@ export class GVGTeamSpineInMap {
moveCdTime: number = 0;
isMoving: boolean = false;
pointId: number = 0;
areaId: number = 0;
fromAreaId: number = 0;
teamCode: string = '';
leagueCode: string = '';
@@ -669,6 +670,7 @@ export class GVGTeamSpineInMap {
this.stopMoveTime = obj.stopMoveTime;
this.moveCdTime = obj.moveCdTime;
this.isMoving = nowSeconds() < this.stopMoveTime;
this.areaId = obj.areaId;
this.pointId = obj.pointId;
this.fromAreaId = obj.fromAreaId;
this.teamCode = obj.teamCode;
@@ -791,7 +793,7 @@ export class MyTeamInfo {
this.teamCode = team.teamCode;
this.index = team.index;
this.head = team.head;
this.frame = team.spine;
this.frame = team.frame;
if(team.lineup) this.lineup = team.lineup.map(({ actorId, dataId, outIndex }) => ({ actorId, dataId, order: outIndex }));
this.durability = team.durability;
this.maxDurability = team.maxDurability;