Exemplo n.º 1
0
 private bool PlayerIsPred()
 {
     if (!playerIsPred.HasValue)
     {
         playerIsPred = pred.CompareTag(PlayerMain.GetPlayer.tag);
     }
     return(playerIsPred.Value);
 }
Exemplo n.º 2
0
 public static void GrowFetuses(this BasicChar mother)
 {
     foreach (V****a v in mother.SexualOrgans.Vaginas.FindAll(v => v.Womb.HasFetus))
     {
         PregnancySystem pregnancySystem = mother.PregnancySystem;
         if (v.Womb.Grow(pregnancySystem.FinalGrowthRate))
         {
             List <Child> born = v.Womb.GiveBirth();
             pregnancySystem.Children.AddRange(born);
             mother.Events.SoloEvents.IGiveBirth(born);
             string amount  = born.Count > 1 ? $"a pair of twins babies" : "one baby"; // TODO add more
             string addText = mother.CompareTag(PlayerMain.GetPlayer.tag)
                 ? $"You have given birth to {amount}."
                 : $"{mother.Identity.FullName} has given birth to {amount}";
             EventLog.AddTo(addText);
         }
     }
 }