Alchemy
Loading...
Searching...
No Matches

venus.c File Reference

A Venus Djinni joining the party. More...

Go to the source code of this file.

Functions

void BattleFx_RunVenusDjinnCapture (s32 djinniId)
 A Venus Djinni joins the party: it hops twice, spins and leaps, then shrinks away; the leader turns to the camera and plays animation 28 while 24 particles rise round it (BattleFx_UpdateRadialSpread).
void BattleFx_UpdateRandomTargetParticle (struct EffectSlot *effect)
 Effect slot callback of a Mercury Djinni's droplets: each falls from 100 pixels above to a random point near the leader (state 0), and where it lands splashes 12 pixels in a random direction with SE_143.
void BattleFx_HalveDistanceToTarget (union FieldObject *fieldObject)
 Per-frame update of an afterimage: closes half the distance to the object it is linked to.

Detailed Description

A Venus Djinni joining the party.

Part of psynergy_effects.c, compiled only through it.

Definition in file venus.c.

Function Documentation

◆ BattleFx_RunVenusDjinnCapture()

void BattleFx_RunVenusDjinnCapture ( s32 djinniId)

A Venus Djinni joins the party: it hops twice, spins and leaps, then shrinks away; the leader turns to the camera and plays animation 28 while 24 particles rise round it (BattleFx_UpdateRadialSpread).

Then 24 motes spiral down onto the leader from 120 pixels above (BattleFx_UpdateDescendingOrbitObject) and 8 sparks burst from the leader. Called by Djinn_JoinParty for a Venus Djinni, which then clears the Djinni's actor slot. Uses all 24 effect slots, tints the field palette green and fades it back at the end.

Definition at line 15 of file venus.c.

Referenced by BattleFx_RunVenusDjinnCapture(), Djinn_JoinParty(), and Djinn_ResolvePendingEvent().

◆ BattleFx_UpdateRandomTargetParticle()

void BattleFx_UpdateRandomTargetParticle ( struct EffectSlot * effect)

Effect slot callback of a Mercury Djinni's droplets: each falls from 100 pixels above to a random point near the leader (state 0), and where it lands splashes 12 pixels in a random direction with SE_143.

In state 1 it then falls again 6 frames later (back to state 0); once BattleFx_RunMercuryDjinnCapture sets state 2, its next splash is its last (state 3, which frees it).

Definition at line 163 of file venus.c.

Referenced by BattleFx_RunMercuryDjinnCapture(), BattleFx_UpdateRandomTargetParticle(), and Djinn_ResolvePendingEvent().

◆ BattleFx_HalveDistanceToTarget()

void BattleFx_HalveDistanceToTarget ( union FieldObject * fieldObject)

Per-frame update of an afterimage: closes half the distance to the object it is linked to.

Set on the Mercury Djinni's afterimages by BattleFx_RunMercuryDjinnCapture.

Definition at line 220 of file venus.c.

Referenced by BattleFx_HalveDistanceToTarget(), BattleFx_RunMercuryDjinnCapture(), and Djinn_ResolvePendingEvent().