summaryrefslogtreecommitdiff
path: root/include/item.h
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-05-15 16:59:55 -0700
committerGitHub <noreply@github.com>2021-05-15 18:59:55 -0500
commitf402e46cd3c8b7236673d6edbae77903a7cc0618 (patch)
tree37a19f3ab35a73c29d4d6da565741beaf7bb547f /include/item.h
parentf65dee5a143bd543c74c010d7252eb76893ee243 (diff)
Sese's April/May Dump (#37)
* splitting lots of pokemon square and labeling lots of other things * actually commit this stuff * more moving data and things * more screen work * split out some pokemon dungeon data * lots of data work * push more data work * split kecleon, decomp another kanghaskhan func, and try to doc UpdateBGControl more * lots of item work * label more item things * subtype -> category and doc types/category
Diffstat (limited to 'include/item.h')
-rw-r--r--include/item.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/include/item.h b/include/item.h
new file mode 100644
index 0000000..060b750
--- /dev/null
+++ b/include/item.h
@@ -0,0 +1,58 @@
+#ifndef ITEMS_H
+#define ITEMS_H
+
+struct Item
+{
+ /* 0x0 */ u8 *namePointer;
+ /* 0x4 */ u32 buyPrice;
+ /* 0x8 */ u32 sellPrice;
+ /* 0xC */ u8 type;
+ /* 0xD */ u8 icon;
+ /* 0xE */ u16 fill;
+ /* 0x10 */ u8 *descriptionPointer;
+ /* 0x14 */ bool8 unkFood1[2];
+ /* 0x16 */ u8 throwDmg;
+ /* 0x17 */ u8 fill2;
+ /* 0x18 */ s16 move;
+ /* 0x1A */ u8 order; // Numbered order they are in storage
+ /* 0x1B */ u8 unkThrow1B[2];
+ /* 0x1D */ u8 palette;
+ /* 0x1E */ u8 category;
+ /* 0x1F */ u8 fill3;
+};
+
+enum ItemType
+{
+ ITEM_TYPE_THROWABLE,
+ ITEM_TYPE_ROCK,
+ ITEM_TYPE_BERRY_SEED,
+ ITEM_TYPE_APPLE_GUMMI,
+ ITEM_TYPE_HOLD_ITEM,
+ ITEM_TYPE_TM,
+ ITEM_TYPE_MONEY,
+ ITEM_TYPE_UNUSED,
+ ITEM_TYPE_MISC,
+ ITEM_TYPE_ORB,
+ ITEM_TYPE_LINK_BOX,
+ ITEM_TYPE_USED_TM
+};
+
+enum ItemCategory
+{
+ ITEM_CATEGORY_NOTHING,
+ ITEM_CATEGORY_THROWABLE,
+ ITEM_CATEGORY_ROCKS,
+ ITEM_CATEGORY_RIBBONS,
+ ITEM_CATEGORY_FOOD,
+ ITEM_CATEGORY_HEALING,
+ ITEM_CATEGORY_CHESTNUT,
+ ITEM_CATEGORY_MONEY_WISH_STONE,
+ ITEM_CATEGORY_MISC,
+ ITEM_CATEGORY_TM,
+ ITEM_CATEGORY_LINK_BOX,
+ ITEM_CATEGORY_SPECS,
+ ITEM_CATEGORY_SCARFS,
+ ITEM_CATEGORY_ORBS
+};
+
+#endif