Esempio n. 1
0
        private bool IsMatchingExcludedSkill(IAbility ability)
        {
            foreach (IAbility desiredAbility in DesiredAbilities.Where(x => x.Level == 0))
            {
                if (DataUtility.AreAbilitiesOnSameSkill(ability, desiredAbility))
                {
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 2
0
        private bool IsMatchingDesiredAbilities(IAbility ability)
        {
            foreach (IAbility desiredAbility in DesiredAbilities)
            {
                if (DataUtility.AreAbilitiesOnSameSkill(ability, desiredAbility))
                {
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 3
0
 private void RemoveEquipmentsBySkillExclusion(IList <IAbility> excludedAbilities, List <SolverDataEquipmentModel> equipments)
 {
     equipments.RemoveAll(e => e.Equipment.Abilities.Any(a => excludedAbilities.Any(x => DataUtility.AreAbilitiesOnSameSkill(a, x))));
 }