ramses.c
The Ramses summon.
games/tbs/src/effect/parts/ramses.c on GitHub
The Ramses summon. Part of effect.c, the battle effect object, compiled only through it.
Functions
BattleFx_RunRamses
void BattleFx_RunRamses(struct BattleEffectArgument *effect)
Over the desert backdrop a formation stands while an orb circles above it, drops three times throwing puffs, and flies off; RAMSES_ROCKS rocks fall and bounce, and the orb's flight ends in a burst of RAMSES_SPARKS sparks from PARTICLES.
Abilities: Ramses (scene kind 1).
Up to RAMSES_FRAMES frames; A or B ends it early.
0 to 90 the orb circles above the formation
91 to 196 it drops three times, 40 frames apart, throwing puffs, and
rises again; the screen shakes over frames 96 to 251
244 to 275 it flies off to the left, speeding up
260 the targets are struck and the sparks burst outAfter frame 96 the rocks fall and bounce. Within a frame the order of the steps matters: later steps draw over earlier ones, and several of them consume random numbers.
Used by BattleFx_RunSceneEffect.
Macros, without a comment: RAMSES_FRAMES, RAMSES_STRIKE_FRAME, RAMSES_ROCKS, RAMSES_FIRST_PUFF, RAMSES_FIRST_ROCK_PUFF, RAMSES_SPARKS.