An ability's definition, a row of gBattleAction_DefinitionTable: its targeting, kind, element, effect, range, PP cost and power. More...
#include <battle/battle_unit.h>
Data Fields | |
| u8 | targetMode |
| TARGET_MODE_NONE, _FOES, _ALLIES or _SELF. | |
| u8 | flags |
| bits: 7 usable in battle | 6 usable in the field | 5..4 clear in every row | 3..0 kind (ABILITY_KIND_MASK, enum AbilityKind). | |
| u8 | element |
| enum Element | |
| u8 | effect |
| enum AbilityEffect | |
| u8 | unk04 [4] |
| [0] the icon the menus draw; [1] to [3] are 0 in every row. | |
| u8 | range |
| the aimed unit and range - 1 either side, or ABILITY_RANGE_ALL | |
| u8 | ppCost |
| PP the ability costs. | |
| u16 | power |
| what the kind applies, 0 for none | |
| u8 | type0c |
| The field Psynergy the ability works as, 1 (Move) to 16 (Avoid); 0 for none. | |
| u8 | unk0d [3] |
| 0 in every row. | |
An ability's definition, a row of gBattleAction_DefinitionTable: its targeting, kind, element, effect, range, PP cost and power.
Definition at line 151 of file battle_unit.h.
| u8 BattleAct::targetMode |
TARGET_MODE_NONE, _FOES, _ALLIES or _SELF.
Definition at line 152 of file battle_unit.h.
Referenced by Battle_CollectPartyCommands(), BattleCommand_BuildPlan(), BattleCommand_SelectAutomatic(), BattleTarget_SelectForAction(), Item_GetTargetMode(), and PsynergyMenu_ClassifySelectedPsynergy().
| u8 BattleAct::flags |
bits: 7 usable in battle | 6 usable in the field | 5..4 clear in every row | 3..0 kind (ABILITY_KIND_MASK, enum AbilityKind).
Definition at line 155 of file battle_unit.h.
Referenced by Ability_PlayUseAnimation(), Battle_ClassifyEntryKind(), BattleCommand_SelectAutomatic(), BattleEffect_ApplyToTargets(), BattleMenu_RunActionSelection(), BattleTarget_SelectForAction(), BattleTargetExec(), Item_ClassifyUseAbility(), Item_ClassifyUseMode(), PsynergyMenu_CollectActions(), PsynergyMenu_DrawRangePage(), and PsynergyMenu_IsActionRestricted().
| u8 BattleAct::element |
enum Element
Definition at line 156 of file battle_unit.h.
Referenced by Battle_CollectPartyCommands(), BattleCommand_BuildPlan(), BattleEffect_ApplyToTargets(), BattleMenu_RunActionSelection(), DjinnMenu_ShowChangePreview(), and PsynergyMenu_DrawRangePage().
| u8 BattleAct::effect |
enum AbilityEffect
Definition at line 157 of file battle_unit.h.
Referenced by Ability_PlayUseAnimation(), Battle_ClassifyEntryKind(), BattleCommand_BuildPlan(), BattleCommand_SelectAutomatic(), BattleEffect_ApplyToTargets(), BattleQueue_SortByPriority(), and BattleTargetExec().
| u8 BattleAct::unk04[4] |
[0] the icon the menus draw; [1] to [3] are 0 in every row.
Definition at line 159 of file battle_unit.h.
| u8 BattleAct::range |
the aimed unit and range - 1 either side, or ABILITY_RANGE_ALL
Definition at line 160 of file battle_unit.h.
Referenced by Battle_CollectPartyCommands(), BattleCommand_BuildPlan(), BattleCommand_SelectAutomatic(), BattleEffect_ApplyToTargets(), BattleMenu_RunActionSelection(), BattleTarget_SelectForAction(), BattleTargetExec(), DjinnMenu_ShowChangePreview(), Item_ClassifyUseMode(), PsynergyMenu_ClassifySelectedPsynergy(), and PsynergyMenu_DrawListPage().
| u8 BattleAct::ppCost |
PP the ability costs.
Definition at line 161 of file battle_unit.h.
Referenced by Ability_IsPsynergy(), Battle_CollectPartyCommands(), BattleCommand_BuildPlan(), BattleCommand_SelectAutomatic(), BattleMenu_RunActionSelection(), Debug_SelectAbilityPair(), Field_UsePsynergy(), Menu_ResolveSelectedAction(), PsynergyMenu_DrawActionPage(), PsynergyMenu_DrawListPage(), and PsynergyMenu_RunList().
| u16 BattleAct::power |
what the kind applies, 0 for none
Definition at line 162 of file battle_unit.h.
Referenced by BattleEffect_ApplyToTargets(), and BattleTargetExec().
| u8 BattleAct::type0c |
The field Psynergy the ability works as, 1 (Move) to 16 (Avoid); 0 for none.
The field effects branch on it, and the status screen counts it as usable in the field.
Definition at line 166 of file battle_unit.h.
Referenced by BattleFx_FindMatchingEvent(), BattleFx_LoadActionEffectResources(), Field_RunPsynergyEvents(), Field_UsePsynergy(), PsynergyMenu_ClassifySelectedPsynergy(), PsynergyMenu_CollectActions(), PsynergyMenu_DrawRangePage(), PsynergyMenu_IsActionRestricted(), and PsynergyMenu_RunList().
| u8 BattleAct::unk0d[3] |
0 in every row.
Definition at line 167 of file battle_unit.h.