internal static HorseTrait[] GetBadTraits(HorseTrait[] traits, TraitValuator traitValuator) { return traits.Where(x => x.GetTraitValue(traitValuator) < 0).ToArray(); }
internal static HorseTrait[] GetMissingTraits(HorseTrait[] horseTraits, float inspectSkill, bool epicCurve) { var correctDict = (epicCurve ? EnumToAHSkillMapEpic : EnumToAHSkillMapFreedom); List<HorseTrait> missingTraits = new List<HorseTrait>(); foreach (var keyval in correctDict) { if (inspectSkill < keyval.Value && horseTraits.Where(x => x.Trait == keyval.Key).Count() == 0) missingTraits.Add(new HorseTrait(keyval.Key)); } return missingTraits.ToArray(); }