gaia.c
Gaia.
games/tbs/src/effect/parts/gaia.c on GitHub
Gaia. Part of effect.c, the battle effect object, compiled only through it.
Functions
BattleFx_RunGaia
void BattleFx_RunGaia(struct BattleEffectArgument *effect)
Rising wall: the ground swells, a wall of rock rises from it, stands while rocks tumble up its face and the targets are battered, and sinks again.
Abilities: Gaia, Mother Gaia, Grand Gaia, Rockfall, Rockslide, Avalanche (kind 3).
The wall is symmetric: its left half is drawn, then mirrored for the right. Its centre is at canvas x 64 + wallX. The rocks are 11 animation objects, moved by particles[10] to particles[20].
effect: the targets; variant 0 to 2 widens the wall.
Used by gBattleFx_EffectHandlers.
Macros
GAIA_WALL_TOP_CELLS
#define GAIA_WALL_TOP_CELLS 0x13c0
The standing wall's top in the rebuilt sheet, 48x96 (stretched from 48x32).
Used by BattleFx_RunGaia.
GAIA_WALL_FOOT_CELLS
#define GAIA_WALL_FOOT_CELLS 0x25c0
The standing wall's foot in the rebuilt sheet, 48x21.
Used by BattleFx_RunGaia.
Also, macros without a comment: GAIA_WALL_FOOT_BYTES, GAIA_FRAMES, GAIA_ROCKS.