mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Refactor InfertileAction
This commit is contained in:
		
							parent
							
								
									441ee1de48
								
							
						
					
					
						commit
						0a24b5556f
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		| 
						 | 
					@ -1793,14 +1793,11 @@ namespace RJW_Menstruation
 | 
				
			||||||
        protected virtual void InfertileAction()
 | 
					        protected virtual void InfertileAction()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (ShouldBeInfertile())
 | 
					            if (ShouldBeInfertile())
 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                StayCurrentStageConst(Stage.Infertile);
 | 
					                StayCurrentStageConst(Stage.Infertile);
 | 
				
			||||||
            }
 | 
					            else if (IsBreedingSeason())
 | 
				
			||||||
 | 
					                GoNextStage(Stage.Follicular);
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
            {
 | 
					                GoNextStage(Stage.Anestrus);
 | 
				
			||||||
                bool breedingSeason = IsBreedingSeason();
 | 
					 | 
				
			||||||
                GoNextStage(breedingSeason ? Stage.Follicular : Stage.Anestrus, breedingSeason ? (int?)null : 0);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        protected virtual void AnestrusAction()
 | 
					        protected virtual void AnestrusAction()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue