https://stardewvalleywiki.com/mediawiki/index.php?title=Talk:The_Stardrop_Saloon&feed=atom&action=historyTalk:The Stardrop Saloon - Revision history2024-03-28T21:16:20ZRevision history for this page on the wikiMediaWiki 1.35.1https://stardewvalleywiki.com/mediawiki/index.php?title=Talk:The_Stardrop_Saloon&diff=144104&oldid=prevSpiderkace: Saloon idea update2022-12-13T04:13:56Z<p>Saloon idea update</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 04:13, 13 December 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l96" >Line 96:</td>
<td colspan="2" class="diff-lineno">Line 96:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:I think it would probably take up a huge amount of space, and would be duplicate of the schedule info already on villagers' pages. There's also exceptions to consider (rain, Ginger Island visits, Community Center open/closed, etc.), and I have trouble envisioning that all in compact form that's visually appealing and helpful. </div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:I think it would probably take up a huge amount of space, and would be duplicate of the schedule info already on villagers' pages. There's also exceptions to consider (rain, Ginger Island visits, Community Center open/closed, etc.), and I have trouble envisioning that all in compact form that's visually appealing and helpful. </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:If you want to make a mockup in your user space, it might help give a better idea of how much info there is to present, and how it might look. [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 15:40, 12 December 2022 (UTC)</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:If you want to make a mockup in your user space, it might help give a better idea of how much info there is to present, and how it might look. [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 15:40, 12 December 2022 (UTC)</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">::Sounds good. I'll see if I can finagle something together. Fridays are a great day to give gifts and it's rather inconvenient to guess if someone is at the saloon while you're at the farm. Guess just stock up on shards eh? I'll follow up once I have a better idea. [[User:Spiderkace|Spiderkace]] ([[User talk:Spiderkace|talk]]) 04:13, 13 December 2022 (UTC)</ins></div></td></tr>
</table>Spiderkacehttps://stardewvalleywiki.com/mediawiki/index.php?title=Talk:The_Stardrop_Saloon&diff=144092&oldid=prevMargotbean at 15:40, 12 December 20222022-12-12T15:40:35Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 15:40, 12 December 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l88" >Line 88:</td>
<td colspan="2" class="diff-lineno">Line 88:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Any thoughts on adding a section for a Monday-Sunday Schedule of which villagers are around during each hour of operation? I can put together a Mock example but it'd be like</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Any thoughts on adding a section for a Monday-Sunday Schedule of which villagers are around during each hour of operation? I can put together a Mock example but it'd be like</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><br>.......Emily Shane Willy<br></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><br <ins class="diffchange diffchange-inline">/</ins>>.......Emily Shane Willy<br <ins class="diffchange diffchange-inline">/</ins>></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>12-1.....x......x........<br></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>12-1.....x......x........<br <ins class="diffchange diffchange-inline">/</ins>></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>1-2......................x<br></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>1-2......................x<br <ins class="diffchange diffchange-inline">/</ins>></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>2-3.......x..................</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>2-3.......x..................</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[User:Spiderkace|Spiderkace]] ([[User talk:Spiderkace|talk]]) 21:36, 11 December 2022 (UTC)</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[User:Spiderkace|Spiderkace]] ([[User talk:Spiderkace|talk]]) 21:36, 11 December 2022 (UTC)</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">:I think it would probably take up a huge amount of space, and would be duplicate of the schedule info already on villagers' pages. There's also exceptions to consider (rain, Ginger Island visits, Community Center open/closed, etc.), and I have trouble envisioning that all in compact form that's visually appealing and helpful. </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">:If you want to make a mockup in your user space, it might help give a better idea of how much info there is to present, and how it might look. [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 15:40, 12 December 2022 (UTC)</ins></div></td></tr>
</table>Margotbeanhttps://stardewvalleywiki.com/mediawiki/index.php?title=Talk:The_Stardrop_Saloon&diff=144087&oldid=prevSpiderkace: Additional Content input2022-12-11T21:36:55Z<p>Additional Content input</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 21:36, 11 December 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l84" >Line 84:</td>
<td colspan="2" class="diff-lineno">Line 84:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::I came across the [https://community.playstarbound.com/threads/webapp-stardew-predictor-gaze-into-the-future-of-your-farm.141370/ MouseyPounds's Stardew Predictor]. He specifies that Gus dishes cannot be predicted long term because they depend on the number of steps. I presume the GamingWithMaxJ modification was derived from this, as it may be the only rotating stock depending on steps. Even though, looking at the code, several other things depend on the same seed (built upon the number of steps), like at least: random friendship letters, daily luck and weather. There also are <samp>wallpaperPrice</samp> and <samp>floorPrice</samp>, but they seem unused in the game code. -- [[User:Charly|Charly]] ([[User talk:Charly|talk]]) 14:38, 25 November 2021 (UTC)</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>::I came across the [https://community.playstarbound.com/threads/webapp-stardew-predictor-gaze-into-the-future-of-your-farm.141370/ MouseyPounds's Stardew Predictor]. He specifies that Gus dishes cannot be predicted long term because they depend on the number of steps. I presume the GamingWithMaxJ modification was derived from this, as it may be the only rotating stock depending on steps. Even though, looking at the code, several other things depend on the same seed (built upon the number of steps), like at least: random friendship letters, daily luck and weather. There also are <samp>wallpaperPrice</samp> and <samp>floorPrice</samp>, but they seem unused in the game code. -- [[User:Charly|Charly]] ([[User talk:Charly|talk]]) 14:38, 25 November 2021 (UTC)</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">==Villager Saloon Schedules==</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Any thoughts on adding a section for a Monday-Sunday Schedule of which villagers are around during each hour of operation? I can put together a Mock example but it'd be like</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><br>.......Emily Shane Willy<br></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">12-1.....x......x........<br></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">1-2......................x<br></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">2-3.......x..................</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[User:Spiderkace|Spiderkace]] ([[User talk:Spiderkace|talk]]) 21:36, 11 December 2022 (UTC)</ins></div></td></tr>
</table>Spiderkacehttps://stardewvalleywiki.com/mediawiki/index.php?title=Talk:The_Stardrop_Saloon&diff=130909&oldid=prevCharly: /* Rotating Saloon Dish */2021-11-25T14:39:05Z<p><span dir="auto"><span class="autocomment">Rotating Saloon Dish</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 14:39, 25 November 2021</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l82" >Line 82:</td>
<td colspan="2" class="diff-lineno">Line 82:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>- [[User:Charly|Charly]] ([[User talk:Charly|talk]]) 04:14, 20 November 2021 (UTC)</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>- [[User:Charly|Charly]] ([[User talk:Charly|talk]]) 04:14, 20 November 2021 (UTC)</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">::I came across the [https://community.playstarbound.com/threads/webapp-stardew-predictor-gaze-into-the-future-of-your-farm.141370/ MouseyPounds's Stardew Predictor]. He specifies that Gus dishes cannot be predicted long term because they depend on the number of steps. I presume the GamingWithMaxJ modification was derived from this, as it may be the only rotating stock depending on steps. Even though, looking at the code, several other things depend on the same seed (built upon the number of steps), like at least: random friendship letters, daily luck and weather. There also are <samp>wallpaperPrice</samp> and <samp>floorPrice</samp>, but they seem unused in the game code. -- [[User:Charly|Charly]] ([[User talk:Charly|talk]]) 14:38, 25 November 2021 (UTC)</ins></div></td></tr>
</table>Charlyhttps://stardewvalleywiki.com/mediawiki/index.php?title=Talk:The_Stardrop_Saloon&diff=130747&oldid=prevCharly: Saloon rotating dish investigation2021-11-20T04:14:22Z<p>Saloon rotating dish investigation</p>
<p><b>New page</b></p><div>{{talkheader}}<br />
<br />
== Rotating Saloon Dish ==<br />
<br />
Hello there. Some days ago [https://stardewvalleywiki.com/mediawiki/index.php?title=The_Stardrop_Saloon&curid=1424&oldid=130569 Revision as of 19:43, 16 November 2021 by GamingWithMaxJ] said the rotating dish was defined according to the number of step the player has made. Out of curiosity, I wanted to check that. It is a bit (a lot) more complicated than that, but steps count indeed. Investigation.<br />
<br />
The rotating dish is set in <code>Utility::getSaloonStock</code>, using <samp>Game1.dishOfTheDay</samp>. This variable value is redefined each day at <code>Game1::_newDayAfterFade</code>:<br />
<br />
<syntaxhighlight lang="C#"><br />
dishOfTheDay = new Object(Vector2.Zero, num2, initialStack);<br />
</syntaxhighlight><br />
<br />
With <samp>num2</samp> being defined as such:<br />
<br />
<syntaxhighlight lang="C#"><br />
int num2 = random.Next(194, 240);<br />
while (Utility.getForbiddenDishesOfTheDay().Contains(num2))<br />
{<br />
num2 = random.Next(194, 240);<br />
}<br />
</syntaxhighlight><br />
<br />
So one index is pseudo-randomly picked from 194 (included) to 240 (excluded). Indexes correspond to food as specified in <code>Content\Data\ObjectInformation.xnb</code>. For instance 194 is ''Fried Egg'' and 240 is ''Farmer's Lunch''. <code>Utility::getForbiddenDishesOfTheDay</code> is just to exclude dishes that Gus already normally sells, as we can see:<br />
<br />
<syntaxhighlight lang="C#"><br />
public static int[] getForbiddenDishesOfTheDay()<br />
{<br />
return new int[7] { 346, 196, 216, 224, 206, 395, 217 };<br />
}<br />
</syntaxhighlight><br />
<br />
This <samp>int</samp> array refers to ''Beer, Salad, Bread, Spaghetti, Pizza'' and ''Coffee'' (the 217 is not defined).<br />
<br />
More interestingly for our investigation, <samp>random.Next(int minValue, int maxValue)</samp> is a base C# function, building pseudo-random numbers from a pseudo-random seed. The function is defined in [https://referencesource.microsoft.com/#mscorlib/system/random.cs mscorlib/system/random.cs] if you want to dig that.<br />
<br />
The first random seed taken for random functions is a timestamp get at game launch, as we can see in the <code>Game1</code> constructor:<br />
<br />
<syntaxhighlight lang="C#"><br />
public static Random random = new Random(DateTime.Now.Millisecond);<br />
</syntaxhighlight><br />
<br />
This is the random seed used for the dish chosen on a new game creation (see <samp>Game1::loadForNewGame</samp>).<br />
<br />
But the randomness seed is then re-defined each day in the <code>Game1::_newDayAfterFade</code> function:<br />
<br />
<syntaxhighlight lang="C#"><br />
random = new Random(num);<br />
for (int i = 0; i < dayOfMonth; i++)<br />
{<br />
random.Next();<br />
}<br />
</syntaxhighlight><br />
<br />
With <samp>num</samp> being defined as such:<br />
<br />
<syntaxhighlight lang="C#"><br />
num = (int)uniqueIDForThisGame / 100 + (int)(stats.DaysPlayed * 10) + 1 + (int)stats.StepsTaken;<br />
</syntaxhighlight><br />
<br />
So stats, including steps taken, are taken into account here to build the new seed that is sent to the random number generator.<br />
<br />
There also is <samp>uniqueIDForThisGame</samp>. If I'm not mistaken, the value is defined at game launch (<samp>Game1</samp> constructor), or when returning to title (<samp>Game1::CleanupReturningToTitle</samp>), and specified once and for all in the save game if no custom seed is entered (see <samp>Game1::loadForNewGame</samp> and <samp>SaveGame::getSaveEnumerator</samp> and <samp>SaveGame::getLoadEnumerator</samp>), calculated from <code>Utility::NewUniqueIdForThisGame</code>:<br />
<br />
<syntaxhighlight lang="C#"><br />
public static ulong NewUniqueIdForThisGame()<br />
{<br />
DateTime dateTime = new DateTime(2012, 6, 22);<br />
return (ulong)(long)(DateTime.UtcNow - dateTime).TotalSeconds;<br />
}<br />
</syntaxhighlight><br />
<br />
Finally, calling <samp>random.Next()</samp> (also from [https://referencesource.microsoft.com/#mscorlib/system/random.cs mscorlib/system/random.cs])" moves the cursor" in the random numbers array generated from the seed by the random function (and also recalculate new values for values passed). To put it more simply, calling the function changes the output number obtained the next time a random method will be called, so <samp>dayOfMonth</samp> also matters.<br />
<br />
To conclude, it would be more accurate to say Gus daily dish is set according to:<br />
* Save game seed (by default, generated from time parameters)<br />
* Steps taken<br />
* Days played<br />
* Day of the month<br />
* Complex calculations from those<br />
<br />
I hope I did not make a mistake in reading the code, and that my writing is not too confusing...!<br />
<br />
- [[User:Charly|Charly]] ([[User talk:Charly|talk]]) 04:14, 20 November 2021 (UTC)</div>Charly