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++;