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/kecleon_items_1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/kecleon_items_1.c') diff --git a/src/kecleon_items_1.c b/src/kecleon_items_1.c index fb102e1..b4f1b44 100644 --- a/src/kecleon_items_1.c +++ b/src/kecleon_items_1.c @@ -10,9 +10,7 @@ extern struct unkStruct_203B210 *gUnknown_203B210; extern struct TeamInventory *gTeamInventory_203B460; extern u32 GetStackSellPrice(struct ItemSlot *); -extern bool8 CanSellItem(u8); extern u32 xxx_count_inv_unk230(void); -extern u32 sub_8091A48(void); extern s32 sub_80144A4(s32 *); void UpdateKecleonStoreState(u32); extern u32 sub_801B410(void); @@ -170,7 +168,7 @@ u32 sub_8019D8C(void) if(gUnknown_203B210->unk4) return xxx_count_inv_unk230(); else - return sub_8091A48(); + return xxx_count_non_empty_inv_unk250_8091A48(); } void sub_8019DAC(void) -- cgit v1.2.3