From 92722a93e2239070a187c5d4352c39f41b291bae Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期五, 13 三月 2026 20:26:54 +0800
Subject: [PATCH] 492 武将登场-客户端

---
 Main/System/HappyXB/HappyXBModel.cs |   50 +++++++++++++++++++++++++++++---------------------
 1 files changed, 29 insertions(+), 21 deletions(-)

diff --git a/Main/System/HappyXB/HappyXBModel.cs b/Main/System/HappyXB/HappyXBModel.cs
index 9f57bbb..c33cee3 100644
--- a/Main/System/HappyXB/HappyXBModel.cs
+++ b/Main/System/HappyXB/HappyXBModel.cs
@@ -18,11 +18,11 @@
     {
         get
         {
-            #if UNITY_EDITOR
+#if UNITY_EDITOR
             if (Time.time - xbLastTime > 1)
-            #else
+#else
             if (Time.time - xbLastTime > 10)
-            #endif
+#endif
             {
                 m_IsWaitServerXB = false;
                 return m_IsWaitServerXB;
@@ -36,7 +36,7 @@
             m_IsWaitServerXB = value;
             xbLastTime = Time.time;
         }
-    }  
+    }
     private Dictionary<int, XBTypeInfo> xbTypeInfoDict = new Dictionary<int, XBTypeInfo>(); //鎶藉鐘舵�佺浉鍏崇殑 鏈嶅姟鍣ㄨ褰�
 
     public int lhQuality;
@@ -134,7 +134,7 @@
     public int addXBScoreType { get; private set; } //瀵诲疂绉垎璐у竵绫诲瀷
     public int addXBLuckValue { get; private set; }
     public int addXBAddItemID { get; private set; } // 鏈瀵诲疂棰濆璧犻�佺殑鐗╁搧ID
-    public long addItemCount { get; private set; }   // 鏈瀵诲疂棰濆璧犻�佺殑鐗╁搧ID涓暟
+    public long addXBItemCount { get; private set; }   // 鏈瀵诲疂棰濆璧犻�佺殑鐗╁搧ID涓暟
     public Dictionary<int, XBGetItem> xbResultDict { get; private set; } = new Dictionary<int, XBGetItem>(); //濂栧搧椤哄簭锛氬鍝�
     public void GetServerXBResult(HA350_tagMCTreasureResult result)
     {
@@ -144,7 +144,7 @@
         addXBScoreType = result.AddMoneyType;
         addXBLuckValue = result.AddTreasureLuck;
         addXBAddItemID = (int)result.AddItemID;
-        addItemCount = result.AddItemCount;
+        addXBItemCount = result.AddItemCount;
         JsonData resultData = JsonMapper.ToObject(result.TreasureResult);
         if (resultData.IsArray)
         {
@@ -183,11 +183,19 @@
                 UIManager.Instance.OpenWindow<HeroCallResultWin>();
             }
         }
+
+        if (ActHeroAppearConfig.GetActTreasureTypeList().Contains(type))
+        {
+            if (!UIManager.Instance.IsOpened<HeroDebutCallResultWin>())
+            {
+                UIManager.Instance.OpenWindow<HeroDebutCallResultWin>();
+            }
+        }
     }
 
 
     public int GetCountInResult(int itemID)
-    { 
+    {
         int count = 0;
         if (xbResultDict != null && xbResultDict.Count > 0)
         {
@@ -208,7 +216,7 @@
         xbResultDict.Clear();
     }
 
-    
+
     public void GetServerXBInfo(HA351_tagMCTreasureInfo info)
     {
         for (int i = 0; i < info.InfoCount; i++)
@@ -270,7 +278,7 @@
                     int cnt = info.TreasuerInfoList[i].GridLimitCntList[j].GridCnt;
                     xbTypeInfoDict[info.TreasuerInfoList[i].TreasureType].gridLimitCntDict[num] = cnt;
                 }
-                
+
                 xbTypeInfoDict[info.TreasuerInfoList[i].TreasureType].wishCntDict.Clear();
                 for (int j = 0; j < info.TreasuerInfoList[i].WishLibCnt; j++)
                 {
@@ -318,7 +326,7 @@
     public void SendXBQuest(int type, int index, int costType)
     {
         if (isXBCoolTime) return;
-        
+
         isXBCoolTime = true;
         CA568_tagCMRequestTreasure treasure = new CA568_tagCMRequestTreasure();
         treasure.TreasureType = (byte)type;
@@ -511,7 +519,7 @@
         {
             return typeInfo.freeCountToday;
         }
-        
+
         return 0;
     }
 
@@ -618,12 +626,12 @@
                 needMoney = funcSet.CostMoneyList[0] * (needToolCnt - toolCnt);
             }
             else
-            { 
+            {
                 //鍏ㄩ儴涓嶈冻鐨勬寜澶氭浠锋牸绠� 鍙兘閰嶇疆浜嗘姌鎵�
                 needMoney = funcSet.CostMoneyList[1];
             }
         }
-        
+
         return false;
     }
 
@@ -635,7 +643,7 @@
     }
 
     public int GetCostItemID(int type)
-    { 
+    {
         var funcSet = TreasureSetConfig.Get(type);
         if (funcSet == null) return 0;
         return funcSet.CostItemID;
@@ -654,7 +662,7 @@
     public Redpoint bestXB10Red = new Redpoint(HappyXB_RedKey, XBHeroCall10_RedKey);
     public Redpoint bestXBScoreRed = new Redpoint(HappyXB_RedKey, XBHeroCallScore_RedKey);
 
-    
+
 
     private void UpdateFuncState(int funcId)
     {
@@ -678,7 +686,7 @@
             return;
         }
 
-        
+
     }
 
     void OnDayEvent()
@@ -705,12 +713,12 @@
 
         if (IsHaveFreeXB((int)HappXBTitle.HeroCallAdvanced))
         {
-            bestXBFreeRed.state = PlayerDatas.Instance.baseData.realmLevel >= 1 ?RedPointState.GetReward : RedPointState.Simple;
+            bestXBFreeRed.state = PlayerDatas.Instance.baseData.realmLevel >= 1 ? RedPointState.GetReward : RedPointState.Simple;
         }
 
         if (IsHaveManyXBToolEx((int)HappXBTitle.HeroCallAdvanced, out int xbtoolCnt, out int needtoolCnt, out int needMoney))
         {
-            bestXB10Red.state = PlayerDatas.Instance.baseData.realmLevel >= 1 ?RedPointState.GetReward : RedPointState.Simple;
+            bestXB10Red.state = PlayerDatas.Instance.baseData.realmLevel >= 1 ? RedPointState.GetReward : RedPointState.Simple;
             return;
         }
 
@@ -718,8 +726,8 @@
         if ((InvestModel.Instance.IsInvested(InvestModel.monthCardType)
         || GetXBInfoByType((int)HappXBTitle.HeroCallScore)?.treasureCount == 0)
         && UIHelper.GetMoneyCnt(51) >= TreasureSetConfig.Get((int)HappXBTitle.HeroCallScore).CostMoneyList[0])
-        { 
-            bestXBScoreRed.state = PlayerDatas.Instance.baseData.realmLevel >= 1 ?RedPointState.GetReward : RedPointState.Simple;
+        {
+            bestXBScoreRed.state = PlayerDatas.Instance.baseData.realmLevel >= 1 ? RedPointState.GetReward : RedPointState.Simple;
         }
 
     }
@@ -735,7 +743,7 @@
         return itemIDListTemp.Distinct().ToList();
 
     }
-    
+
     #endregion
 }
 

--
Gitblit v1.8.0