战力:修复镶嵌bug

This commit is contained in:
luying
2021-08-14 16:50:57 +08:00
parent b118eebaed
commit 8fd9aeb25b

View File

@@ -913,7 +913,7 @@ function calHeroCeWhenJewelOnOrOff(hero: HeroType, id: number, oldId: number) {
for(let id of allIds) {
let value = goodsAbility.get(id)||0;
let oldValue = oldGoodsAbility.get(id)||0;
updateHeroAttr(heroAttrs, id, { inc: { equipUp: value - oldValue } })
updateHeroAttr(heroAttrs, id, { inc: { equipUp: (value - oldValue) * HERO_CE_RATIO } })
}
hero.attr = heroAttrs;