From 34ceb930cc696934084505224c7ee339c6ffdbf4 Mon Sep 17 00:00:00 2001 From: Bassoonian Date: Fri, 5 Jan 2024 19:07:51 +0000 Subject: [PATCH] Fix YIELD_RATE (#3931) --- src/berry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/berry.c b/src/berry.c index a73c9ddf12..b747b2e19c 100644 --- a/src/berry.c +++ b/src/berry.c @@ -50,7 +50,7 @@ static void AddTreeBonus(struct BerryTree *tree, u8 bonus); #endif #define GROWTH_DURATION(g3, g4, g5, xy, oras, g7) OW_BERRY_GROWTH_RATE == GEN_3 ? g3 : OW_BERRY_GROWTH_RATE == GEN_4 ? g4 : OW_BERRY_GROWTH_RATE == GEN_5 ? g5 : OW_BERRY_GROWTH_RATE == GEN_6_XY ? xy : OW_BERRY_GROWTH_RATE == GEN_6_ORAS ? oras : g7 -#define YIELD_RATE(g3, g4, xy, oras) GROWTH_DURATION(g3, g4, 0, xy, oras, 0) +#define YIELD_RATE(g3, g4, xy, oras) OW_BERRY_YIELD_RATE == GEN_3 ? g3 : OW_BERRY_YIELD_RATE == GEN_4 ? g4 : OW_BERRY_YIELD_RATE == GEN_6_XY ? xy : oras const struct Berry gBerries[] = {