Changes

4 bytes added ,  18:48, 4 November 2021
m
Text replacement - "tt>" to "samp>"
Line 12: Line 12:     
::Thanks for the response! Yeah I can try to edit it. I wanted to double check if the in-game formulas are correct as stated on the page, but I'm not sure how to go about doing that. If they are, I can share what I have. [[User:APost-It|APost-It]] ([[User talk:APost-It|talk]]) 01:36, 8 September 2021 (UTC)
 
::Thanks for the response! Yeah I can try to edit it. I wanted to double check if the in-game formulas are correct as stated on the page, but I'm not sure how to go about doing that. If they are, I can share what I have. [[User:APost-It|APost-It]] ([[User talk:APost-It|talk]]) 01:36, 8 September 2021 (UTC)
:::I added a code reference (it should have been done long ago, I'm so glad you asked about this subject!) -- the formula can be found in <tt>StardewValley.Crop::harvest</tt>. For your convenience, I believe the relevant portion, copied from the v1.5 code, is:
+
:::I added a code reference (it should have been done long ago, I'm so glad you asked about this subject!) -- the formula can be found in <samp>StardewValley.Crop::harvest</samp>. For your convenience, I believe the relevant portion, copied from the v1.5 code, is:
 
:::<syntaxhighlight lang="C#">
 
:::<syntaxhighlight lang="C#">
 
double chanceForGoldQuality = 0.2 * ((double)Game1.player.FarmingLevel / 10.0) + 0.2 * (double)fertilizerQualityLevel * (((double)Game1.player.FarmingLevel + 2.0) / 12.0) + 0.01;
 
double chanceForGoldQuality = 0.2 * ((double)Game1.player.FarmingLevel / 10.0) + 0.2 * (double)fertilizerQualityLevel * (((double)Game1.player.FarmingLevel + 2.0) / 12.0) + 0.01;
106,017

edits