public static int GetInc(this AosArmorAttribute attr) { if (!ArmorAttrFactors.ContainsKey(attr)) { ArmorAttrFactors.Add(attr, new AttributeFactors()); } return(ArmorAttrFactors[attr].Inc); }
public static double GetWeight(this AosArmorAttribute attr) { if (!ArmorAttrFactors.ContainsKey(attr)) { ArmorAttrFactors.Add(attr, new AttributeFactors()); } return(ArmorAttrFactors[attr].Weight); }
public static void SetInc(this AosArmorAttribute attr, int inc) { if (!ArmorAttrFactors.ContainsKey(attr)) { ArmorAttrFactors.Add( attr, new AttributeFactors { Inc = inc }); } else { ArmorAttrFactors[attr].Inc = inc; } }
public static void SetMax(this AosArmorAttribute attr, int max) { if (!ArmorAttrFactors.ContainsKey(attr)) { ArmorAttrFactors.Add( attr, new AttributeFactors { Max = max }); } else { ArmorAttrFactors[attr].Max = max; } }
public static void SetMin(this AosArmorAttribute attr, int min) { if (!ArmorAttrFactors.ContainsKey(attr)) { ArmorAttrFactors.Add( attr, new AttributeFactors { Min = min }); } else { ArmorAttrFactors[attr].Min = min; } }
public static void SetWeight(this AosArmorAttribute attr, double weight) { if (!ArmorAttrFactors.ContainsKey(attr)) { ArmorAttrFactors.Add( attr, new AttributeFactors { Weight = weight }); } else { ArmorAttrFactors[attr].Weight = weight; } }