fire.c
Fire.
games/tbs/src/effect/parts/fire.c on GitHub
Fire. Part of effect.c, the battle effect object, compiled only through it.
Functions
BattleFx_RunFire
void BattleFx_RunFire(struct BattleEffectArgument *effect)
Homing embers: embers burst from the top of the user two a frame, turn towards the targets 48 frames after they appear, and each one that hits the ground shows an impact flare for 12 frames as its target flinches.
Abilities: Fire, Fireball, Inferno (kind 12).
The camera swings round over frames 17 to 79, and the battle shows the damage 24 frames before the end.
Schedules Camera_ApplyPhasedDelta for the swing and drives it through work->cameraDelta and work->cameraPhase; sets work->shakeFrames on each hit and writes REG_BLDALPHA. Ends with both callbacks removed, the blitters freed and the canvas layer closed.
effect: the targets; variant picks the number of embers
(gFire_Counts).Used by gBattleFx_EffectHandlers.
Macros
FIRE_EMBERS
#define FIRE_EMBERS 64
The embers set up in PARTICLES: no row of gFire_Counts may ask for more.
Used by BattleFx_RunFire.