Fertilized eggs never decay
This commit is contained in:
parent
5e164b74df
commit
983e112edd
|
@ -913,7 +913,6 @@ namespace RJW_Menstruation
|
|||
if (egg.fertilizer != null)
|
||||
{
|
||||
egg.fertilized = true;
|
||||
egg.lifespanhrs += 240;
|
||||
onefertilized = true;
|
||||
}
|
||||
}
|
||||
|
@ -1300,10 +1299,13 @@ namespace RJW_Menstruation
|
|||
List<Egg> deadeggs = new List<Egg>();
|
||||
foreach (Egg egg in eggs)
|
||||
{
|
||||
egg.lifespanhrs -= Configurations.CycleAcceleration;
|
||||
egg.position += Configurations.CycleAcceleration;
|
||||
if (egg.lifespanhrs < 0) deadeggs.Add(egg);
|
||||
if (egg.fertilized) egg.fertstage += Configurations.CycleAcceleration;
|
||||
else
|
||||
{
|
||||
egg.lifespanhrs -= Configurations.CycleAcceleration;
|
||||
if (egg.lifespanhrs < 0) deadeggs.Add(egg);
|
||||
}
|
||||
}
|
||||
if (!deadeggs.NullOrEmpty())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue