| | |
| | | isAutoDecompose = true;
|
| | | recordAutoDecomNum = itemModels.Count;
|
| | | CA32C_tagCMEquipDecompose _petEat = new CA32C_tagCMEquipDecompose();
|
| | | byte[] _petIndex = new byte[recordAutoDecomNum];
|
| | | var _petIndex = new ushort[recordAutoDecomNum];
|
| | | var idlist = new uint[recordAutoDecomNum];
|
| | | for (int i = 0; i < recordAutoDecomNum; i++)
|
| | | {
|
| | | _petIndex[i] = (byte)itemModels[i].itemInfo.ItemPlace;
|
| | | _petIndex[i] = (ushort)itemModels[i].itemInfo.ItemPlace;
|
| | | idlist[i] = (uint)itemModels[i].itemId;
|
| | | if (itemModels[i].chinItemModel.StarLevel >= 2
|
| | | || (itemModels[i].chinItemModel.EquipPlace == 0 && itemModels[i].chinItemModel.Type != 29))
|
| | | {
|
| | | return;
|
| | | }
|
| | | }
|
| | | _petEat.IndexCount = (byte)_petIndex.Length;
|
| | | _petEat.Count = (byte)_petIndex.Length;
|
| | | _petEat.IndexList = _petIndex;
|
| | | _petEat.ItemIDList = idlist;
|
| | | _petEat.IsAuto = 1;
|
| | | GameNetSystem.Instance.SendInfo(_petEat);
|
| | | }
|
| | |
|