From 97ff5b7df19d2c4b108114d95d7a84128bb31ece Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Thu, 15 Dec 2022 15:41:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=9E=E5=BA=9C=E7=89=B9=E6=9D=83=E5=A5=96?= =?UTF-8?q?=E5=8A=B1=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/HomeLand/HomeLandPanel.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/HomeLand/HomeLandPanel.lua b/Assets/ManagedResources/~Lua/Modules/HomeLand/HomeLandPanel.lua index fdf6bb78cb..15e9ae9bd8 100644 --- a/Assets/ManagedResources/~Lua/Modules/HomeLand/HomeLandPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/HomeLand/HomeLandPanel.lua @@ -375,8 +375,11 @@ function HomeLand:InitDetailBar() local num = Util.GetGameObject(go2,"Num"):GetComponent("Text") icon.sprite = self.spLoader:LoadSprite(GetSpriteNameByItemId(data.dataSingle.Gain[1])) - local v = ConfigManager.GetConfigData(ConfigName.PrivilegeTypeConfig,4022).Condition[1][2]/10000-1 - local priValue = HomeLandManager.activePrivilege and string.format("+%s",math.ceil(data.dataSingle.Gain[2]*v)) or "" + --local v = ConfigManager.GetConfigData(ConfigName.PrivilegeTypeConfig,4022).Condition[1][2]/10000-1 + local lv=GetShenzunLv() + local v = ConfigManager.GetConfigData(ConfigName.PrivilegeTypeConfig,4022).Condition[lv+1][2]/10000-1 + -- local priValue = HomeLandManager.activePrivilege and string.format("+%s",math.ceil(data.dataSingle.Gain[2]*v)) or "" + local priValue = string.format("+%s",math.ceil(data.dataSingle.Gain[2]*v)) num.text = string.format("%s产量:%s %s/分钟",ItemConfig[data.dataSingle.Gain[1]].Name,data.dataSingle.Gain[2],priValue) end end