少年修仙传客户端代码仓库
Client_PangDeRong
2018-09-28 faf918ea467df1bebd70de3e149f2eeac67ad12c
System/Dogz/DogzModel.cs
@@ -575,6 +575,11 @@
        private void SendPutOffEquip(int equipPlace)
        {
            if(playerPack.GetReaminGridCount(PackType.rptDogzItem) < 1)
            {
                SysNotifyMgr.Instance.ShowTip("DogzBagFull");
                return;
            }
            GetDogzEquipPlaceStates(presentSelectDogz);
            CA5C1_tagCMDogzUnEquipItem dogzPutOff = new CA5C1_tagCMDogzUnEquipItem();
            dogzPutOff.DogzID = (byte)presentSelectDogz;
@@ -639,6 +644,23 @@
            }
            dogzItemList.Sort(CompareByDogzItemPack);
            return dogzItemList;
        }
        public int GetDogzPackMatNum()
        {
            SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptDogzItem);
            if (singlePack == null) return 0;
            int num = 0;
            Dictionary<int, ItemModel> pairs = singlePack.GetPackModelIndexDict();
            foreach (var value in pairs.Values)
            {
               if(value.chinItemModel.EquipPlace == 0)
                {
                    num += 1;
                }
            }
            return num;
        }
        public bool IsReachSelectCondi(int itemId)
@@ -708,6 +730,12 @@
            y = end.equipScore;
            if (x.CompareTo(y) != 0) return -x.CompareTo(y);
            List<int> strenglist = start.GetUseDataModel((int)ItemUseDataKey.Def_IudetDogzEquipPlus);
            x = strenglist != null ? strenglist[0] : 0;
            strenglist = end.GetUseDataModel((int)ItemUseDataKey.Def_IudetDogzEquipPlus);
            y = strenglist != null ? strenglist[0] : 0;
            if (x.CompareTo(y) != 0) return -x.CompareTo(y);
            return 0;
        }
        #endregion