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

            if (entry != null)
            {
                return(Learn(entry, rank));
            }
            return(null);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
 }