mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	One less magic number in OvaryPowerThreshold
This commit is contained in:
		
							parent
							
								
									afe603058e
								
							
						
					
					
						commit
						5c8fe83399
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -139,7 +139,6 @@ namespace RJW_Menstruation
 | 
			
		|||
            get
 | 
			
		||||
            {
 | 
			
		||||
                if (opcache >= 0) return opcache;
 | 
			
		||||
                // Climacteric will set in 6 (human) years before egg exhaustion
 | 
			
		||||
                float avglittersize;
 | 
			
		||||
                try
 | 
			
		||||
                {
 | 
			
		||||
| 
						 | 
				
			
			@ -150,9 +149,10 @@ namespace RJW_Menstruation
 | 
			
		|||
                    // Any exceptions in that will have been reported elsewhere in the code by now
 | 
			
		||||
                    avglittersize = 1.0f;
 | 
			
		||||
                };
 | 
			
		||||
                const float yearsBeforeMenopause = 6.0f;
 | 
			
		||||
                opcache = (int)(RaceCyclesPerYear() *
 | 
			
		||||
                    avglittersize *
 | 
			
		||||
                    6f *
 | 
			
		||||
                    yearsBeforeMenopause *
 | 
			
		||||
                    (Pawn.def.race.lifeExpectancy / ThingDefOf.Human.race.lifeExpectancy));
 | 
			
		||||
                return opcache;
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue