This commit is contained in:
puxuan 2025-06-17 21:00:07 +08:00
parent 346e6708ea
commit ba3e8ad16d

View File

@ -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