Exemple #1
0
        public static int GetInc(this AosArmorAttribute attr)
        {
            if (!ArmorAttrFactors.ContainsKey(attr))
            {
                ArmorAttrFactors.Add(attr, new AttributeFactors());
            }

            return(ArmorAttrFactors[attr].Inc);
        }
Exemple #2
0
        public static double GetWeight(this AosArmorAttribute attr)
        {
            if (!ArmorAttrFactors.ContainsKey(attr))
            {
                ArmorAttrFactors.Add(attr, new AttributeFactors());
            }

            return(ArmorAttrFactors[attr].Weight);
        }
Exemple #3
0
 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;
     }
 }
Exemple #4
0
 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;
     }
 }
Exemple #5
0
 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;
     }
 }
Exemple #6
0
 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;
     }
 }