Esempio n. 1
0
 public void EndDay()
 {
     if (crop == null)
     {
         return;
     }
     //Executing end of turn effects
     foreach (var effect in statusEffects)
     {
         effect.Turns--;
         effect.OnEndTurn(this);
     }
     statusEffects.RemoveAll(effect => effect.Turns <= 0);// removing any effects that shouldn't be active anymore.
     crop.EndDay();
 }