src/battle_effect/battle_effect_death_plunge.c
Death Plunge and Death Leap, the user's leap at a foe. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | DEATH_PLUNGE_TICKS 96 | |
#define | DEATH_PLUNGE_STRIKE_TICK 54 | The plunge strikes: the target flashes, the user flashes and the damage shows. |
#define | DEATH_PLUNGE_LAND_TICK 64 | Both land the right way up, and Death Leap's rings start to fade. |
#define | DEATH_PLUNGE_BURST_TICK 56 | Two ticks after the strike the ring of flashes, or Death Leap's bursts and rings, start. |
#define | DEATH_PLUNGE_RUN_PERCENT 90 | How far toward the target the user runs, in hundredths of the way. |
#define | DEATH_PLUNGE_RING_FLASHES 16 | The flashes thrown in a ring after the strike. |
#define | DEATH_LEAP_BURST_SLOTS 32 | Death Leap's bursts, given a countdown that sets out four a tick, of which the first DEATH_LEAP_BURSTS fly from the target; each shows FlashBurstSheet's six pictures for four ticks apiece as it rises. |
#define | DEATH_LEAP_BURSTS 16 | |
#define | DEATH_LEAP_BURST_TICKS (6 * 4) | |
#define | DEATH_LEAP_RINGS 2 | Death Leap's two rings of light, FireRingTexture a quarter turn apart, swell from a quarter of their size by an eighth a tick (one shifted left by DEATH_LEAP_RING_GROWTH_SHIFT is an eighth of toFIXED(1)) and fade DEATH_LEAP_RING_FADE levels a tick from DEATH_PLUNGE_LAND_TICK. |
#define | DEATH_LEAP_RING_GROWTH_SHIFT 13 | |
#define | DEATH_LEAP_RING_FADE 4 |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunDeathPlunge (BATTLE_EFFECT_PARM *args) | The user runs at the first target, both leap and turn upside down, and on the hit they bounce apart in a white flash while a ring of flashes swells into a ball of fire over them. |
Description
Death Plunge and Death Leap, the user's leap at a foe. Part of
battle_effect.c.
Macros in detail
DEATH_PLUNGE_TICKS
#define DEATH_PLUNGE_TICKS 96
Referenced by btEffectRunDeathPlunge().
Definition at line 4 of file battle_effect_death_plunge.c.
DEATH_PLUNGE_STRIKE_TICK
#define DEATH_PLUNGE_STRIKE_TICK 54
The plunge strikes: the target flashes, the user flashes and the damage shows.
Referenced by btEffectRunDeathPlunge().
Definition at line 7 of file battle_effect_death_plunge.c.
DEATH_PLUNGE_LAND_TICK
#define DEATH_PLUNGE_LAND_TICK 64
Both land the right way up, and Death Leap's rings start to fade.
Referenced by btEffectRunDeathPlunge().
Definition at line 9 of file battle_effect_death_plunge.c.
DEATH_PLUNGE_BURST_TICK
#define DEATH_PLUNGE_BURST_TICK 56
Two ticks after the strike the ring of flashes, or Death Leap's bursts and rings, start.
Referenced by btEffectRunDeathPlunge().
Definition at line 12 of file battle_effect_death_plunge.c.
DEATH_PLUNGE_RUN_PERCENT
#define DEATH_PLUNGE_RUN_PERCENT 90
How far toward the target the user runs, in hundredths of the way.
Referenced by btEffectRunDeathPlunge().
Definition at line 14 of file battle_effect_death_plunge.c.
DEATH_PLUNGE_RING_FLASHES
#define DEATH_PLUNGE_RING_FLASHES 16
The flashes thrown in a ring after the strike.
Referenced by btEffectRunDeathPlunge().
Definition at line 16 of file battle_effect_death_plunge.c.
DEATH_LEAP_BURST_SLOTS
#define DEATH_LEAP_BURST_SLOTS 32
Death Leap's bursts, given a countdown that sets out four a tick, of which
the first DEATH_LEAP_BURSTS fly from the target; each shows FlashBurstSheet's
six pictures for four ticks apiece as it rises.
Referenced by btEffectRunDeathPlunge().
Definition at line 21 of file battle_effect_death_plunge.c.
DEATH_LEAP_BURSTS
#define DEATH_LEAP_BURSTS 16
Referenced by btEffectRunDeathPlunge().
Definition at line 22 of file battle_effect_death_plunge.c.
DEATH_LEAP_BURST_TICKS
#define DEATH_LEAP_BURST_TICKS (6 * 4)
Referenced by btEffectRunDeathPlunge().
Definition at line 23 of file battle_effect_death_plunge.c.
DEATH_LEAP_RINGS
#define DEATH_LEAP_RINGS 2
Death Leap's two rings of light, FireRingTexture a quarter turn apart, swell
from a quarter of their size by an eighth a tick (one shifted left by
DEATH_LEAP_RING_GROWTH_SHIFT is an eighth of toFIXED(1)) and fade
DEATH_LEAP_RING_FADE levels a tick from DEATH_PLUNGE_LAND_TICK.
Referenced by btEffectRunDeathPlunge().
Definition at line 28 of file battle_effect_death_plunge.c.
DEATH_LEAP_RING_GROWTH_SHIFT
#define DEATH_LEAP_RING_GROWTH_SHIFT 13
Referenced by btEffectRunDeathPlunge().
Definition at line 29 of file battle_effect_death_plunge.c.
DEATH_LEAP_RING_FADE
#define DEATH_LEAP_RING_FADE 4
Referenced by btEffectRunDeathPlunge().
Definition at line 30 of file battle_effect_death_plunge.c.
Functions in detail
btEffectRunDeathPlunge
void btEffectRunDeathPlunge(BATTLE_EFFECT_PARM *args)
The user runs at the first target, both leap and turn upside down, and on the hit they bounce apart in a white flash while a ring of flashes swells into a ball of fire over them. Death Leap draws in violet: bursts fly up from the target and two rings of light swell over it.
Abilities: Death Plunge, Death Leap.
References BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, btCameraShake(), btEffectPosProjectBattler(), btEffectPosProjectPoint(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btParticleAdvanceWithGravity2D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), btUnitGetEffectHeightStub(), fdActorSelectAnimationStub(), Sint32, syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syInitMatrix(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotZ(), syScale(), sySetEvent(), sySin(), sySoundPlayStub(), sySynch() and syTranslate().
Referenced by BattleEffectHandlers.
Definition at line 38 of file battle_effect_death_plunge.c.