Example #1
0
        public Talent Learn(TalentId id, int rank)
        {
            var entry = TalentMgr.GetEntry(id);

            if (entry != null)
            {
                return(Learn(entry, rank));
            }
            return(null);
        }
Example #2
0
        /// <summary>
        /// Whether the given talent can be learned by this Character
        /// </summary>
        public bool CanLearn(TalentId id, int rank)
        {
            TalentEntry entry = TalentMgr.GetEntry(id);

            if (entry != null)
            {
                return(CanLearn(entry, rank));
            }
            return(false);
        }
Example #3
0
        public Talent Learn(TalentId id, int rank)
        {
            TalentEntry entry = TalentMgr.GetEntry(id);

            if (entry != null)
            {
                return(this.Learn(entry, rank));
            }
            return((Talent)null);
        }
Example #4
0
        /// <summary>
        /// Whether the given talent can be learned by this Character
        /// </summary>
        public bool CanLearn(TalentId id, int rank)
        {
            var talent = TalentMgr.GetEntry(id);

            return(talent != null && CanLearn(talent, rank));
        }
Example #5
0
        /// <summary>
        /// Sets the given talent to the given rank without any checks.
        /// Make sure that the given TalentId is valid for this Character's class.
        /// </summary>
        public Talent Set(TalentId id, int rank)
        {
            var entry = TalentMgr.GetEntry(id);

            return(Set(entry, rank));
        }
Example #6
0
 /// <summary>
 /// Sets the given talent to the given rank without any checks.
 /// Make sure that the given TalentId is valid for this Character's class.
 /// </summary>
 public Talent Set(TalentId id, int rank)
 {
     return(Set(TalentMgr.GetEntry(id), rank));
 }