Skip to Content
The Alchemy Project

struct ABILITY_DEFINITION

An ability's definition, a row of AbilityDefinitions: its targeting, kind, element, effect, range, PP cost and power.

Declared in battle_unit.h.

Fields

NameDescription
Uint8targetModeABILITY_TARGET.
Uint8flagsbits: 7 usable in battle | 6 usable in the field | 5..4 clear in every row | 3..0 kind (ABILITY_FORMULA_MASK, ABILITY_FORMULA).
Uint8elementELEMENT.
Uint8effectABILITY_EFFECT.
Uint16iconThe ability's icon.
Uint8fieldPsynergyFIELD_PSY, or 0 for none.
Uint8reservedAfterFieldPsynergy0 in every row.
Uint8rangeThe aimed unit and range - 1 either side, or ABILITY_RANGE_ALL.
Uint8ppCostPP the ability costs.
Uint16powerWhat the kind applies, 0 for none.

Description

An ability's definition, a row of AbilityDefinitions: its targeting, kind, element, effect, range, PP cost and power.

struct ABILITY_DEFINITION

Referenced by AbilityDefinitions, btAbilityApplyToTarget(), btActionOrderSort(), btActionRunBuild(), btAIChooseAction(), btAIChooseTarget(), fdUsePsynergy(), gmAbilityGetDefinition(), mnAbilityApplyToTargets(), mnAbilityPlayUseSound(), mnBattleClassifyEntryKind(), mnBattleCollectPartyCommands(), mnBattleDjinnMenuShowChangePreview(), mnBattlePsynergyMenuRun(), mnBattleStatusScreenRun(), mnItemClassifyUseMode(), mnPsynergyMenuClassifySelectedPsynergy(), mnPsynergyMenuCollectActions(), mnPsynergyMenuDrawPage(), mnPsynergyMenuIsActionRestricted(), mnPsynergyMenuRunList(), mnPsynergyMenuRunSteps(), mnStatusScreenDrawPsynergyPage() and mnStatusScreenShowPsynergyRow().

Definition at line 253 of file battle_unit.h.

Fields in detail

targetMode

Uint8 targetMode

ABILITY_TARGET.

flags

Uint8 flags

bits: 7 usable in battle | 6 usable in the field | 5..4 clear in every row | 3..0 kind (ABILITY_FORMULA_MASK, ABILITY_FORMULA).

element

Uint8 element

ELEMENT.

effect

Uint8 effect

ABILITY_EFFECT.

icon

Uint16 icon

The ability's icon.

fieldPsynergy

Uint8 fieldPsynergy

FIELD_PSY, or 0 for none.

reservedAfterFieldPsynergy

Uint8 reservedAfterFieldPsynergy

0 in every row.

range

Uint8 range

The aimed unit and range - 1 either side, or ABILITY_RANGE_ALL.

ppCost

Uint8 ppCost

PP the ability costs.

power

Uint16 power

What the kind applies, 0 for none.