public WeaponAttribute GetAttribute(WeaponAttributesType type) { if (attributes.ContainsKey(type)) { return(attributes[type]); } return(null); }
public WeaponAttributeBonus(WeaponAttributesType t, float min, StatModType modType = StatModType.Add) { type = t; bonusValue = min; this.modType = modType; }
public WeaponAttribute(WeaponAttributesType t, float startingValue = 0) { type = t; value = startingValue; bonuses = new List <WeaponAttributeBonus>(); }