Пример #1
0
        public static int GetInc(this AosWeaponAttribute attr)
        {
            if (!WeaponAttrFactors.ContainsKey(attr))
            {
                WeaponAttrFactors.Add(attr, new AttributeFactors());
            }

            return(WeaponAttrFactors[attr].Inc);
        }
Пример #2
0
        public static double GetWeight(this AosWeaponAttribute attr)
        {
            if (!WeaponAttrFactors.ContainsKey(attr))
            {
                WeaponAttrFactors.Add(attr, new AttributeFactors());
            }

            return(WeaponAttrFactors[attr].Weight);
        }
Пример #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;
     }
 }
Пример #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;
     }
 }
Пример #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;
     }
 }
Пример #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;
     }
 }