using System;
using StardewModdingAPI;
using StardewModdingAPI.Events;
using StardewValley;
namespace Omegasis.Fall28SnowDay
{
/// The mod entry point.
public class Fall28SnowDay : Mod
{
/*********
** Public methods
*********/
/// The mod entry point, called after the mod is first loaded.
/// Provides simplified APIs for writing mods.
public override void Entry(IModHelper helper)
{
SaveEvents.BeforeSave += this.SaveEvents_BeforeSave;
}
/*********
** Private methods
*********/
/// The method invoked just before the game saves.
/// The event sender.
/// The event data.
public void SaveEvents_BeforeSave(object sender, EventArgs e)
{
if (Game1.IsFall && Game1.dayOfMonth == 27)
Game1.weatherForTomorrow = Game1.weather_snow;
}
}
}