Allow for storing bonus Berries in Berry Yield

This commit is contained in:
Bassoonian 2023-12-04 00:17:41 +01:00
parent 45e19d22fa
commit bd354f28e3

View file

@ -1553,7 +1553,7 @@ static bool32 BerryTreeGrow(struct BerryTree *tree)
case BERRY_STAGE_NO_BERRY:
return FALSE;
case BERRY_STAGE_FLOWERING:
tree->berryYield = CalcBerryYield(tree);
tree->berryYield = tree->berryYield + CalcBerryYield(tree);
case BERRY_STAGE_PLANTED:
case BERRY_STAGE_SPROUTED:
case BERRY_STAGE_TALLER:
@ -1631,7 +1631,7 @@ void PlantBerryTree(u8 id, u8 berry, u8 stage, bool8 allowGrowth)
tree->stage = stage;
if (stage == BERRY_STAGE_BERRIES)
{
tree->berryYield = CalcBerryYield(tree);
tree->berryYield = tree->berryYield + CalcBerryYield(tree);
tree->minutesUntilNextStage *= ((tree->mulch == ITEM_TO_MULCH(ITEM_STABLE_MULCH)) ? 6 : 4);
}