From ba71dcb767b35c5205580eaadac084fd0f709d6b Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Sat, 11 Oct 2025 18:07:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/hero/hero_entity.lua | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) 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