Fix YIELD_RATE (#3931)
This commit is contained in:
parent
dbad66ee1b
commit
34ceb930cc
1 changed files with 1 additions and 1 deletions
|
@ -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[] =
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue