少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-20 a87120c155c48fa45b20a97c1a58bdbeb77318b7
System/KnapSack/Logic/PlayerPackModels.cs
@@ -136,7 +136,7 @@
        public void OnPlayerLoginOk()
        {
            ItemLogicUtility.Instance.RequestWarehouseData();
            ItemOperateUtility.Instance.RequestWarehouseData();
            SetPlayerAttrActiveRedPoint();
            EquipDecomRedCtrl();
            RoleEquipLocalSave = StringUtility.Contact("RoleEquipLocalSave", PlayerDatas.Instance.baseData.PlayerID);
@@ -215,7 +215,7 @@
                itemInfo.UserData = packInfo.ItemInfo[i].UserData;
                itemInfo.IsLocked = packInfo.ItemInfo[i].IsLocked;
                itemInfo.ItemGUID = packInfo.ItemInfo[i].ItemGUID;
                playerPackDict[type].SetPackModel(itemInfo);
                playerPackDict[type].UpdateItem(itemInfo);
                if (isPlayBetterEquipEffect)
                {
@@ -254,7 +254,7 @@
            itemInfo.UserData = item.UserData;
            itemInfo.IsLocked = item.IsLocked;
            itemInfo.ItemGUID = item.ItemGUID;
            playerPackDict[type].SetPackModel(itemInfo);
            playerPackDict[type].UpdateItem(itemInfo);
            DebugEx.Log("Add:" + item.ItemGUID);
            if (RefreshItemCountAct != null)
@@ -302,7 +302,7 @@
            playerPackDict.TryGetValue(type, out singlePack);
            if (singlePack != null)
            {
                ItemModel itemModel = singlePack.GetItemModelByIndex(refresh.ItemIndex);
                ItemModel itemModel = singlePack.GetItemByIndex(refresh.ItemIndex);
                if (itemModel != null)
                {
                    bool isAddItemCount = false;
@@ -372,7 +372,7 @@
            string guid = "";
            if (singlePack != null)
            {
                ItemModel itemModel = singlePack.GetItemModelByIndex(clearItem.ItemIndex);
                ItemModel itemModel = singlePack.GetItemByIndex(clearItem.ItemIndex);
                guid = itemModel.guid;
                int itemId = itemModel.itemId;
                DeleteItemDictByGUID(type, itemModel.guid);
@@ -850,7 +850,7 @@
            ItemModel itemModel = null;
            if (playerPackDict.ContainsKey(type))
            {
                itemModel = playerPackDict[type].GetItemModelByIndex(index);
                itemModel = playerPackDict[type].GetItemByIndex(index);
            }
            return itemModel;
        }
@@ -1166,7 +1166,7 @@
            SinglePackModel singlePack = GetSinglePackModel(PackType.Equip);
            if (singlePack == null || starslist == null || starslist.Count < 1) return false;
            Dictionary<int, ItemModel> _itemDict = singlePack.GetPackModelIndexDict();
            Dictionary<int, ItemModel> _itemDict = singlePack.GetAllItems();
            int playerSumStars = 0;
            foreach (var model in _itemDict.Values)
            {
@@ -1594,7 +1594,7 @@
            devourModellist.Clear();
            orderDevourModellist.Clear();
            foreach (var model in singlePack.GetPackModelIndexDict().Values)
            foreach (var model in singlePack.GetAllItems().Values)
            {
                if (model.config.Type == 29)
                {
@@ -1650,7 +1650,7 @@
                return null;
            }
            foreach (var model in singlePack.GetPackModelIndexDict().Values)
            foreach (var model in singlePack.GetAllItems().Values)
            {
                if (model.config.Type == 29)
                {