private void IncreaseStat(string stat) { var cost = PointBuyUtil.FindIncreaseCost(_baseStatDictionary[stat]); if (cost <= _points && _baseStatDictionary[stat] < PointBuyUtil.StatCap) { _baseStatDictionary[stat]++; _points -= cost; } }
private void DecreaseStat(string stat) { var cost = PointBuyUtil.FindDecreaseCost(_baseStatDictionary[stat]); if (_baseStatDictionary[stat] > PointBuyUtil.StatFloor) { _baseStatDictionary[stat]--; _points += cost; } }
private int CalculateMod(int val) { return(PointBuyUtil.CalculateMod(val)); }