武将:抽象武将创建接口
This commit is contained in:
@@ -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); // 计算更新最强五人战力
|
||||
|
||||
Reference in New Issue
Block a user