Alchemy
Loading...
Searching...
No Matches

fire.c File Reference

Fire. More...

Go to the source code of this file.

Macros

#define FIRE_EMBERS   64
 The embers set up in PARTICLES: no row of gFire_Counts may ask for more.

Functions

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.

Detailed Description

Fire.

Part of effect.c, the battle effect object, compiled only through it.

Definition in file fire.c.

Macro Definition Documentation

◆ FIRE_EMBERS

#define FIRE_EMBERS   64

The embers set up in PARTICLES: no row of gFire_Counts may ask for more.

Definition at line 8 of file fire.c.

Referenced by BattleFx_RunFire().

Function Documentation

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

Definition at line 26 of file fire.c.

Referenced by BattleFx_RunFire().