protected bool CharacterHasPersonalValue(PersonalValues value, CharacterTraits traits, string description = "")
        {
            var myTestResult = new NodeTestInfo
            {
                TestedCharacteristic = CharacteristicType.Values,
                CharacteristicName   = value.ToString(),
                AttributeValue       = 0,
                ProfileScore         = IsValueArchetypal(value)? 0.1 : 0,
                Result       = traits.DoIPossessThisPersonalValue(value), //this is the test
                PassingValue = 1,
                Description  = description,
                Modifier     = 0
            };

            DataToMemorize.Add(myTestResult);

            return(myTestResult.Result);
        }
 private static bool IsValueArchetypal(PersonalValues value)
 {
     return(Enum.IsDefined(typeof(ArchetypalValues), value.ToString()));
 }
Esempio n. 3
0
 internal bool DoIPossessThisPersonalValue(PersonalValues value)
 {
     return(PersonalValues.Contains(value));
 }