summaryrefslogtreecommitdiff
path: root/src/berry.c
diff options
context:
space:
mode:
authorjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-10-16 13:38:21 +0800
committerjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-10-17 02:01:07 +0800
commitf03807931fa6451c446dc931cd755c697f7177a4 (patch)
tree05e5871bf1d02e33f57a5e95905b49e14c90a1d3 /src/berry.c
parenta6c0088073949fe3007bf600fd2de8948b3874a7 (diff)
thru sub_8011B94
Diffstat (limited to 'src/berry.c')
-rw-r--r--src/berry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/berry.c b/src/berry.c
index 91d83f40c..d349109d2 100644
--- a/src/berry.c
+++ b/src/berry.c
@@ -134,7 +134,7 @@ bool32 IsEnigmaBerryValid(void)
return TRUE;
}
-const struct Berry * sub_809C8A0(u8 berryIdx)
+const struct Berry * GetBerryInfo(u8 berryIdx)
{
if (berryIdx == ITEM_TO_BERRY(ITEM_ENIGMA_BERRY) && IsEnigmaBerryValid())
return (struct Berry *)&gSaveBlock1Ptr->enigmaBerry.berry;
@@ -163,7 +163,7 @@ u16 BerryTypeToItemId(u16 berryType)
void GetBerryNameByBerryType(u8 berryType, u8 * dest)
{
- const struct Berry * berry = sub_809C8A0(berryType);
+ const struct Berry * berry = GetBerryInfo(berryType);
memcpy(dest, berry->name, 6);
dest[6] = EOS;
}