hch
2025-12-26 63a2318f9d4b204947862476d8872d3beb1d29de
0312 挤压掉落 满掉落掉落背包的时候处理后再主动请求掉落
1个文件已修改
20 ■■■■■ 已修改文件
Main/System/Equip/EquipModel.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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); // 替换后是否自动分解原装备:0否1是
@@ -297,13 +306,6 @@
        }
        GameNetSystem.Instance.SendInfo(pack);
        //由于掉落挤压导致,满掉落掉落背包的时候处理后再主动请求掉落
        if (needMoreDrop)
        {
            pack.OPType = 3;
            GameNetSystem.Instance.SendInfo(pack);
            needMoreDrop = false;
        }
    }
    /// <summary>