Skip to content

Commit bfa3e4a

Browse files
Merge pull request #2145 from abaresk/remove-berryfix
Remove berry yield bug fix
2 parents 5a3fc2a + bef343c commit bfa3e4a

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/berry.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,15 +1204,9 @@ static u8 GetNumStagesWateredByBerryTreeId(u8 id)
12041204
return BerryTreeGetNumStagesWatered(GetBerryTreeInfo(id));
12051205
}
12061206

1207-
// Berries can be watered at 4 stages of growth. This function is likely meant
1208-
// to divide the berry yield range equally into quartiles. If you watered the
1209-
// tree n times, your yield is a random number in the nth quartile.
1210-
//
1211-
// However, this function actually skews towards higher berry yields, because
1212-
// it rounds `extraYield` to the nearest whole number.
1213-
//
1214-
// See resulting yields: https://gist.github.com/hondew/2a099dbe54aa91414decdbfaa524327d,
1215-
// and bug fix: https://gist.github.com/hondew/0f0164e5b9dadfd72d24f30f2c049a0b.
1207+
// Berries can be watered at 4 stages of growth. The distribution is largely
1208+
// even but slightly prefers middle berry yields, since it uniformly draws from
1209+
// a subset of the total yield range.
12161210
static u8 CalcBerryYieldInternal(u16 max, u16 min, u8 water)
12171211
{
12181212
u32 randMin;

0 commit comments

Comments
 (0)