Alchemy
Loading...
Searching...
No Matches

BattleAct Struct Reference

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.

Detailed Description

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.

Field Documentation

◆ targetMode

◆ flags

◆ element

◆ effect

◆ unk04

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.

◆ range

◆ ppCost

◆ power

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().

◆ type0c

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().

◆ unk0d

u8 BattleAct::unk0d[3]

0 in every row.

Definition at line 167 of file battle_unit.h.