diff options
Diffstat (limited to 'include/item.h')
-rw-r--r-- | include/item.h | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/include/item.h b/include/item.h index 76db8a8..579c5c7 100644 --- a/include/item.h +++ b/include/item.h @@ -1,6 +1,8 @@ #ifndef GUARD_ITEMS_H #define GUARD_ITEMS_H +#include "code_8092334.h" + struct Item { /* 0x0 */ u8 *namePointer; @@ -28,11 +30,9 @@ struct ItemSlot u8 itemIndex; }; -struct ItemSlot_ALT -{ - u8 itemIndex; - u8 numItems; - u8 unk2; +struct HeldItem { + u8 itemIndex; + u8 numItems; }; struct unkStruct_80915F4 @@ -41,6 +41,15 @@ struct unkStruct_80915F4 u16 unk2; }; +struct unkStruct_8090F58 +{ + u32 unk0; + u8 unk4; + u8 unk5; + s16 unk6; + u8 unk8; +}; + enum ItemType { ITEM_TYPE_THROWABLE, @@ -337,16 +346,28 @@ u8 *GetItemDescription(u8 itemIndex); u32 GetItemUnkFood(u8 itemIndex, u32 r1); s32 GetNumberOfFilledInventorySlots(void); bool8 IsThrowableItem(u8 itemIndex); -void sub_8090A8C(struct ItemSlot *param_1,u8 itemIndex,u8 param_3); -void sub_8090B08(struct ItemSlot_ALT *param_1,u8 itemIndex); -void sub_8090B64(struct ItemSlot *param_1, struct ItemSlot_ALT *param_2); -void sub_8090DC4(void* param_1,u8 itemIndex,u32 param_3); +void xxx_init_itemslot_8090A8C(struct ItemSlot *param_1,u8 itemIndex,u8 param_3); +void xxx_init_helditem_8090B08(struct HeldItem *param_1,u8 itemIndex); +void HeldItemToSlot(struct ItemSlot *param_1, struct HeldItem *param_2); +void sub_8090DC4(void* param_1,u8 itemIndex, struct unkStruct_8090F58* param_3); bool8 AddItemToInventory(const struct ItemSlot* slot); void ConvertMoneyItemToMoney(); void AddToTeamMoney(s32 amount); u32 GetMoneyValue(struct ItemSlot* slot); u16 GetItemMove(u8 index); +bool8 CanSellItem(u32 id); bool8 IsGummiItem(u8); void xxx_init_unk230_substruct(u8); +bool8 xxx_insert_unk230_80919FC(u8); +u32 xxx_count_non_empty_inv_unk250_8091A48(); +void sub_8091BB4(u8); +void sub_8090F58(void*, u8 *, struct ItemSlot *, struct unkStruct_8090F58*); + +// some sort of weird memcpy's? +// not sure what the second argument should be typed as +void sub_8091DC0(struct unkStruct_8094924 *r0, u8*); +void sub_8091DE0(struct unkStruct_8094924 *a1, u8 *a2); +void sub_8091E00(struct unkStruct_8094924 *a1, u8 *a2); +void sub_8091E28(struct unkStruct_8094924 *a1, u8 *a2); #endif |