Пример #1
0
        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;
        }
Пример #2
0
        public Guid AddStatModification(int amount, float percentage)
        {
            var modification = new StatModification(amount, percentage);

            return(modification.Key);
        }