File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
12161210static u8 CalcBerryYieldInternal (u16 max , u16 min , u8 water )
12171211{
12181212 u32 randMin ;
You can’t perform that action at this time.
0 commit comments