Skip to Content
The Alchemy Project

src/field/script_commands_growth.c

Growth: growing plants, hanging vines and scattering leaves. More…

Included by script_commands.c.

Macros

NameDescription
#defineBURST_FIELD_PARTICLES 24

Enumerations

NameDescription
enumGROWTH_TARGET_KIND { GROWTH_ON_PLANT, GROWTH_ON_SPROUTING_LEAVES, GROWTH_ON_ARROW … }What Growth does to its target.

Functions

NameDescription
voidfdPsynergyGrowthOnTarget (Sint32 unused)Growth cast on a target: the burst of particles, then the target takes its grown animation and the underfoot priority, with SE_RECOVERY.
voidfdPsynergyGrowth (void)When Growth is cast with no target, particles fly out from in front of the caster, and then five vine leaves drop 4 to 10 pixels round the Psynergy's position.
voidfdEffectSpawnBurstParticleField (void)Sends BURST_FIELD_PARTICLES particles, one every 2 ticks, from in front of the caster to points round the Psynergy's position.

Description

Growth: growing plants, hanging vines and scattering leaves. Part of script_commands.c.

Macros in detail

BURST_FIELD_PARTICLES

#define BURST_FIELD_PARTICLES 24

Referenced by fdEffectSpawnBurstParticleField().

Definition at line 111 of file script_commands_growth.c.

Enumerations in detail

GROWTH_TARGET_KIND

enum GROWTH_TARGET_KIND

What Growth does to its target.

EnumeratorValueDescription
GROWTH_ON_PLANTit grows (its animation 2)
GROWTH_ON_SPROUTING_LEAVESa vine hangs from it
GROWTH_ON_ARROW_PLANTthe scene's script makes it point

Definition at line 5 of file script_commands_growth.c.

Functions in detail

fdPsynergyGrowthOnTarget

void fdPsynergyGrowthOnTarget(Sint32 unused)

Growth cast on a target: the burst of particles, then the target takes its grown animation and the underfoot priority, with SE_RECOVERY. Sprouting leaves (SPRITE_SPROUTING_LEAVES) instead drop five vines round the Psynergy's position and hang a vine (fdHangingVineHang). On an arrow plant Growth's own effect only plays SE_RECOVERY; the scene's script turns it into an arrow (scGaiaRockInsidePlantPointsTheWay).

References fdActorGetSpriteIdStub(), fdActorSelectAnimationStub(), fdActorSetSpriteFlagsStub(), fdActorSpawn(), fdActorStartScriptStub(), fdEffectSpawnBurstParticleField(), fdHangingVineHang(), fdPsynergyFadeFromCastColor(), GrowthLeafScript, Sint32, syRandom(), sySoundPlayStub(), sySynch() and syVectorAddPolarOffset().

Referenced by fdPsynergyDispatch().

Definition at line 18 of file script_commands_growth.c.

fdPsynergyGrowth

void fdPsynergyGrowth(void)

When Growth is cast with no target, particles fly out from in front of the caster, and then five vine leaves drop 4 to 10 pixels round the Psynergy's position.

References fdActorSpawn(), fdActorStartScriptStub(), fdEffectSpawnBurstParticleField(), fdPsynergyFadeFromCastColor(), GrowthLeafScript, Sint32, syRandom(), sySoundPlayStub(), sySynch() and syVectorAddPolarOffset().

Referenced by fdPsynergyRun().

Definition at line 80 of file script_commands_growth.c.

fdEffectSpawnBurstParticleField

void fdEffectSpawnBurstParticleField(void)

Sends BURST_FIELD_PARTICLES particles, one every 2 ticks, from in front of the caster to points round the Psynergy's position.

References fdActorSelectAnimationStub(), fdActorSetSpriteColorModeStub(), fdActorSetSpriteFlagsStub(), fdActorSpawn(), fdActorStartScriptStub(), fdPsynergyFadeToCastColor(), FieldEffectReleaseScript, Sint32, syRandom(), sySoundPlayStub(), sySynch() and syVectorAddPolarOffset().

Referenced by fdPsynergyGrowth() and fdPsynergyGrowthOnTarget().

Definition at line 115 of file script_commands_growth.c.