Boolean CheckForSkills(Person person, EventOption eo) { for (int i = 0; i < person.personSkills.Count; ++i) { if (eo.ReturnRequiredSkillType() == person.personSkills[i].skillType && isSkillRankingBetterThan(eo.ReturnRequiredSkillRanking(), person.personSkills[i].skillRanking) == true) { return(true); } } return(false); }
Boolean CheckForTraits(Person person, EventOption eo) { for (int i = 0; i < person.personTraits.Count; ++i) { if (eo.ReturnRequiredTraitType() == person.personTraits[i]) { return(true); } else if (eo.ReturnAvoidedTraitType() == person.personTraits[i]) { return(false); } } return(false); }