summaryrefslogtreecommitdiff
path: root/include/items.h
diff options
context:
space:
mode:
authorDiegoisawesome <Diegoisawesome@users.noreply.github.com>2017-11-27 13:34:15 -0600
committerGitHub <noreply@github.com>2017-11-27 13:34:15 -0600
commit64e648098870bbae6f28ede1e391d0bacab60ffa (patch)
tree116e6a90c275191d25b9b892fac3851e3674e580 /include/items.h
parent1e4f12e6fa9e3b22d4f1a60ca69313b5dec0ca38 (diff)
parent237261e193d75addf47fc0736b2d9ed10c8d3195 (diff)
Merge pull request #116 from DizzyEggg/decompile_berry_blender
Decompile berry blender
Diffstat (limited to 'include/items.h')
-rw-r--r--include/items.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/items.h b/include/items.h
index 1f6c288c5..1a6df42db 100644
--- a/include/items.h
+++ b/include/items.h
@@ -386,6 +386,10 @@ enum
ITEM_OLD_SEA_MAP, // 0x178
};
+#define FIRST_BERRY_INDEX ITEM_CHERI_BERRY
+#define LAST_BERRY_INDEX ITEM_ENIGMA_BERRY
+#define ITEM_TO_BERRY(itemId)(((itemId - FIRST_BERRY_INDEX) + 1))
+
#define NUM_TECHNICAL_MACHINES 50
#define NUM_HIDDEN_MACHINES 8