summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/constants/items.h3
-rw-r--r--include/pokemon_item_effects.h2
2 files changed, 4 insertions, 1 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
diff --git a/include/pokemon_item_effects.h b/include/pokemon_item_effects.h
index 505cc0f25..1564f7f99 100644
--- a/include/pokemon_item_effects.h
+++ b/include/pokemon_item_effects.h
@@ -57,6 +57,6 @@ struct PokemonItemEffect
};
*/
-bool8 ExecuteTableBasedItemEffect(struct Pokemon *mon, u16 itemId, u8 partyId, u8 monMoveIndex, u8 a5);
+bool8 PokemonUseItemEffects(struct Pokemon *mon, u16 itemId, u8 partyId, u8 monMoveIndex, u8 a5);
#endif // GUARD_POKEMON_ITEM_EFFECTS