mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Eggs implant at half luteal or 30 days, whichever comes first.
This commit is contained in:
		
							parent
							
								
									a1250f4141
								
							
						
					
					
						commit
						60a842fd2b
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -66,6 +66,8 @@ namespace RJW_Menstruation
 | 
			
		|||
        //const int ovarypowerthreshold = 72;
 | 
			
		||||
 | 
			
		||||
        public const int tickInterval = GenDate.TicksPerHour;
 | 
			
		||||
        public const int maxImplantDelayDays = 30;
 | 
			
		||||
        public const int minImplantAgeHours = 72;
 | 
			
		||||
        public CompProperties_Menstruation Props;
 | 
			
		||||
        public Stage curStage = Stage.Follicular;
 | 
			
		||||
        public int curStageHrs = 0;
 | 
			
		||||
| 
						 | 
				
			
			@ -1152,7 +1154,10 @@ namespace RJW_Menstruation
 | 
			
		|||
                bool pregnant = false;
 | 
			
		||||
                foreach (Egg egg in eggs)
 | 
			
		||||
                {
 | 
			
		||||
                    if (!egg.fertilized || egg.fertstage < 168) continue;
 | 
			
		||||
                    if (!egg.fertilized ||
 | 
			
		||||
                        egg.fertstage < minImplantAgeHours ||
 | 
			
		||||
                        egg.position < Math.Min(Props.lutealIntervalDays / 2, maxImplantDelayDays) * 24)
 | 
			
		||||
                        continue;
 | 
			
		||||
                    else if (egg.fertilizer is null)
 | 
			
		||||
                    {
 | 
			
		||||
                        deadeggs.Add(egg);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue