2017-09-07 19:45:32 +02:00
|
|
|
#ifndef GUARD_BERRY_H
|
|
|
|
#define GUARD_BERRY_H
|
2017-09-08 20:05:45 +02:00
|
|
|
|
2017-09-07 19:45:32 +02:00
|
|
|
void ClearEnigmaBerries(void);
|
|
|
|
void SetEnigmaBerry(u8 *src);
|
|
|
|
bool32 IsEnigmaBerryValid(void);
|
|
|
|
const struct Berry *GetBerryInfo(u8 berry);
|
|
|
|
struct BerryTree *GetBerryTreeInfo(u8 id);
|
2018-06-12 02:11:48 +02:00
|
|
|
bool32 EventObjectInteractionWaterBerryTree(void);
|
2018-12-31 18:16:45 +01:00
|
|
|
bool8 IsPlayerFacingEmptyBerryTreePatch(void);
|
2017-09-07 19:45:32 +02:00
|
|
|
bool8 TryToWaterBerryTree(void);
|
|
|
|
void ClearBerryTrees(void);
|
|
|
|
void BerryTreeTimeUpdate(s32 minutes);
|
|
|
|
void PlantBerryTree(u8 id, u8 berry, u8 stage, bool8 sparkle);
|
|
|
|
void RemoveBerryTree(u8 id);
|
|
|
|
u8 GetBerryTypeByBerryTreeId(u8 id);
|
2017-09-08 20:05:45 +02:00
|
|
|
u8 GetStageByBerryTreeId(u8);
|
2017-09-07 19:45:32 +02:00
|
|
|
u8 ItemIdToBerryType(u16 item);
|
|
|
|
void GetBerryNameByBerryType(u8 berry, u8 *string);
|
|
|
|
void ResetBerryTreeSparkleFlag(u8 id);
|
2017-09-13 11:16:26 +02:00
|
|
|
void Bag_ChooseBerry(void);
|
2018-06-12 02:11:48 +02:00
|
|
|
void EventObjectInteractionGetBerryTreeData(void);
|
|
|
|
void EventObjectInteractionPlantBerryTree(void);
|
|
|
|
void EventObjectInteractionPickBerryTree(void);
|
|
|
|
void EventObjectInteractionRemoveBerryTree(void);
|
2018-10-17 14:52:26 +02:00
|
|
|
bool8 PlayerHasBerries(void);
|
2017-09-07 19:45:32 +02:00
|
|
|
void ResetBerryTreeSparkleFlags(void);
|
2017-09-08 20:05:45 +02:00
|
|
|
|
2017-09-13 11:16:26 +02:00
|
|
|
extern const struct Berry gBerries[];
|
|
|
|
|
2017-09-25 21:03:52 +02:00
|
|
|
struct UnkStruct_0858AB24 {
|
|
|
|
u8 unk0;
|
|
|
|
u16 unk1;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern const struct UnkStruct_0858AB24 gUnknown_0858AB24[];
|
|
|
|
|
2017-09-07 19:45:32 +02:00
|
|
|
#endif // GUARD_BERRY_H
|