Alchemy
Loading...
Searching...
No Matches

nereid.c File Reference

The Nereid summon. More...

Go to the source code of this file.

Macros

#define NEREID_FRAMES   124
#define NEREID_OBJECTS   12
 objects in the sweeping formation
#define NEREID_COLUMNS   3
 wrapping columns of fire
#define NEREID_EMBERS   1024
 embers in PARTICLES
#define NEREID_COLUMN_IMAGE   0x6e4
 the column of fire in the sheet

Functions

void BattleFx_RunNereid (struct BattleEffectArgument *effect)
 A formation of twelve objects sweeps in among embers and columns of fire, and explodes.

Detailed Description

The Nereid summon.

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

Definition in file nereid.c.

Macro Definition Documentation

◆ NEREID_FRAMES

#define NEREID_FRAMES   124

Definition at line 12 of file nereid.c.

Referenced by BattleFx_RunNereid().

◆ NEREID_OBJECTS

#define NEREID_OBJECTS   12

objects in the sweeping formation

Definition at line 14 of file nereid.c.

Referenced by BattleFx_RunNereid().

◆ NEREID_COLUMNS

#define NEREID_COLUMNS   3

wrapping columns of fire

Definition at line 15 of file nereid.c.

Referenced by BattleFx_RunNereid().

◆ NEREID_EMBERS

#define NEREID_EMBERS   1024

embers in PARTICLES

Definition at line 16 of file nereid.c.

Referenced by BattleFx_RunNereid().

◆ NEREID_COLUMN_IMAGE

#define NEREID_COLUMN_IMAGE   0x6e4

the column of fire in the sheet

Definition at line 17 of file nereid.c.

Referenced by BattleFx_RunNereid().

Function Documentation

◆ BattleFx_RunNereid()

void BattleFx_RunNereid ( struct BattleEffectArgument * effect)

A formation of twelve objects sweeps in among embers and columns of fire, and explodes.

Abilities: Nereid (scene kind 2).

124 frames; pressing A or B during frames 33 to 97 skips to frame 98. A formation of twelve objects sweeps in from the right; embers burst up on frame 28 and over frames 32 to 79, fall back under gravity and from frame 80 rise away, while three columns of fire stream upwards over frames 32 to 79 and the targets bounce. At the end the formation explodes with BattleFx_RunImpactBurst; the battle shows the damage on frame 120.

The embers are PARTICLES 0 to 1023, canvas pixels in 16.16, a variant of -1 marking an idle one. Loads the water spray palette into the first 64 background colours, sets REG_BLDALPHA, spawns the twelve formation objects (released at the end) and gives the targets an upward speed and the usual battle gravity at each bounce.

Definition at line 37 of file nereid.c.

Referenced by BattleFx_RunNereid(), and BattleFx_RunSceneEffect().