🐞 fix(宝物): 宝物战力计算修复
This commit is contained in:
@@ -28,6 +28,7 @@ import { SchoolModel } from '../../../db/School';
|
||||
import { JewelModel } from '../../../db/Jewel';
|
||||
import { RoleCeModel } from '../../../db/RoleCe';
|
||||
import { setTrainLv } from '../../../services/gmService';
|
||||
import { ArtifactModel } from '../../../db/Artifact';
|
||||
|
||||
let timer: NodeJS.Timer;
|
||||
export default function (app: Application) {
|
||||
@@ -301,8 +302,9 @@ export class GmRoleHandler {
|
||||
let jewels = await JewelModel.findbyRole(roleId);
|
||||
let heroes = await HeroModel.findByRole(roleId);
|
||||
let skins = await SkinModel.findbyRole(roleId);
|
||||
let artifacts = await ArtifactModel.findbyRole(roleId);
|
||||
|
||||
await calculateCeWithRole(HERO_SYSTEM_TYPE.RE_CAL, roleId, role.serverId, null, {}, { role, schools, jewels, heroes, skins });
|
||||
await calculateCeWithRole(HERO_SYSTEM_TYPE.RE_CAL, roleId, role.serverId, null, {}, { role, schools, jewels, heroes, skins, artifacts });
|
||||
return resResult(STATUS.SUCCESS);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user