public void AddStatBonus(string id, MinMaxBonus bonus) { if (_statBonuses == null) _statBonuses = new Dictionary<string, MinMaxBonus>(); if (!_statBonuses.ContainsKey(id)) _statBonuses.Add(id, bonus); }
public MinMaxBonus GetStatBonus(string id) { MinMaxBonus bonus = new MinMaxBonus(); if (_statBonuses != null) _statBonuses.TryGetValue(id, out bonus); return bonus; }
public void AddLevelBonus(MinMaxBonus bonus) { if (_levelBonuses == null) _levelBonuses = new List<MinMaxBonus>(); _levelBonuses.Add(bonus); }