Beispiel #1
0
        private void IncreaseStat(string stat)
        {
            var cost = PointBuyUtil.FindIncreaseCost(_baseStatDictionary[stat]);

            if (cost <= _points && _baseStatDictionary[stat] < PointBuyUtil.StatCap)
            {
                _baseStatDictionary[stat]++;
                _points -= cost;
            }
        }
Beispiel #2
0
        private void DecreaseStat(string stat)
        {
            var cost = PointBuyUtil.FindDecreaseCost(_baseStatDictionary[stat]);

            if (_baseStatDictionary[stat] > PointBuyUtil.StatFloor)
            {
                _baseStatDictionary[stat]--;
                _points += cost;
            }
        }
Beispiel #3
0
 private int CalculateMod(int val)
 {
     return(PointBuyUtil.CalculateMod(val));
 }