mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Resolve graphics on all newly generated babies, not just the first of a set
This commit is contained in:
		
							parent
							
								
									7d8228e03a
								
							
						
					
					
						commit
						b9bfad10bb
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
					@ -94,11 +94,11 @@ namespace RJW_Menstruation
 | 
				
			||||||
                Pawn baby = PawnGenerator.GeneratePawn(request);
 | 
					                Pawn baby = PawnGenerator.GeneratePawn(request);
 | 
				
			||||||
                if (baby == null) break;
 | 
					                if (baby == null) break;
 | 
				
			||||||
                PregnancyCommon.SetupBabyXenotype(mother, father, baby);    // Probably redundant with Biotech post-birth xenotyping
 | 
					                PregnancyCommon.SetupBabyXenotype(mother, father, baby);    // Probably redundant with Biotech post-birth xenotyping
 | 
				
			||||||
 | 
					                baby.Drawer.renderer.graphics.ResolveAllGraphics();
 | 
				
			||||||
                if (division > 1)
 | 
					                if (division > 1)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    if (i == 0)
 | 
					                    if (i == 0)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        baby.Drawer.renderer.graphics.ResolveAllGraphics();
 | 
					 | 
				
			||||||
                        firstbaby = baby;
 | 
					                        firstbaby = baby;
 | 
				
			||||||
                        request.FixedGender = baby.gender;
 | 
					                        request.FixedGender = baby.gender;
 | 
				
			||||||
                        request.ForcedEndogenes = baby.genes?.Endogenes.Select(gene => gene.def).ToList();
 | 
					                        request.ForcedEndogenes = baby.genes?.Endogenes.Select(gene => gene.def).ToList();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -331,13 +331,14 @@ namespace RJW_Menstruation
 | 
				
			||||||
                Pawn baby = GenerateBaby(request, mother, father, parentTraits, traitSeed);
 | 
					                Pawn baby = GenerateBaby(request, mother, father, parentTraits, traitSeed);
 | 
				
			||||||
                if (baby == null) break;
 | 
					                if (baby == null) break;
 | 
				
			||||||
                PregnancyCommon.SetupBabyXenotype(mother, father, baby);
 | 
					                PregnancyCommon.SetupBabyXenotype(mother, father, baby);
 | 
				
			||||||
 | 
					                // HAR and some xenotype mods don't randomize graphics until it's rendered
 | 
				
			||||||
 | 
					                // So poke it early
 | 
				
			||||||
 | 
					                baby.Drawer.renderer.graphics.ResolveAllGraphics();
 | 
				
			||||||
                if (division > 1)
 | 
					                if (division > 1)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    if (i == 0)
 | 
					                    if (i == 0)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        // HAR and some xenotype mods don't randomize graphics until it's rendered
 | 
					
 | 
				
			||||||
                        // So poke it early
 | 
					 | 
				
			||||||
                        baby.Drawer.renderer.graphics.ResolveAllGraphics();
 | 
					 | 
				
			||||||
                        firstbaby = baby;
 | 
					                        firstbaby = baby;
 | 
				
			||||||
                        request.FixedGender = baby.gender;
 | 
					                        request.FixedGender = baby.gender;
 | 
				
			||||||
                        request.ForcedEndogenes = baby.genes?.Endogenes.Select(gene => gene.def).ToList();                        
 | 
					                        request.ForcedEndogenes = baby.genes?.Endogenes.Select(gene => gene.def).ToList();                        
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue