summaryrefslogtreecommitdiff
path: root/include/item.h
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-05-21 00:54:20 -0400
committerGitHub <noreply@github.com>2017-05-21 00:54:20 -0400
commit1c49064780f87a874c8f516ef20be61b17bafef0 (patch)
tree39d88024b6c278f8c4182ee869db6316c71bd8bd /include/item.h
parent9281b378095596896fce5be481fb40966226d955 (diff)
parentea181bea7652e6ea28705302ce7e85998e248986 (diff)
Merge pull request #299 from PikalaxALT/master
Secret base and TV decompilation
Diffstat (limited to 'include/item.h')
-rw-r--r--include/item.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/item.h b/include/item.h
index cc917dbc8..47af11940 100644
--- a/include/item.h
+++ b/include/item.h
@@ -1,8 +1,27 @@
#ifndef GUARD_ITEM_H
#define GUARD_ITEM_H
+
typedef void (*ItemUseFunc)(u8);
+struct Item
+{
+ u8 name[14];
+ u16 itemId;
+ u16 price;
+ u8 holdEffect;
+ u8 holdEffectParam;
+ u8 *description;
+ u8 importance;
+ u8 unk19;
+ u8 pocket;
+ u8 type;
+ ItemUseFunc fieldUseFunc;
+ u8 battleUsage;
+ ItemUseFunc battleUseFunc;
+ u8 secondaryId;
+};
+
void CopyItemName(u16 itemId, u8 *string);
bool8 IsBagPocketNonEmpty(u8 pocket);
bool8 CheckBagHasItem(u16 itemId, u16 count);