public int getModifier(Attribute.Stat type) { int val = 0; foreach (Attribute attr in attributes) { if (attr.getType() == type) { val += attr.getModifier(); } } return(val); }
public void addAttribute(Attribute.Stat type, byte modifier) { this.attributes.Add(new Attribute(type, modifier)); }
public void addAttribute(Attribute.Stat type) { this.attributes.Add(new Attribute(type, this.level)); }