Example #1
0
 public void AddTotalStatPoints(int amount, OtherStatsIndex pointSrc)
 {
     if (OtherStats.ContainsKey(pointSrc))
     {
         OtherStats[pointSrc] += amount;
     }
     else
     {
         OtherStats[pointSrc] = amount;
     }
     TotalStatPoints += amount;
 }
 public void AddTotalStatPoints(int amount, OtherStatsIndex pointSrc = 0)
 {
     TotalStatPoints += amount;
     if (pointSrc == 0)
     {
         return;
     }
     if (!OtherStats.ContainsKey(pointSrc))
     {
         OtherStats[pointSrc] = 0;
     }
     OtherStats[pointSrc] += amount;
 }