Пример #1
0
 /**
  * Get a random hair color using two parents
  */
 public static Color EyeColor(Character parent1, Character parent2) => Blender.AreAdopters(parent1, parent2) ? Blender.NaturalEyeColor() : Blender.GetEyeColor(parent1).Blend(Blender.GetEyeColor(parent2));
Пример #2
0
 /**
  * If two Parents (Farmer, NPC) or (Farmer, Farmer) are the same sex
  */
 public static bool AreAdopters(Character parent1, Character parent2)
 {
     return(Blender.GetSex(parent1) == Blender.GetSex(parent2));
 }