yyl
2025-10-31 39001a600fcae2bcf27c225df8752d75fb92fef4
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()