Skip to Content
The Alchemy Project

struct BATTLE_PLAN

One action, laid out for btAbilityApplyToTarget to apply target by target.

Declared in battle_action_run.h.

Fields

NameDescription
Uint8unitIdThe acting unit.
Sint8targetCountTargets in targetIds.
Uint8partnerIdThe other unit of Meld
Uint8targetIds [BATTLE_TARGET_CAPACITY]and Mold: the strongest ally Meld joins, whose Attack adds a quarter, or the unit Mold takes the place of.
Sint8targetOffset [BATTLE_TARGET_CAPACITY]Each target's place from the aimed unit's, which sets the range falloff.
Sint8targetMultiplier [BATTLE_TARGET_CAPACITY]The blows that land on each target: 0 a miss, 2 or 3 a double or triple.
Sint8targetCritical [BATTLE_TARGET_CAPACITY]BATTLE_CRITICAL.
Sint8targetHit [BATTLE_TARGET_CAPACITY]Whether the ability's
Uint8paddingBeforeCommandeffect takes on each target, or HIT_NOT_ROLLED.
Sint16commandBATTLE_COMMAND.
Sint32abilityId
Sint32elementELEMENT.
Sint32stagingBATTLE_STAGING.
Uint32battleEffectThe battle effect that shows the action, and how it is staged (EFFECT_ID_MASK and the EFFECT_* bits).
Sint32failureBATTLE_ACTION_FAILURE.
Uint32hauntDamage

Description

One action, laid out for btAbilityApplyToTarget to apply target by target.

struct BATTLE_PLAN

Referenced by btAbilityApplyToTarget(), btActionRunBuild(), btMotionCallBeast(), btStagingBuildTargetList(), btStagingPlanAuroraField(), btStagingPlanDaedalus(), btStagingPlanHighImpact(), btStagingRunAttack(), btStagingRunFlee(), btStagingRunFullScreen(), btStagingRunItem(), btStagingRunMessages(), btStagingRunPsynergyCast() and btUnitProcessActionEnd().

Definition at line 38 of file battle_action_run.h.

Fields in detail

unitId

Uint8 unitId

The acting unit.

targetCount

Sint8 targetCount

Targets in targetIds.

partnerId

Uint8 partnerId

The other unit of Meld

targetIds

Uint8 targetIds[BATTLE_TARGET_CAPACITY]

and Mold: the strongest ally Meld joins, whose Attack adds a quarter, or the unit Mold takes the place of.

targetOffset

Sint8 targetOffset[BATTLE_TARGET_CAPACITY]

Each target's place from the aimed unit's, which sets the range falloff.

targetMultiplier

Sint8 targetMultiplier[BATTLE_TARGET_CAPACITY]

The blows that land on each target: 0 a miss, 2 or 3 a double or triple.

targetCritical

Sint8 targetCritical[BATTLE_TARGET_CAPACITY]

BATTLE_CRITICAL.

targetHit

Sint8 targetHit[BATTLE_TARGET_CAPACITY]

Whether the ability's

paddingBeforeCommand

Uint8 paddingBeforeCommand

effect takes on each target, or HIT_NOT_ROLLED.

command

Sint16 command

BATTLE_COMMAND.

abilityId

Sint32 abilityId

element

Sint32 element

ELEMENT.

staging

Sint32 staging

BATTLE_STAGING.

battleEffect

Uint32 battleEffect

The battle effect that shows the action, and how it is staged (EFFECT_ID_MASK and the EFFECT_* bits).

failure

Sint32 failure

BATTLE_ACTION_FAILURE.

hauntDamage

Uint32 hauntDamage