聊天:精炼消息添加数据

This commit is contained in:
luying
2021-09-29 11:08:05 +08:00
parent 6f13e2a8c8
commit aa24d48c7b
4 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ export function calHeroStarIncAttr(originHero: HeroType, update: HeroUpdate, typ
if (!!dicStar && !!dicStar.ceAttr) {
starUp = dicStar.ceAttr.get(stage);
}
let newBase = (heroAttr + (lv - 1) * (heroUpAttr + starUp)) * HERO_CE_RATIO;
let newBase = (heroAttr + lv * (heroUpAttr + starUp)) * HERO_CE_RATIO;
updateHeroAttr(heroAttrs, targetAttrId, { set: { base: newBase } });
}