File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1204,15 +1204,9 @@ static u8 GetNumStagesWateredByBerryTreeId(u8 id)
1204
1204
return BerryTreeGetNumStagesWatered (GetBerryTreeInfo (id ));
1205
1205
}
1206
1206
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.
1216
1210
static u8 CalcBerryYieldInternal (u16 max , u16 min , u8 water )
1217
1211
{
1218
1212
u32 randMin ;
You can’t perform that action at this time.
0 commit comments