From 39001a600fcae2bcf27c225df8752d75fb92fef4 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 31 十月 2025 11:18:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/Hero/HeroInfo.Talent.cs |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/Main/System/Hero/HeroInfo.Talent.cs b/Main/System/Hero/HeroInfo.Talent.cs
index 668862d..95e3128 100644
--- a/Main/System/Hero/HeroInfo.Talent.cs
+++ b/Main/System/Hero/HeroInfo.Talent.cs
@@ -10,12 +10,24 @@
 	{
 		get
 		{
+			// 鍥犱负瑙夐啋闄嶄綆浜嗘槦绾э紝瀹㈡埛绔嚜宸遍檷浣庢槦绾�
+			if (itemHero == null)
+				return 0;
+
+			return Math.Min(GetCurMaxStar(), heroStarMaxBefore);
+		}
+	}
+
+	// 鍥犱负瑙夐啋闄嶄綆浜嗘槦绾э紝淇濈暀鍘嗗彶鏈�澶ф槦绾�
+	public int heroStarMaxBefore
+	{
+		get
+		{
 			if (itemHero == null)
 				return 0;
 			return itemHero.GetUseDataFirstValue(72);
 		}
 	}
-
 
 	// 71 # 鑻遍泟澶╄祴ID鍒楄〃
 	public List<int> talentIDList
@@ -114,18 +126,23 @@
 	//鍒ゆ柇褰撳墠鏄惁婊℃槦
 	public bool IsFullStar()
 	{
+		return heroStar >= GetCurMaxStar();
+	}
+
+	//褰撳墠鑳借揪鍒扮殑鏈�澶ф槦绾�
+	public int GetCurMaxStar()
+	{
 		if (HeroAwakeConfig.GetHeroAwakeConfig(heroId, 1) == null)
 		{
-			return heroStar >= HeroQualityConfig.Get(Quality).InitStarUpper;
+			return HeroQualityConfig.Get(Quality).InitStarUpper;
 		}
-
 		//鏍规嵁瑙夐啋绱鎻愬崌鏄熶笂闄�
 		int addStarCount = 0;
 		for (int i = 1; i <= awakeLevel; i++)
 		{
 			addStarCount += HeroAwakeConfig.GetHeroAwakeConfig(heroId, i).AddStarUpper;
 		}
-		return heroStar >= HeroQualityConfig.Get(Quality).InitStarUpper + addStarCount;
+		return HeroQualityConfig.Get(Quality).InitStarUpper + addStarCount;
 	}
 
 	public bool IsFullGift()

--
Gitblit v1.8.0