少年修仙传客户端代码仓库
Client_PangDeRong
2018-10-12 bce9d517048a405df05a9867c86ce285121a31fa
4144 【前端】人物粉色品质防具装备的合成与拆解
1个文件已修改
25 ■■■■■ 已修改文件
System/KnapSack/Logic/PackSendQuestMgr.cs 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/PackSendQuestMgr.cs
@@ -1088,6 +1088,8 @@
        {
            List<int> dismantleReturnlist = attrData.GetUseDataModel((int)ItemUseDataKey.Def_IudetItemDecompound);
            int needGridCnt = 0;
            int fixedMatcnt = 0;
            int unfixedMatId = 0;
            for (int i = 0; i < dismantleReturnlist.Count; i++)
            {
                if (i == 0)
@@ -1095,6 +1097,7 @@
                    if (dismantleReturnlist[i] != 0)
                    {
                        needGridCnt += 1;
                        unfixedMatId = dismantleReturnlist[i];
                    }
                }
                else
@@ -1104,6 +1107,7 @@
                        if (dismantleReturnlist[i] != 0)
                        {
                            needGridCnt += 1;
                            fixedMatcnt += dismantleReturnlist[i + 1];
                        }
                    }
                }
@@ -1115,11 +1119,30 @@
                SysNotifyMgr.Instance.ShowTip("BagFull102", attrData.itemConfig.ItemName, offsetGrid);
                return;
            }
            else
            {
                ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(unfixedMatId);
                if(itemConfig != null)
                {
                    ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("PinkChaiRemind2", fixedMatcnt,itemConfig.LV),
                        (bool isOk)=>
                        {
                            if(isOk)
                            {
            CA313_tagCMItemDecompound decompound = new CA313_tagCMItemDecompound();
            decompound.Index = (byte)attrData.index;
            GameNetSystem.Instance.SendInfo(decompound);
        }
                        });
                }
                else
                {
                    CA313_tagCMItemDecompound decompound = new CA313_tagCMItemDecompound();
                    decompound.Index = (byte)attrData.index;
                    GameNetSystem.Instance.SendInfo(decompound);
                }
            }
        }
        #endregion
        #region 发送续费请求