summaryrefslogtreecommitdiff
path: root/include/global.berry.h
diff options
context:
space:
mode:
authorsceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-17 13:22:46 -0800
committersceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-17 13:22:46 -0800
commitb849ce93dbafac8e4961b531ab40585c0fdd103a (patch)
tree1cfd5cf3b7223a8e91dd0a0d4e6e112bd3458d8b /include/global.berry.h
parent3ddda066d91cbbd377584acacaea62a9deba8873 (diff)
decompile main
Diffstat (limited to 'include/global.berry.h')
-rw-r--r--include/global.berry.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/include/global.berry.h b/include/global.berry.h
new file mode 100644
index 000000000..5c8a43a02
--- /dev/null
+++ b/include/global.berry.h
@@ -0,0 +1,76 @@
+#ifndef GUARD_GLOBAL_BERRY_H
+#define GUARD_GLOBAL_BERRY_H
+
+#define BERRY_NAME_COUNT 7
+#define BERRY_ITEM_EFFECT_COUNT 18
+
+struct Berry
+{
+ const u8 name[BERRY_NAME_COUNT];
+ 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;
+};
+
+// with no const fields
+
+struct Berry2
+{
+ u8 name[BERRY_NAME_COUNT];
+ 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;
+};
+
+struct EnigmaBerry
+{
+ struct Berry2 berry;
+ u8 itemEffect[BERRY_ITEM_EFFECT_COUNT];
+ u8 holdEffect;
+ u8 holdEffectParam;
+ u32 checksum;
+};
+
+struct BattleEnigmaBerry
+{
+ /*0x00*/ u8 name[BERRY_NAME_COUNT];
+ /*0x07*/ u8 holdEffect;
+ /*0x08*/ u8 itemEffect[BERRY_ITEM_EFFECT_COUNT];
+ /*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