From bd354f28e310893539dc9bb2e86648f9bbddd5be Mon Sep 17 00:00:00 2001 From: Bassoonian Date: Mon, 4 Dec 2023 00:17:41 +0100 Subject: [PATCH] Allow for storing bonus Berries in Berry Yield --- src/berry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/berry.c b/src/berry.c index 98f9cc3b17..0f2091c775 100644 --- a/src/berry.c +++ b/src/berry.c @@ -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); }