Changes

Jump to navigation Jump to search
4 bytes added ,  01:14, 8 November 2021
no edit summary
Line 388: Line 388:  
<references>
 
<references>
 
<ref name="tiller">The tiller bonus does not apply to fruit where the <samp>isSpawnedObject</samp> flag is set, see code in <samp>Object::getPriceAfterMultipliers</samp>. This flag is added to wild foraged items in <samp>GameLocation::dropObject</samp> and <samp>GameLocation:spawnObjects</samp>; to crops grown from wild seeds in <samp>Crop::newDay</samp>; and, to Farm Cave fruit in <samp>FarmCave::dayUpdate</samp>. Other sources do not get the flag, including notably berries from bushes in <samp>Bush::shake</samp>.</ref>
 
<ref name="tiller">The tiller bonus does not apply to fruit where the <samp>isSpawnedObject</samp> flag is set, see code in <samp>Object::getPriceAfterMultipliers</samp>. This flag is added to wild foraged items in <samp>GameLocation::dropObject</samp> and <samp>GameLocation:spawnObjects</samp>; to crops grown from wild seeds in <samp>Crop::newDay</samp>; and, to Farm Cave fruit in <samp>FarmCave::dayUpdate</samp>. Other sources do not get the flag, including notably berries from bushes in <samp>Bush::shake</samp>.</ref>
<ref name="stacks">The code in <samp>Object:addToStack</samp> was changed in v1.4 to ensure <samp>isSpawnedObject</samp> 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>
+
<ref name="stacks">The code in <samp>Object:addToStack</samp> was changed in v1.4 to ensure <samp>isSpawnedObject</samp> 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>
 
</references>
  
105,662

edits

Navigation menu