Skip to content

Commit bef343c

Browse files
committed
Remove berry yield bug fix
1 parent bd0a02c commit bef343c

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

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)