皮肤:pvp皮肤字段

This commit is contained in:
luying
2021-10-19 20:04:42 +08:00
parent 75a41aa1ba
commit 76a7608649
4 changed files with 2 additions and 5 deletions
@@ -316,7 +316,7 @@ export class PvpHandler {
let defIndex = findIndex(defHeros, { dataId }); let defIndex = findIndex(defHeros, { dataId });
if (defIndex == -1) { if (defIndex == -1) {
defIndex = defHeros.length; 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) { if (index == -1) {
defHeros[defIndex].actorId = 0; defHeros[defIndex].actorId = 0;
@@ -157,7 +157,7 @@ export async function matchPlayers(roleId: string, scale: number, range: number,
let { attribute } = getPlayerAttribute(lv, heroAttrs, roleAttrs); let { attribute } = getPlayerAttribute(lv, heroAttrs, roleAttrs);
let heroInfo = { let heroInfo = {
actorId: hero.actorId, actorId: hero.actorId,
skinId: hero.skinId, skinId: h.skinId,
actorName: dicHero.name, actorName: dicHero.name,
skill:0, skill:0,
seid:'&', seid:'&',
-1
View File
@@ -36,7 +36,6 @@ export async function initPvpInfo(role: RoleType) {
if (item) defCe += item.ce; if (item) defCe += item.ce;
heroes.push({ heroes.push({
actorId: item?.hid || 0, actorId: item?.hid || 0,
skinId: item?.hid || 0,
hero: item?.hero || null, hero: item?.hero || null,
ce: item?.ce || 0, ce: item?.ce || 0,
dataId: i, dataId: i,
-2
View File
@@ -9,8 +9,6 @@ import { reduceCe } from '../pubUtils/util';
export class Heroes { export class Heroes {
@prop({ required: true }) @prop({ required: true })
actorId: number; // 武将id actorId: number; // 武将id
@prop({ required: true })
skinId: number; // 皮肤id,fashions表的heroId
@prop({ ref: 'Hero', type: mongoose.Schema.Types.ObjectId }) @prop({ ref: 'Hero', type: mongoose.Schema.Types.ObjectId })
hero: Ref<Hero>; hero: Ref<Hero>;
@prop({ required: true }) @prop({ required: true })