| Core/NetworkPackage/ClientPack/ClientToMapServer/CA3_Item/CA32C_tagCMEquipDecompose.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/KnapSack/Logic/EquipDevourWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/KnapSack/Logic/PlayerPackModels.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Core/NetworkPackage/ClientPack/ClientToMapServer/CA3_Item/CA32C_tagCMEquipDecompose.cs
@@ -3,18 +3,43 @@ //A3 2C 装备分解 #tagCMEquipDecompose public class CA32C_tagCMEquipDecompose : GameNetPackBasic { public byte IndexCount; //材料所在背包索引的数量 public byte[] IndexList; //材料所在背包索引列表 public byte Count; //材料所在背包索引的数量 public ushort[] IndexList; //材料所在背包索引列表 public uint[] ItemIDList; //材料所在背包物品ID列表 public byte IsAuto; //是否自动分解 public CA32C_tagCMEquipDecompose () { combineCmd = (ushort)0x03FE; _cmd = (ushort)0xA32C; } public override void WriteToBytes () { WriteBytes (IndexCount, NetDataType.BYTE); WriteBytes (IndexList, NetDataType.BYTE, IndexCount); } WriteBytes (Count, NetDataType.BYTE); WriteBytes (IndexList, NetDataType.WORD, Count); WriteBytes (ItemIDList, NetDataType.DWORD, Count); WriteBytes (IsAuto, NetDataType.BYTE); } } System/KnapSack/Logic/EquipDevourWin.cs
@@ -593,13 +593,17 @@ playerPack.isAutoDecompose = false; SettingEffectMgr.Instance.isStartDecompose = true; CA32C_tagCMEquipDecompose _petEat = new CA32C_tagCMEquipDecompose(); byte[] _petIndex = new byte[realDevourlist.Count]; var _petIndex = new ushort[realDevourlist.Count]; var idlist = new uint[realDevourlist.Count]; for (int i = 0; i < realDevourlist.Count; i++) { _petIndex[i] = (byte)realDevourlist[i].itemInfo.ItemPlace; _petIndex[i] = (ushort)realDevourlist[i].itemInfo.ItemPlace; idlist[i] = (uint)realDevourlist[i].itemId; } _petEat.IndexCount = (byte)_petIndex.Length; _petEat.Count = (byte)_petIndex.Length; _petEat.IndexList = _petIndex; _petEat.ItemIDList = idlist; _petEat.IsAuto = 0; GameNetSystem.Instance.SendInfo(_petEat); } 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); }