Changes

no edit summary
Line 28: Line 28:  
[[User:Ikako|Ikako]] ([[User talk:Ikako|talk]]) 21:24, 9 April 2024 (UTC)
 
[[User:Ikako|Ikako]] ([[User talk:Ikako|talk]]) 21:24, 9 April 2024 (UTC)
 
:Thanks, but images with English only are no good, as the wiki exists in 12 languages. Once you feel you are certain that the layout is optimized, you can upload an image like the black & white ones you see on the [[Greenhouse]] page, under "Sprinklers". Please make sure it has a descriptive file name at that time. Thanks! [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 19:11, 10 April 2024 (UTC)
 
:Thanks, but images with English only are no good, as the wiki exists in 12 languages. Once you feel you are certain that the layout is optimized, you can upload an image like the black & white ones you see on the [[Greenhouse]] page, under "Sprinklers". Please make sure it has a descriptive file name at that time. Thanks! [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 19:11, 10 April 2024 (UTC)
 +
 +
== Quantity ==
 +
 +
I'm trying to calculate expected profits for mushroom logs, so I looked at the game code, and in particular the random number used to generate the quantity of mushrooms. The wiki says it's "a random number between 0.5 and 1.5". The game code uses "Game1.random.Next(1, 3) * (nearbyTrees.Count / 2)". Looking up the definition, the documentation of Next(int minValue, int maxValue) gives us: "A 32-bit signed integer greater than or equal to minValue and less than maxValue; that is, the range of return values includes minValue but not maxValue." So it's exclusive and generates one of two integers: either 1 or 2. Meaning the random number would be 0.5 or 1, with a 50% chance of either one happening. Could someone double check me? This is the first time I'm reading C# and I also don't understand why "Game1.random.Next(1, 3) * (nearbyTrees.Count / 2)" would always be an integer. [[User:Lc-hobby|Lc-hobby]] ([[User talk:Lc-hobby|talk]]) 13:03, 16 April 2024 (UTC)
2

edits