diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2017-09-13 11:16:26 +0200 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2017-09-13 11:16:26 +0200 |
commit | 5f4c5e280cda788f2c575d860a6333fc6cbebebe (patch) | |
tree | d98394d59dbd7d69575885f1a24b9ccc50d9eb34 /src/item.c | |
parent | a83d07e1b3134ff7c23a3ac39552f8285a0c09b4 (diff) |
berry.s decompiled
Diffstat (limited to 'src/item.c')
-rw-r--r-- | src/item.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/item.c b/src/item.c index 4ad70e11f..c85e2fe1f 100644 --- a/src/item.c +++ b/src/item.c @@ -1,5 +1,6 @@ #include "global.h" #include "item.h" +#include "items.h" #include "string_util.h" #include "text.h" #include "event_data.h" @@ -86,10 +87,10 @@ void CopyItemName(u16 itemId, u8 *string) void CopyItemNameHandlePlural(u16 itemId, u8 *string, u32 quantity) { - if (itemId == 4) + if (itemId == ITEM_POKE_BALL) { if (quantity < 2) - StringCopy(string, ItemId_GetItem(4)->name); + StringCopy(string, ItemId_GetItem(ITEM_POKE_BALL)->name); else StringCopy(string, gOtherText_PokeBalls); } |