Changes

Jump to navigation Jump to search
m
Text replacement - "luck]]" to "luck"
Line 72: Line 72:  
<syntaxhighlight lang="C#">
 
<syntaxhighlight lang="C#">
 
if (this.GetAdditionalDifficulty() > 0 && this.mineLevel % 5 != 0 && this.mineRandom.NextDouble() < (double)this.GetAdditionalDifficulty() * 0.001 + (double)((float)this.mineLevel / 100000f) + Game1.player.team.AverageDailyLuck() / 13.0 + Game1.player.team.AverageLuckLevel() * 0.0001500000071246177)</syntaxhighlight>
 
if (this.GetAdditionalDifficulty() > 0 && this.mineLevel % 5 != 0 && this.mineRandom.NextDouble() < (double)this.GetAdditionalDifficulty() * 0.001 + (double)((float)this.mineLevel / 100000f) + Game1.player.team.AverageDailyLuck() / 13.0 + Game1.player.team.AverageLuckLevel() * 0.0001500000071246177)</syntaxhighlight>
For this, the luck boost from the [[Special Charm|special charm]] (0.025, contribution to AverageDailyLuck) is equivalent to an additional 192.3 floors (2500/13), making [[Radioactive Ore|radioactive ore]] more likely on floor 1 with a special charm than floor 100 without it. A single point of [[luck]] (such as from a food buff) is worth ~15 floors. With the best possible luck 1.2% of stones will be radioactive ore. With the worst possible luck no radioactive ore will appear in [[The Mines|the mines]] at all, and the worst possible daily [[luck]]]] would require a [[Luck#Luck Buffs|luck buff]] of 24 along with the special charm to be able to have any chance to find radioactive ore. Also note that radioactive ore will not appear on any floor divisible by 5.
+
For this, the luck boost from the [[Special Charm|special charm]] (0.025, contribution to AverageDailyLuck) is equivalent to an additional 192.3 floors (2500/13), making [[Radioactive Ore|radioactive ore]] more likely on floor 1 with a special charm than floor 100 without it. A single point of [[luck]] (such as from a food buff) is worth ~15 floors. With the best possible luck 1.2% of stones will be radioactive ore. With the worst possible luck no radioactive ore will appear in [[The Mines|the mines]] at all, and the worst possible daily [[luck]] would require a [[Luck#Luck Buffs|luck buff]] of 24 along with the special charm to be able to have any chance to find radioactive ore. Also note that radioactive ore will not appear on any floor divisible by 5.
    
If the mines are doubly difficult ([[Quests#List of Mr. Qi's Special Orders|Qi quest]] "Danger in the Deep" while the [[The Mines#Shrine of Challenge|Shrine of Challenge]] is active), it will contribute an extra 0.1%. This is not used in the below calculations.
 
If the mines are doubly difficult ([[Quests#List of Mr. Qi's Special Orders|Qi quest]] "Danger in the Deep" while the [[The Mines#Shrine of Challenge|Shrine of Challenge]] is active), it will contribute an extra 0.1%. This is not used in the below calculations.
Line 276: Line 276:  
       rock = (1-chanceForDiamond)*(1-chanceForGem)*(1-chanceForPurple)*(1-chanceForMystic)*(1-chanceForStone)
 
       rock = (1-chanceForDiamond)*(1-chanceForGem)*(1-chanceForPurple)*(1-chanceForMystic)*(1-chanceForStone)
   −
Due to the interaction between the different checks it is hypothetically possible for the chance for one of these to be found increasing to decrease the chance of finding others. This is observed with the increasing chance to find mystic stones on floor 100 reducing the chance to find gem nodes and gem stone ores. Additionally, the increase in chance of finding these valuable items due to [[luck]] or [[mining]] level reduces the chance of finding dark grey rocks and rocks, but does not parasitically affect each other, e.g. a higher daily [[luck]]]] will increase your chance of finding [[diamond]]s, [[Minerals#Gems|gems]], [[Mining#Mystic Stone|mystic stones]] and gem nodes, and will decrease the chance of finding dark grey rocks and normal rocks.
+
Due to the interaction between the different checks it is hypothetically possible for the chance for one of these to be found increasing to decrease the chance of finding others. This is observed with the increasing chance to find mystic stones on floor 100 reducing the chance to find gem nodes and gem stone ores. Additionally, the increase in chance of finding these valuable items due to [[luck]] or [[mining]] level reduces the chance of finding dark grey rocks and rocks, but does not parasitically affect each other, e.g. a higher daily [[luck]] will increase your chance of finding [[diamond]]s, [[Minerals#Gems|gems]], [[Mining#Mystic Stone|mystic stones]] and gem nodes, and will decrease the chance of finding dark grey rocks and normal rocks.
    
==Items==
 
==Items==
Line 395: Line 395:     
==Ore Clumps==
 
==Ore Clumps==
In the <code>StardewValley.Locations.MineShaft::tryToAddOreClumps</code><ref name="oreClumps" /> function, a try will only be made if a random number is less than 0.55 plus the average daily [[luck]]]]. The maximum possible average daily luck is 0.1 from random luck and 0.025 from the [[Special Charm|special charm]]<ref name="dailyLuck" />. This means with neutral luck there is a 55% chance to try, and with the best possible luck there is a 67.5% chance.
+
In the <code>StardewValley.Locations.MineShaft::tryToAddOreClumps</code><ref name="oreClumps" /> function, a try will only be made if a random number is less than 0.55 plus the average daily [[luck]]. The maximum possible average daily luck is 0.1 from random luck and 0.025 from the [[Special Charm|special charm]]<ref name="dailyLuck" />. This means with neutral luck there is a 55% chance to try, and with the best possible luck there is a 67.5% chance.
 
It will try once, and then generate a random number and keep going if that random number is less than 0.25 plus the average daily luck.
 
It will try once, and then generate a random number and keep going if that random number is less than 0.25 plus the average daily luck.
 
This means there will be 1 chance, plus a 25% chance with neutral luck or a 37.5% chance with best possible luck.
 
This means there will be 1 chance, plus a 25% chance with neutral luck or a 37.5% chance with best possible luck.
106,342

edits

Navigation menu