mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Test for Biotech and only set xenotype if it's not null
This commit is contained in:
		
							parent
							
								
									ea1c5794f9
								
							
						
					
					
						commit
						040ea6e672
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -444,9 +444,10 @@ namespace RJW_Menstruation
 | 
			
		|||
                            baby.genes.xenotypeName = mother.genes.xenotypeName;
 | 
			
		||||
                            baby.genes.iconDef = mother.genes.iconDef;
 | 
			
		||||
                        }
 | 
			
		||||
                        if (baby.genes != null)
 | 
			
		||||
                        if (baby.genes != null && ModsConfig.BiotechActive)
 | 
			
		||||
                        {
 | 
			
		||||
                            baby.genes.SetXenotypeDirect(BabyXenoTypeDecider(mother, father, out bool hybridBaby));
 | 
			
		||||
                            XenotypeDef xenoTypeDef = BabyXenoTypeDecider(mother, father, out bool hybridBaby);
 | 
			
		||||
                            if (xenoTypeDef != null) baby.genes.SetXenotypeDirect(xenoTypeDef);
 | 
			
		||||
                            if(hybridBaby)
 | 
			
		||||
                            {
 | 
			
		||||
                                baby.genes.hybrid = true;
 | 
			
		||||
| 
						 | 
				
			
			@ -465,7 +466,7 @@ namespace RJW_Menstruation
 | 
			
		|||
                            baby.story.bodyType = firstbaby.story.bodyType;
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        if (baby.genes != null)
 | 
			
		||||
                        if (baby.genes != null && ModsConfig.BiotechActive)
 | 
			
		||||
                        {
 | 
			
		||||
                            baby.genes.SetXenotypeDirect(firstbaby.genes.Xenotype);
 | 
			
		||||
                            baby.genes.xenotypeName = firstbaby.genes.xenotypeName;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue