Skip to Content
The Alchemy Project

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

NameDescription
#defineDEATH_PLUNGE_TICKS 96
#defineDEATH_PLUNGE_STRIKE_TICK 54The plunge strikes: the target flashes, the user flashes and the damage shows.
#defineDEATH_PLUNGE_LAND_TICK 64Both land the right way up, and Death Leap's rings start to fade.
#defineDEATH_PLUNGE_BURST_TICK 56Two ticks after the strike the ring of flashes, or Death Leap's bursts and rings, start.
#defineDEATH_PLUNGE_RUN_PERCENT 90How far toward the target the user runs, in hundredths of the way.
#defineDEATH_PLUNGE_RING_FLASHES 16The flashes thrown in a ring after the strike.
#defineDEATH_LEAP_BURST_SLOTS 32Death 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.
#defineDEATH_LEAP_BURSTS 16
#defineDEATH_LEAP_BURST_TICKS (6 * 4)
#defineDEATH_LEAP_RINGS 2Death 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.
#defineDEATH_LEAP_RING_GROWTH_SHIFT 13
#defineDEATH_LEAP_RING_FADE 4

Functions

NameDescription
voidbtEffectRunDeathPlunge (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.