Exemple #1
0
 public void RemoveStatBonus(StatBonus statBonus)
 {
     this.BaseAdditives.Remove(BaseAdditives.Find(x => x.BonusValue == statBonus.BonusValue));
 }
Exemple #2
0
 /* 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));
 }