From 23e8ee01886faf8f1a77c79a2d93a52a860e6914 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 24 八月 2025 22:41:12 +0800
Subject: [PATCH] 117 【武将】武将系统 - 重生 遣散

---
 Main/System/HappyXB/HappyXBModel.cs |   22 ++++------------------
 1 files changed, 4 insertions(+), 18 deletions(-)

diff --git a/Main/System/HappyXB/HappyXBModel.cs b/Main/System/HappyXB/HappyXBModel.cs
index 297dbbe..0af1b07 100644
--- a/Main/System/HappyXB/HappyXBModel.cs
+++ b/Main/System/HappyXB/HappyXBModel.cs
@@ -308,7 +308,7 @@
             int moneyType = funcSet.CostMoneyType;
             int xbOneMoney = funcSet.CostMoneyList[0];
 
-            if (UIHelper.GetMoneyCnt(moneyType) >= (ulong)xbOneMoney)
+            if (UIHelper.GetMoneyCnt(moneyType) >= xbOneMoney)
             {
                 //鏆傚畾鍏呭�艰揣甯侀渶瑕佷簩娆$‘璁�
                 if (moneyType == 1)
@@ -327,14 +327,7 @@
             }
             else
             {
-                if (!GeneralDefine.MoneyDisplayModel.ContainsKey(moneyType))
-                { 
-                    SysNotifyMgr.Instance.ShowTip("LackMoney", moneyType);
-                }
-                else
-                {
-                    ItemTipUtility.Show(GeneralDefine.MoneyDisplayModel[moneyType], true);
-                }
+                ItemTipUtility.ShowMoneyTip(moneyType);
             }
         }
     }
@@ -363,7 +356,7 @@
 
             //璐у竵瀵诲疂
             int moneyType = funcSet.CostMoneyType;
-            if (UIHelper.GetMoneyCnt(moneyType) >= (ulong)needMoney)
+            if (UIHelper.GetMoneyCnt(moneyType) >= needMoney)
             {
                 //鏆傚畾鍏呭�艰揣甯侀渶瑕佷簩娆$‘璁�
                 if (moneyType == 1)
@@ -382,14 +375,7 @@
             }
             else
             {
-                if (!GeneralDefine.MoneyDisplayModel.ContainsKey(moneyType))
-                { 
-                    SysNotifyMgr.Instance.ShowTip("LackMoney", moneyType);
-                }
-                else
-                {
-                    ItemTipUtility.Show(GeneralDefine.MoneyDisplayModel[moneyType], true);
-                }
+                ItemTipUtility.ShowMoneyTip(moneyType);
             }
 
         }

--
Gitblit v1.8.0