summaryrefslogtreecommitdiff
path: root/src/item.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-01-14 21:27:45 -0500
committerGriffinR <griffin.g.richards@gmail.com>2020-01-15 16:00:45 -0500
commit04d176334ad590d3462e3c1eb75c1313705ae183 (patch)
tree865ca807901bf57e63523b19f2d535c7ef391f89 /src/item.c
parent2f81b4a204d051aeb88580dc63381011ec49fcbb (diff)
Document some Quest Log
Diffstat (limited to 'src/item.c')
-rw-r--r--src/item.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/item.c b/src/item.c
index e16d5055c..d1f732b4d 100644
--- a/src/item.c
+++ b/src/item.c
@@ -564,13 +564,15 @@ u16 BagGetQuantityByItemId(u16 itemId)
return 0;
}
-void sub_809A824(u16 itemId)
+void TrySetObtainedItemQuestLogEvent(u16 itemId)
{
struct QuestLogStruct_809A824
{
u16 itemId;
u8 mapSectionId;
} * ptr;
+
+ // Only some key items trigger this event
if
(
itemId == ITEM_OAKS_PARCEL
@@ -600,7 +602,7 @@ void sub_809A824(u16 itemId)
ptr = malloc(sizeof(*ptr));
ptr->itemId = itemId;
ptr->mapSectionId = gMapHeader.regionMapSectionId;
- sub_8113550(40, (void *)ptr);
+ SetQuestLogEvent(QL_EVENT_OBTAINED_ITEM, (void *)ptr);
free(ptr);
}
}