fix,觉醒战力读表bug

This commit is contained in:
luying
2020-12-29 20:09:51 +08:00
parent d70cabfdbb
commit c307556ca5

View File

@@ -85,7 +85,7 @@ export function calPlayerCe(globalCeAttr: CeAttrRole, hero: HeroType, type: numb
}
}
let attrNumber = (hero.ceAttr[attrName].fixUp + (hero.ceAttr[attrName].equipUp || 0) + globalAttrData.fixUp) * HERO_CE_RATIO + hero.ceAttr[attrName].base * (HERO_CE_RATIO + hero.ceAttr[attrName].ratioUp + globalAttrData.ratioUp);
console.log(hero.hid, attrNumber, attrName, getAttrCeRatio(attrName))
// console.log(hero.hid, attrNumber, attrName, getAttrCeRatio(attrName))
heroCe += attrNumber * getAttrCeRatio(attrName);
}
let incCe = heroCe - hero.ce;
@@ -201,7 +201,7 @@ export function calHeroStarIncAttr(hero: HeroType, type: number, hid: number, ar
} else {
if(starStage == ABI_STAGE.START) originStar = star - 1;
}
const dicStar = isWake ? getHeroWakeByQuality(quality, originColorStar) : getHeroStarByQuality(quality, originStar); // 星级表
const dicStar = isWake ? getHeroWakeByQuality(dicHero.quality, originColorStar) : getHeroStarByQuality(quality, originStar); // 星级表
let stages = new Array<number>(); // 需要升级的阶
if (type == HERO_SYSTEM_TYPE.INIT) {
@@ -246,7 +246,6 @@ export function calHeroStarIncAttr(hero: HeroType, type: number, hid: number, ar
}
}
for (let [type, seid] of preSeidList) {
console.log(type, seid)
if (!curSeidList.has(type)) {
removeSeidList.push(seid, 0);
}