Ejemplo n.º 1
0
 public void SetTargetDistribution(int key, float value)
 {
     if (Aspects != null)
     {
         if (Aspects.ContainsKey(key))
         {
             Aspects[key].TargetDistribution = value <0 ? 0 : value> INE.Char.MaxDistribution ? INE.Char.MaxDistribution : value;
         }
     }
 }
Ejemplo n.º 2
0
 public void SetModifiers(Dictionary <int, float> newModifiers)
 {
     foreach (KeyValuePair <int, float> modifier in newModifiers)
     {
         if (Aspects.ContainsKey(modifier.Key))
         {
             Aspects[modifier.Key].Modifier = modifier.Value < INE.Char.MinModifier ? INE.Char.MinModifier : modifier.Value;
         }
     }
 }
Ejemplo n.º 3
0
 public void SetTargetDistribution(Dictionary <int, float> newDistribution)
 {
     if (Aspects != null && newDistribution != null)
     {
         foreach (KeyValuePair <int, float> aspect in newDistribution)
         {
             if (Aspects.ContainsKey(aspect.Key))
             {
                 Aspects[aspect.Key].TargetDistribution =
                     aspect.Value <0 ? 0 : aspect.Value> INE.Char.MaxDistribution ? INE.Char.MaxDistribution : aspect.Value;
             }
         }
     }
 }
Ejemplo n.º 4
0
        public string AspectName(int key)
        {
            string name = "";

            if (Aspects.ContainsKey(key))
            {
                if (Type == AspectType.Attributes && INE.Format.AttributeNames.ContainsKey(key))
                {
                    name = INE.Format.AttributeNames[key];
                }
                else if (Type == AspectType.Skills && INE.Format.SkillNames.ContainsKey(key))
                {
                    name = INE.Format.SkillNames[key];
                }
            }

            return(name);
        }