public void RemoveStatBonus(StatBonus statBonus) { this.BaseAdditives.Remove(BaseAdditives.Find(x => x.BonusValue == statBonus.BonusValue)); }
/* Modifier: Removes the statBonus from your weapon. */ public void RemoveStatBonus(StatBonus statBonus) { /* Goes through the BassAdditive list, find the value that matches the StatbonusValue that * we passed in, and then apply the remove method to the result it finds. */ this.BaseAdditives.Remove(BaseAdditives.Find(x => x.BonusValue == statBonus.BonusValue)); }