pvp&名将擂台:机器人觉醒

This commit is contained in:
luying
2022-08-13 17:09:14 +08:00
parent cbadb4b087
commit eb1ea923c2
3 changed files with 18 additions and 6 deletions
+10 -3
View File
@@ -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) {