From 619223516d631189a2f97ec4843d00877a0cce01 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 04 九月 2025 14:52:45 +0800
Subject: [PATCH] 155 子 【武将】招募系统 / 【武将】招募系统-客户端

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

diff --git a/Main/System/HappyXB/HappyXBModel.cs b/Main/System/HappyXB/HappyXBModel.cs
index f75a087..c091f55 100644
--- a/Main/System/HappyXB/HappyXBModel.cs
+++ b/Main/System/HappyXB/HappyXBModel.cs
@@ -428,6 +428,33 @@
         return freeCountToday < funcSet.DailyFreeCount;
     }
 
+    //鑾峰彇杩橀渶澶氬皯娆″彲寰楀垢杩愬鍔�
+    public int GetNextXBCountForBigAward(int type, out List<int> qualityList)
+    {
+        qualityList = new List<int>();
+        XBTypeInfo typeInfo = GetXBInfoByType(type);
+        if (typeInfo == null)
+        {
+            return 0;
+        }
+        
+        var xbConfig = GetXBItemConfigByType(type);
+        var luckList = xbConfig.LuckyItemRateInfo.Keys.ToList();
+        luckList.Sort();
+        //鎸夐樁姊樉绀�
+        for (int i = 0; i < luckList.Count; i++)
+        {
+            if (typeInfo.luckValue < luckList[i])
+            {
+                //鎶婁簩缁存暟缁勯噷鐨勬墍鏈夌浜屼釜鍏冪礌缁勬垚鏂板垪琛�
+                qualityList = xbConfig.LuckyItemRateInfo[luckList[i]].Select(x => x[1]).ToList();
+                qualityList.Sort();
+                return luckList[i] - typeInfo.luckValue;
+            }
+        }
+        return 0;
+    }
+
 
     public bool CheckIsXBTool(int itemId, int type)
     {

--
Gitblit v1.8.0