| | |
| | |
|
| | | 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;
|
| | |
| | | }
|
| | | 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)
|
| | |
| | | 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
|