Example #1
0
 public int GetGenderModifier(AttributeCode attribute)
 {
     if (GenderModifier.ContainsKey(attribute))
     {
         return(GenderModifier[attribute]);
     }
     return(0);
 }
Example #2
0
        public int GetAttribute(AttributeCode attribute, bool applyGender = false)
        {
            int tmp = 0;

            if (RacialAttributes.ContainsKey(attribute))
            {
                tmp = RacialAttributes[attribute];
            }

            if (applyGender && GenderModifier.ContainsKey(attribute))
            {
                tmp += GenderModifier[attribute];
            }

            return(tmp);
        }