Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_djinni_charge.c

Core and Cannon, a Mars Djinni charging the target, and Rime and Haze, which hand over to the Djinni sign. More…

Included by battle_effect.c.

Macros

NameDescription
#defineDJINNI_CHARGE_CORE_TICKS 102Core's ticks and Cannon's.
#defineDJINNI_CHARGE_CANNON_TICKS 50
#defineDJINNI_CHARGE_DJINNI_PICTURE 4096Where the small Mars Djinni is decoded in the effect's pictures.
#defineDJINNI_CHARGE_START 62The last two particles: the one that keeps the camera's focus at the start, and the one that holds the Djinni's offset from it and its step toward the target.
#defineDJINNI_CHARGE_STEP 63
#defineDJINNI_CHARGE_FIRST_BURST 54Cannon's eight flash bursts, in the particles after its debris.
#defineDJINNI_CHARGE_BURST_PICTURES 8192Where GlowOrbSheet (Core) or FlashBurstSheet (Cannon) is decoded in the effect's pictures.
#defineDJINNI_CHARGE_BLAST_WIDTH 60Cannon's blast trailing from the Djinni: PetalSheet's four cones of light, decoded into the map cell buffer.
#defineDJINNI_CHARGE_BLAST_HEIGHT 100
#defineDJINNI_CHARGE_PULL_BACK_SHIFT 10While the Djinni pulls back, its step toward the target grows by a 1024th of the way a tick; as it drives in, by a 128th.
#defineDJINNI_CHARGE_DRIVE_SHIFT 7
#defineDJINNI_CHARGE_STRIKE_DEBRIS 16The debris each of Core's strikes throws.
#defineDJINNI_CHARGE_FIREBALL_RINGS 8Core's ball of fire: DustBlobSheet in the orange palette on a sphere of DJINNI_CHARGE_FIREBALL_RINGS rings of DJINNI_CHARGE_FIREBALL_RING_VERTICES, from pole to pole, rolled DJINNI_CHARGE_FIREBALL_TILT one way or the other by the targets' side.
#defineDJINNI_CHARGE_FIREBALL_RING_VERTICES 8
#defineDJINNI_CHARGE_FIREBALL_VERTICES
#defineDJINNI_CHARGE_FIREBALL_RING_TURN
#defineDJINNI_CHARGE_FIREBALL_RADIUS 48
#defineDJINNI_CHARGE_FIREBALL_TILT 20576
#defineDJINNI_CHARGE_FIREBALL_PROJECTED (RamMapMetatileBuffer + 8192)
#defineDJINNI_CHARGE_FIREBALL_MESH (RamMapMetatileBuffer + 16384)

Functions

NameDescription
voidbtEffectRunDjinniCharge (BATTLE_EFFECT_PARM *args, Sint32 mode)The small Mars Djinni charges the target.
voidbtEffectRunRime (BATTLE_EFFECT_PARM *args)Rime's Djinni rises over the targets while its seal spins and shrinks onto the target (btEffectRunDjinniSign).
voidbtEffectRunHaze (BATTLE_EFFECT_PARM *args)Haze's Djinni rises over the targets while sixteen stars bloom and fade (btEffectRunDjinniSign).

Description

Core and Cannon, a Mars Djinni charging the target, and Rime and Haze, which hand over to the Djinni sign. Part of battle_effect.c.

Macros in detail

DJINNI_CHARGE_CORE_TICKS

#define DJINNI_CHARGE_CORE_TICKS 102

Core's ticks and Cannon's.

Referenced by btEffectRunDjinniCharge().

Definition at line 5 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_CANNON_TICKS

#define DJINNI_CHARGE_CANNON_TICKS 50

Referenced by btEffectRunDjinniCharge().

Definition at line 6 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_DJINNI_PICTURE

#define DJINNI_CHARGE_DJINNI_PICTURE 4096

Where the small Mars Djinni is decoded in the effect's pictures.

Referenced by btEffectRunDjinniCharge().

Definition at line 8 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_START

#define DJINNI_CHARGE_START 62

The last two particles: the one that keeps the camera's focus at the start, and the one that holds the Djinni's offset from it and its step toward the target. The debris are the particles before them.

Referenced by btEffectRunDjinniCharge().

Definition at line 13 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_STEP

#define DJINNI_CHARGE_STEP 63

Referenced by btEffectRunDjinniCharge().

Definition at line 14 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_FIRST_BURST

#define DJINNI_CHARGE_FIRST_BURST 54

Cannon's eight flash bursts, in the particles after its debris.

Referenced by btEffectRunDjinniCharge().

Definition at line 16 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_BURST_PICTURES

#define DJINNI_CHARGE_BURST_PICTURES 8192

Where GlowOrbSheet (Core) or FlashBurstSheet (Cannon) is decoded in the effect's pictures.

Referenced by btEffectRunDjinniCharge().

Definition at line 19 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_BLAST_WIDTH

#define DJINNI_CHARGE_BLAST_WIDTH 60

Cannon's blast trailing from the Djinni: PetalSheet's four cones of light, decoded into the map cell buffer.

Referenced by btEffectRunDjinniCharge().

Definition at line 22 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_BLAST_HEIGHT

#define DJINNI_CHARGE_BLAST_HEIGHT 100

Referenced by btEffectRunDjinniCharge().

Definition at line 23 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_PULL_BACK_SHIFT

#define DJINNI_CHARGE_PULL_BACK_SHIFT 10

While the Djinni pulls back, its step toward the target grows by a 1024th of the way a tick; as it drives in, by a 128th.

Referenced by btEffectRunDjinniCharge().

Definition at line 27 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_DRIVE_SHIFT

#define DJINNI_CHARGE_DRIVE_SHIFT 7

Referenced by btEffectRunDjinniCharge().

Definition at line 28 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_STRIKE_DEBRIS

#define DJINNI_CHARGE_STRIKE_DEBRIS 16

The debris each of Core's strikes throws.

Referenced by btEffectRunDjinniCharge().

Definition at line 30 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_FIREBALL_RINGS

#define DJINNI_CHARGE_FIREBALL_RINGS 8

Core's ball of fire: DustBlobSheet in the orange palette on a sphere of DJINNI_CHARGE_FIREBALL_RINGS rings of DJINNI_CHARGE_FIREBALL_RING_VERTICES, from pole to pole, rolled DJINNI_CHARGE_FIREBALL_TILT one way or the other by the targets' side. Its corners are in the map cell buffer, its projected corners and its mesh after them.

Referenced by btEffectRunDjinniCharge().

Definition at line 37 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_FIREBALL_RING_VERTICES

#define DJINNI_CHARGE_FIREBALL_RING_VERTICES 8

Referenced by btEffectRunDjinniCharge().

Definition at line 38 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_FIREBALL_VERTICES

#define DJINNI_CHARGE_FIREBALL_VERTICES

Referenced by btEffectRunDjinniCharge().

Definition at line 39 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_FIREBALL_RING_TURN

#define DJINNI_CHARGE_FIREBALL_RING_TURN

Referenced by btEffectRunDjinniCharge().

Definition at line 41 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_FIREBALL_RADIUS

#define DJINNI_CHARGE_FIREBALL_RADIUS 48

Referenced by btEffectRunDjinniCharge().

Definition at line 43 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_FIREBALL_TILT

#define DJINNI_CHARGE_FIREBALL_TILT 20576

Referenced by btEffectRunDjinniCharge().

Definition at line 44 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_FIREBALL_PROJECTED

#define DJINNI_CHARGE_FIREBALL_PROJECTED (RamMapMetatileBuffer + 8192)

Referenced by btEffectRunDjinniCharge().

Definition at line 45 of file battle_effect_djinni_charge.c.

DJINNI_CHARGE_FIREBALL_MESH

#define DJINNI_CHARGE_FIREBALL_MESH (RamMapMetatileBuffer + 16384)

Referenced by btEffectRunDjinniCharge().

Definition at line 46 of file battle_effect_djinni_charge.c.

Functions in detail

btEffectRunDjinniCharge

void btEffectRunDjinniCharge(BATTLE_EFFECT_PARM *args, Sint32 mode)

The small Mars Djinni charges the target. In Core it pulls back over the caster inside a ball of fire, then drives in onto the target as the ball swells, strikes it seven times, throwing debris, and turns into a glowing orb that burns out; in Cannon it shoots straight in, a cone of blast trailing from it, and strikes once in a burst of flame and debris.

Abilities: Core, Cannon.

References BattleEffectMotePictures, btCameraShake(), btEffectEndCanvasLayer(), btEffectPosProjectPoint(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMeshBuildGrid(), btObjectGetStub(), btParticleAdvanceWithGravity3D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderProjectVertices(), btResourceLoadAndDecompress(), DjinniChargeDebrisGravity, DjinniChargeEntranceFlags, fdActorSetAnimationSpeedStub(), MapGridMetatileBuffer, ProjectionWork, Sint32, syCloseEvent(), syCos(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syLookAtLoad(), syMatrixScaleUniform(), syMatrixTranslateVector(), syRandom(), syRotZ(), syScale(), sySin(), sySoundPlayStub() and syTranslate().

Referenced by btEffectRunCannon() and btEffectRunCore().

Definition at line 55 of file battle_effect_djinni_charge.c.

btEffectRunRime

void btEffectRunRime(BATTLE_EFFECT_PARM *args)

Rime's Djinni rises over the targets while its seal spins and shrinks onto the target (btEffectRunDjinniSign).

Abilities: Rime.

References btEffectRunDjinniSign().

Referenced by BattleEffectHandlers.

Definition at line 594 of file battle_effect_djinni_charge.c.

btEffectRunHaze

void btEffectRunHaze(BATTLE_EFFECT_PARM *args)

Haze's Djinni rises over the targets while sixteen stars bloom and fade (btEffectRunDjinniSign).

Abilities: Haze.

References btEffectRunDjinniSign().

Referenced by BattleEffectHandlers.

Definition at line 603 of file battle_effect_djinni_charge.c.