Skip to Content
The Alchemy Project

include/game/inventory.h

A unit's fifteen inventory slots: counting, finding, adding and taking items, and finding who in the party carries one.

Included by field_engine_internal.h, game_internal.h and menu_internal.h.

Functions

NameDescription
ITEM_DEFINITION *gmInventoryGetEquippedDefinition (UNIT *unit, Sint32 type)Returns the definition of the unit's equipped item of type, or NULL.
Sint32mnInventoryMakeRoom (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.