少年修仙传客户端代码仓库
client_linchunjie
2018-12-03 ace147921f7fa5b09a5d374e389472e35d65e15a
System/KnapSack/Logic/PlayerPackModels.cs
@@ -1727,18 +1727,22 @@
            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);
        }