From bad7f7f688253c87c2cb2d063ea57c884cb6adff Mon Sep 17 00:00:00 2001 From: Dennis Date: Sat, 17 Jul 2021 18:45:13 +0200 Subject: More item related decomp (#45) * decompile sub_80918EC * some more item related functions * more item functions * more decomp, fix types in other places * more small functions * more item related decomp * one more weird branching item function * fix global.h includes * figured out branch pattern * decompile sub_8090F58 * make temporary struct for function * :crab: items.s is gone :crab: * some renaming * rename some obvious item related constants * fix spelling error --- src/code_80958E8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/code_80958E8.c') diff --git a/src/code_80958E8.c b/src/code_80958E8.c index c8fae63..a6ff84a 100644 --- a/src/code_80958E8.c +++ b/src/code_80958E8.c @@ -36,7 +36,7 @@ extern s16 sub_808E770(s16); extern bool8 sub_8092040(u8); extern u8 sub_803C1D0(u8 *, u8); extern bool8 IsNotMoneyOrUsedTMItem(u8); -extern u8 sub_8091E60(u8 ,u8 ); +extern u8 xxx_bit_lut_lookup_8091E50(u8 ,u8 ); extern u32 GetMaxItemCount(u8); extern u8 sub_803C0DC(s16); extern void sub_8096040(u8); @@ -152,7 +152,7 @@ bool8 ValidateWonderMail(struct WonderMail *data) return FALSE; // Item finding - if(data->missionType == FIND_ITEM && sub_8091E60(data->dungeon, data->targetItem) == 0) + if(data->missionType == FIND_ITEM && xxx_bit_lut_lookup_8091E50(data->dungeon, data->targetItem) == 0) return FALSE; if(data->rewardType == BLANK_4 || data->rewardType == END_REWARDS || data->rewardType > END_REWARDS) -- cgit v1.2.3