少年修仙传客户端代码仓库
client_Zxw
2019-03-14 77910b7142722c862cb10d67e9da48f3d2603875
3335 代码修改
2个文件已修改
71 ■■■■ 已修改文件
System/Compose/New/ComposeWinModel.cs 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeWingsWin.cs 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeWinModel.cs
@@ -913,22 +913,23 @@
        if (!matDict.ContainsKey(itemModel.itemId))
        {
            Dictionary<int, int> bindDict = new Dictionary<int, int>();
            if (!bindDict.ContainsKey(itemModel.isBind))
            {
                bindDict.Add(itemModel.isBind, itemModel.count);
            }
            //if (!bindDict.ContainsKey(itemModel.isBind))
            //{
            //    bindDict.Add(itemModel.isBind, itemModel.count);
            //}
            matDict.Add(itemModel.itemId, bindDict);
        }
        else
        {
            if (!matDict[itemModel.itemId].ContainsKey(itemModel.isBind))
            {
                matDict[itemModel.itemId].Add(itemModel.isBind, itemModel.count);
            }
            else
            {
                matDict[itemModel.itemId][itemModel.isBind] += itemModel.count;
            }
            matDict[itemModel.itemId][0] += itemModel.count;
            //if (!matDict[itemModel.itemId].ContainsKey(itemModel.isBind))
            //{
            //    matDict[itemModel.itemId].Add(itemModel.isBind, itemModel.count);
            //}
            //else
            //{
            //}
        }
    }
System/Compose/New/ComposeWingsWin.cs
@@ -485,14 +485,14 @@
            bool isBind = false;
            Dictionary<int,ItemModel> unfixedMatDict = selectModel.GetHaveUnfixedSelectItem();
            foreach(var model in unfixedMatDict.Values)
            {
                if(model.isBind == 1)
                {
                    isBind = true;
                    break;
                }
            }
            //foreach(var model in unfixedMatDict.Values)
            //{
            //    if(model.isBind == 1)
            //    {
            //        isBind = true;
            //        break;
            //    }
            //}
            int[] fixedIds = compoundModel.itemID;
            int[] fixedCounts = compoundModel.itemCount;
            int[] fixedDisplays = compoundModel.itemDisplay;
@@ -505,21 +505,21 @@
                    int fixedId = fixedIds[i];
                    var bindIcon = matCell.itemCell.bindIcon;
                    bindIcon.gameObject.SetActive(false);
                    if (isBind)
                    {
                        var list= singlePack.GetItemsById(fixedId);
                        if (list != null)
                        {
                            for (int j = 0; j < list.Count; j++)
                            {
                                if (list[j].isBind == 1)
                                {
                                    bindIcon.gameObject.SetActive(true);
                                    break;
                                }
                            }
                        }
                    }
                    //if (isBind)
                    //{
                    //    var list= singlePack.GetItemsById(fixedId);
                    //    if (list != null)
                    //    {
                    //        for (int j = 0; j < list.Count; j++)
                    //        {
                    //            if (list[j].isBind == 1)
                    //            {
                    //                bindIcon.gameObject.SetActive(true);
                    //                break;
                    //            }
                    //        }
                    //    }
                    //}
                  
                }
            }