升级
This commit is contained in:
parent
a018bbf748
commit
ba71dcb767
@ -426,7 +426,6 @@ end
|
|||||||
function HeroEntity:getLvUpLv()
|
function HeroEntity:getLvUpLv()
|
||||||
local count = 0
|
local count = 0
|
||||||
local costId1 = self.config.level_id[1]
|
local costId1 = self.config.level_id[1]
|
||||||
local costId2 = self.config.level_id[2]
|
|
||||||
local totalCost1 = 0
|
local totalCost1 = 0
|
||||||
local totalCost2 = 0
|
local totalCost2 = 0
|
||||||
-- local nextLv = self:getNextLv()
|
-- local nextLv = self:getNextLv()
|
||||||
@ -489,12 +488,7 @@ function HeroEntity:getHurtNum()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function HeroEntity:getLvUpCostId()
|
function HeroEntity:getLvUpCostId()
|
||||||
local list = self:getLvAttrPointList()
|
return self.config.level_id[1]
|
||||||
if table.containValue(list, self.data.lv + 1) then
|
|
||||||
return self.config.level_id[2]
|
|
||||||
else
|
|
||||||
return self.config.level_id[1]
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function HeroEntity:getLvUpMaterialNum()
|
function HeroEntity:getLvUpMaterialNum()
|
||||||
@ -510,12 +504,7 @@ function HeroEntity:getLvUpMaterialNum()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
local fieldName = "cost_" .. self:getQlt()
|
local fieldName = "cost_" .. self:getQlt()
|
||||||
local list = self:getLvAttrPointList()
|
return nextLvInfo[fieldName][2]
|
||||||
if table.containValue(list, self.data.lv + 1) then
|
|
||||||
return nextLvInfo[fieldName][2]
|
|
||||||
else
|
|
||||||
return nextLvInfo[fieldName][1]
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user