src/battle_effect/battle_effect_djinn_heal.c
An unused Mercury Djinni heal, and the camera turn Fire and Froth share. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | DJINN_HEAL_SPARKS 512 | Sparks in PARTICLES, 64 for each target. |
#define | DJINN_HEAL_SPARKS_PER_TARGET 64 | |
#define | DJINN_HEAL_SWIRL_TICKS 98 | |
#define | DJINN_HEAL_SWIRL_MOTES 32 | Motes swirled in. |
#define | DJINN_HEAL_SWIRL_SLOTS 64 | The motes set out to swirl, of which DJINN_HEAL_SWIRL_MOTES are drawn. |
#define | DJINN_HEAL_MOTE_SIZE_MAX 9 | A swirling mote is drawn at size DJINN_HEAL_MOTE_SIZE_MAX at depth DJINN_HEAL_MOTE_DEPTH_NEAR or nearer, one size smaller every DJINN_HEAL_MOTE_DEPTH_STEP farther, its depth held below DJINN_HEAL_MOTE_DEPTH_FAR. |
#define | DJINN_HEAL_MOTE_DEPTH_NEAR 250 | |
#define | DJINN_HEAL_MOTE_DEPTH_STEP 64 | |
#define | DJINN_HEAL_MOTE_DEPTH_FAR 634 | |
#define | DJINN_HEAL_SPARKLE_DEPTH_NEAR 314 | The depths the sparkles' idle size by depth is worked out over, as the healing sparkles' are: three sizes, DJINN_HEAL_SPARKLE_DEPTH_STEP apart. |
#define | DJINN_HEAL_SPARKLE_DEPTH_STEP 128 | |
#define | DJINN_HEAL_SPARKLE_DEPTH_FAR 634 | |
#define | DJINN_HEAL_MOTE_SPIN (i) ((i) * 32 + 256) | The angle mote i turns each tick about its axis: each later mote faster. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunDjinnHeal (BATTLE_EFFECT_PARM *args) | A small Mercury Djinni heals the party: motes swirl up from the user, the Djinni appears where they gather, and sparkles spiral in on each target in turn. |
void | btCameraApplyPhasedDelta (void) | Turns the battle camera by the effect's delta each VBlank: the whole delta on the VBlank after one of the effect's ticks ends, half of it on the others, so the camera keeps turning while a tick runs long. |
Description
An unused Mercury Djinni heal, and the camera turn Fire and Froth share. Part
of battle_effect.c.
Macros in detail
DJINN_HEAL_SPARKS
#define DJINN_HEAL_SPARKS 512
Sparks in PARTICLES, 64 for each target.
Referenced by btEffectRunDjinnHeal().
Definition at line 5 of file battle_effect_djinn_heal.c.
DJINN_HEAL_SPARKS_PER_TARGET
#define DJINN_HEAL_SPARKS_PER_TARGET 64
Referenced by btEffectRunDjinnHeal().
Definition at line 6 of file battle_effect_djinn_heal.c.
DJINN_HEAL_SWIRL_TICKS
#define DJINN_HEAL_SWIRL_TICKS 98
Referenced by btEffectRunDjinnHeal().
Definition at line 8 of file battle_effect_djinn_heal.c.
DJINN_HEAL_SWIRL_MOTES
#define DJINN_HEAL_SWIRL_MOTES 32
Motes swirled in.
Referenced by btEffectRunDjinnHeal().
Definition at line 10 of file battle_effect_djinn_heal.c.
DJINN_HEAL_SWIRL_SLOTS
#define DJINN_HEAL_SWIRL_SLOTS 64
The motes set out to swirl, of which DJINN_HEAL_SWIRL_MOTES are drawn.
Referenced by btEffectRunDjinnHeal().
Definition at line 12 of file battle_effect_djinn_heal.c.
DJINN_HEAL_MOTE_SIZE_MAX
#define DJINN_HEAL_MOTE_SIZE_MAX 9
A swirling mote is drawn at size DJINN_HEAL_MOTE_SIZE_MAX at depth
DJINN_HEAL_MOTE_DEPTH_NEAR or nearer, one size smaller every
DJINN_HEAL_MOTE_DEPTH_STEP farther, its depth held below
DJINN_HEAL_MOTE_DEPTH_FAR.
Referenced by btEffectRunDjinnHeal().
Definition at line 17 of file battle_effect_djinn_heal.c.
DJINN_HEAL_MOTE_DEPTH_NEAR
#define DJINN_HEAL_MOTE_DEPTH_NEAR 250
Referenced by btEffectRunDjinnHeal().
Definition at line 18 of file battle_effect_djinn_heal.c.
DJINN_HEAL_MOTE_DEPTH_STEP
#define DJINN_HEAL_MOTE_DEPTH_STEP 64
Referenced by btEffectRunDjinnHeal().
Definition at line 19 of file battle_effect_djinn_heal.c.
DJINN_HEAL_MOTE_DEPTH_FAR
#define DJINN_HEAL_MOTE_DEPTH_FAR 634
Referenced by btEffectRunDjinnHeal().
Definition at line 20 of file battle_effect_djinn_heal.c.
DJINN_HEAL_SPARKLE_DEPTH_NEAR
#define DJINN_HEAL_SPARKLE_DEPTH_NEAR 314
The depths the sparkles' idle size by depth is worked out over, as the
healing sparkles' are: three sizes, DJINN_HEAL_SPARKLE_DEPTH_STEP apart.
Referenced by btEffectRunDjinnHeal().
Definition at line 23 of file battle_effect_djinn_heal.c.
DJINN_HEAL_SPARKLE_DEPTH_STEP
#define DJINN_HEAL_SPARKLE_DEPTH_STEP 128
Referenced by btEffectRunDjinnHeal().
Definition at line 24 of file battle_effect_djinn_heal.c.
DJINN_HEAL_SPARKLE_DEPTH_FAR
#define DJINN_HEAL_SPARKLE_DEPTH_FAR 634
Referenced by btEffectRunDjinnHeal().
Definition at line 25 of file battle_effect_djinn_heal.c.
DJINN_HEAL_MOTE_SPIN
#define DJINN_HEAL_MOTE_SPIN(i) ((i) * 32 + 256)
The angle mote i turns each tick about its axis: each later mote faster.
Referenced by btEffectRunDjinnHeal().
Definition at line 27 of file battle_effect_djinn_heal.c.
Functions in detail
btEffectRunDjinnHeal
void btEffectRunDjinnHeal(BATTLE_EFFECT_PARM *args)
A small Mercury Djinni heals the party: motes swirl up from the user, the Djinni appears where they gather, and sparkles spiral in on each target in turn. Nothing reaches it.
References BattleEffectSparklePictures, BattleEffectSparkleSizes, btEffectBuildCanvasBlitters(), btEffectStartCanvasLayer(), btEffectTintBattler(), btObjectGetStub(), btParticleAdvanceWithGravity3D(), btProjectionPoint(), btResourceLoadAndDecompress(), Sint32, state, syCos(), syMatrixTranslateVector(), syPopMatrix(), syPushMatrix(), syRandom(), syRotX(), syRotY(), syRotZ(), sySin(), sySoundPlayStub() and sySquartIWRAM().
Definition at line 32 of file battle_effect_djinn_heal.c.
btCameraApplyPhasedDelta
void btCameraApplyPhasedDelta(void)
Turns the battle camera by the effect's delta each VBlank: the whole delta on the VBlank after one of the effect's ticks ends, half of it on the others, so the camera keeps turning while a tick runs long.
Referenced by btEffectRunFire() and btEffectRunFroth().
Definition at line 291 of file battle_effect_djinn_heal.c.