名将擂台:添加参数

This commit is contained in:
luying
2022-08-19 11:39:44 +08:00
parent 7d6bf7a9e1
commit e19d87e788

View File

@@ -1,6 +1,6 @@
import { mongoose, prop, Ref } from "@typegoose/typegoose";
import { LADDER_STATUS } from "../../consts";
import Hero, { HeroType } from '../../db/Hero';
import Hero, { HeroType, Talent } from '../../db/Hero';
import { LadderMatchType } from "../../db/LadderMatch";
import { LadderMatchRecType } from "../../db/LadderMatchRec";
import { RoleType } from "../../db/Role";
@@ -340,6 +340,7 @@ export class LadderOppDetailHeroReturn {
skill: string = ''; // 技能
seid: string = ''; // 技能
spine: string = ''; // 动画
talent: Talent[] = [];
constructor(warJson: DicWarJson, defensHero: LadderDefenseHero) {
this.dataId = warJson.dataId;
@@ -364,6 +365,8 @@ export class LadderOppDetailHeroReturn {
this.lv = hero.lv;
this.star = hero.star;
this.colorStar = hero.colorStar;
let skin = hero.skins.find(cur => cur.enable);
if(skin) this.talent = skin.talent;
}
}
}