mars.c
A Mars Djinni joining the party.
games/tbs/src/object/psynergy_effects/mars.c on GitHub
A Mars Djinni joining the party. Part of psynergy_effects.c, compiled only through it.
Functions
Djinn_RunMarsJoinEffect
void Djinn_RunMarsJoinEffect(s32 djinniId)
A Mars Djinni joins the party: it turns to the camera, bounces three times, spins ever faster and shrinks away in a fountain of 24 sparks (BattleEffect_UpdatePhasedRadialParticle). The leader turns to the camera and plays animation 28, the sparks swarm the leader, who pulses for 100 frames, and the sparks vanish. Called by Djinn_JoinParty for a Mars Djinni, which then clears the Djinni's actor slot. Uses all 24 effect slots, tints the field palette red and fades it back at the end.
Used by Djinn_JoinParty.
BattleFx_UpdateRadialSpread
void BattleFx_UpdateRadialSpread(struct EffectSlot *effect)
Effect slot callback of a Venus Djinni's particles: each starts on screen at a random point 10 to 20 pixels round the leader and flies 120 pixels up the screen, over and over (states 0 and 1); set to 2, it is freed once it arrives. Set by BattleFx_RunVenusDjinnCapture in venus.c; a particle that starts on an odd frame plays SE_144. It speeds up by 1 pixel a frame to at most 5, straight at its target.
Used by BattleFx_RunVenusDjinnCapture.
Also, functions without a comment: BattleFx_UpdateDescendingOrbitObject.