Difference between revisions of "Talk:Minerals"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Created page with "MineShaft.adjustLevelChances <samp> else if (this.mineLevel % 5 == 0 && this.getMineArea() != 121) { itemChance = 0.0; // forage chance gemStoneChance = 0.0; if (t...")
 
Line 1: Line 1:
 +
{{Talkheader}}
 +
==Foraged Minerals==
 
MineShaft.adjustLevelChances
 
MineShaft.adjustLevelChances
  
<samp>
+
<syntaxhighlight lang="C#">
 
else if (this.mineLevel % 5 == 0 && this.getMineArea() != 121)
 
else if (this.mineLevel % 5 == 0 && this.getMineArea() != 121)
 
{
 
{
Line 10: Line 12:
 
monsterChance = 0.0;
 
monsterChance = 0.0;
 
}
 
}
}</samp>
+
}</syntaxhighlight>
  
 
so no forage on elevator levels, if I'm reading the code correctly.
 
so no forage on elevator levels, if I'm reading the code correctly.
 
[[User:Atravita|Atravita]] ([[User talk:Atravita|talk]]) 20:34, 21 November 2023 (UTC)
 
[[User:Atravita|Atravita]] ([[User talk:Atravita|talk]]) 20:34, 21 November 2023 (UTC)
 +
:Would be better to step through the code, tracing it with ILSpy may or may not account for all variables. Thank you for giving the code indicating where to set a breakpoint, though! [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 22:01, 21 November 2023 (UTC)

Revision as of 22:01, 21 November 2023

This talk page is for discussing Minerals.
  • Sign and date your posts by typing four tildes (~~~~).
  • Put new text below old text.
  • Be polite.
  • Assume good faith.
  • Don't delete discussions.

Foraged Minerals

MineShaft.adjustLevelChances

else if (this.mineLevel % 5 == 0 && this.getMineArea() != 121)
		{
			itemChance = 0.0; // forage chance
			gemStoneChance = 0.0;
			if (this.mineLevel % 10 == 0)
			{
				monsterChance = 0.0;
			}
		}

so no forage on elevator levels, if I'm reading the code correctly. Atravita (talk) 20:34, 21 November 2023 (UTC)

Would be better to step through the code, tracing it with ILSpy may or may not account for all variables. Thank you for giving the code indicating where to set a breakpoint, though! margotbean (talk) 22:01, 21 November 2023 (UTC)