private bool PlayerIsPred() { if (!playerIsPred.HasValue) { playerIsPred = pred.CompareTag(PlayerMain.GetPlayer.tag); } return(playerIsPred.Value); }
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); } } }