public void AddModification(StatType statType, StatModification modification) { if (StatModifications.ContainsKey(statType)) { StatModifications[statType].Add(modification); } else { StatModifications.Add(statType, new List <StatModification>() { modification }); } StatTotals[statType].Amount += modification.Amount; StatTotals[statType].Percentage += modification.Percentage; }
public Guid AddStatModification(int amount, float percentage) { var modification = new StatModification(amount, percentage); return(modification.Key); }