示例#1
0
        public static int GetBonusMax(this SkillName attr)
        {
            if (!SkillBonusAttrFactors.ContainsKey(attr))
            {
                SkillBonusAttrFactors.Add(attr, new AttributeFactors());
            }

            return(SkillBonusAttrFactors[attr].Max);
        }
示例#2
0
        public static double GetBonusWeight(this SkillName attr)
        {
            if (!SkillBonusAttrFactors.ContainsKey(attr))
            {
                SkillBonusAttrFactors.Add(attr, new AttributeFactors());
            }

            return(SkillBonusAttrFactors[attr].Weight);
        }
示例#3
0
 public static void SetBonusMax(this SkillName attr, int max)
 {
     if (!SkillBonusAttrFactors.ContainsKey(attr))
     {
         SkillBonusAttrFactors.Add(
             attr,
             new AttributeFactors
         {
             Max = max
         });
     }
     else
     {
         SkillBonusAttrFactors[attr].Max = max;
     }
 }
示例#4
0
 public static void SetBonusMin(this SkillName attr, int min)
 {
     if (!SkillBonusAttrFactors.ContainsKey(attr))
     {
         SkillBonusAttrFactors.Add(
             attr,
             new AttributeFactors
         {
             Min = min
         });
     }
     else
     {
         SkillBonusAttrFactors[attr].Min = min;
     }
 }
示例#5
0
 public static void SetBonusWeight(this SkillName attr, double weight)
 {
     if (!SkillBonusAttrFactors.ContainsKey(attr))
     {
         SkillBonusAttrFactors.Add(
             attr,
             new AttributeFactors
         {
             Weight = weight
         });
     }
     else
     {
         SkillBonusAttrFactors[attr].Weight = weight;
     }
 }
示例#6
0
 public static void SetBonusInc(this SkillName attr, int inc)
 {
     if (!SkillBonusAttrFactors.ContainsKey(attr))
     {
         SkillBonusAttrFactors.Add(
             attr,
             new AttributeFactors
         {
             Inc = inc
         });
     }
     else
     {
         SkillBonusAttrFactors[attr].Inc = inc;
     }
 }