皮肤:pvp皮肤字段

This commit is contained in:
luying
2021-10-19 20:04:13 +08:00
parent 75a41aa1ba
commit 76a7608649
4 changed files with 2 additions and 5 deletions

View File

@@ -316,7 +316,7 @@ export class PvpHandler {
let defIndex = findIndex(defHeros, { dataId });
if (defIndex == -1) {
defIndex = defHeros.length;
defHeros.push({ actorId: 0, skinId: 0, order: 0, ce: 0, hero: null, dataId });
defHeros.push({ actorId: 0, order: 0, ce: 0, hero: null, dataId });
}
if (index == -1) {
defHeros[defIndex].actorId = 0;

View File

@@ -157,7 +157,7 @@ export async function matchPlayers(roleId: string, scale: number, range: number,
let { attribute } = getPlayerAttribute(lv, heroAttrs, roleAttrs);
let heroInfo = {
actorId: hero.actorId,
skinId: hero.skinId,
skinId: h.skinId,
actorName: dicHero.name,
skill:0,
seid:'&',

View File

@@ -36,7 +36,6 @@ export async function initPvpInfo(role: RoleType) {
if (item) defCe += item.ce;
heroes.push({
actorId: item?.hid || 0,
skinId: item?.hid || 0,
hero: item?.hero || null,
ce: item?.ce || 0,
dataId: i,

View File

@@ -9,8 +9,6 @@ import { reduceCe } from '../pubUtils/util';
export class Heroes {
@prop({ required: true })
actorId: number; // 武将id
@prop({ required: true })
skinId: number; // 皮肤idfashions表的heroId
@prop({ ref: 'Hero', type: mongoose.Schema.Types.ObjectId })
hero: Ref<Hero>;
@prop({ required: true })