示例#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;
 }
示例#3
0
 public void AddStatPoint(int amount, OtherStatsIndex index)
 {
     StatPointDistribution.AddTotalStatPoints(amount, index);
     Session.Send(StatPointPacket.WriteTotalStatPoints(this));
 }