| | |
| | | {
|
| | | 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)
|
| | |
| | | if (dismantleReturnlist[i] != 0)
|
| | | {
|
| | | needGridCnt += 1;
|
| | | unfixedMatId = dismantleReturnlist[i];
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | if (dismantleReturnlist[i] != 0)
|
| | | {
|
| | | needGridCnt += 1;
|
| | | fixedMatcnt += dismantleReturnlist[i + 1];
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | SysNotifyMgr.Instance.ShowTip("BagFull102", attrData.itemConfig.ItemName, offsetGrid);
|
| | | return;
|
| | | }
|
| | |
|
| | | CA313_tagCMItemDecompound decompound = new CA313_tagCMItemDecompound();
|
| | | decompound.Index = (byte)attrData.index;
|
| | | GameNetSystem.Instance.SendInfo(decompound);
|
| | | 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
|
| | |
|
| | |
| | |
|
| | | #endregion
|
| | |
|
| | | #region 获取仓库数据
|
| | | #region 获取仓库数据
|
| | | public void SendOpenWarehouse()
|
| | | {
|
| | | CA204_tagCMOpenLongWarehouse openWarehouse = new CA204_tagCMOpenLongWarehouse();
|