From 62188b271cce5e3aec5ca40d58c30f08643e2f60 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 04 九月 2025 23:20:17 +0800
Subject: [PATCH] 117 【武将】武将系统 - 天赋部分,优化自动战斗

---
 Main/System/Hero/HeroInfo.Talent.cs |   49 +++++++++++++++++++++++++++++++++++++------------
 1 files changed, 37 insertions(+), 12 deletions(-)

diff --git a/Main/System/Hero/HeroInfo.Talent.cs b/Main/System/Hero/HeroInfo.Talent.cs
index d493875..7f31b92 100644
--- a/Main/System/Hero/HeroInfo.Talent.cs
+++ b/Main/System/Hero/HeroInfo.Talent.cs
@@ -41,6 +41,17 @@
 		}
 	}
 
+	// 75 # 鑻遍泟澶╄祴娲楃偧閿佸畾绱㈠紩鍒楄〃锛屽搴�71澶╄祴ID绱㈠紩
+	public List<int> talentLockList
+	{
+		get
+		{
+			if (itemHero == null)
+				return null;
+			return itemHero.GetUseData(75);
+		}
+	}
+
 
 	Dictionary<int, int> talentAttrDic = new Dictionary<int, int>();   //灞炴�D : 澶╄祴灞炴�у��
 
@@ -85,23 +96,37 @@
 		return 0;
 	}
 
-	public int GetMaxStarCount()
-	{
-		if (Quality < 4)
-			return HeroUIManager.normalGiftMaxCnt * HeroUIManager.Instance.maxGiftLevel;
-		return HeroUIManager.giftMaxCnt * HeroUIManager.Instance.maxGiftLevel;
-	}
 
-	public int GetTotalStarCount()
-	{
-		//talentLvList閲岀殑鍏冪礌鍏ㄩ儴鐩稿姞
-		return talentLvList.Sum();
-	}
-
+	//澶╄祴浼氭洿蹇埌杈炬弧绾э紱瑙夐啋鍙互鎻愬崌鏄熶笂闄�,濡傚垵濮嬫椂40婊℃槦锛岃閱扻绾у悗50婊℃槦
+	//鍒ゆ柇褰撳墠鏄惁婊℃槦
 	public bool IsFullStar()
+	{
+		if (HeroAwakeConfig.GetHeroAwakeConfig(heroId, 1) == null)
+        {
+            return heroStar >= 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;
+	}
+
+	public bool IsFullGift()
 	{
 		//妫�鏌alentLvList 鎵�鏈夊厓绱犻兘澶т簬绛変簬10
 		return talentLvList.All(x => x >= HeroUIManager.Instance.maxGiftLevel);
 	}
 
+
+
+	public int GetTalentLockCount()
+	{
+		//talentLockList閲岀殑鍏冪礌鍏ㄩ儴鐩稿姞 1浠h〃閿佸畾 0浠h〃鏈攣瀹�
+		return talentLockList.Sum();
+	}
+
 }

--
Gitblit v1.8.0