From 7abd0955e25f45048b1e2b10a3555e08a4ebdf5e Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Wed, 8 Sep 2021 12:19:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90ID1010233=E3=80=91=20=E3=80=90?= =?UTF-8?q?=E5=AE=9D=E7=89=A9=E8=AF=A6=E6=83=85=E4=BC=98=E5=8C=96=E3=80=91?= =?UTF-8?q?=E5=9C=A8=E8=A3=85=E5=A4=87=E7=95=8C=E9=9D=A2=E5=92=8C=E6=83=85?= =?UTF-8?q?=E6=8A=A5=E7=95=8C=E9=9D=A2=E5=A2=9E=E5=8A=A0=E5=AE=9D=E7=89=A9?= =?UTF-8?q?=E5=85=B1=E9=B8=A3=E5=B1=9E=E6=80=A7=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/GoodFriend/GoodFriendManager.lua | 6 +++--- .../ManagedResources/~Lua/Modules/Popup/RoleInfoPopup.lua | 1 - .../~Lua/Modules/RoleInfo/EquipTreasureManager.lua | 2 +- .../~Lua/Modules/RoleInfo/RoleEquipTreasureChangePopup.lua | 3 ++- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/GoodFriend/GoodFriendManager.lua b/Assets/ManagedResources/~Lua/Modules/GoodFriend/GoodFriendManager.lua index 3198712bf7..9e68e31fd5 100644 --- a/Assets/ManagedResources/~Lua/Modules/GoodFriend/GoodFriendManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/GoodFriend/GoodFriendManager.lua @@ -596,7 +596,7 @@ function this.InitUpdateEquipData(_equipData, heroData) if(heroData.jewels) then for i = 1, #heroData.jewels do if heroData.jewels[i] and heroData.jewels[i] == _equipData.id then - this.InitSingleTreasureData(_equipData) + this.InitSingleTreasureData(_equipData,heroData) end end end @@ -606,7 +606,7 @@ end local jewelConfig = ConfigManager.GetConfig(ConfigName.JewelConfig) local allTreasures = {} --初始化单个宝物的数据 -function this.InitSingleTreasureData(_singleData) +function this.InitSingleTreasureData(_singleData,heroData) if _singleData==nil then return end @@ -619,7 +619,7 @@ function this.InitSingleTreasureData(_singleData) single.refineLv=_singleData.rebuildLevel single.maxLv=currJewel.Max[1] single.maxRefineLv=currJewel.Max[2] - single.upHeroDid="" + single.upHeroDid=heroData.dynamicId local quantity=currJewel.Level single.quantity=quantity single.frame=GetQuantityImageByquality(quantity) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/RoleInfoPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/RoleInfoPopup.lua index ea48ef36a8..89781cb661 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/RoleInfoPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/RoleInfoPopup.lua @@ -382,7 +382,6 @@ function this.EquipInfo() local pos= jewelConfig[data.id].Location local o=Util.GetGameObject(this.babyGrid,"Pre"..pos) - LogRed("!!!") local btn=Util.GetGameObject(o,"Frame") btn.gameObject:SetActive(true) local frame=Util.GetGameObject(o,"Frame"):GetComponent("Image") diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/EquipTreasureManager.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/EquipTreasureManager.lua index 33348093fc..5cf52071fe 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/EquipTreasureManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/EquipTreasureManager.lua @@ -509,7 +509,7 @@ end --计算战斗力 function this.CalculateWarForce(Did) - local curTreasure = allTreasures[Did] + local curTreasure = allTreasures[Did] or ExpeditionManager.GetSingleTreasureByIdDyn(Did) or GoodFriendManager.GetSingleTreasureByIdDyn(Did) if curTreasure then return this.CalculateWarForceBase(curTreasure.id, curTreasure.lv, curTreasure.refineLv) end diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleEquipTreasureChangePopup.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleEquipTreasureChangePopup.lua index e1ac6e0fd7..ff94b1d63e 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleEquipTreasureChangePopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleEquipTreasureChangePopup.lua @@ -387,6 +387,7 @@ function this.ShowEquipData(i) this.treasurePanel[i].bgScroll:GetComponent("RectTransform").sizeDelta = Vector2.New(800,250) this.SetPropertyShow1(refineInfo,this.RefinePropertyList[i],this.treasurePanel[i].RefineAttriGrid) end + if equipData[i].upHeroDid == "" or equipData[i].upHeroDid == "0" then this.treasurePanel[i].strongAttri.gameObject:SetActive(false) this.treasurePanel[i].refineMasterAttri:SetActive(false) @@ -425,7 +426,7 @@ function this.GongMingSetData(curTabIndex,proPreList,grid,title,go,index) end go.gameObject:SetActive(true) for i = 1, #curHeroData.jewels do - local curEquipTreasureData = EquipTreasureManager.GetSingleTreasureByIdDyn(curHeroData.jewels[i]) + local curEquipTreasureData = EquipTreasureManager.GetSingleTreasureByIdDyn(curHeroData.jewels[i]) or ExpeditionManager.GetSingleTreasureByIdDyn(curHeroData.jewels[i]) or GoodFriendManager.GetSingleTreasureByIdDyn(curHeroData.jewels[i]) if curTabIndex == 1 then if minLv then if curEquipTreasureData.lv < minLv then