diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-01-14 21:27:45 -0500 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2020-01-15 16:00:45 -0500 |
commit | 04d176334ad590d3462e3c1eb75c1313705ae183 (patch) | |
tree | 865ca807901bf57e63523b19f2d535c7ef391f89 /src/item.c | |
parent | 2f81b4a204d051aeb88580dc63381011ec49fcbb (diff) |
Document some Quest Log
Diffstat (limited to 'src/item.c')
-rw-r--r-- | src/item.c | 6 |
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); } } |