mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Don't do the initialization check for wombs that don't need to simulate yet (e.g. off-map NPCs).
This commit is contained in:
		
							parent
							
								
									edf98da01d
								
							
						
					
					
						commit
						563bc3c820
					
				
					 2 changed files with 4 additions and 8 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -622,6 +622,8 @@ namespace RJW_Menstruation
 | 
				
			||||||
            // If an exception makes it out, RW will remove the hediff, so catch it here
 | 
					            // If an exception makes it out, RW will remove the hediff, so catch it here
 | 
				
			||||||
            try
 | 
					            try
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
 | 
					                if (!ShouldSimulate()) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                // Initialize immediately if needed, but if there's an error, then don't spam it every tick
 | 
					                // Initialize immediately if needed, but if there's an error, then don't spam it every tick
 | 
				
			||||||
                if (!loaded && !initError)
 | 
					                if (!loaded && !initError)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
| 
						 | 
					@ -629,14 +631,8 @@ namespace RJW_Menstruation
 | 
				
			||||||
                    Initialize();
 | 
					                    Initialize();
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (
 | 
					                if (!Pawn.IsHashIntervalTick(tickInterval)) return;
 | 
				
			||||||
                    !Pawn.IsHashIntervalTick(tickInterval) ||
 | 
					                
 | 
				
			||||||
                    !ShouldSimulate()
 | 
					 | 
				
			||||||
                    )
 | 
					 | 
				
			||||||
                {
 | 
					 | 
				
			||||||
                    return;
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                if (initError) Log.Warning($"Attempting to process {Pawn}'s womb uninitialized");
 | 
					                if (initError) Log.Warning($"Attempting to process {Pawn}'s womb uninitialized");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (Pregnancy != null && curStage != Stage.Pregnant)
 | 
					                if (Pregnancy != null && curStage != Stage.Pregnant)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue