mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Somehow OvaryPowerThreshold can end up as 0 and cause errors, so be sure to make it minimum 1
This commit is contained in:
		
							parent
							
								
									03f511fa02
								
							
						
					
					
						commit
						483ab2f7c0
					
				
					 3 changed files with 2 additions and 1 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -166,7 +166,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            get
 | 
					            get
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                if (opcache >= 0) return opcache;
 | 
					                if (opcache > 0) return opcache;
 | 
				
			||||||
                float avglittersize;
 | 
					                float avglittersize;
 | 
				
			||||||
                try
 | 
					                try
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
| 
						 | 
					@ -182,6 +182,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
                    avglittersize *
 | 
					                    avglittersize *
 | 
				
			||||||
                    yearsBeforeMenopause *
 | 
					                    yearsBeforeMenopause *
 | 
				
			||||||
                    (Pawn.def.race.lifeExpectancy / ThingDefOf.Human.race.lifeExpectancy));
 | 
					                    (Pawn.def.race.lifeExpectancy / ThingDefOf.Human.race.lifeExpectancy));
 | 
				
			||||||
 | 
					                if (opcache == 0) opcache = 1;
 | 
				
			||||||
                return opcache;
 | 
					                return opcache;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue