皮肤:pvp皮肤字段
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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:'&',
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -9,8 +9,6 @@ import { reduceCe } from '../pubUtils/util';
|
||||
export class Heroes {
|
||||
@prop({ required: true })
|
||||
actorId: number; // 武将id
|
||||
@prop({ required: true })
|
||||
skinId: number; // 皮肤id,fashions表的heroId
|
||||
@prop({ ref: 'Hero', type: mongoose.Schema.Types.ObjectId })
|
||||
hero: Ref<Hero>;
|
||||
@prop({ required: true })
|
||||
|
||||
Reference in New Issue
Block a user