public List <Skill> GetSkillsWithPerk(SkillPerk perk) { List <Skill> list = new List <Skill>(); foreach (Skill resource in resources) { if (resource.GivesPerk(perk)) { list.Add(resource); } } return(list); }
public bool GivesPerk(SkillPerk perk) { return(perks.Contains(perk)); }