Skip to Content
The Alchemy Project

src/game/item_table.c

Every item, by item id: its price, what it is and who can equip it, the Attack and Defense it adds, its unleash, what it does while worn, and the ability it is used for. More…

Macros

NameDescription
#defineUNLEASH_PERCENT (percent) ((percent) / 5)A weapon's chance to unleash, in percent, as unleashChance keeps it: in steps of 5 percent.

Variables

NameDescription
const ITEM_DEFINITIONItemDefinitionTable []The 324 items by item id (item_table.c), read through gmItemGetDefinition.

Description

Every item, by item id: its price, what it is and who can equip it, the Attack and Defense it adds, its unleash, what it does while worn, and the ability it is used for. The icon is its picture's number in ItemIcons.

Macros in detail

UNLEASH_PERCENT

#define UNLEASH_PERCENT(percent) ((percent) / 5)

A weapon's chance to unleash, in percent, as unleashChance keeps it: in steps of 5 percent. Every weapon that unleashes does so 35 percent of the time, before what other equipment adds.

Referenced by ItemDefinitionTable.

Definition at line 12 of file item_table.c.

Variables in detail

ItemDefinitionTable

const ITEM_DEFINITION ItemDefinitionTable[]

The 324 items by item id (item_table.c), read through gmItemGetDefinition.

Referenced by gmItemGetDefinition().

Definition at line 15 of file item_table.c.