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

View file

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