mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Properly inherit genes from parents and copy to identical twins
This commit is contained in:
		
							parent
							
								
									523facc980
								
							
						
					
					
						commit
						5888458c46
					
				
					 1 changed files with 4 additions and 16 deletions
				
			
		| 
						 | 
					@ -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())
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue