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/HeroCallWin.cs  |   18 +++++++++++++++---
 Main/System/HappyXB/HappyXBModel.cs |   27 +++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 3 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)
     {
diff --git a/Main/System/HappyXB/HeroCallWin.cs b/Main/System/HappyXB/HeroCallWin.cs
index 423f39e..78c6793 100644
--- a/Main/System/HappyXB/HeroCallWin.cs
+++ b/Main/System/HappyXB/HeroCallWin.cs
@@ -1,5 +1,6 @@
 using System.Collections;
 using System.Collections.Generic;
+using System.Linq;
 using UnityEngine;
 using UnityEngine.UI;
 
@@ -22,6 +23,7 @@
     [SerializeField] Image call10ItemIcon;
     [SerializeField] Text call10Text;
     [SerializeField] Button closeBtn;
+    [SerializeField] Text callTip;
 
 
     protected override void InitComponent()
@@ -43,7 +45,7 @@
         {
             UIManager.Instance.OpenWindow<HeroCallScoreWin>();
         });
-        
+
         ruleBtn.AddListener(() =>
         {
             UIManager.Instance.OpenWindow<HeroCallRuleWin>();
@@ -78,14 +80,14 @@
         }
         else
         {
-            call1Text.text = Language.Get("L1100", item.ItemName, UIHelper.AppendColor(funcSet.CostItemCountList[0] > itemCount ? TextColType.Red :TextColType.LightWhite, funcSet.CostItemCountList[0].ToString()));
+            call1Text.text = Language.Get("L1100", item.ItemName, UIHelper.AppendColor(funcSet.CostItemCountList[0] > itemCount ? TextColType.Red : TextColType.LightWhite, funcSet.CostItemCountList[0].ToString()));
         }
         call10Text.text = Language.Get("L1100", item.ItemName, UIHelper.AppendColor(funcSet.CostItemCountList[1] > itemCount ? TextColType.Red : TextColType.LightWhite, funcSet.CostItemCountList[1].ToString()));
 
         scoreText.text = UIHelper.GetMoneyCnt(51) + "/" + TreasureSetConfig.Get((int)HappXBTitle.HeroCallScore).CostMoneyList[0];
 
         if (UIHelper.GetMoneyCnt(51) >= TreasureSetConfig.Get((int)HappXBTitle.HeroCallScore).CostMoneyList[0])
-        { 
+        {
             scoreTween.SetActive(true);
         }
         else
@@ -94,6 +96,16 @@
         }
 
         RefreshFreeTime();
+
+        //鍐嶆嫑鍕焮0}娆″悗蹇呭緱{1}姝﹀皢
+        List<int> qualityList = new List<int>();
+        var needCount = HappyXBModel.Instance.GetNextXBCountForBigAward((int)HappXBTitle.HeroCallAdvanced, out qualityList);
+        List<string> qualityStrList = new List<string>();
+        for (int i = 0; i < qualityList.Count; i++)
+        {
+            qualityStrList.Add(UIHelper.AppendColor(qualityList[i], Language.Get("equipQualityFormat", Language.Get("CommonQuality" + qualityList[i]))));
+        }
+        callTip.text = Language.Get("HeroCall6", needCount, string.Join(Language.Get("L1130"), qualityStrList.ToArray()));
     }
 
     //姣忕鍒锋柊鍏嶈垂CD鐨勫�掕鏃�

--
Gitblit v1.8.0