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
| Name | Description | |
|---|---|---|
Uint8 | targetMode | ABILITY_TARGET. |
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). |
Uint8 | element | ELEMENT. |
Uint8 | effect | ABILITY_EFFECT. |
Uint16 | icon | The ability's icon. |
Uint8 | fieldPsynergy | FIELD_PSY, or 0 for none. |
Uint8 | reservedAfterFieldPsynergy | 0 in every row. |
Uint8 | range | The aimed unit and range - 1 either side, or ABILITY_RANGE_ALL. |
Uint8 | ppCost | PP the ability costs. |
Uint16 | power | What 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
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
effect
Uint8 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.