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) { helper.Events.GameLoop.Saving += this.OnSaving; } /********* ** Private methods *********/ /// Raised before the game begins writes data to the save file (except the initial save creation). /// The event sender. /// The event arguments. public void OnSaving(object sender, SavingEventArgs e) { if (Game1.IsFall && Game1.dayOfMonth == 27) Game1.weatherForTomorrow = Game1.weather_snow; } } }