diff options
author | Louis Hampton <roastveg@hotmail.co.uk> | 2020-06-20 19:01:00 +0100 |
---|---|---|
committer | Louis Hampton <roastveg@hotmail.co.uk> | 2020-06-20 19:01:00 +0100 |
commit | 3cf5ef0a661c62a94766e2c08025bb7ecb785b2a (patch) | |
tree | 7fa9fc230a0517f65876613318f043f3c14b8f63 /include/itemtool.h | |
parent | 59f6bdfa9a7645d3e2e9d1ac0bde5af3ad77e8b2 (diff) | |
parent | 6298426d9ad4c59a875b0a90a0facfa1a3a513cc (diff) |
Merge branch 'master' of https://github.com/roastveg/pokediamond
Diffstat (limited to 'include/itemtool.h')
-rw-r--r-- | include/itemtool.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/itemtool.h b/include/itemtool.h new file mode 100644 index 00000000..d8419c2b --- /dev/null +++ b/include/itemtool.h @@ -0,0 +1,33 @@ +#ifndef POKEDIAMOND_ITEMTOOL_H +#define POKEDIAMOND_ITEMTOOL_H + +#include "global.h" +#include "constants/items.h" + +// Berries (nutdata) + +struct NutData +{ + u16 unk0; + u8 unk2; + u8 unk3; + u8 unk4; + u8 unk5; + u8 unk6; + u8 unk7; + u8 unk8; + u8 unk9; + u8 unkA; + u8 unkB; +}; + +NARC * OpenNutsDataNarc(u32 heap_id); +struct NutData * ReadNutDataFromNarc(NARC * narc, u32 berry_idx, u32 heap_id); +void CloseNutsDataNarc(NARC * narc); +struct NutData * LoadNutDataSingle(s32 berry_idx, u32 heap_id); +struct NutData * LoadNutDataSingleByItemId(s32 item_id, u32 heap_id); +u32 GetNutAttr(struct NutData * nut, u32 attr); +struct String * GetNutName(u32 berry_idx, u32 heap_id); +struct String * GetNutDesc(u32 berry_idx, u32 heap_id); + +#endif //POKEDIAMOND_ITEMTOOL_H |