pmd-red/include/item.h
Seth Barberee f402e46cd3
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
2021-05-15 18:59:55 -05:00

59 lines
1.2 KiB
C

#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