🐞 fix(养成): 升星重生消耗计算错误

This commit is contained in:
luying
2022-12-09 11:25:10 +08:00
parent 74015f805d
commit bfc972ac94

View File

@@ -322,7 +322,7 @@ export function calStarUpConsume(hero: HeroType) {
let dicJob = gameData.job.get(dicHero?.jobid);
if(dicHero && dicJob) {
let decrease = 0;
for(let star = dicHero.initialStar; star < hero.star; star++) {
for(let star = dicHero.initialStar; star <= hero.star; star++) {
let curDicHeroStar = getHeroStarByQuality(dicJob.job_class, dicHero.quality, star);
if(!curDicHeroStar) continue;
let max = star == hero.star ? hero.starStage: ABI_STAGE.END;