mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
39 lines
1.2 KiB
C
39 lines
1.2 KiB
C
#ifndef GUARD_BERRY_H
|
|
#define GUARD_BERRY_H
|
|
|
|
void ClearEnigmaBerries(void);
|
|
void SetEnigmaBerry(u8 *src);
|
|
bool32 IsEnigmaBerryValid(void);
|
|
const struct Berry *GetBerryInfo(u8 berry);
|
|
struct BerryTree *GetBerryTreeInfo(u8 id);
|
|
bool32 ObjectEventInteractionWaterBerryTree(void);
|
|
bool8 IsPlayerFacingEmptyBerryTreePatch(void);
|
|
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);
|
|
u8 GetStageByBerryTreeId(u8);
|
|
u8 ItemIdToBerryType(u16 item);
|
|
void GetBerryNameByBerryType(u8 berry, u8 *string);
|
|
void ResetBerryTreeSparkleFlag(u8 id);
|
|
void Bag_ChooseBerry(void);
|
|
void ObjectEventInteractionGetBerryTreeData(void);
|
|
void ObjectEventInteractionPlantBerryTree(void);
|
|
void ObjectEventInteractionPickBerryTree(void);
|
|
void ObjectEventInteractionRemoveBerryTree(void);
|
|
bool8 PlayerHasBerries(void);
|
|
void SetBerryTreesSeen(void);
|
|
|
|
extern const struct Berry gBerries[];
|
|
|
|
struct BerryCrushBerryData {
|
|
u8 difficulty; // The number of A presses required to crush it
|
|
u16 powder;
|
|
};
|
|
|
|
extern const struct BerryCrushBerryData gBerryCrush_BerryData[];
|
|
|
|
#endif // GUARD_BERRY_H
|