struct ITEM_DEFINITION
An item's definition: its price, type, who can equip it, its bonuses and unleash, its effects and the action it is used for.
Declared in item.h.
Fields
| Name | Description | |
|---|---|---|
Sint16 | price | coins |
Uint8 | type | ITEM_TYPE; 0 for an item that is not equipment |
Uint8 | flags | ITEM_FLAGS |
Uint16 | equipMask | 1 bit per character that can equip it, bit 0 Isaac |
Uint16 | icon | indexes ItemIcons |
Sint16 | attack | Attack added while equipped |
Sint8 | defense | Defense added while equipped |
Uint8 | unleashChance | in steps of 5 percent |
Uint8 | useType | what using it costs (an ITEM_USE_ value) |
Uint16 | unleashAbility | the action a weapon unleashes, |
Uint8 | padding [4] | or 0 |
long | element | a weapon's attack element; ELEMENT_NONE for none |
EQUIP_EFFECT | effects [EQUIP_EFFECT_SLOTS] | what it does while equipped |
Uint16 | abilityId | the ability used, or taught as Psynergy |
Description
An item's definition: its price, type, who can equip it, its bonuses and unleash, its effects and the action it is used for.
struct ITEM_DEFINITION
Referenced by btActionRunBuild(), btAIChooseAction(), btStagingRunItem(), gmEquipmentGetUnleashRateBonus(), gmEquipmentRollUnleash(), gmFlagRefreshLureCap(), gmInventoryAddItem(), gmInventoryCheckDiscard(), gmInventoryEquip(), gmInventoryFindEquipped(), gmInventoryGetEquippedDefinition(), gmInventoryGetEquippedItem(), gmItemCanUnitEquip(), gmItemGetDefinition(), gmItemGetEquipmentGroup(), gmUnitGetAttackElement(), gmUnitRefreshPsynergy(), ItemDefinitionTable, mnIconDrawItem(), mnItemCheckBattleUse(), mnItemClassifyUseMode(), mnItemIconCompose(), mnItemMenuBuildCommands(), mnItemMenuDrawItemDetails(), mnItemMenuRunCommands(), mnItemMenuSort(), mnItemUse(), mnShopBuyDone(), mnShopConfirmEquip(), mnShopDrawEquipComparison(), mnShopDrawStock(), mnShopRepairItem(), mnShopSelectBuy(), mnShopSelectBuyCount(), mnShopSelectSellCount(), mnShopSellItem(), mnStatusPanelDraw(), mnStatusScreenShowEquipmentRow() and scGomaCaveEntranceGiveShamansRod().
Definition at line 193 of file item.h.
Fields in detail
price
Sint16 price
coins
type
Uint8 type
ITEM_TYPE; 0 for an item that
is not equipment
flags
Uint8 flags
equipMask
Uint16 equipMask
1 bit per character that can equip it, bit 0 Isaac
icon
Uint16 icon
indexes ItemIcons
attack
Sint16 attack
Attack added while equipped
defense
Sint8 defense
Defense added while equipped
unleashChance
Uint8 unleashChance
in steps of 5 percent
useType
Uint8 useType
what using it costs (an ITEM_USE_ value)
unleashAbility
Uint16 unleashAbility
the action a weapon unleashes,
padding
Uint8 padding[4]
or 0
element
long element
a weapon's attack element;
ELEMENT_NONE for none
effects
EQUIP_EFFECT effects[EQUIP_EFFECT_SLOTS]
what it does while equipped
abilityId
Uint16 abilityId
the ability used, or taught as Psynergy