mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	FertilizationCheck doesn't need to return anything
This commit is contained in:
		
							parent
							
								
									60a842fd2b
								
							
						
					
					
						commit
						805b7afa81
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		| 
						 | 
					@ -904,23 +904,19 @@ namespace RJW_Menstruation
 | 
				
			||||||
        /// Fertilize eggs and return the result
 | 
					        /// Fertilize eggs and return the result
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        /// <returns></returns>
 | 
					        /// <returns></returns>
 | 
				
			||||||
        protected bool FertilizationCheck()
 | 
					        protected void FertilizationCheck()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (!eggs.NullOrEmpty())
 | 
					            if (!eggs.NullOrEmpty())
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                bool onefertilized = false;
 | 
					 | 
				
			||||||
                foreach (Egg egg in eggs)
 | 
					                foreach (Egg egg in eggs)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    if (!egg.fertilized) egg.fertilizer = Fertilize();
 | 
					                    if (!egg.fertilized) egg.fertilizer = Fertilize();
 | 
				
			||||||
                    if (egg.fertilizer != null)
 | 
					                    if (egg.fertilizer != null)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        egg.fertilized = true;
 | 
					                        egg.fertilized = true;
 | 
				
			||||||
                        onefertilized = true;
 | 
					 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                return onefertilized;
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else return false;
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public void Initialize()
 | 
					        public void Initialize()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue