名将擂台:添加参数
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { mongoose, prop, Ref } from "@typegoose/typegoose";
|
import { mongoose, prop, Ref } from "@typegoose/typegoose";
|
||||||
import { LADDER_STATUS } from "../../consts";
|
import { LADDER_STATUS } from "../../consts";
|
||||||
import Hero, { HeroType } from '../../db/Hero';
|
import Hero, { HeroType, Talent } from '../../db/Hero';
|
||||||
import { LadderMatchType } from "../../db/LadderMatch";
|
import { LadderMatchType } from "../../db/LadderMatch";
|
||||||
import { LadderMatchRecType } from "../../db/LadderMatchRec";
|
import { LadderMatchRecType } from "../../db/LadderMatchRec";
|
||||||
import { RoleType } from "../../db/Role";
|
import { RoleType } from "../../db/Role";
|
||||||
@@ -340,6 +340,7 @@ export class LadderOppDetailHeroReturn {
|
|||||||
skill: string = ''; // 技能
|
skill: string = ''; // 技能
|
||||||
seid: string = ''; // 技能
|
seid: string = ''; // 技能
|
||||||
spine: string = ''; // 动画
|
spine: string = ''; // 动画
|
||||||
|
talent: Talent[] = [];
|
||||||
|
|
||||||
constructor(warJson: DicWarJson, defensHero: LadderDefenseHero) {
|
constructor(warJson: DicWarJson, defensHero: LadderDefenseHero) {
|
||||||
this.dataId = warJson.dataId;
|
this.dataId = warJson.dataId;
|
||||||
@@ -364,6 +365,8 @@ export class LadderOppDetailHeroReturn {
|
|||||||
this.lv = hero.lv;
|
this.lv = hero.lv;
|
||||||
this.star = hero.star;
|
this.star = hero.star;
|
||||||
this.colorStar = hero.colorStar;
|
this.colorStar = hero.colorStar;
|
||||||
|
let skin = hero.skins.find(cur => cur.enable);
|
||||||
|
if(skin) this.talent = skin.talent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user