public Roller(string name, int val) { this.name = name != null ? name : "default"; this.value = val; this.bonuses = new Bonuses(); this.totalBonus = bonuses.getBon(); }
//public virtual int GetMod(int newMod) { //return GetValue()/newMod; //} public void addBonus(Bonus bonus) { bonuses.addBonus(bonus); totalBonus = bonuses.getBon(); }