src/battle_effect/battle_effect_crystal.c
Crystal. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | CRYSTAL_TICKS 103 | |
#define | CRYSTAL_FADE_TICK 96 | From this tick the canvas fades out, two sixteenths a tick, from the level it is shown at. |
#define | CRYSTAL_BLEND_LEVEL ((CRYSTAL_TICKS - CRYSTAL_FADE_TICK) * 2) | |
#define | CRYSTAL_ORBS 32 | The orbs of light that rise around the target. |
#define | CRYSTAL_DISCS 16 | Sixteen shaded discs, 2 to 32 pixels across, the orbs' pictures, drawn into the map cell buffer; where each starts is kept in the effect's pictures at CRYSTAL_DISC_OFFSETS. |
#define | CRYSTAL_DISC_OFFSETS 10000 | |
#define | CRYSTAL_COG_PICTURE 16384 | Where the cog's picture is made in the map cell buffer: CogTexture's quarter mirrored into a picture twice as wide and as tall. |
#define | CRYSTAL_COG_SCALE_MAX 114000 | The cog's largest scale, about 1.74, which the model is drawn at half of. |
#define | CRYSTAL_COG_TILT 3000 | The cog's tilt about the x axis, about 16 degrees. |
#define | CRYSTAL_VENUS_DJINN_SMALL_PICTURES 26048 | Where VenusDjinnSmallSheet is decoded in the effect's pictures. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunCrystal (BATTLE_EFFECT_PARM *args) | A Venus Djinni appears and its small sprite dives onto the target; a glowing cog spins and grows flat on the ground under the targets while orbs of light rise around them, pulsing, and each target flashes white as it is healed. |
Description
Crystal. Part of battle_effect.c.
Macros in detail
CRYSTAL_TICKS
#define CRYSTAL_TICKS 103
Referenced by btEffectRunCrystal().
Definition at line 3 of file battle_effect_crystal.c.
CRYSTAL_FADE_TICK
#define CRYSTAL_FADE_TICK 96
From this tick the canvas fades out, two sixteenths a tick, from the level it is shown at.
Referenced by btEffectRunCrystal().
Definition at line 6 of file battle_effect_crystal.c.
CRYSTAL_BLEND_LEVEL
#define CRYSTAL_BLEND_LEVEL ((CRYSTAL_TICKS - CRYSTAL_FADE_TICK) * 2)
Referenced by btEffectRunCrystal().
Definition at line 7 of file battle_effect_crystal.c.
CRYSTAL_ORBS
#define CRYSTAL_ORBS 32
The orbs of light that rise around the target.
Referenced by btEffectRunCrystal().
Definition at line 9 of file battle_effect_crystal.c.
CRYSTAL_DISCS
#define CRYSTAL_DISCS 16
Sixteen shaded discs, 2 to 32 pixels across, the orbs' pictures, drawn into
the map cell buffer; where each starts is kept in the effect's pictures at
CRYSTAL_DISC_OFFSETS.
Referenced by btEffectRunCrystal().
Definition at line 13 of file battle_effect_crystal.c.
CRYSTAL_DISC_OFFSETS
#define CRYSTAL_DISC_OFFSETS 10000
Referenced by btEffectRunCrystal().
Definition at line 14 of file battle_effect_crystal.c.
CRYSTAL_COG_PICTURE
#define CRYSTAL_COG_PICTURE 16384
Where the cog's picture is made in the map cell buffer: CogTexture's quarter mirrored into a picture twice as wide and as tall.
Referenced by btEffectRunCrystal().
Definition at line 17 of file battle_effect_crystal.c.
CRYSTAL_COG_SCALE_MAX
#define CRYSTAL_COG_SCALE_MAX 114000
The cog's largest scale, about 1.74, which the model is drawn at half of.
Referenced by btEffectRunCrystal().
Definition at line 19 of file battle_effect_crystal.c.
CRYSTAL_COG_TILT
#define CRYSTAL_COG_TILT 3000
The cog's tilt about the x axis, about 16 degrees.
Referenced by btEffectRunCrystal().
Definition at line 21 of file battle_effect_crystal.c.
CRYSTAL_VENUS_DJINN_SMALL_PICTURES
#define CRYSTAL_VENUS_DJINN_SMALL_PICTURES 26048
Where VenusDjinnSmallSheet is decoded in the effect's pictures.
Referenced by btEffectRunCrystal().
Definition at line 24 of file battle_effect_crystal.c.
Functions in detail
btEffectRunCrystal
void btEffectRunCrystal(BATTLE_EFFECT_PARM *args)
A Venus Djinni appears and its small sprite dives onto the target; a glowing cog spins and grows flat on the ground under the targets while orbs of light rise around them, pulsing, and each target flashes white as it is healed.
Abilities: Crystal.
References BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, btCanvasBlitMirroredQuarters(), btEffectDrawShadedDiscQuarter(), btEffectPosProjectPoint(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btPictureMirrorIntoQuadrants(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), MapGridMetatileBuffer, ProjectionWork, Sint32, syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syInitMatrix(), syLookAtLoad(), syMatrixScaleUniform(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotY(), sySetEvent(), sySin(), sySoundPlayStub(), syTranslate() and syWordsClear().
Referenced by BattleEffectHandlers.
Definition at line 31 of file battle_effect_crystal.c.