Esempio n. 1
0
 /// <summary>Raised after a player warps to a new location.</summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnWarped(object sender, WarpedEventArgs e)
 {
     if (e.IsLocalPlayer && e.NewLocation is Farm && Game1.timeOfDay < 2400 && Context.IsWorldReady)
     {
         harvestableNotification.CheckHarvestsOnFarm();
         productionNotification.CheckProductionAroundFarm(Helper.Translation);
     }
 }
Esempio n. 2
0
 private void ReceiveCurrentLocationChanged(object sender, EventArgsCurrentLocationChanged e)
 {
     if (!e.NewLocation.name.Equals(Constants.FARM) || Game1.timeOfDay == 2400)
     {
         return;
     }
     harvestableNotification.CheckHarvestsOnFarm();
     productionNotification.CheckProductionAroundFarm();
 }