summaryrefslogtreecommitdiff
path: root/include/constants/items.h
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-10-11 11:56:24 -0500
committerGitHub <noreply@github.com>2018-10-11 11:56:24 -0500
commitbd88c803793a6e5c8f5d2ac1a852c912e980ef1d (patch)
treed45390654cd3f80ffccd4af95760133ef77366bd /include/constants/items.h
parent10fff9c6f2d29899952d1751d3de827e7e98bb60 (diff)
parent05d03f7f3256b143a01506421c19964bcceaea5c (diff)
Merge pull request #18 from ProjectRevoTPP/pokemon
almost finish decompiling pokemon.c
Diffstat (limited to 'include/constants/items.h')
-rw-r--r--include/constants/items.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/constants/items.h b/include/constants/items.h
index 6135b8d6f..dd2b4c4ed 100644
--- a/include/constants/items.h
+++ b/include/constants/items.h
@@ -390,4 +390,7 @@
#define NUM_TECHNICAL_MACHINES 50
#define NUM_HIDDEN_MACHINES 8
+// Check if the item is one that can be used on a Pokemon.
+#define IS_POKEMON_ITEM(item) ((item) >= ITEM_POTION && (item) <= ITEM_0B2)
+
#endif // GUARD_CONSTANTS_ITEMS_H