fix 觉醒计算战力NaN
This commit is contained in:
@@ -95,8 +95,8 @@ export function calHeroStarIncAttr (hero: HeroType, args: Array<number>, addSeid
|
||||
for(let stage of args) {
|
||||
|
||||
let targetAttrId = getFieldByStage(stage, hero.job); // 转换为17维的属性id
|
||||
let heroAttr = dicHero.baseAbilityArr[targetAttrId]; // 武将表hp等
|
||||
let heroUpAttr = dicHero.baseAbilityUpArr[targetAttrId]; // 武将表hp_up等
|
||||
let heroAttr = dicHero.baseAbilityArr.get(targetAttrId); // 武将表hp等
|
||||
let heroUpAttr = dicHero.baseAbilityUpArr.get(targetAttrId); // 武将表hp_up等
|
||||
|
||||
let starUp = dicStar.ceAttr.get(stage);
|
||||
let newBase = heroAttr + hero.lv * (heroUpAttr + starUp);
|
||||
|
||||
Reference in New Issue
Block a user