summaryrefslogtreecommitdiff
path: root/include/team_inventory.h
diff options
context:
space:
mode:
authorDennis <dhilhorst2000@gmail.com>2021-07-10 18:23:20 +0200
committerGitHub <noreply@github.com>2021-07-10 11:23:20 -0500
commit92a8e55fdd348a88a365eb389181d8e29da6dad9 (patch)
tree2467ef22cb8cf75bdf056143fab3fac4a68ef404 /include/team_inventory.h
parent386299d1f401cb939e6fe3ea16d0ca57731b2648 (diff)
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 <seth.barberee@gmail.com>
Diffstat (limited to 'include/team_inventory.h')
-rw-r--r--include/team_inventory.h20
1 files changed, 20 insertions, 0 deletions
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