Changes

Jump to navigation Jump to search
→‎Major changes: + Game1.currentLocation can be null
Line 46: Line 46:  
<tt>Game1.WorldDate</tt> is a new field which provides a more useful way to check the date. This combines the day, season, and year with useful logic like day-of-week and date comparisons. This incorporates many of the features from SMAPI's <tt>SDate</tt> class.
 
<tt>Game1.WorldDate</tt> is a new field which provides a more useful way to check the date. This combines the day, season, and year with useful logic like day-of-week and date comparisons. This incorporates many of the features from SMAPI's <tt>SDate</tt> class.
   −
===Farmer.friendships===
+
===Game1.player.friendships is obsolete===
 
The <tt>Game1.player.friendships</tt> field is always null in Stardew Valley 1.3. Use the new <tt>Game1.player.friendshipData</tt> field instead, which wraps the raw data with a more useful model and more data.
 
The <tt>Game1.player.friendships</tt> field is always null in Stardew Valley 1.3. Use the new <tt>Game1.player.friendshipData</tt> field instead, which wraps the raw data with a more useful model and more data.
 +
 +
===Game1.currentLocation can be null===
 +
The <tt>Game1.currentLocation</tt> field is intermittently null for secondary players in multiplayer mode (e.g. when they transition between locations). Make sure any references to that field can handle it being null.
    
===Texture constructor arguments===
 
===Texture constructor arguments===
translators
8,403

edits

Navigation menu