From 63a2318f9d4b204947862476d8872d3beb1d29de Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 26 十二月 2025 15:03:23 +0800
Subject: [PATCH] 0312 挤压掉落 满掉落掉落背包的时候处理后再主动请求掉落

---
 Main/System/Equip/EquipModel.cs |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/Main/System/Equip/EquipModel.cs b/Main/System/Equip/EquipModel.cs
index 353a706..142839b 100644
--- a/Main/System/Equip/EquipModel.cs
+++ b/Main/System/Equip/EquipModel.cs
@@ -197,12 +197,18 @@
             return;
         }
 
+
         needMoreDrop = cnt == 20;
 
         //鏋勫缓鎵�鏈夌墿鍝�
         foreach (var item in PackManager.Instance.GetSinglePack(PackType.DropItem).GetItems())
         {
             CalcFloorEquip(item.gridIndex);
+        }
+        if (needMoreDrop)
+        {
+            SendEquipOP(null, 3);
+            needMoreDrop = false;
         }
     }
 
@@ -284,8 +290,11 @@
 
         // 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); // 鏇挎崲鍚庢槸鍚﹁嚜鍔ㄥ垎瑙e師瑁呭锛�0鍚�1鏄�
 
@@ -297,13 +306,6 @@
         }
         GameNetSystem.Instance.SendInfo(pack);
 
-        //鐢变簬鎺夎惤鎸ゅ帇瀵艰嚧锛屾弧鎺夎惤鎺夎惤鑳屽寘鐨勬椂鍊欏鐞嗗悗鍐嶄富鍔ㄨ姹傛帀钀�
-        if (needMoreDrop)
-        {
-            pack.OPType = 3;
-            GameNetSystem.Instance.SendInfo(pack);
-            needMoreDrop = false;
-        }
     }
 
     /// <summary>

--
Gitblit v1.8.0