mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
58 lines
979 B
C
58 lines
979 B
C
#ifndef GUARD_GLOBAL_BERRY_H
|
|
#define GUARD_GLOBAL_BERRY_H
|
|
|
|
struct Berry
|
|
{
|
|
const u8 name[7];
|
|
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;
|
|
};
|
|
|
|
struct EnigmaBerry
|
|
{
|
|
struct Berry berry;
|
|
u8 pic[(6 * 6) * TILE_SIZE_4BPP];
|
|
u16 palette[16];
|
|
u8 description1[45];
|
|
u8 description2[45];
|
|
u8 itemEffect[18];
|
|
u8 holdEffect;
|
|
u8 holdEffectParam;
|
|
u32 checksum;
|
|
};
|
|
|
|
struct BattleEnigmaBerry
|
|
{
|
|
/*0x00*/ u8 name[7];
|
|
/*0x07*/ u8 holdEffect;
|
|
/*0x08*/ u8 itemEffect[18];
|
|
/*0x1A*/ u8 holdEffectParam;
|
|
};
|
|
|
|
struct BerryTree
|
|
{
|
|
u8 berry;
|
|
u8 stage:7;
|
|
u8 growthSparkle:1;
|
|
u16 minutesUntilNextStage;
|
|
u8 berryYield;
|
|
u8 regrowthCount:4;
|
|
u8 watered1:1;
|
|
u8 watered2:1;
|
|
u8 watered3:1;
|
|
u8 watered4:1;
|
|
};
|
|
|
|
#endif // GUARD_GLOBAL_BERRY_H
|