🐞 fix(宝物): 宝物战力计算修复

This commit is contained in:
luying
2023-02-02 14:56:37 +08:00
parent 38ab1a1aa5
commit 81e4b401d5
4 changed files with 15 additions and 8 deletions
@@ -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);
}
}