Esempio n. 1
0
        public static int GetInc(this AosWeaponAttribute attr)
        {
            if (!WeaponAttrFactors.ContainsKey(attr))
            {
                WeaponAttrFactors.Add(attr, new AttributeFactors());
            }

            return(WeaponAttrFactors[attr].Inc);
        }
Esempio n. 2
0
        public static double GetWeight(this AosWeaponAttribute attr)
        {
            if (!WeaponAttrFactors.ContainsKey(attr))
            {
                WeaponAttrFactors.Add(attr, new AttributeFactors());
            }

            return(WeaponAttrFactors[attr].Weight);
        }
Esempio n. 3
0
 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;
     }
 }
Esempio n. 4
0
 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;
     }
 }
Esempio n. 5
0
 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;
     }
 }
Esempio n. 6
0
 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;
     }
 }