src/battle_effect/battle_effect_gathering_lights.c
Demon Night, Rumble and Haunting. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | GATHERING_LIGHTS_SLOTS 128 | particles reserved for each target |
#define | GATHERING_LIGHTS_TARGET_TICKS 20 | The targets' turns, this many ticks apart: each is struck by its lights from GATHERING_LIGHTS_HIT_TICK. |
#define | GATHERING_LIGHTS_HIT_TICK 70 | |
#define | GATHERING_LIGHT_WIDTH 20 | GatheringLightsImage's three lights. |
#define | GATHERING_LIGHT_HEIGHT 32 | |
#define | GATHERING_LIGHTS_RIPPLE 16 | How far the canvas's ripple sways each line either side of its middle, in CANVAS_WAVE_BG2X's quarter canvas pixels (4 canvas pixels, 8 on screen); the wave moves a 64th of a turn a line and a tick. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunDemonNight (BATTLE_EFFECT_PARM *args) | Sixteen pink lights burst out of the user and are pulled into each target, with the heavy impact sound. |
void | btEffectRunRumble (BATTLE_EFFECT_PARM *args) | Eight lights in Mars Djinn colours burst out of the user and are pulled into each target. |
void | btEffectRunHaunting (BATTLE_EFFECT_PARM *args) | Twelve lights in Mercury Djinn colours burst out of the user and are pulled into each target. |
void | btEffectRunGatheringLights (BATTLE_EFFECT_PARM *args, Sint32 mode) | For each target in turn, lights burst out of the user and are pulled into the middle of the target's body, which is struck as they arrive; the effect layer ripples throughout. |
Description
Demon Night, Rumble and Haunting. Part of battle_effect.c.
Macros in detail
GATHERING_LIGHTS_SLOTS
#define GATHERING_LIGHTS_SLOTS 128
particles reserved for each target
Referenced by btEffectRunGatheringLights().
Definition at line 30 of file battle_effect_gathering_lights.c.
GATHERING_LIGHTS_TARGET_TICKS
#define GATHERING_LIGHTS_TARGET_TICKS 20
The targets' turns, this many ticks apart: each is struck by its lights from
GATHERING_LIGHTS_HIT_TICK.
Referenced by btEffectRunGatheringLights().
Definition at line 33 of file battle_effect_gathering_lights.c.
GATHERING_LIGHTS_HIT_TICK
#define GATHERING_LIGHTS_HIT_TICK 70
Referenced by btEffectRunGatheringLights().
Definition at line 34 of file battle_effect_gathering_lights.c.
GATHERING_LIGHT_WIDTH
#define GATHERING_LIGHT_WIDTH 20
GatheringLightsImage's three lights.
Referenced by btEffectRunGatheringLights().
Definition at line 36 of file battle_effect_gathering_lights.c.
GATHERING_LIGHT_HEIGHT
#define GATHERING_LIGHT_HEIGHT 32
Referenced by btEffectRunGatheringLights().
Definition at line 37 of file battle_effect_gathering_lights.c.
GATHERING_LIGHTS_RIPPLE
#define GATHERING_LIGHTS_RIPPLE 16
How far the canvas's ripple sways each line either side of its middle, in
CANVAS_WAVE_BG2X's quarter canvas pixels (4 canvas pixels, 8 on screen); the
wave moves a 64th of a turn a line and a tick.
Referenced by btEffectRunGatheringLights().
Definition at line 41 of file battle_effect_gathering_lights.c.
Functions in detail
btEffectRunDemonNight
void btEffectRunDemonNight(BATTLE_EFFECT_PARM *args)
Sixteen pink lights burst out of the user and are pulled into each target, with the heavy impact sound.
Abilities: Demon Night.

References btEffectRunGatheringLights().
Referenced by BattleEffectHandlers.
Definition at line 7 of file battle_effect_gathering_lights.c.
btEffectRunRumble
void btEffectRunRumble(BATTLE_EFFECT_PARM *args)
Eight lights in Mars Djinn colours burst out of the user and are pulled into each target.
Abilities: Rumble.
References btEffectRunGatheringLights().
Referenced by BattleEffectHandlers.
Definition at line 16 of file battle_effect_gathering_lights.c.
btEffectRunHaunting
void btEffectRunHaunting(BATTLE_EFFECT_PARM *args)
Twelve lights in Mercury Djinn colours burst out of the user and are pulled into each target.
Abilities: Haunting.
References btEffectRunGatheringLights().
Referenced by BattleEffectHandlers.
Definition at line 25 of file battle_effect_gathering_lights.c.
btEffectRunGatheringLights
void btEffectRunGatheringLights(BATTLE_EFFECT_PARM *args, Sint32 mode)
For each target in turn, lights burst out of the user and are pulled into the middle of the target's body, which is struck as they arrive; the effect layer ripples throughout.
References btEffectArmBg2AffineHBlankDMA(), btEffectBuildCanvasBlitters(), btEffectEndCanvasLayer(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btParticleAdvanceWithGravity3D(), btProjectionPoint(), btUnitGetEffectHeightStub(), GatheringLightsCounts, Sint32, state, syCloseEvent(), syDecompressTaggedLZ(), syRandom(), syResourceGetTableEntry(), sySetEvent(), sySin(), sySoundPlayStub() and syWordsCopy().
Referenced by btEffectRunDemonNight(), btEffectRunHaunting() and btEffectRunRumble().
Definition at line 46 of file battle_effect_gathering_lights.c.