Skip to Content
The Alchemy Project

include/battle/battle_action_run.h

BATTLE_ACTION_RUN, an action planned for its targets: the hits, criticals and multipliers rolled.

Included by battle_effect_internal.h, ability_staging.h, battle_state.h, character.h and inventory.h.

Structures

NameDescription
structBATTLE_ACTION_RUNOne action, as btActionRunBuild lays it out for btAbilityApplyToTarget to apply target by target.

Macros

NameDescription
#defineHIT_NOT_ROLLED -1BATTLE_ACTION_RUN.targetHit while the hit is still to be rolled, as the ability lands; btActionRunBuild rolls it ahead only for Annihilation.

Enumerations

NameDescription
enumanonymous enum { BATTLE_TARGET_CAPACITY, BATTLE_ACTION_RUN_SIZE }
enumBATTLE_CRITICAL { CRITICAL_NONE, CRITICAL_HIT, CRITICAL_STRONG }BATTLE_ACTION_RUN.targetCritical: the critical hit rolled for each target.
enumBATTLE_ACTION_FAILURE { ACTION_FAILURE_NONE, ACTION_FAILURE_SEALED, ACTION_FAILURE_N … }BATTLE_ACTION_RUN.failure: why a cast plays no effect, which the staging shows.

Description

BATTLE_ACTION_RUN, an action planned for its targets: the hits, criticals and multipliers rolled.

Macros in detail

HIT_NOT_ROLLED

#define HIT_NOT_ROLLED -1

BATTLE_ACTION_RUN.targetHit while the hit is still to be rolled, as the ability lands; btActionRunBuild rolls it ahead only for Annihilation.

Referenced by btAbilityApplyToTarget() and btActionRunBuild().

Definition at line 28 of file battle_action_run.h.

Enumerations in detail

anonymous enum

enum { BATTLE_TARGET_CAPACITY, BATTLE_ACTION_RUN_SIZE }

EnumeratorValueDescription
BATTLE_TARGET_CAPACITY14Targets an action can hold: as many units as
BATTLE_ACTION_RUN_SIZE100BATTLE_STATE.objects holds, 8 party places and 6 enemies.

Definition at line 10 of file battle_action_run.h.

BATTLE_CRITICAL

enum BATTLE_CRITICAL

BATTLE_ACTION_RUN.targetCritical: the critical hit rolled for each target.

EnumeratorValueDescription
CRITICAL_NONE
CRITICAL_HITan attack's: a quarter more damage
CRITICAL_STRONGan ability's (effects 36 to 40): half as much again

Definition at line 19 of file battle_action_run.h.

BATTLE_ACTION_FAILURE

enum BATTLE_ACTION_FAILURE

BATTLE_ACTION_RUN.failure: why a cast plays no effect, which the staging shows.

EnumeratorValueDescription
ACTION_FAILURE_NONE
ACTION_FAILURE_SEALED"blocked": the user's Psynergy is sealed
ACTION_FAILURE_NO_PPthe user has too little PP

Definition at line 32 of file battle_action_run.h.