Stardew_Valley_Mods/Stardew Valley Mods-Back to.../Fall 28 Snow Day/Fall28 Snow Day-Project/Fall28 Snow Day/Class1.cs

28 lines
772 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StardewModdingAPI;
using StardewValley;
namespace Fall28_Snow_Day
{
public class Class1:Mod
{
public override void Entry(params object[] objects)
{
StardewModdingAPI.Events.TimeEvents.DayOfMonthChanged += TimeEvents_DayOfMonthChanged;
}
public void TimeEvents_DayOfMonthChanged(object sender, StardewModdingAPI.Events.EventArgsIntChanged e)
{
if (StardewValley.Game1.dayOfMonth == 27 && Game1.IsFall == true)
{
Log.Success("Weather checker now!!!");
Game1.weatherForTomorrow = Game1.weather_snow;
}
}
}
}