少年修仙传客户端代码仓库
client_Wu Xijin
2019-03-18 ab87a066c61df9a6cf681939215400981bc9e7f6
3335 更新物品管理。
1个文件已修改
9 ■■■■■ 已修改文件
System/KnapSack/Logic/PackModel.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/PackModel.cs
@@ -317,7 +317,7 @@
                guid = itemModel.guid;
                int itemId = itemModel.itemId;
                DeleteItemDictByGUID( itemModel.guid);
                DeleteItemDictByGUID(type, itemModel.guid);
                singlePack.RemoveItem(clearItem.ItemIndex);
                if (refreshItemCountEvent != null)
@@ -414,11 +414,14 @@
            }
        }
        void DeleteItemDictByGUID(string guid)
        void DeleteItemDictByGUID(PackType type, string guid)
        {
            if (itemGUIDDict.ContainsKey(guid))
            {
                itemGUIDDict.Remove(guid);
                if (itemGUIDDict[guid].packType == type)
                {
                    itemGUIDDict.Remove(guid);
                }
            }
        }