more item work

This commit is contained in:
Seth Barberee
2026-01-19 11:33:05 -08:00
parent 2a478bc062
commit 751aa84dee
4 changed files with 30 additions and 46 deletions

View File

@@ -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

View File

@@ -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);