| | |
| | | return; |
| | | } |
| | | |
| | | |
| | | needMoreDrop = cnt == 20; |
| | | |
| | | //构建所有物品 |
| | | foreach (var item in PackManager.Instance.GetSinglePack(PackType.DropItem).GetItems()) |
| | | { |
| | | CalcFloorEquip(item.gridIndex); |
| | | } |
| | | if (needMoreDrop) |
| | | { |
| | | SendEquipOP(null, 3); |
| | | needMoreDrop = false; |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | // NoteFloorEquip(itemIndexList, opType); |
| | | var pack = new CB415_tagCSMainDropItemOP(); |
| | | pack.Count = (byte)itemIndexList.Length; |
| | | pack.IndexList = itemIndexList; |
| | | if (itemIndexList != null) |
| | | { |
| | | pack.Count = (byte)itemIndexList.Length; |
| | | pack.IndexList = itemIndexList; |
| | | } |
| | | pack.OPType = opType; |
| | | pack.OPValue = (byte)(autoDecompose ? 1 : 0); // 替换后是否自动分解原装备:0否1是 |
| | | |
| | |
| | | } |
| | | GameNetSystem.Instance.SendInfo(pack); |
| | | |
| | | //由于掉落挤压导致,满掉落掉落背包的时候处理后再主动请求掉落 |
| | | if (needMoreDrop) |
| | | { |
| | | pack.OPType = 3; |
| | | GameNetSystem.Instance.SendInfo(pack); |
| | | needMoreDrop = false; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |