Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_djinn_beams.c

Revive, Water of Life, Quartz and Dew. More…

Included by battle_effect.c.

Macros

NameDescription
#defineDJINN_BEAMS_MOTES 512motes in PARTICLES
#defineDJINN_BEAMS_TARGET_MOTES 64Each target's own run of the motes, of which the first DJINN_BEAMS_DRAWN_MOTES are drawn.
#defineDJINN_BEAMS_DRAWN_MOTES 8
#defineDJINN_BEAMS_TARGET_TICKS 16Each target's motes and column start this many ticks after the last's.
#defineDJINN_BEAMS_COLUMN_TICK 72Counted from its target's start: the column falls and the target glows, the glow ends and the column narrows, and the column is gone.
#defineDJINN_BEAMS_NARROW_TICK 88
#defineDJINN_BEAMS_COLUMN_END_TICK 104
#defineDJINN_BEAMS_MOTE_SWAY 16How far a mote sways either side, and the Djinni across and up and down, in pixels.
#defineDJINN_BEAMS_DJINNI_SWAY_X 20
#defineDJINN_BEAMS_DJINNI_SWAY_Y 4
#defineDJINN_BEAMS_MOTE_PICTURES 10000Where the motes' pictures (CrescentMoonSheet) and then the Djinni's begin in state->sheet, in bytes, after EarthWallSheet's.
#defineDJINN_BEAMS_MOTE_WIDTH 24
#defineDJINN_BEAMS_MOTE_HEIGHT 24
#defineDJINN_BEAMS_DJINNI_PICTURE 26048
#defineDJINN_BEAMS_COLUMN_RAMP 5The column of light is drawn a row at a time from EarthWallSheet's second picture, one row of six pixels brightening from the edge inward (the first, before it, is five), and mirrored for its right half.
#defineDJINN_BEAMS_COLUMN_HALF_WIDTH 6

Functions

NameDescription
voidbtEffectRunRevive (BATTLE_EFFECT_PARM *args)Motes drift down over each target and a column of light falls on it, in the Venus Djinni's colours; with a prelude, a Venus Djinni appears first.
voidbtEffectRunDew (BATTLE_EFFECT_PARM *args)Dew plays Revive's beams of light in the Mercury Djinni's colours, and with a prelude a Mercury Djinni appears first.
voidbtEffectRunDjinnBeams (BATTLE_EFFECT_PARM *args, Sint32 element)When there is a prelude a Djinni appears and rises away; then over each target in turn motes drift down and a column of light falls on it.

Description

Revive, Water of Life, Quartz and Dew. Part of battle_effect.c.

Macros in detail

DJINN_BEAMS_MOTES

#define DJINN_BEAMS_MOTES 512

motes in PARTICLES

Referenced by btEffectRunDjinnBeams().

Definition at line 3 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_TARGET_MOTES

#define DJINN_BEAMS_TARGET_MOTES 64

Each target's own run of the motes, of which the first DJINN_BEAMS_DRAWN_MOTES are drawn.

Referenced by btEffectRunDjinnBeams().

Definition at line 6 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_DRAWN_MOTES

#define DJINN_BEAMS_DRAWN_MOTES 8

Referenced by btEffectRunDjinnBeams().

Definition at line 7 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_TARGET_TICKS

#define DJINN_BEAMS_TARGET_TICKS 16

Each target's motes and column start this many ticks after the last's.

Referenced by btEffectRunDjinnBeams().

Definition at line 9 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_COLUMN_TICK

#define DJINN_BEAMS_COLUMN_TICK 72

Counted from its target's start: the column falls and the target glows, the glow ends and the column narrows, and the column is gone.

Referenced by btEffectRunDjinnBeams().

Definition at line 12 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_NARROW_TICK

#define DJINN_BEAMS_NARROW_TICK 88

Referenced by btEffectRunDjinnBeams().

Definition at line 13 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_COLUMN_END_TICK

#define DJINN_BEAMS_COLUMN_END_TICK 104

Referenced by btEffectRunDjinnBeams().

Definition at line 14 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_MOTE_SWAY

#define DJINN_BEAMS_MOTE_SWAY 16

How far a mote sways either side, and the Djinni across and up and down, in pixels.

Referenced by btEffectRunDjinnBeams().

Definition at line 17 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_DJINNI_SWAY_X

#define DJINN_BEAMS_DJINNI_SWAY_X 20

Referenced by btEffectRunDjinnBeams().

Definition at line 18 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_DJINNI_SWAY_Y

#define DJINN_BEAMS_DJINNI_SWAY_Y 4

Referenced by btEffectRunDjinnBeams().

Definition at line 19 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_MOTE_PICTURES

#define DJINN_BEAMS_MOTE_PICTURES 10000

Where the motes' pictures (CrescentMoonSheet) and then the Djinni's begin in state->sheet, in bytes, after EarthWallSheet's.

Referenced by btEffectRunDjinnBeams().

Definition at line 23 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_MOTE_WIDTH

#define DJINN_BEAMS_MOTE_WIDTH 24

Referenced by btEffectRunDjinnBeams().

Definition at line 24 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_MOTE_HEIGHT

#define DJINN_BEAMS_MOTE_HEIGHT 24

Referenced by btEffectRunDjinnBeams().

Definition at line 25 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_DJINNI_PICTURE

#define DJINN_BEAMS_DJINNI_PICTURE 26048

Referenced by btEffectRunDjinnBeams().

Definition at line 26 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_COLUMN_RAMP

#define DJINN_BEAMS_COLUMN_RAMP 5

The column of light is drawn a row at a time from EarthWallSheet's second picture, one row of six pixels brightening from the edge inward (the first, before it, is five), and mirrored for its right half. As the column narrows it takes fewer of them, so it dims too.

Referenced by btEffectRunDjinnBeams().

Definition at line 32 of file battle_effect_djinn_beams.c.

DJINN_BEAMS_COLUMN_HALF_WIDTH

#define DJINN_BEAMS_COLUMN_HALF_WIDTH 6

Referenced by btEffectRunDjinnBeams().

Definition at line 33 of file battle_effect_djinn_beams.c.

Functions in detail

btEffectRunRevive

void btEffectRunRevive(BATTLE_EFFECT_PARM *args)

Motes drift down over each target and a column of light falls on it, in the Venus Djinni's colours; with a prelude, a Venus Djinni appears first.

Abilities: Revive, Water of Life; Quartz.

Revive
Revive
Quartz
Quartz

References btEffectRunDjinnBeams().

Referenced by BattleEffectHandlers.

Definition at line 39 of file battle_effect_djinn_beams.c.

btEffectRunDew

void btEffectRunDew(BATTLE_EFFECT_PARM *args)

Dew plays Revive's beams of light in the Mercury Djinni's colours, and with a prelude a Mercury Djinni appears first.

Abilities: Dew.

Dew
Dew

References btEffectRunDjinnBeams().

Referenced by BattleEffectHandlers.

Definition at line 48 of file battle_effect_djinn_beams.c.

btEffectRunDjinnBeams

void btEffectRunDjinnBeams(BATTLE_EFFECT_PARM *args, Sint32 element)

When there is a prelude a Djinni appears and rises away; then over each target in turn motes drift down and a column of light falls on it.

References btEffectBuildCanvasBlitters(), btEffectEndCanvasLayer(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btProjectionPoint(), btProjectionScaledUnit(), DjinnBeamsHeadHeights, DjinnBeamsHeadPictures, DjinnBeamsHeadWidths, DjinnBeamsMotePictures, Sint32, state, syCloseEvent(), syCos(), syDecompressTaggedLZ(), syMatrixTranslateVector(), syRandom(), syResourceGetTableEntry(), sySin(), sySoundPlayStub(), syWordsCopy() and width.

Referenced by btEffectRunDew() and btEffectRunRevive().

Definition at line 55 of file battle_effect_djinn_beams.c.