nereid.c
The Nereid summon.
games/tbs/src/effect/parts/nereid.c on GitHub
The Nereid summon. Part of effect.c, the battle effect object, compiled only through it.
Functions
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.
Used by BattleFx_RunSceneEffect.
Macros, without a comment: NEREID_FRAMES, NEREID_OBJECTS, NEREID_COLUMNS, NEREID_EMBERS, NEREID_COLUMN_IMAGE.