fix bug
This commit is contained in:
parent
346e6708ea
commit
ba3e8ad16d
@ -289,10 +289,10 @@ function HeroEntity:canLvUp(showToast)
|
||||
if not GFunc.checkCost(self:getFragmentId(), fragmentCost, showToast) then
|
||||
return false, GConst.HeroConst.CHECK_LV_UP_STATE.FRAGMENT_NOT_ENOUGH
|
||||
end
|
||||
local goldCost = cost[2] or 0
|
||||
if not GFunc.checkCost(GConst.ItemConst.ITEM_ID_GOLD, goldCost, showToast) then
|
||||
return false, GConst.HeroConst.CHECK_LV_UP_STATE.COIN_NOT_ENOUGH
|
||||
end
|
||||
-- local goldCost = cost[2] or 0
|
||||
-- if not GFunc.checkCost(GConst.ItemConst.ITEM_ID_GOLD, goldCost, showToast) then
|
||||
-- return false, GConst.HeroConst.CHECK_LV_UP_STATE.COIN_NOT_ENOUGH
|
||||
-- end
|
||||
|
||||
return true, GConst.HeroConst.CHECK_LV_UP_STATE.SUCCESS
|
||||
end
|
||||
@ -413,8 +413,7 @@ function HeroEntity:getRogueSkillList()
|
||||
local ids = self.config["rouge_skill_" .. count]
|
||||
if ids then
|
||||
for i = #ids, 1, -1 do
|
||||
-- if self.data.lv >= ids[i][1] or i == 1 then
|
||||
if self.data.lv >= ids[i][1]then
|
||||
if self.data.lv >= ids[i][1] or i == 1 then
|
||||
table.insert(self.rogueSkillList, ids[i])
|
||||
break
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user