Properly inherit genes from parents and copy to identical twins

This commit is contained in:
lutepickle 2022-10-24 16:53:54 -07:00
parent 523facc980
commit 5888458c46
1 changed files with 4 additions and 16 deletions

View File

@ -411,12 +411,12 @@ namespace RJW_Menstruation
allowFood: false,
allowAddictions: false,
relationWithExtraPawnChanceFactor: 0,
//fixedMelanin: melanin,
fixedLastName: lastname,
kind: BabyPawnKindDecider(mother, father),
//fixedIdeo: mother.Ideo,
forbidAnyTitle: true,
forceNoBackstory: true
forceNoBackstory: true,
forcedEndogenes: PregnancyUtility.GetInheritedGenes(father, mother)
);
int division = 1;
@ -435,17 +435,7 @@ namespace RJW_Menstruation
{
firstbaby = baby;
request.FixedGender = baby.gender;
if (baby.story != null)
{
// firstheadpath = (string)baby.story.GetMemberValue("headGraphicPath");
// if (firstheadpath == null)
// {
// Graphic_Multi head = GraphicDatabaseHeadRecords.GetHeadRandom(baby.gender, baby.story.SkinColor, baby.story.crownType, true);
// if (head != null) baby.story.SetMemberValue("headGraphicPath", head.GraphicPath);
// firstheadpath = (string)baby.story.GetMemberValue("headGraphicPath");
// }
}
request.ForcedEndogenes = baby.genes?.Endogenes.Select(gene => gene.def).ToList();
}
else
{
@ -453,11 +443,9 @@ namespace RJW_Menstruation
if (baby.story != null)
{
baby.story.headType = firstbaby.story.headType;
baby.story.hairDef = firstbaby.story.hairDef;
//baby.story.hairColor = firstbaby.story.hairColor;
baby.story.bodyType = firstbaby.story.bodyType;
//baby.story.crownType = firstbaby.story.crownType;
//baby.story.SetMemberValue("headGraphicPath", firstheadpath);
}
if (baby.IsHAR())