summaryrefslogtreecommitdiff
path: root/include
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
parent9e7696f25a02e233c4970f70e7b79be32646418d (diff)
decompile pokemon_item_effect
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