mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Fertilized eggs never decay
This commit is contained in:
		
							parent
							
								
									5e164b74df
								
							
						
					
					
						commit
						983e112edd
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
					@ -913,7 +913,6 @@ namespace RJW_Menstruation
 | 
				
			||||||
                    if (egg.fertilizer != null)
 | 
					                    if (egg.fertilizer != null)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        egg.fertilized = true;
 | 
					                        egg.fertilized = true;
 | 
				
			||||||
                        egg.lifespanhrs += 240;
 | 
					 | 
				
			||||||
                        onefertilized = true;
 | 
					                        onefertilized = true;
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
| 
						 | 
					@ -1300,10 +1299,13 @@ namespace RJW_Menstruation
 | 
				
			||||||
            List<Egg> deadeggs = new List<Egg>();
 | 
					            List<Egg> deadeggs = new List<Egg>();
 | 
				
			||||||
            foreach (Egg egg in eggs)
 | 
					            foreach (Egg egg in eggs)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                egg.lifespanhrs -= Configurations.CycleAcceleration;
 | 
					 | 
				
			||||||
                egg.position += Configurations.CycleAcceleration;
 | 
					                egg.position += Configurations.CycleAcceleration;
 | 
				
			||||||
                if (egg.lifespanhrs < 0) deadeggs.Add(egg);
 | 
					 | 
				
			||||||
                if (egg.fertilized) egg.fertstage += Configurations.CycleAcceleration;
 | 
					                if (egg.fertilized) egg.fertstage += Configurations.CycleAcceleration;
 | 
				
			||||||
 | 
					                else
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    egg.lifespanhrs -= Configurations.CycleAcceleration;
 | 
				
			||||||
 | 
					                    if (egg.lifespanhrs < 0) deadeggs.Add(egg);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (!deadeggs.NullOrEmpty())
 | 
					            if (!deadeggs.NullOrEmpty())
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue