Changes

Jump to navigation Jump to search
2,316 bytes added ,  17:35, 8 September 2020
Tiller details, see discussion at Talk:Farming#Tiller_Price_Bonuses
Line 1: Line 1:  
Below is a list of '''fruits''' from the game, where to obtain them and how much they sell for when processed into [[Jellies and Pickles|Jelly]] using the [[Preserves Jar]], or into [[Wine]] using the [[Keg]].
 
Below is a list of '''fruits''' from the game, where to obtain them and how much they sell for when processed into [[Jellies and Pickles|Jelly]] using the [[Preserves Jar]], or into [[Wine]] using the [[Keg]].
+
 
Note that [[Foraging|Foraged]] items, with the exception of [[Grape]]s, are not affected by the [[Farming#Farming Skill|Tiller Profession]] bonus as they do not count as [[Crops|crops]].
+
Whether or not fruit benefits from the +10% [[Tiller]] profession price bonus depends upon whether or not the specific fruit was obtained by foraging, although [[#Tiller Profession Details|the details]] can become complex.
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
!Image
 
!Image
Line 257: Line 257:  
|-
 
|-
 
|}
 
|}
 +
 +
==Tiller Profession Details==
 +
Internally, the game tracks whether fruit came from a foraging or non-foraging source, and uses this internal information to determine whether or not the fruit should get the +10% [[Tiller]] profession bonus when sold.<ref name="tiller"/>
 +
 +
Sources that are considered to be foraging are:
 +
* Wild-grown fruit that randomly spawns throughout Stardew Valley, as detailed at [[Foraging#Foraged Items|Foraged Items]] and [[Foraging#Spawning|Spawning]].
 +
* Fruit grown from any of the four varieties of [[Wild Seeds]].
 +
* All fruit found in the [[Cave|Farm Cave]] -- including [[Fruit Tree]] fruit that otherwise is not considered to be foraged.
 +
 +
All other sources are considered to be non-foraging, including (but not limited to):
 +
* Fruit grown from standard seeds (e.g., [[Grape]]s from [[Grape Starter]])
 +
* Fruit collected from trees.
 +
* Fruit sent in the mail as a gift.
 +
* Fruit purchased from the [[Oasis]].
 +
* [[Blackberry|Blackberries]] and [[Salmonberry|Salmonberries]] harvested from bushes.
 +
 +
If the player has both foraged and non-foraged fruit of the same quality, stacking the items together always results in non-foraged fruit: the Tiller bonus will apply to the entire stack of fruit.<ref name="stacks"/>
 +
 +
==References==
 +
<references>
 +
<ref name="tiller">The tiller bonus does not apply to fruit where the <tt>isSpawnedObject</tt> flag is set, see code in <tt>Object::getPriceAfterMultipliers</tt>. This flag is added to wild foraged items in <tt>GameLocation::dropObject</tt> and <tt>GameLocation:spawnObjects</tt>; to crops grown from wild seeds in <tt>Crop::newDay</tt>; and, to Farm Cave fruit in <tt>FarmCave::dayUpdate</tt>. Other sources do not get the flag, including notably berries from bushes in <tt>Bush::shake</tt>.</ref>
 +
<ref name="stacks">The code in <tt>Object:addToStack</tt> was changed in v1.4 to ensure <tt>isSpawnedObject</tt> is set to false whenever two mixed stacks are combined, i.e., that the Tiller bonus applies if either stack originally had it. Note that this code change will not retroactively fix data in games started pre-v1.4, where the Tiller bonus could be lost depending upon stacks were combined.</ref>
 +
</references>
    
==History==
 
==History==
{{history|1.4|Changed [[Wild Plum]] category from Forage to Fruit in Brazilian-Portugese, Chinese, German, Japanese, Spanish, and Russian.}}
+
{{history|1.4|Changed [[Wild Plum]] category from Forage to Fruit in Brazilian-Portugese, Chinese, German, Japanese, Spanish, and Russian. Fixed how Tiller bonus applies when foraged and non-foraged fruit are combined in one stack.}}
    
[[Category:Crops| ]]
 
[[Category:Crops| ]]

Navigation menu