Пример #1
0
 public int GetCalculatedStatValue()
 {
     FinalValue = 0;
     BaseAdditives.ForEach(x => this.FinalValue += x.BonusValue);
     this.FinalValue += BaseValue;
     return(FinalValue);
 }
Пример #2
0
 public float GetCalculatedStatValue()
 {
     FinalValue = 0;
     BaseAdditives.ForEach(x => FinalValue += x.BonusValue);
     FinalValue += BaseValue;
     BaseMods.ForEach(x => FinalValue *= (1 + x.BonusValue));
     return(FinalValue);
 }