summaryrefslogtreecommitdiff
path: root/include/team_inventory.h
diff options
context:
space:
mode:
authorDennis <dhilhorst2000@gmail.com>2021-07-17 18:45:13 +0200
committerGitHub <noreply@github.com>2021-07-17 09:45:13 -0700
commitbad7f7f688253c87c2cb2d063ea57c884cb6adff (patch)
treef853042438f42634f8d64b6daec015f3e287d77a /include/team_inventory.h
parenta65d358927f668cb5e34a6046afef5bd61380a28 (diff)
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
Diffstat (limited to 'include/team_inventory.h')
-rw-r--r--include/team_inventory.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/include/team_inventory.h b/include/team_inventory.h
index b8b8a09..36f5a87 100644
--- a/include/team_inventory.h
+++ b/include/team_inventory.h
@@ -1,18 +1,13 @@
#ifndef GUARD_TEAM_INVENTORY_H
#define GUARD_TEAM_INVENTORY_H
-struct subStruct_203B460
-{
- u8 unk0;
- u8 unk1;
-};
-
struct TeamInventory
{
struct ItemSlot teamItems[INVENTORY_SIZE];
u16 teamStorage[NUMBER_OF_ITEM_IDS];
- 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
+ // same type (initialized by same function):
+ struct HeldItem unk230[8];
+ struct HeldItem unk250[4];
/* 0x260 */ s32 teamMoney;
/* 0x264 */ u32 teamSavings;
};