升级
This commit is contained in:
parent
a018bbf748
commit
ba71dcb767
@ -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,13 +488,8 @@ 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()
|
||||
if self.data.lv <= 0 then
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user