天赋:查询其他玩家天赋树信息

This commit is contained in:
luying
2022-04-15 10:54:10 +08:00
parent 7a7587d964
commit 03103037e2

View File

@@ -2,7 +2,7 @@ import { RoleType } from "../../db/Role";
import { FriendShipType } from "../../db/FriendShip";
import * as friendUtil from '../../pubUtils/friendUtil'
import { FRIEND_RELATION_TYPE } from "../../consts";
import { EPlace, HeroType, Stone } from "../../db/Hero";
import { EPlace, HeroType, Stone, Talent } from "../../db/Hero";
import { JewelType, RandSe } from "../../db/Jewel";
export class FriendParams {
@@ -190,6 +190,7 @@ export class HeroDetailParam {
def: number;
mdef: number;
}
talent: Talent[] = [];
constructor(hero: HeroType) {
this.roleId = hero.roleId;
@@ -204,6 +205,11 @@ export class HeroDetailParam {
for(let equip of hero.ePlace) {
this.ePlace.push(new HeroDetailEplaceParam(equip));
}
for(let skin of hero.skins) {
if(skin.enable) {
this.talent = skin.talent||[];
}
}
}