Skip to Content
The Alchemy Project

src/field/script_commands_venus.c

A Venus Djinni joining the party, and a Mercury Djinni's droplets. More…

Included by script_commands.c.

Enumerations

NameDescription
enumanonymous enum { VENUS_JOIN_MOTES }The motes that circle down onto the leader as a Venus Djinni joins.

Functions

NameDescription
voidfdDjinnRunVenusJoinEffect (Sint32 djinniId)A Venus Djinni joins the party: it hops twice, spins and leaps, then shrinks away; the leader turns to the camera and plays ANIM_LEADER_ARMS_RAISED while 24 particles rise round it (fdEffectUpdateRadialSpread).
voidfdEffectUpdateRandomTargetParticle (FIELD_PARTICLE *effect)Field effect sprite callback of a Mercury Djinni's droplets: each falls from 100 pixels above (on screen) to a random point 2 to 8 pixels round a spot 15 to 20 pixels over the leader, at 3 to 6 pixels a tick, and where it lands splashes 12 pixels in a random direction, at half size, with SE_CRACK.

Description

A Venus Djinni joining the party, and a Mercury Djinni's droplets. Part of script_commands.c.

Enumerations in detail

anonymous enum

enum { VENUS_JOIN_MOTES }

The motes that circle down onto the leader as a Venus Djinni joins.

EnumeratorValueDescription
VENUS_JOIN_MOTES24

Definition at line 7 of file script_commands_venus.c.

Functions in detail

fdDjinnRunVenusJoinEffect

void fdDjinnRunVenusJoinEffect(Sint32 djinniId)

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

References fdActorFaceDirectionById(), fdActorGetById(), fdActorJump(), fdActorSelectAnimationStub(), fdActorSetSpriteColorModeStub(), fdActorSetTargetPosFromMagnitudeAngle(), fdActorSpawn(), fdActorStartScriptStub(), fdCameraWorldToScreen(), fdDjinnAdvanceSpinAngle(), fdEffectInitSlots(), fdEffectReleaseSlots(), fdEffectShrinkActorAndDestroyFast(), fdEffectUpdateDescendingOrbitActor(), fdEffectUpdateRadialSpread(), fdMapGridSetScreenShakeStub(), fdParticleInit(), fdParticleSetAnimation(), fdParticleSetCallback(), fdSpriteSetAnimationColorModesStub(), FieldEffectReleaseScript, MainRoutineStateWork, mnShopRestoreFieldPaletteStub(), mnShopSaveAndTintFieldPaletteStub(), Sint32, syRandom(), sySoundPlayStub() and sySynch().

Referenced by fdDjinnJoinParty().

Definition at line 15 of file script_commands_venus.c.

fdEffectUpdateRandomTargetParticle

void fdEffectUpdateRandomTargetParticle(FIELD_PARTICLE *effect)

Field effect sprite callback of a Mercury Djinni's droplets: each falls from 100 pixels above (on screen) to a random point 2 to 8 pixels round a spot 15 to 20 pixels over the leader, at 3 to 6 pixels a tick, and where it lands splashes 12 pixels in a random direction, at half size, with SE_CRACK. It then falls again 6 ticks later, until fdDjinnRunMercuryJoinEffect sets its state to MERCURY_DROPLET_LAST_FALL: its next splash is its last.

References fdActorGetById(), fdCameraWorldToScreen(), fdParticleFree(), fdParticleHasPendingTarget(), MainRoutineStateWork, Sint32, syRandom(), sySoundPlayStub() and syVectorAddPolarOffset().

Referenced by fdDjinnRunMercuryJoinEffect().

Definition at line 155 of file script_commands_venus.c.