Changes

Jump to navigation Jump to search
226 bytes added ,  17:52, 14 March 2022
simplify base_chance formula, correct to result in a decimal, and add code reference
Line 493: Line 493:  
Any produced items are collected by clicking on the fish pond. Uncollected items only persist to the next day if new items are not produced; otherwise the new items replace the uncollected items. Collecting an item grants [[Fishing]] XP according to <code>XP = 10  + (0.04 &times; the sell price of the item)</code>
 
Any produced items are collected by clicking on the fish pond. Uncollected items only persist to the next day if new items are not produced; otherwise the new items replace the uncollected items. Collecting an item grants [[Fishing]] XP according to <code>XP = 10  + (0.04 &times; the sell price of the item)</code>
   −
The base chance that an item is possible ranges from 23% to 95% (<code>base_chance = 15 + 8 &times; population of pond</code>). Empty ponds never produce items. The game then selects which item will appear, based on the fish species and population. The item-selection can produce no item (especially at low populations), meaning that the overall daily item chance may be much lower than the base 23-95% value.
+
The base chance that an item is possible ranges from 23% to 95% (<code>base_chance = (population of pond &times; 0.08) + 0.15</code>)<ref name="base_chance"/>. Empty ponds never produce items. The game then selects which item will appear, based on the fish species and population. The item-selection can produce no item (especially at low populations), meaning that the overall daily item chance may be much lower than the base 23-95% value.
    
The table below shows all possible fish pond products, along with the required fish pond population for the item to be possible. The column "% of Items" provides each item's chance as a fraction of all items produced by the pond<ref name="item_chance"/>. The column "Overall Daily Chance" is the chance of the item appearing on a given day, obtained by multiplying the base chance (23-95%) by the "% of Items".  Both chances may vary depending upon the fish pond population, as may the possible counts of a given item.  More details on all item chances are provided on each individual fish page.
 
The table below shows all possible fish pond products, along with the required fish pond population for the item to be possible. The column "% of Items" provides each item's chance as a fraction of all items produced by the pond<ref name="item_chance"/>. The column "Overall Daily Chance" is the chance of the item appearing on a given day, obtained by multiplying the base chance (23-95%) by the "% of Items".  Both chances may vary depending upon the fish pond population, as may the possible counts of a given item.  More details on all item chances are provided on each individual fish page.
Line 1,011: Line 1,011:  
==References==
 
==References==
 
<references>
 
<references>
 +
<ref name="base_chance">See StardewValley::Buildings::FishPond.dayUpdate; Calls StardewValley::Utility.Lerp resulting in the formula <code>0.15 + (population / 10) * (0.95 - 0.15)</code>.</ref>
 
<ref name="item_chance">The raw item production chances are provided by [[Modding:Fish Pond data|FishPondData.xnb]], which contains multiple population-dependent entries that are processed in order from top to bottom. The first entry that is valid for the current population and passes its random chance check is the produced item.  If no entries pass, no item is produced. The raw entries have been processed and summed to determine the chance for each item to be generated; the results are provided in the "% of Items" column.</ref>
 
<ref name="item_chance">The raw item production chances are provided by [[Modding:Fish Pond data|FishPondData.xnb]], which contains multiple population-dependent entries that are processed in order from top to bottom. The first entry that is valid for the current population and passes its random chance check is the produced item.  If no entries pass, no item is produced. The raw entries have been processed and summed to determine the chance for each item to be generated; the results are provided in the "% of Items" column.</ref>
 
</references>
 
</references>

Navigation menu