private void GameLoop_DayEnding(object sender, DayEndingEventArgs e) { int cropCount = OurMoon.HandleMoonAtSleep(Game1.getFarm(), Monitor); if (cropCount != 0) { if (OurMoon.CurrentPhase() == MoonPhase.NewMoon) { queuedMsg = new TCHUDMessage(Helper.Translation.Get("moon-text.newmoon_eff", new { cropsAffected = cropCount }), OurMoon.CurrentPhase()); } if (OurMoon.CurrentPhase() == MoonPhase.FullMoon) { queuedMsg = new TCHUDMessage(Helper.Translation.Get("moon-text.fullmoon_eff", new { cropsAffected = cropCount }), OurMoon.CurrentPhase()); } } OurMoon.DayEnding(); }