|
|
@@ -646,7 +646,15 @@ function heroLvUp(human, heroID, heroIndex)
|
|
|
local star = heroGrid.star
|
|
|
local nowLv = heroGrid.lv
|
|
|
local maxLv = HeroGrid.getMaxLv(star, heroGrid.quality)
|
|
|
- local upLv, needJinbi, needSoulCnt = HeroGrid.getLevelUpCnt(human, nowLv, maxLv)
|
|
|
+ -- local upLv, needJinbi, needSoulCnt = HeroGrid.getLevelUpCnt(human, nowLv, maxLv)
|
|
|
+
|
|
|
+ -- 改为一次只能升一级
|
|
|
+ if nowLv >= maxLv then
|
|
|
+ return
|
|
|
+ end
|
|
|
+
|
|
|
+ local upLv, needJinbi, needSoulCnt = HeroGrid.getLevelUpCnt(human, nowLv, nowLv+1)
|
|
|
+
|
|
|
--print(" upLv, needJinbi, needSoulCnt", upLv, needJinbi, needSoulCnt)
|
|
|
if upLv < 1 then return end
|
|
|
|