示例#1
0
 public void Divide(EntityStats otherStats)
 {
     foreach (var otherStat in otherStats.Stats.Values)
     {
         this[otherStat.Kind].Divide(otherStats.Stats[otherStat.Kind].Value);
     }
 }
示例#2
0
 internal void AccumulateFactors(EntityStats otherStats, bool positive)
 {
     foreach (var otherStat in otherStats.Stats)
     {
         if ((otherStat.Value.Factor > 0 && positive) || (otherStat.Value.Factor < 0 && !positive))
         {
             Ensure(otherStat.Key);
             AccumulateFactor(otherStat.Key, otherStat.Value.Factor);
         }
     }
 }
示例#3
0
 public void Accumulate(EntityStats otherStats)
 {
     foreach (var otherStat in otherStats.Stats)
     {
         if (otherStat.Value.Factor != 0)
         {
             Ensure(otherStat.Key);
             AccumulateFactor(otherStat.Key, otherStat.Value.Factor);
         }
     }
 }