示例#1
0
 /// <summary>
 /// Checks whether the given tier can be learned
 /// </summary>
 public bool CanLearnTier(SkillTierId tier)
 {
     if (SkillLine.HasTier(tier))
     {
         uint tierLimit = SkillLine.Tiers.GetMaxValue(tier);
         if (CurrentValue >= (int)tierLimit - 100)
         {
             // cannot be learnt if we have less than max - 100 in that skill
             return(true);
         }
     }
     return(false);
 }
示例#2
0
 /// <summary>Checks whether the given tier can be learned</summary>
 public bool CanLearnTier(SkillTierId tier)
 {
     return(SkillLine.HasTier(tier) &&
            CurrentValue >= (int)SkillLine.Tiers.GetMaxValue(tier) - 100);
 }