예제 #1
0
 public int GetCostToTake(Character c)
 {
     int cost = 0;
     foreach (var a in Adversions)
     {
         if (c.HasTrait(a.TraitId))
             cost += a.Cost;
     }
     return cost;
 }
예제 #2
0
 public int GetCostToAvoid(Character c)
 {
     int cost = 0;
     foreach(var d in Desires)
     {
         if (c.HasTrait(d.TraitId))
             cost += d.Cost;
     }
     return cost;
 }