src/field/script_commands_growth.c
Growth: green sparks fly from the caster, and a sprout grows tall. More…
Included by script_commands.c.
Macros
| Name | Description | |
|---|---|---|
#define | GROWTH_PARTICLE_MAX 24 | particles round the target |
Functions
| Name | Description | |
|---|---|---|
void | fdPsynergyGrowthOnTarget (Sint32 unused) | When Growth is cast on a target, particles fly from in front of the caster to points round the target, which then takes the sprite priority of the ground under it. |
void | fdPsynergyGrowth (void) | When Growth is cast with no target, particles fly out from in front of the caster, and then five bits of vine (SPRITE_VINE) fall 4 to 10 pixels round the Psynergy's position. |
void | fdEffectSpawnBurstParticleField (void) | Sends GROWTH_PARTICLE_MAX green sparks, one every 2 ticks, from in front of the caster to points round the Psynergy's position. |
Description
Growth: green sparks fly from the caster, and a sprout grows tall. Part of
script_commands.c.
Macros in detail
GROWTH_PARTICLE_MAX
#define GROWTH_PARTICLE_MAX 24
particles round the target
Referenced by fdEffectSpawnBurstParticleField().
Definition at line 6 of file script_commands_growth.c.
Functions in detail
fdPsynergyGrowthOnTarget
void fdPsynergyGrowthOnTarget(Sint32 unused)
When Growth is cast on a target, particles fly from in front of the caster to points round the target, which then takes the sprite priority of the ground under it.
References fdActorSelectAnimationStub(), fdActorSetSpriteFlagsStub(), fdEffectSpawnBurstParticleField(), fdPsynergyFadeFromCastColor(), Sint32, sySoundPlayStub() and sySynch().
Referenced by fdPsynergyDispatch().
Definition at line 11 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 bits of vine (SPRITE_VINE) fall 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 34 of file script_commands_growth.c.
fdEffectSpawnBurstParticleField
void fdEffectSpawnBurstParticleField(void)
Sends GROWTH_PARTICLE_MAX green sparks, one every 2 ticks, from in front of
the caster to points round the Psynergy's position.
References fdActorSelectAnimationStub(), fdActorSetMoveTargetStub(), fdActorSetSpriteColorModeStub(), fdActorSetSpriteFlagsStub(), fdActorSpawn(), fdActorStartScriptStub(), fdPsynergyFadeToCastColor(), FieldEffectSharedParticleScript, Sint32, syRandom(), sySoundPlayStub(), sySynch() and syVectorAddPolarOffset().
Referenced by fdPsynergyGrowth() and fdPsynergyGrowthOnTarget().
Definition at line 66 of file script_commands_growth.c.