皮肤:周边相关功能影响
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
import { HeroModel } from '../db/Hero';
|
||||
import { HeroModel, HeroType } from '../db/Hero';
|
||||
import Role, { RoleModel, RoleType } from '../db/Role'
|
||||
import { getLvByExp, getExpByLv, gameData, getDicApByLv } from '../pubUtils/data';
|
||||
import { updateUserInfo } from './redisService';
|
||||
@@ -83,7 +83,7 @@ export async function roleLevelup(type: KING_EXP_RATIO_TYPE, roleId: string, kin
|
||||
|
||||
|
||||
export async function checkBattleHeroes(roleId: string, seqIds: Array<number> = []) {
|
||||
let heroes: number[] = [], lineup: LineupParam[] = [];
|
||||
let hids: number[] = [], lineup: LineupParam[] = [], heroes: HeroType[] = [];
|
||||
let flag = true;
|
||||
// if (seqIds.length <= 0) flag = false;
|
||||
|
||||
@@ -94,10 +94,11 @@ export async function checkBattleHeroes(roleId: string, seqIds: Array<number> =
|
||||
if (!hero) {
|
||||
flag = false; break;
|
||||
}
|
||||
heroes.push(hero.hid);
|
||||
hids.push(hero.hid);
|
||||
lineup.push(new LineupParam(hero));
|
||||
heroes.push(hero);
|
||||
}
|
||||
return { isOK: flag, heroes, seqIds, lineup };
|
||||
return { isOK: flag, hids, heroes, seqIds, lineup };
|
||||
}
|
||||
|
||||
export async function checkBattleHeroesByHid(roleId: string, heroes: Array<number> = []) {
|
||||
|
||||
Reference in New Issue
Block a user