sovereignx/include/berry.h

41 lines
1.3 KiB
C
Raw Permalink Normal View History

2017-09-07 18:45:32 +01:00
#ifndef GUARD_BERRY_H
#define GUARD_BERRY_H
2017-09-08 19:05:45 +01:00
2017-09-07 18:45:32 +01:00
void SetEnigmaBerry(u8 *src);
bool32 IsEnigmaBerryValid(void);
const struct Berry *GetBerryInfo(u8 berry);
struct BerryTree *GetBerryTreeInfo(u8 id);
bool32 ObjectEventInteractionWaterBerryTree(void);
2018-12-31 17:16:45 +00:00
bool8 IsPlayerFacingEmptyBerryTreePatch(void);
2017-09-07 18:45:32 +01: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 19:05:45 +01:00
u8 GetStageByBerryTreeId(u8);
2017-09-07 18:45:32 +01:00
u8 ItemIdToBerryType(u16 item);
void GetBerryNameByBerryType(u8 berry, u8 *string);
void ResetBerryTreeSparkleFlag(u8 id);
2017-09-13 10:16:26 +01:00
void Bag_ChooseBerry(void);
2023-12-03 12:17:34 +00:00
void Bag_ChooseMulch(void);
void ObjectEventInteractionGetBerryTreeData(void);
void ObjectEventInteractionPlantBerryTree(void);
void ObjectEventInteractionPickBerryTree(void);
void ObjectEventInteractionRemoveBerryTree(void);
2023-12-03 12:17:34 +00:00
void ObjectEventInteractionApplyMulch(void);
2018-10-17 13:52:26 +01:00
bool8 PlayerHasBerries(void);
2021-01-26 10:16:01 +00:00
void SetBerryTreesSeen(void);
2023-12-06 20:08:09 +00:00
bool32 BerryTreeGrow(struct BerryTree *tree);
2017-09-08 19:05:45 +01:00
2017-09-13 10:16:26 +01:00
extern const struct Berry gBerries[];
2021-03-16 09:40:42 +00:00
struct BerryCrushBerryData {
u8 difficulty; // The number of A presses required to crush it
u16 powder;
2017-09-25 20:03:52 +01:00
};
2021-03-16 09:40:42 +00:00
extern const struct BerryCrushBerryData gBerryCrush_BerryData[];
2017-09-25 20:03:52 +01:00
2017-09-07 18:45:32 +01:00
#endif // GUARD_BERRY_H