private bool IsMatchingExcludedSkill(IAbility ability) { foreach (IAbility desiredAbility in DesiredAbilities.Where(x => x.Level == 0)) { if (DataUtility.AreAbilitiesOnSameSkill(ability, desiredAbility)) { return(true); } } return(false); }
private bool IsMatchingDesiredAbilities(IAbility ability) { foreach (IAbility desiredAbility in DesiredAbilities) { if (DataUtility.AreAbilitiesOnSameSkill(ability, desiredAbility)) { return(true); } } return(false); }
private void RemoveEquipmentsBySkillExclusion(IList <IAbility> excludedAbilities, List <SolverDataEquipmentModel> equipments) { equipments.RemoveAll(e => e.Equipment.Abilities.Any(a => excludedAbilities.Any(x => DataUtility.AreAbilitiesOnSameSkill(a, x)))); }