diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2018-12-03 13:37:32 +0100 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2018-12-03 13:37:32 +0100 |
commit | d8b952f94ccf3b1806db5733188be2249d91fe35 (patch) | |
tree | ee0700fad2a22b1fb40ff3546bd52cc240df5a9d /src/item.c | |
parent | 7914220acd9a39e08bc09b70eaef6433a6ba9cd6 (diff) |
Clean up items data
Diffstat (limited to 'src/item.c')
-rw-r--r-- | src/item.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/item.c b/src/item.c index b2c009be6..6d2dbd561 100644 --- a/src/item.c +++ b/src/item.c @@ -1,7 +1,6 @@ #include "global.h" #include "item.h" #include "berry.h" -#include "constants/items.h" #include "string_util.h" #include "text.h" #include "event_data.h" @@ -10,11 +9,13 @@ #include "item_menu.h" #include "strings.h" #include "load_save.h" +#include "item_use.h" #include "battle_pyramid.h" #include "battle_pyramid_bag.h" +#include "constants/items.h" +#include "constants/hold_effects.h" extern u16 gUnknown_0203CF30[]; -extern const struct Item gItems[]; // this file's functions static bool8 CheckPyramidBagHasItem(u16 itemId, u16 count); @@ -23,6 +24,10 @@ static bool8 CheckPyramidBagHasSpace(u16 itemId, u16 count); // EWRAM variables EWRAM_DATA struct BagPocket gBagPockets[POCKETS_COUNT] = {0}; +// rodata +#include "data/text/item_descriptions.h" +#include "data/items.h" + // code static u16 GetBagItemQuantity(u16 *quantity) { |