/// <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))); }
/// <summary> /// /// </summary> /// <param name="entity"></param> /// <returns></returns> public bool CanLearn(Entity entity) { return(Requirements.All(p => p.Valid(entity))); }
public void CheckRequirements() { IsSatisfy = Requirements.All(g => g.Satisfy); }