summaryrefslogtreecommitdiff
path: root/include/d/d_pouch.h
blob: 1c10c91f81764e00401466a5aed85038df13e2cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef D_POUCH_H
#define D_POUCH_H

#include "common.h"
#include "d/a/d_a_itembase.h"

s32 summarizePouchContents(s32 *, s32 *, s32 *);

u32 convertFilePouchSlot(s32 fileSlot);
s32 convertLytPouchSlot(s32 fileSlot);
s32 getPouchSlotCount(bool unk);
bool isItemExtraAmmo(s32 item);
bool isItemMedal(s32 item);
bool hasAnyShields();
bool isItemShield(s32 item);

#define POUCH_SLOT_NONE 8

u8 adventurePouchFindItemSlot(ITEM_ID item);
u32 adventurePouchCountItem(ITEM_ID itemId);

bool swapAdventurePouchItems(s32 slot1, s32 slot2);
bool swapStockAndPouchItems(s32 pouchSlot, s32 stockSlot);
bool swapStockItems(s32 slot1, s32 slot2);

void sortStock();

bool tryDropItem(f32 chance);

#define ITEM_CHECK_SLOT_NONE 60

u16 itemCheckFindItemSlot(ITEM_ID item);

void collectPouchItem(u16 id);
void collectPouchItemIntoSlot(s32 slot, u16 id, u32, bool);

#endif