This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

Talk:Slime Egg-Press

From Stardew Valley Wiki
Jump to: navigation, search
This talk page is for discussing Slime Egg-Press.
  • Sign and date your posts by typing four tildes (~~~~).
  • Put new text below old text.
  • Be polite.
  • Assume good faith.
  • Don't delete discussions.

Inaccurate probability of slime eggs produced by Slime Egg-Press

I looked up the source in StardewValley.Object.performObjectDropInAction(Item dropInItem, bool probe, Farmer who):

int slime = 680;
if (Game1.random.NextDouble() < 0.05)
{
    slime = 439;
}
else if (Game1.random.NextDouble() < 0.1)
{
    slime = 437;
}
else if (Game1.random.NextDouble() < 0.25)
{
    slime = 413;
}
this.heldObject.Value = new Object(slime, 1);

413 is blue slime egg, 437 is red, 439 is purple and 680 is green.

The source definitely suggests that the egg is green at first, and the 5% check will determine whether it is purple or not, then else if means if the 5% check is failed, there will come the second 10% check. So the probability of the egg to be red should be (1 - 5%) * 10% = 9.5% and blue (1 - 5%) * (1 - 10%) * 25% = 21.375%, green 1 - 5% - 9.5% - 21.375% = 64.125%.

Btw, some probability on other pages is also wrong due to the mechanism. Lyu (talk) 04:09, 25 January 2019

Thanks Lyu! Will reinstate the edit on the page. If you find more errors, please put a comment on the talk page and make the corrections! margotbean (talk) 16:26, 25 January 2019 (UTC)