From 889e8f90f2a81461fd56d61f9e19ca1ca89d62cb Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Wed, 16 Nov 2022 19:19:18 -0800 Subject: [PATCH] Remove obsolete melanin references --- .../Hediff_MultiplePregnancy.cs | 28 ++----------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs index e7c91dc..32c0fb4 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs @@ -378,31 +378,10 @@ namespace RJW_Menstruation public bool AddNewBaby(Pawn mother, Pawn father) { - //float melanin; string lastname; - if (xxx.is_human(mother)) - { - if (xxx.is_human(father)) - { - //melanin = ChildRelationUtility.GetRandomChildSkinColor(father.story?.melanin ?? 0f, mother.story?.melanin ?? 0f); - //melanin = (mother.story?.melanin ?? 0f + father.story?.melanin ?? 0f) / 2; - } - else - { - //melanin = mother.story?.melanin ?? 0f; - } - lastname = NameTriple.FromString(mother.Name.ToStringFull).Last; - } - else if (xxx.is_human(father)) - { - //melanin = father.story?.melanin ?? 0f; - lastname = NameTriple.FromString(father.Name.ToStringFull).Last; - } - else - { - //melanin = Rand.Range(0, 1.0f); - lastname = ""; - } + if (xxx.is_human(mother)) lastname = NameTriple.FromString(mother.Name.ToStringFull).Last; + else if (xxx.is_human(father)) lastname = NameTriple.FromString(father.Name.ToStringFull).Last; + else lastname = ""; PawnGenerationRequest request = new PawnGenerationRequest( developmentalStages: DevelopmentalStage.Newborn, @@ -424,7 +403,6 @@ namespace RJW_Menstruation int division = 1; Pawn firstbaby = null; - //string firstheadpath = null; int traitSeed = Rand.Int; List parentTraits = GetInheritableTraits(mother, father); while (Rand.Chance(Configurations.EnzygoticTwinsChance) && division < Configurations.MaxEnzygoticTwins) division++;