/// <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); }
/// <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); }