public void Add(Constants.ItemModifierType type, int value) { if (!this.parameters.ContainsKey(type)) { this.parameters.Add(type, value); } else { this.parameters[type] += value; } }
public bool Contains(Constants.ItemModifierType type) { return(this.parameters.ContainsKey(type)); }
public float GetPercent(Constants.ItemModifierType type) { return(this.parameters.ContainsKey(type) ? (this.parameters[type] / 100.0f) : 0.0f); }
public int Get(Constants.ItemModifierType type) { return(this.parameters.ContainsKey(type) ? this.parameters[type] : 0); }