mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Don't let an egg implant if the father is destroyed
This commit is contained in:
		
							parent
							
								
									0004822059
								
							
						
					
					
						commit
						374a43c6e5
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -1383,9 +1383,9 @@ namespace RJW_Menstruation
 | 
				
			||||||
                    egg.ticksSinceFertilization < minImplantAgeHours * GenDate.TicksPerHour ||
 | 
					                    egg.ticksSinceFertilization < minImplantAgeHours * GenDate.TicksPerHour ||
 | 
				
			||||||
                    egg.ageTicks < Math.Min(Props.lutealIntervalDays * GenDate.TicksPerDay / 2, maxImplantDelayHours * GenDate.TicksPerHour))
 | 
					                    egg.ageTicks < Math.Min(Props.lutealIntervalDays * GenDate.TicksPerDay / 2, maxImplantDelayHours * GenDate.TicksPerHour))
 | 
				
			||||||
                    continue;
 | 
					                    continue;
 | 
				
			||||||
                else if (egg.fertilizer == null)
 | 
					                else if (egg.fertilizer == null || egg.fertilizer.Destroyed)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    if (Configurations.Debug) Log.Message($"Could not implant {Pawn}'s egg due to null father");
 | 
					                    if (Configurations.Debug) Log.Message($"Could not implant {Pawn}'s egg due to null or destroyed father");
 | 
				
			||||||
                    deadeggs.Add(egg);
 | 
					                    deadeggs.Add(egg);
 | 
				
			||||||
                    continue;
 | 
					                    continue;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue