summaryrefslogtreecommitdiff
path: root/include/constants
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2018-02-09 18:46:00 +0100
committerDizzyEggg <jajkodizzy@wp.pl>2018-02-09 18:46:00 +0100
commit1a1bad312972217a7ef390df469b8cf763626a66 (patch)
tree30f526f70428465242f98ea15e660c1c5dec92e0 /include/constants
parent9e7696f25a02e233c4970f70e7b79be32646418d (diff)
decompile pokemon_item_effect
Diffstat (limited to 'include/constants')
-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 ca6fdbf64..8717ecbd5 100644
--- a/include/constants/items.h
+++ b/include/constants/items.h
@@ -464,4 +464,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