Skip to Content
The Alchemy Project

src/game/rare_item_stock.c

Which items the shops keep a stock of in their Artifacts, and where.

Variables

NameDescription
const Uint8ItemRareItemStockIndex [INVENTORY_ITEM_ID_MASK + 1]Each item's place in RareItemStock plus one, by item id; 0 for the items the shops keep no stock of.

Description

Which items the shops keep a stock of in their Artifacts, and where.

Variables in detail

ItemRareItemStockIndex

const Uint8 ItemRareItemStockIndex[INVENTORY_ITEM_ID_MASK + 1]

Each item's place in RareItemStock plus one, by item id; 0 for the items the shops keep no stock of. The ids run to INVENTORY_ITEM_ID_MASK.

Referenced by gmItemAdjustRareItemStock().

Definition at line 8 of file rare_item_stock.c.