pvp&名将擂台:机器人觉醒
This commit is contained in:
@@ -78,11 +78,18 @@ export class LadderOppPlayerHeroInfo {
|
||||
setByWarJson(warJson: DicWarJson) {
|
||||
this.hid = warJson.actorId;
|
||||
this.skinId = warJson.actorId;
|
||||
this.star = warJson.star;
|
||||
this.colorStar = 0;
|
||||
this.lv = warJson.lv;
|
||||
let dicHero = gameData.hero.get(warJson.actorId);
|
||||
if(dicHero) this.quality = dicHero.quality;
|
||||
if(dicHero) {
|
||||
this.quality = dicHero.quality;
|
||||
if(this.quality == 4) {
|
||||
this.star = 6;
|
||||
this.colorStar = warJson.star;
|
||||
} else {
|
||||
this.star = warJson.star;
|
||||
this.colorStar = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setByDefenseHero(hero: HeroType) {
|
||||
|
||||
@@ -46,9 +46,14 @@ export class PvpHeroInfo {
|
||||
this.actorId = dicHero.heroId;
|
||||
this.skinId = dicHero.heroId;
|
||||
this.actorName = dicHero.name;
|
||||
this.star = dicHero.initialStars;
|
||||
this.lv = lv;
|
||||
this.quality = dicHero.quality;
|
||||
if(dicHero.quality == 4) {
|
||||
this.star = 6;
|
||||
this.colorStar = dicHero.initialStars;
|
||||
} else {
|
||||
this.star = dicHero.initialStars;
|
||||
}
|
||||
this.lv = lv;
|
||||
}
|
||||
|
||||
setAttribute(attribute: string) {
|
||||
|
||||
Reference in New Issue
Block a user