2017-09-02 19:43:53 +00:00
|
|
|
#ifndef GUARD_GLOBAL_BERRY_H
|
|
|
|
#define GUARD_GLOBAL_BERRY_H
|
|
|
|
|
2018-09-01 20:03:21 +00:00
|
|
|
#define BERRY_NAME_LENGTH 6
|
2017-09-30 23:12:42 +00:00
|
|
|
#define BERRY_ITEM_EFFECT_COUNT 18
|
|
|
|
|
2017-09-02 19:43:53 +00:00
|
|
|
struct Berry
|
|
|
|
{
|
2018-09-01 20:03:21 +00:00
|
|
|
const u8 name[BERRY_NAME_LENGTH + 1];
|
2017-09-02 19:43:53 +00:00
|
|
|
u8 firmness;
|
|
|
|
u16 size;
|
|
|
|
u8 maxYield;
|
|
|
|
u8 minYield;
|
|
|
|
const u8 *description1;
|
|
|
|
const u8 *description2;
|
|
|
|
u8 stageDuration;
|
|
|
|
u8 spicy;
|
|
|
|
u8 dry;
|
|
|
|
u8 sweet;
|
|
|
|
u8 bitter;
|
|
|
|
u8 sour;
|
|
|
|
u8 smoothness;
|
|
|
|
};
|
|
|
|
|
2017-09-04 19:43:13 +00:00
|
|
|
// with no const fields
|
|
|
|
|
|
|
|
struct Berry2
|
|
|
|
{
|
2018-09-01 20:03:21 +00:00
|
|
|
u8 name[BERRY_NAME_LENGTH + 1];
|
2017-09-04 19:43:13 +00:00
|
|
|
u8 firmness;
|
|
|
|
u16 size;
|
|
|
|
u8 maxYield;
|
|
|
|
u8 minYield;
|
|
|
|
u8 *description1;
|
|
|
|
u8 *description2;
|
|
|
|
u8 stageDuration;
|
|
|
|
u8 spicy;
|
|
|
|
u8 dry;
|
|
|
|
u8 sweet;
|
|
|
|
u8 bitter;
|
|
|
|
u8 sour;
|
|
|
|
u8 smoothness;
|
2022-12-18 01:55:43 +00:00
|
|
|
//u8 padding;
|
2017-09-04 19:43:13 +00:00
|
|
|
};
|
|
|
|
|
2017-09-02 19:43:53 +00:00
|
|
|
struct EnigmaBerry
|
|
|
|
{
|
2017-09-04 19:43:13 +00:00
|
|
|
struct Berry2 berry;
|
2017-09-30 23:12:42 +00:00
|
|
|
u8 itemEffect[BERRY_ITEM_EFFECT_COUNT];
|
2017-09-02 19:43:53 +00:00
|
|
|
u8 holdEffect;
|
|
|
|
u8 holdEffectParam;
|
|
|
|
u32 checksum;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct BattleEnigmaBerry
|
|
|
|
{
|
2018-09-01 20:03:21 +00:00
|
|
|
/*0x00*/ u8 name[BERRY_NAME_LENGTH + 1];
|
2017-09-02 19:43:53 +00:00
|
|
|
/*0x07*/ u8 holdEffect;
|
2017-09-30 23:12:42 +00:00
|
|
|
/*0x08*/ u8 itemEffect[BERRY_ITEM_EFFECT_COUNT];
|
2017-09-02 19:43:53 +00:00
|
|
|
/*0x1A*/ u8 holdEffectParam;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct BerryTree
|
|
|
|
{
|
|
|
|
u8 berry;
|
|
|
|
u8 stage:7;
|
2021-01-26 10:16:01 +00:00
|
|
|
u8 stopGrowth:1;
|
2017-09-02 19:43:53 +00:00
|
|
|
u16 minutesUntilNextStage;
|
|
|
|
u8 berryYield;
|
|
|
|
u8 regrowthCount:4;
|
|
|
|
u8 watered1:1;
|
|
|
|
u8 watered2:1;
|
|
|
|
u8 watered3:1;
|
|
|
|
u8 watered4:1;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GUARD_GLOBAL_BERRY_H
|