From cd577d03019b1a399b29e18c802a97ce665daec6 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 05 九月 2025 11:55:51 +0800
Subject: [PATCH] 50 【主界面】核心主体 - 增加等级功能开启限制 153 【武将】招募系统 - 免费次数显示和

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

diff --git a/Main/System/HappyXB/HappyXBModel.cs b/Main/System/HappyXB/HappyXBModel.cs
index 662792f..6050fbf 100644
--- a/Main/System/HappyXB/HappyXBModel.cs
+++ b/Main/System/HappyXB/HappyXBModel.cs
@@ -433,6 +433,23 @@
         return freeCountToday < funcSet.DailyFreeCount;
     }
 
+
+    public int GetFreeCountToday(int type)
+    {
+        XBTypeInfo typeInfo = GetXBInfoByType(type);
+        if (typeInfo != null)
+        {
+            return typeInfo.freeCountToday;
+        }
+        
+        return 0;
+    }
+
+    public int GetDailyFreeCount(int type)
+    {
+        return TreasureSetConfig.Get(type).DailyFreeCount;
+    }
+
     //鑾峰彇杩橀渶澶氬皯娆″彲寰楀垢杩愬鍔�
     public int GetNextXBCountForBigAward(int type, out List<int> qualityList)
     {
@@ -442,7 +459,7 @@
         {
             return 0;
         }
-        
+
         var xbConfig = GetXBItemConfigByType(type);
         var luckList = xbConfig.LuckyItemRateInfo.Keys.ToList();
         luckList.Sort();

--
Gitblit v1.8.0