mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-30 22:27:51 -05:00
more item work
This commit is contained in:
@@ -1641,17 +1641,18 @@ struct bag_items_inner {
|
||||
#define MAIN_INVENTORY_INDEX 0
|
||||
#define SPECIAL_EPISODE_INVENTORY_INDEX 1
|
||||
#define RESCUE_INVENTORY_INDEX 2
|
||||
#define NUM_INVENTORIES 3
|
||||
|
||||
struct bag_items {
|
||||
// Indexes:
|
||||
// 0x0 - Main, default
|
||||
// 0x1 - Special Episode
|
||||
// 0x2 - Rescue
|
||||
/* 0x0 */ struct bag_items_inner inventories[3];
|
||||
/* 0x0 */ struct bag_items_inner inventories[NUM_INVENTORIES];
|
||||
/* 0x384 */ struct bag_items_inner *bag_items;
|
||||
/* 0x388 */ u8 active_inventory_idx;
|
||||
u8 fill2[0x1009];
|
||||
u32 maybeMoney[3]; // indexed with an u8, uses same indexes as Inventory
|
||||
u32 maybeMoney[NUM_INVENTORIES]; // indexed with an u8, uses same indexes as Inventory
|
||||
};
|
||||
|
||||
struct bulk_item
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
#ifndef PMDSKY_MAIN_0200ECFC_H
|
||||
#define PMDSKY_MAIN_0200ECFC_H
|
||||
|
||||
// Set the active inventory to the main inventory
|
||||
void SetActiveInventoryToMain(void);
|
||||
|
||||
// Init all inventories, all money the player is carrying, and set default active inventory
|
||||
void AllInventoriesZInit(void);
|
||||
|
||||
// Init the special episode inventory and money the player is carrying
|
||||
void SpecialEpisodeInventoryZInit(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user