| System/Compose/New/ComposeWinModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Compose/New/ComposeWingsWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | 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; // } // } // } //} } }