Example #1
0
    public WeaponAttribute GetAttribute(WeaponAttributesType type)
    {
        if (attributes.ContainsKey(type))
        {
            return(attributes[type]);
        }

        return(null);
    }
Example #2
0
 public WeaponAttributeBonus(WeaponAttributesType t, float min, StatModType modType = StatModType.Add)
 {
     type         = t;
     bonusValue   = min;
     this.modType = modType;
 }
Example #3
0
 public WeaponAttribute(WeaponAttributesType t, float startingValue = 0)
 {
     type    = t;
     value   = startingValue;
     bonuses = new List <WeaponAttributeBonus>();
 }