fix,觉醒战力读表bug
This commit is contained in:
@@ -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);
|
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);
|
heroCe += attrNumber * getAttrCeRatio(attrName);
|
||||||
}
|
}
|
||||||
let incCe = heroCe - hero.ce;
|
let incCe = heroCe - hero.ce;
|
||||||
@@ -201,7 +201,7 @@ export function calHeroStarIncAttr(hero: HeroType, type: number, hid: number, ar
|
|||||||
} else {
|
} else {
|
||||||
if(starStage == ABI_STAGE.START) originStar = star - 1;
|
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>(); // 需要升级的阶
|
let stages = new Array<number>(); // 需要升级的阶
|
||||||
if (type == HERO_SYSTEM_TYPE.INIT) {
|
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) {
|
for (let [type, seid] of preSeidList) {
|
||||||
console.log(type, seid)
|
|
||||||
if (!curSeidList.has(type)) {
|
if (!curSeidList.has(type)) {
|
||||||
removeSeidList.push(seid, 0);
|
removeSeidList.push(seid, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user