mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Tiny refactor to adding stacked eggs to ovulation
This commit is contained in:
		
							parent
							
								
									6ec27b6aba
								
							
						
					
					
						commit
						902cd65375
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -1326,17 +1326,18 @@ namespace RJW_Menstruation
 | 
				
			||||||
            float eggnum;
 | 
					            float eggnum;
 | 
				
			||||||
            try
 | 
					            try
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                eggnum = Rand.ByCurve(parent.pawn.RaceProps.litterSizeCurve) + eggstack;
 | 
					                eggnum = Rand.ByCurve(parent.pawn.RaceProps.litterSizeCurve);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            catch(NullReferenceException)
 | 
					            catch(NullReferenceException)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                eggnum = 1 + eggstack;
 | 
					                eggnum = 1;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            catch(ArgumentException e)
 | 
					            catch(ArgumentException e)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                Log.Warning($"Invalid litterSizeCurve for {parent.pawn.RaceProps}: {e}");
 | 
					                Log.Warning($"Invalid litterSizeCurve for {parent.pawn.RaceProps}: {e}");
 | 
				
			||||||
                eggnum = 1 + eggstack;
 | 
					                eggnum = 1;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            eggnum += eggstack;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            do
 | 
					            do
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue