Changes

Jump to navigation Jump to search
Line 50: Line 50:  
===Game1.player.friendships is obsolete===
 
===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.
 +
 +
To convert old code:
 +
{| class="wikitable"
 +
! old field
 +
! new equivalent
 +
|-
 +
| <code>Game1.friendships[name][0]</code>
 +
| <code>Game1.friendshipData[name].Points</code>
 +
|-
 +
| <code>Game1.friendships[name][1]</code>
 +
| <code>Game1.friendshipData[name].GiftsThisWeek</code>
 +
|-
 +
| <code>Game1.friendships[name][2]</code>
 +
| <code>Game1.friendshipData[name].TalkedToToday</code> (0 → false, 1 → true)
 +
|-
 +
| <code>Game1.friendships[name][3]</code>
 +
| <code>Game1.friendshipData[name].GiftsToday</code> (0 → false, 1 → true)
 +
 +
|}
    
===Texture constructor arguments===
 
===Texture constructor arguments===
translators
8,404

edits

Navigation menu