From 5210074f7519661dc3cd184887a9c24a5028a9e8 Mon Sep 17 00:00:00 2001 From: wangzhenxing <1545929779@qq.com> Date: Tue, 28 Nov 2023 13:57:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E9=9B=84=E5=8D=87=E7=BA=A7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=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 --- Assets/ManagedResources/~Lua/Common/functions.lua | 6 +++--- Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua | 3 ++- .../~Lua/Modules/RoleInfo/RoleInfoPanel.lua | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Common/functions.lua b/Assets/ManagedResources/~Lua/Common/functions.lua index 039d1bca34..bd7008b15f 100644 --- a/Assets/ManagedResources/~Lua/Common/functions.lua +++ b/Assets/ManagedResources/~Lua/Common/functions.lua @@ -658,11 +658,11 @@ function SetHeroStars(spLoader, starGrid, star, type,_starSize,_scale,_pivot,rot if type==nil then type=1 end - if star>11 then + if star>=11 then type=3 end if type==3 then - star=star-11 + star=star-10 end local starSize if not _starSize and type == 3 then @@ -702,7 +702,7 @@ function SetHeroStars(spLoader, starGrid, star, type,_starSize,_scale,_pivot,rot starPre:GetComponent("LayoutGroup").spacing = scale starPre:GetComponent("RectTransform").pivot = pivot starPre.transform:GetChild(0).gameObject:SetActive(false) - --LogError("star============="..star.." type=========="..type) + LogError("star============="..star.." type=========="..type) if star < 7 and type and type == 3 then starPre.transform:GetChild(0).gameObject:SetActive(true) for i = 2, 24 do diff --git a/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua b/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua index f1ab63b16d..58e7ab0dc3 100644 --- a/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Hero/HeroManager.lua @@ -200,7 +200,7 @@ function this.UpdateHeroDatas(_msgHeroData, isFindHandBook) local godSoulLv = GodSoulManager.GetGodSoulLv(heroData.dynamicId) if godSoulLv and godSoulLv > 0 then return godSoulLv,3 - elseif heroData.star >= 12 then + elseif heroData.star >= 11 then return heroData.star,3 elseif heroData.star > 9 then return heroData.star,2 @@ -1213,6 +1213,7 @@ function this.UpdateHeroLvEnd() if heroEndStar == nil then heroEndStar = v.Star end + LogError("heroEndStar================="..heroEndStar) for i, v2 in ConfigPairs(heroRankUpConfig) do if v2.Star == v.Star then if v2.OpenStar == heroEndStar then diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua index 28c212484e..10dedc4a0b 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua @@ -590,7 +590,7 @@ function this:UpdateBtnList() tabsList[k].gameObject:SetActive(false) end elseif k == RoleInfoPanelIndex.jinjie then - if curHeroData.star < 11 then + if curHeroData.star < 10 then tabsList[k].gameObject:SetActive(true) else tabsList[k].gameObject:SetActive(false) @@ -610,7 +610,7 @@ function this:UpdateBtnList() end elseif k == RoleInfoPanelIndex.feiSheng then local isopen=ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.FlyUp) - if curHeroData.heroConfig.MaxRank >11 and curHeroData.star>=11 and curHeroData.star < 16 then + if curHeroData.heroConfig.MaxRank >11 and curHeroData.star>=10 and curHeroData.star < 15 then tabsList[k].gameObject:SetActive(true) else tabsList[k].gameObject:SetActive(false)