include/game/inventory.h
A unit's fifteen inventory slots: counting, finding, adding and taking items, and finding who in the party carries one.
#include "game/item.h"#include "game/character.h"#include "system.h"#include "game/main_routine_state.h"
Included by field_engine_internal.h, game_internal.h and menu_internal.h.
Functions
| Name | Description | |
|---|---|---|
ITEM_DEFINITION * | gmInventoryGetEquippedDefinition (UNIT *unit, Sint32 type) | Returns the definition of the unit's equipped item of type, or NULL. |
Sint32 | mnInventoryMakeRoom (Sint32 owner) | Makes room in memberId's inventory: if no slot is free, removes the whole stack in the first slot that is not equipped. |
Description
A unit's fifteen inventory slots: counting, finding, adding and taking items, and finding who in the party carries one.