diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-07-20 18:03:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 18:03:49 -0400 |
commit | 4dc2ba23f617f0b53a8f4d95e82a71580a808c91 (patch) | |
tree | 9522877c5990fcc3877e985f0d1c228a1c42593d /include/constants/items.h | |
parent | c6b4319b682807d714f88857f16287770b483db8 (diff) | |
parent | aeeff84462973b267e62031a945603d96afed716 (diff) |
Merge branch 'master' into constants-mapdatasize
Diffstat (limited to 'include/constants/items.h')
-rw-r--r-- | include/constants/items.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/constants/items.h b/include/constants/items.h index a52c72599..9dd381076 100644 --- a/include/constants/items.h +++ b/include/constants/items.h @@ -363,11 +363,23 @@ #define ITEM_15B 347 #define ITEM_15C 348 +#define ITEMS_COUNT 349 +#define ITEM_FIELD_ARROW ITEMS_COUNT + #define NUM_TECHNICAL_MACHINES 50 #define NUM_HIDDEN_MACHINES 8 +#define MAX_BAG_ITEM_CAPACITY 99 +#define MAX_PC_ITEM_CAPACITY 999 +#define MAX_BERRY_CAPACITY 999 + +#define FIRST_BERRY_INDEX ITEM_CHERI_BERRY +#define LAST_BERRY_INDEX ITEM_ENIGMA_BERRY + +#define ITEM_TO_BERRY(itemId)(((itemId - FIRST_BERRY_INDEX) + 1)) + // Check if the item is one that can be used on a Pokemon. -#define IS_POKEMON_ITEM(item) ((item) >= ITEM_POTION && (item) <= ITEM_0B2) +#define ITEM_HAS_EFFECT(item) ((item) >= ITEM_POTION && (item) <= ITEM_0B2) #define IS_ITEM_MAIL(item) ((item) >= ITEM_ORANGE_MAIL && (item) <= ITEM_RETRO_MAIL) |