This commit is contained in:
puxuan 2025-10-11 18:07:52 +08:00
parent a018bbf748
commit ba71dcb767

View File

@ -426,7 +426,6 @@ end
function HeroEntity:getLvUpLv()
local count = 0
local costId1 = self.config.level_id[1]
local costId2 = self.config.level_id[2]
local totalCost1 = 0
local totalCost2 = 0
-- local nextLv = self:getNextLv()
@ -489,12 +488,7 @@ function HeroEntity:getHurtNum()
end
function HeroEntity:getLvUpCostId()
local list = self:getLvAttrPointList()
if table.containValue(list, self.data.lv + 1) then
return self.config.level_id[2]
else
return self.config.level_id[1]
end
end
function HeroEntity:getLvUpMaterialNum()
@ -510,12 +504,7 @@ function HeroEntity:getLvUpMaterialNum()
return
end
local fieldName = "cost_" .. self:getQlt()
local list = self:getLvAttrPointList()
if table.containValue(list, self.data.lv + 1) then
return nextLvInfo[fieldName][2]
else
return nextLvInfo[fieldName][1]
end
end