Changes

Jump to navigation Jump to search
m
no edit summary
Line 17: Line 17:     
The type of mushroom produced depends on what tree types are nearby it. The game code creates a possible list of mushrooms based on nearby trees then selects one at random from that list.  
 
The type of mushroom produced depends on what tree types are nearby it. The game code creates a possible list of mushrooms based on nearby trees then selects one at random from that list.  
* First the game finds how many fully grown trees are in the 7X7 square around it. That number is multiplied by 3/4 and that many mushrooms are added to the list with a distribution of 5% [[Purple Mushroom|purple]], 14.25% [[Red Mushroom|red]] and 80.75% [[Common Mushroom|common]].   
+
* First the game finds how many trees are in the 7X7 square around it. That number is multiplied by 3/4 and that many mushrooms are added to the list with a distribution of 5% [[Purple Mushroom|purple]], 14.25% [[Red Mushroom|red]] and 80.75% [[Common Mushroom|common]].   
 
* Then, for each fully grown tree another mushroom will be added. If the tree type is [[Oak Tree]] then the mushroom added will always be a [[Morel]]. The same goes for [[Pine Tree]] with [[Chanterelle]], and for [[Mystic Tree]] with [[Purple Mushroom]]. Maple trees have a 10% chance to give [[Purple Mushroom]] and a 90% chance to give [[Red Mushroom]]. If it is none of those types it will use the same distribution as before.
 
* Then, for each fully grown tree another mushroom will be added. If the tree type is [[Oak Tree]] then the mushroom added will always be a [[Morel]]. The same goes for [[Pine Tree]] with [[Chanterelle]], and for [[Mystic Tree]] with [[Purple Mushroom]]. Maple trees have a 10% chance to give [[Purple Mushroom]] and a 90% chance to give [[Red Mushroom]]. If it is none of those types it will use the same distribution as before.
 
* Then a random mushroom is chosen from that list to generate.<ref name="code" />  
 
* Then a random mushroom is chosen from that list to generate.<ref name="code" />  
Line 85: Line 85:  
==References==
 
==References==
 
<references>
 
<references>
     <ref name="code">See <samp>Object::TerrainFeatures</samp> in the game code.</ref>
+
     <ref name="code">See <samp>Object::OutputMushroomLog</samp> in the game code.</ref>
 
</references>
 
</references>
  
280

edits

Navigation menu