Changes

m
→‎Generated weather: update SMAPI event
Line 125: Line 125:     
===Generated weather===
 
===Generated weather===
Weather in Stardew Valley is set within the <tt>Game1::newDayAfterFade()</tt> function (after the day chance code and SMAPI's <tt>TimeEvents::AfterNewDayStarted</tt> event).
+
Weather in Stardew Valley is set within the <tt>Game1::newDayAfterFade()</tt> function (after the day change code, but before SMAPI's <tt>SaveEvents.BeforeSave</tt> event).
    
The game follows these steps to decide which weather and debris to set for the next day:
 
The game follows these steps to decide which weather and debris to set for the next day:
translators
8,404

edits