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