diff --git a/lua/app/userdata/hero/hero_entity.lua b/lua/app/userdata/hero/hero_entity.lua index 52688bb0..eb430ae1 100644 --- a/lua/app/userdata/hero/hero_entity.lua +++ b/lua/app/userdata/hero/hero_entity.lua @@ -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 + return self.config.level_id[1] 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 + return nextLvInfo[fieldName][2] end