Document item use

This commit is contained in:
cbt6
2022-10-04 00:51:38 +08:00
parent 4b5bbbf1b7
commit 32573b2ba9
9 changed files with 543 additions and 540 deletions
+11 -2
View File
@@ -16,11 +16,11 @@ struct Item
u8 importance;
u8 exitsBagOnUse;
u8 pocket;
u8 type;
u8 type; // unused for balls
ItemUseFunc fieldUseFunc;
u8 battleUsage;
ItemUseFunc battleUseFunc;
u8 secondaryId;
u8 secondaryId; // only used for fishing rods
};
struct BagPocket
@@ -29,6 +29,15 @@ struct BagPocket
u8 capacity;
};
// Item type IDs (used to determine the exit callback)
enum {
ITEM_TYPE_MAIL,
ITEM_TYPE_PARTY_MENU,
ITEM_TYPE_FIELD,
ITEM_TYPE_UNUSED, // Used for Pokeblock case in RSE
ITEM_TYPE_BAG_MENU, // No exit callback, stays in bag menu
};
extern const struct Item gItems[];
extern struct BagPocket gBagPockets[];