少年修仙传客户端代码仓库
Client_PangDeRong
2019-01-25 1a3e390467ab7807b377ad0ef37b425c5a379c43
5930 子 【开发】【1.5.100】诛仙装备开发 / 【前端】【1.5.100】诛仙装备开发
1个文件已修改
31 ■■■■ 已修改文件
System/Compose/New/ComposeEquipWin.cs 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeEquipWin.cs
@@ -167,6 +167,20 @@
            {
                curComposeEquipIndex = -1;
            }
            List<ComposeWinModel.ComposeThirdTypeData> thirdTypeDatas = null;
            composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Equip, curSecondType, curThirdType, out thirdTypeDatas);
            if (thirdTypeDatas != null)
            {
                for (int i = 0; i < thirdTypeDatas.Count; i++)
                {
                    var itemConfig = Config.Instance.Get<ItemConfig>(thirdTypeDatas[i].itemCompound.makeID[0]);
                    if (itemConfig.EquipPlace == selectEquipPlace)
                    {
                        curComposeEquipIndex = i;
                        break;
                    }
                }
            }
        }
        private void CreateTypeCell()
@@ -193,7 +207,7 @@
            if (curThirdType != 0)
            {
                CreateEquipTypeLineCell();
                composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Equip, curSecondType, curThirdType, out thirdTypeData);
                if(thirdTypeData != null)
                {
@@ -207,21 +221,6 @@
                        dismantleText.gameObject.SetActive(false);
                    }
                }
                List<ComposeWinModel.ComposeThirdTypeData> thirdTypeDatas = null;
                composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Equip, curSecondType, curThirdType, out thirdTypeDatas);
                if(thirdTypeDatas != null)
                {
                    for(int i = 0; i < thirdTypeDatas.Count; i++)
                    {
                        var itemConfig = Config.Instance.Get<ItemConfig>(thirdTypeDatas[i].itemCompound.makeID[0]);
                        if (itemConfig.EquipPlace == selectEquipPlace)
                        {
                            curComposeEquipIndex = i;
                            break;
                        }
                    }
                }
                CreateEquipTypeLineCell();
            }
            else
            {