✨ feat(gvg): 激战期获取挑战对手阵容
This commit is contained in:
@@ -45,7 +45,7 @@ export class GVGTeamMem extends GVGTeam {
|
||||
this.defenseTime = team.defenseTime;
|
||||
this.startMoveTime = team.startMoveTime;
|
||||
this.stopMoveTime = team.stopMoveTime;
|
||||
this.playerScore = team.playerScore;
|
||||
this.score = team.score;
|
||||
}
|
||||
|
||||
public setCity(cityId: number, areaId = 0, pointId = 0) {
|
||||
@@ -60,4 +60,11 @@ export class GVGTeamMem extends GVGTeam {
|
||||
this.startMoveTime = startMoveTime;
|
||||
this.stopMoveTime = stopMoveTime;
|
||||
}
|
||||
|
||||
public battleEnd(team: GVGTeamType) {
|
||||
this.durability = team.durability;
|
||||
this.restartTime = team.restartTime;
|
||||
this.defenseTime = team.defenseTime;
|
||||
this.stopMoveTime = team.stopMoveTime;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ export class PvpHeroInfo {
|
||||
if(artifact) this.artifact.push({ artifactId: artifact.artifactId, lv: artifact.lv })
|
||||
}
|
||||
|
||||
setRobotInfo(dicHero: DicHero, lv: number) {
|
||||
setRobotInfo(dicHero: DicHero, lv?: number) {
|
||||
this.actorId = dicHero.heroId;
|
||||
this.skinId = dicHero.heroId;
|
||||
this.actorName = dicHero.name;
|
||||
@@ -181,17 +181,17 @@ export class PvpEnemies extends Enemies {
|
||||
|
||||
|
||||
// score: 这个武将的军功
|
||||
constructor(warjson: DicWarJson, heroInfo: PvpHeroInfo, score: number, ce: number) {
|
||||
constructor(warjson: DicWarJson, heroInfo: PvpHeroInfo, score?: number, ce?: number) {
|
||||
super(warjson, heroInfo, ce);
|
||||
this.star = heroInfo.star;
|
||||
this.colorStar = heroInfo.colorStar;
|
||||
this.quality = heroInfo.quality;
|
||||
this.lv = heroInfo.lv;
|
||||
this.score = score;
|
||||
this.talent = heroInfo.talent;
|
||||
this.job = heroInfo.job;
|
||||
this.subHid = heroInfo.subHid;
|
||||
this.artifact = heroInfo.artifact||[];
|
||||
if(score) this.score = score;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user