public static int GetBonusMax(this SkillName attr) { if (!SkillBonusAttrFactors.ContainsKey(attr)) { SkillBonusAttrFactors.Add(attr, new AttributeFactors()); } return(SkillBonusAttrFactors[attr].Max); }
public static double GetBonusWeight(this SkillName attr) { if (!SkillBonusAttrFactors.ContainsKey(attr)) { SkillBonusAttrFactors.Add(attr, new AttributeFactors()); } return(SkillBonusAttrFactors[attr].Weight); }
public static void SetBonusMax(this SkillName attr, int max) { if (!SkillBonusAttrFactors.ContainsKey(attr)) { SkillBonusAttrFactors.Add( attr, new AttributeFactors { Max = max }); } else { SkillBonusAttrFactors[attr].Max = max; } }
public static void SetBonusMin(this SkillName attr, int min) { if (!SkillBonusAttrFactors.ContainsKey(attr)) { SkillBonusAttrFactors.Add( attr, new AttributeFactors { Min = min }); } else { SkillBonusAttrFactors[attr].Min = min; } }
public static void SetBonusWeight(this SkillName attr, double weight) { if (!SkillBonusAttrFactors.ContainsKey(attr)) { SkillBonusAttrFactors.Add( attr, new AttributeFactors { Weight = weight }); } else { SkillBonusAttrFactors[attr].Weight = weight; } }
public static void SetBonusInc(this SkillName attr, int inc) { if (!SkillBonusAttrFactors.ContainsKey(attr)) { SkillBonusAttrFactors.Add( attr, new AttributeFactors { Inc = inc }); } else { SkillBonusAttrFactors[attr].Inc = inc; } }