任务:强化装备至多少级

This commit is contained in:
luying
2022-04-27 11:30:16 +08:00
parent d7bbc07485
commit a7fff6bc3c
5 changed files with 26 additions and 18 deletions

View File

@@ -11,9 +11,10 @@ import { transPiece } from "./util";
import { addItems, unlockFigure, } from "./rewardService";
import { CounterModel } from "../../db/Counter";
import { calculateCes } from "../playerCeService";
import { RoleUpdate } from "../../db/Role";
import { RoleModel, RoleType, RoleUpdate } from "../../db/Role";
import { sendMessageToUser, sendMessageToUserWithSuc } from "../pushService";
import { checkTaskInCreateHero } from "../task/taskService";
import { Rank } from "../rankService";
/**
* 创建多个武将
@@ -87,7 +88,6 @@ export async function createHero(roleId: string, roleName: string, sid: string,
return result;
}
function getSkinPushMsg(resultHeroes: HeroType[], skins: SkinUpdate[]) {
let skinPushMessages: {heros: {skins: HeroSkin[], hid: number}[], skins: {id: number, hid: number, inc: number, reason: number }[]} = { heros: [], skins:[] }; // 皮肤推送信息
for(let { hid, skins } of resultHeroes) {