战力:修复镶嵌bug
This commit is contained in:
@@ -913,7 +913,7 @@ function calHeroCeWhenJewelOnOrOff(hero: HeroType, id: number, oldId: number) {
|
|||||||
for(let id of allIds) {
|
for(let id of allIds) {
|
||||||
let value = goodsAbility.get(id)||0;
|
let value = goodsAbility.get(id)||0;
|
||||||
let oldValue = oldGoodsAbility.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;
|
hero.attr = heroAttrs;
|
||||||
|
|||||||
Reference in New Issue
Block a user