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