升级bug

This commit is contained in:
mamengke01
2020-12-22 18:06:02 +08:00
parent 9a377e94d8
commit 0ff8daee16

View File

@@ -107,8 +107,10 @@ export function calHeroStarIncAttr (hero: HeroType, args: Array<number>, addSeid
let targetAttrId = getFieldByStage(stage, hero.job); // 转换为17维的属性id
let heroAttr = dicHero.baseAbilityArr.get(targetAttrId); // 武将表hp等
let heroUpAttr = dicHero.baseAbilityUpArr.get(targetAttrId); // 武将表hp_up等
let starUp = dicStar.ceAttr.get(stage);
let starUp = 0;
if (!!dicStar && !!dicStar.ceAttr) {
starUp = dicStar.ceAttr.get(stage);
}
let newBase = (heroAttr + hero.lv * (heroUpAttr + starUp)) * HERO_CE_RATIO;
let field = getAtrrNameById(targetAttrId);
let ceAttrData: CeAttrData = ceAttr[field]||new CeAttrData(); // 存表中的属性下的basefixupratioup