Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public bool CanLearn(Entity entity)
        {
            // can't learn skill 2x times
            if (entity.Feats.Any(p => p.Id == Id))
            {
                return(false);
            }

            return(Requirements.All(p => p.Valid(entity)));
        }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public bool CanLearn(Entity entity)
 {
     return(Requirements.All(p => p.Valid(entity)));
 }
Esempio n. 3
0
 public void CheckRequirements()
 {
     IsSatisfy = Requirements.All(g => g.Satisfy);
 }