From a97d4e156a7f7506943a1630ac00f67ec2ecc744 Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期一, 03 九月 2018 21:33:03 +0800
Subject: [PATCH] 1829 修改寻宝功能
---
System/HappyXB/XBGridCell.cs | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/System/HappyXB/XBGridCell.cs b/System/HappyXB/XBGridCell.cs
index 5422ae7..d464337 100644
--- a/System/HappyXB/XBGridCell.cs
+++ b/System/HappyXB/XBGridCell.cs
@@ -1,6 +1,7 @@
锘縰sing System;
using UnityEngine;
using UnityEngine.UI;
+using TableConfig;
namespace Snxxz.UI
{
@@ -39,15 +40,20 @@
private void ClickItemCell(ItemModel itemModel)
{
- if(playerPack.GetReaminGridCount(PackType.rptItem) > 0)
- {
- XBModel.SendPutOutXBItem(PackType.rptTreasure, PackType.rptItem, itemModel.itemInfo.ItemPlace, 0);
+ if(itemModel.chinItemModel.Type == 30 || itemModel.chinItemModel.Type == 31)
+ {
+ if (XBModel.CheckIsEmptyGrid(PackType.rptRunePack))
+ {
+ XBModel.SendPutOutXBItem(PackType.rptTreasure, PackType.rptRunePack, itemModel.itemInfo.ItemPlace, 0);
+ }
}
else
- {
- SysNotifyMgr.Instance.ShowTip("BagFull");
+ {
+ if (XBModel.CheckIsEmptyGrid(PackType.rptItem))
+ {
+ XBModel.SendPutOutXBItem(PackType.rptTreasure, PackType.rptItem, itemModel.itemInfo.ItemPlace, 0);
+ }
}
-
}
private void RefreshItemCount(PackType type, int index, int id)
--
Gitblit v1.8.0