战力:pvp远征战场显示

This commit is contained in:
luying
2021-03-10 16:07:47 +08:00
parent 901995b8ba
commit 1fe2d0f307
6 changed files with 27 additions and 21 deletions
+6 -3
View File
@@ -77,10 +77,12 @@ export class Enemies extends PvpHeroInfo {
hide: number; // 是否隐藏
@prop({ required: false })
initial_ai: number; // AI类型
@prop({ required: false })
ce: number; // 战力
// warjson 出兵表
// heroInfo 覆盖掉出兵表的相应参数
constructor(warjson: DicWarJson, heroInfo: PvpHeroInfo) {
constructor(warjson: DicWarJson, heroInfo: PvpHeroInfo, ce: number) {
super();
this.actorId = heroInfo.actorId != undefined ? heroInfo.actorId : warjson.actorId;
this.actorName = heroInfo.actorName != undefined ? heroInfo.actorName : warjson.actorName;
@@ -99,6 +101,7 @@ export class Enemies extends PvpHeroInfo {
this.seid = heroInfo.seid != undefined ? heroInfo.seid : warjson.seid;
this.star = heroInfo.star != undefined ? heroInfo.star : warjson.star;
this.spine = heroInfo.spine != undefined ? heroInfo.spine : warjson.spine;
this.ce = ce;
}
}
@@ -116,8 +119,8 @@ export class PvpEnemies extends Enemies {
score: number;
// score: 这个武将的军功
constructor(warjson: DicWarJson, heroInfo: PvpHeroInfo, score: number) {
super(warjson, heroInfo);
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;