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) {
|
||||
|
||||
@@ -90,7 +90,7 @@ import { CreateHeroParam } from "../domain/roleField/hero";
|
||||
import { ACTIVITY_RESOURCES_TYPE } from "../consts";
|
||||
import { gameData } from "./data";
|
||||
import { ActivityTaskPassModel } from "../db/ActivityTaskPass";
|
||||
import { LadderMatchModel } from "@db/LadderMatch";
|
||||
import { LadderMatchModel } from "../db/LadderMatch";
|
||||
|
||||
export async function deletRole(roleId: string) {
|
||||
let role = await RoleModel.findByRoleId(roleId, null, true, true);
|
||||
|
||||
Reference in New Issue
Block a user