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) { TimeEvents.DayOfMonthChanged += this.TimeEvents_DayOfMonthChanged; } /********* ** Private methods *********/ /// The method invoked when changes. /// The event sender. /// The event data. public void TimeEvents_DayOfMonthChanged(object sender, EventArgsIntChanged e) { if (Game1.dayOfMonth == 27 && Game1.IsFall) Game1.weatherForTomorrow = Game1.weather_snow; } } }