From 897b9d2f29b8ad5f7ded302203e570fa573b224c Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 28 一月 2026 18:36:40 +0800
Subject: [PATCH] 411 定军阁-客户端

---
 Main/Config/Configs/HeroTalentConfig.cs               |   11 ++++++++++-
 Main/System/HeroUI/HeroGiftLineCell.cs                |    4 ++--
 Main/Config/Configs/FBDJGEffectConfig.cs              |    5 ++++-
 Main/System/WarlordPavilion/WarlordPavilionManager.cs |    2 ++
 Main/System/HeroUI/HeroGiftWin.cs                     |   16 ++++++++++++++--
 5 files changed, 32 insertions(+), 6 deletions(-)

diff --git a/Main/Config/Configs/FBDJGEffectConfig.cs b/Main/Config/Configs/FBDJGEffectConfig.cs
index b06b61c..8e2d17a 100644
--- a/Main/Config/Configs/FBDJGEffectConfig.cs
+++ b/Main/Config/Configs/FBDJGEffectConfig.cs
@@ -1,6 +1,6 @@
 锘�//--------------------------------------------------------
 //    [Author]:           YYL
-//    [  Date ]:           Thursday, January 8, 2026
+//    [  Date ]:           2026骞�1鏈�28鏃�
 //--------------------------------------------------------
 
 using System.Collections.Generic;
@@ -21,6 +21,7 @@
 	public int EffQuality;
 	public int AttrID;
 	public int AttrValue;
+	public int RandWeight;
 
     public override int LoadKey(string _key)
     {
@@ -41,6 +42,8 @@
 			int.TryParse(tables[3],out AttrID); 
 
 			int.TryParse(tables[4],out AttrValue); 
+
+			int.TryParse(tables[5],out RandWeight); 
         }
         catch (Exception exception)
         {
diff --git a/Main/Config/Configs/HeroTalentConfig.cs b/Main/Config/Configs/HeroTalentConfig.cs
index 0462a49..459636a 100644
--- a/Main/Config/Configs/HeroTalentConfig.cs
+++ b/Main/Config/Configs/HeroTalentConfig.cs
@@ -1,6 +1,6 @@
 锘�//--------------------------------------------------------
 //    [Author]:           YYL
-//    [  Date ]:           2025骞�8鏈�5鏃�
+//    [  Date ]:           Wednesday, January 28, 2026
 //--------------------------------------------------------
 
 using System.Collections.Generic;
@@ -21,6 +21,9 @@
 	public int Quality;
 	public int AttrID;
 	public int AttrValue;
+	public int InitWeight;
+	public int WashWeight;
+	public int AweakWeight;
 
     public override int LoadKey(string _key)
     {
@@ -41,6 +44,12 @@
 			int.TryParse(tables[3],out AttrID); 
 
 			int.TryParse(tables[4],out AttrValue); 
+
+			int.TryParse(tables[5],out InitWeight); 
+
+			int.TryParse(tables[6],out WashWeight); 
+
+			int.TryParse(tables[7],out AweakWeight); 
         }
         catch (Exception exception)
         {
diff --git a/Main/System/HeroUI/HeroGiftLineCell.cs b/Main/System/HeroUI/HeroGiftLineCell.cs
index ce685b9..c86faa0 100644
--- a/Main/System/HeroUI/HeroGiftLineCell.cs
+++ b/Main/System/HeroUI/HeroGiftLineCell.cs
@@ -6,10 +6,10 @@
     [SerializeField] GiftBaseCell[] cardList;
 
     public void Display(int index, List<int> configList)
-    { 
+    {
         for (int i = 0; i < cardList.Length; i++)
         {
-            if (index < configList.Count)
+            if (index + i < configList.Count)
             {
                 var giftID = configList[index + i];
                 var giftLV = HeroUIManager.Instance.maxGiftLevel;
diff --git a/Main/System/HeroUI/HeroGiftWin.cs b/Main/System/HeroUI/HeroGiftWin.cs
index e5b2c2c..74dc167 100644
--- a/Main/System/HeroUI/HeroGiftWin.cs
+++ b/Main/System/HeroUI/HeroGiftWin.cs
@@ -17,7 +17,7 @@
     protected override void OnPreOpen()
     {
         scroller.OnRefreshCell += OnRefreshCell;
-        
+
         CreateScroller();
     }
 
@@ -27,10 +27,22 @@
 
     }
 
+    private List<int> GetKeys()
+    {
+        List<int> res = new List<int>();
+        foreach (var config in HeroTalentConfig.GetValues())
+        {
+            if (config.InitWeight == 0 || config.WashWeight == 0 || config.AweakWeight == 0)
+                continue;
+            res.Add(config.TalentID);
+        }
+        return res;
+    }
+
     List<int> configList = new List<int>();
     void CreateScroller()
     {
-        configList = HeroTalentConfig.GetKeys().ToList();
+        configList = GetKeys();
         var totalCount = configList.Count;
 
         scroller.Refresh();
diff --git a/Main/System/WarlordPavilion/WarlordPavilionManager.cs b/Main/System/WarlordPavilion/WarlordPavilionManager.cs
index 71df39e..582461b 100644
--- a/Main/System/WarlordPavilion/WarlordPavilionManager.cs
+++ b/Main/System/WarlordPavilion/WarlordPavilionManager.cs
@@ -346,6 +346,8 @@
             foreach (var config in FBDJGEffectConfig.GetValues())
             {
                 int attrId = config.AttrID;
+                if (config.RandWeight == 0)
+                    continue;
                 if (!attrIds.Contains(attrId))
                 {
                     attrIds.Add(attrId);

--
Gitblit v1.8.0