From 92a8e55fdd348a88a365eb389181d8e29da6dad9 Mon Sep 17 00:00:00 2001 From: Dennis Date: Sat, 10 Jul 2021 18:23:20 +0200 Subject: Decompiled some item related functions (#42) * decompile sub_8091290 * decompile sub_80912c8 * rename functions / struct field * more names * decompile 80913A0 * decompile GetItemMove * decompile sub_80913E0 * rename function * decompile CanSellItem function * rename inventory struct * add some item check functions * fix renaming stuff * this file shouldnt have been here * forgot merge conflict * decompile more item functions * rename some stuff * fix HM/TM naming * Update src/code_801AFA4.c Use enum value for USED_TM * Fix incorrect value Co-authored-by: Seth Barberee --- include/team_inventory.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/team_inventory.h (limited to 'include/team_inventory.h') diff --git a/include/team_inventory.h b/include/team_inventory.h new file mode 100644 index 0000000..16cf0e1 --- /dev/null +++ b/include/team_inventory.h @@ -0,0 +1,20 @@ +#ifndef GUARD_TEAM_INVENTORY_H +#define GUARD_TEAM_INVENTORY_H + +struct subStruct_203B460 +{ + u8 unk0; + u8 unk1; +}; + +struct TeamInventory +{ + struct ItemSlot teamItems[20]; + u16 unk50[0xF0]; + struct subStruct_203B460 unk230[8]; // this is probably actually the same struct as ItemSlot_ALT (see sub_80919FC) + struct subStruct_203B460 unk250[4]; // TODO: idk if this is identical struct or not.. Ghidra says sizes are same + /* 0x260 */ s32 teamMoney; + /* 0x264 */ u32 teamSavings; +}; + +#endif -- cgit v1.2.3