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; } } }
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; } } }
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; } } } }
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); }