From fd7c869ce33347cd708f14e2da853f857541ae98 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 07 八月 2025 15:25:47 +0800
Subject: [PATCH] 125 【战斗】战斗系统 新增两个实用函数 以及修改原来战锤使用错 判断物品数量函数的问题

---
 Main/System/KnapSack/Logic/ItemLogicUtility.cs |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/Main/System/KnapSack/Logic/ItemLogicUtility.cs b/Main/System/KnapSack/Logic/ItemLogicUtility.cs
index ed36659..e077aa4 100644
--- a/Main/System/KnapSack/Logic/ItemLogicUtility.cs
+++ b/Main/System/KnapSack/Logic/ItemLogicUtility.cs
@@ -391,6 +391,9 @@
 
             if (null != itemConfig)
             {
+                //  鏄惁鏈夎幏鍙栭�斿緞
+                //  鏄� 寮瑰嚭鑾峰彇閫斿緞
+                //  鍚� 鏄剧ず鐗╁搧鏁伴噺涓嶈冻
                 // SysNotifyMgr.Instance.ShowTip();
             }
         }
@@ -398,9 +401,26 @@
         return isEnough;
     }
 
-    public static bool CheckCurrencyCount()
+    public static bool CheckCurrencyCount(int moneyType, ulong needCount, bool needTips)
     {
-        return true;
+        if (needCount <= 0)
+        {
+            return true;
+        }
+
+        ulong haveCount = UIHelper.GetMoneyCnt(moneyType);
+
+        bool isEnough = haveCount >= needCount;
+
+        if (!isEnough && needTips)
+        {
+            //  鏄惁鏈夎幏鍙栭�斿緞
+            //  鏄� 寮瑰嚭鑾峰彇閫斿緞
+            //  鍚� 鏄剧ず鐗╁搧鏁伴噺涓嶈冻
+            // SysNotifyMgr.Instance.ShowTip();
+        }
+
+        return isEnough;
     }
 
     public event Action<string> GetBetterEquipEvent; //寰楀埌鏇村ソ鐨勮澶� value 鐗╁搧鐨勫疄渚婭D

--
Gitblit v1.8.0