武将:抽象武将创建接口

This commit is contained in:
luying
2021-04-23 19:32:02 +08:00
parent 2b246c4bc9
commit 0cd6939f5e
18 changed files with 213 additions and 95 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export async function calPlayerCeAndSave(type: number, roleId: string, originHer
update.attr = heroAttrs;
update.ce = heroCe;
if (originHero.historyCe < heroCe) update.historyCe = heroCe;
let hero = await HeroModel.updateHeroInfo(roleId, originHero.hid, update); // 更新武将
let hero = await HeroModel.updateHeroInfo(roleId, originHero.hid, update, null, true); // 更新武将 返回是战力缩过的
// 更新到角色
let { topLineup, topLineupCe } = await calculatetopLineup(role, originHero.hid, heroCe, originHero._id); // 计算更新最强五人战力