Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_titan_blade.c

The great sword that falls onto the target in Titan Blade and Acheron's Grief. More…

Included by battle_effect.c.

Macros

NameDescription
#defineFLASH_LIFE 25A flash waits out its life, the ring's inner ones least, and in its last FLASH_BURN_TICKS burns down from FlashBurstSheet's fireball to embers, a picture every three ticks.
#defineFLASH_BURN_TICKS 18
#defineSWORD_GROUND_Y 108The canvas line the sparks bounce on, and where the falling sword, its pillar of fire and its dust stop.
#defineTITAN_BLADE_SWORD_SPARKSThe sword's sparks, in the map cell buffer after the dust (PARTICLES).
#defineTITAN_BLADE_TICKS 102
#defineTITAN_BLADE_SWORD_PICTURE 20000The sword's picture, this many bytes into the sprite sheet.
#defineTITAN_BLADE_FLASHES 32Flashes scattered.
#defineTITAN_BLADE_RING 16Of the flashes, drawn as the ring.
#defineTITAN_BLADE_DUST 684Dust slots in PARTICLES, before the sparks.
#defineTITAN_BLADE_FIRST_DUST 256Dust lit at once on tick 28.
#defineTITAN_BLADE_DRAWN_DUST 342Dust moved and drawn.
#defineTITAN_BLADE_SPARKS 340Sparks after the dust.
#defineTITAN_BLADE_FLASH_PICTURES PICTURE_BYTES(FIRE_PILLAR)The flash pictures in the sprite sheet, after the 34x104 fire pillar.
#defineTITAN_BLADE_SWORD_WIDTH 36SwordSheet's great sword, point down.
#defineTITAN_BLADE_SWORD_HEIGHT 120
#defineTITAN_BLADE_SWORD_HOLD_TOP 16The sword comes down to TITAN_BLADE_SWORD_HOLD_TOP and holds there.
#defineTITAN_BLADE_PILLAR_TICK 32From TITAN_BLADE_PILLAR_TICK, for TITAN_BLADE_PILLAR_TICKS, the pillar of fire rises and TITAN_BLADE_DUST_PER_TICK more dust spouts each tick.
#defineTITAN_BLADE_PILLAR_TICKS 32
#defineTITAN_BLADE_DUST_PER_TICK 16
#defineTITAN_BLADE_PILLAR_PHASE 256How far behind their climb the pillar's flames start, which sets the line of FirePillarSheetA's column they show first.
#defineTITAN_BLADE_STRIKE_TICK 60The sword strikes: the crash, the damage and the canvas filled bright.

Enumerations

NameDescription
enumFALLING_SWORD_MODE { FALLING_SWORD_TITAN_BLADE, FALLING_SWORD_ACHERONS_GRIEF }The falling sword's modes (btEffectRunFallingSword).

Functions

NameDescription
voidbtEffectRunTitanBlade (BATTLE_EFFECT_PARM *args)Abilities: Titan Blade.
voidbtEffectRunAcheronsGrief (BATTLE_EFFECT_PARM *args)Abilities: Acheron's Grief.
voidbtEffectRunFallingSword (BATTLE_EFFECT_PARM *args, Sint32 mode)A great sword falls from the sky onto the target, a pillar of fire and dust spouting under it, and drives into the ground in a burst of flashes and sparks.

Description

The great sword that falls onto the target in Titan Blade and Acheron's Grief. Part of battle_effect.c.

Macros in detail

FLASH_LIFE

#define FLASH_LIFE 25

A flash waits out its life, the ring's inner ones least, and in its last FLASH_BURN_TICKS burns down from FlashBurstSheet's fireball to embers, a picture every three ticks.

Referenced by btEffectRunFallingSword() and btEffectRunRagnarok().

Definition at line 14 of file battle_effect_titan_blade.c.

FLASH_BURN_TICKS

#define FLASH_BURN_TICKS 18

Referenced by btEffectRunFallingSword() and btEffectRunRagnarok().

Definition at line 15 of file battle_effect_titan_blade.c.

SWORD_GROUND_Y

#define SWORD_GROUND_Y 108

The canvas line the sparks bounce on, and where the falling sword, its pillar of fire and its dust stop.

Referenced by btEffectRunFallingSword() and btEffectRunRagnarok().

Definition at line 18 of file battle_effect_titan_blade.c.

TITAN_BLADE_SWORD_SPARKS

#define TITAN_BLADE_SWORD_SPARKS

The sword's sparks, in the map cell buffer after the dust (PARTICLES).

Referenced by btEffectRunFallingSword().

Definition at line 33 of file battle_effect_titan_blade.c.

TITAN_BLADE_TICKS

#define TITAN_BLADE_TICKS 102

Referenced by btEffectRunFallingSword().

Definition at line 36 of file battle_effect_titan_blade.c.

TITAN_BLADE_SWORD_PICTURE

#define TITAN_BLADE_SWORD_PICTURE 20000

The sword's picture, this many bytes into the sprite sheet.

Referenced by btEffectRunFallingSword().

Definition at line 38 of file battle_effect_titan_blade.c.

TITAN_BLADE_FLASHES

#define TITAN_BLADE_FLASHES 32

Flashes scattered.

Referenced by btEffectRunFallingSword().

Definition at line 40 of file battle_effect_titan_blade.c.

TITAN_BLADE_RING

#define TITAN_BLADE_RING 16

Of the flashes, drawn as the ring.

Referenced by btEffectRunFallingSword().

Definition at line 42 of file battle_effect_titan_blade.c.

TITAN_BLADE_DUST

#define TITAN_BLADE_DUST 684

Dust slots in PARTICLES, before the sparks.

Referenced by btEffectRunFallingSword().

Definition at line 44 of file battle_effect_titan_blade.c.

TITAN_BLADE_FIRST_DUST

#define TITAN_BLADE_FIRST_DUST 256

Dust lit at once on tick 28.

Referenced by btEffectRunFallingSword().

Definition at line 46 of file battle_effect_titan_blade.c.

TITAN_BLADE_DRAWN_DUST

#define TITAN_BLADE_DRAWN_DUST 342

Dust moved and drawn.

Referenced by btEffectRunFallingSword().

Definition at line 48 of file battle_effect_titan_blade.c.

TITAN_BLADE_SPARKS

#define TITAN_BLADE_SPARKS 340

Sparks after the dust.

Referenced by btEffectRunFallingSword().

Definition at line 50 of file battle_effect_titan_blade.c.

TITAN_BLADE_FLASH_PICTURES

#define TITAN_BLADE_FLASH_PICTURES PICTURE_BYTES(FIRE_PILLAR)

The flash pictures in the sprite sheet, after the 34x104 fire pillar.

Referenced by btEffectRunFallingSword().

Definition at line 52 of file battle_effect_titan_blade.c.

TITAN_BLADE_SWORD_WIDTH

#define TITAN_BLADE_SWORD_WIDTH 36

SwordSheet's great sword, point down.

Referenced by btEffectRunFallingSword().

Definition at line 54 of file battle_effect_titan_blade.c.

TITAN_BLADE_SWORD_HEIGHT

#define TITAN_BLADE_SWORD_HEIGHT 120

Referenced by btEffectRunFallingSword().

Definition at line 55 of file battle_effect_titan_blade.c.

TITAN_BLADE_SWORD_HOLD_TOP

#define TITAN_BLADE_SWORD_HOLD_TOP 16

The sword comes down to TITAN_BLADE_SWORD_HOLD_TOP and holds there.

Referenced by btEffectRunFallingSword().

Definition at line 57 of file battle_effect_titan_blade.c.

TITAN_BLADE_PILLAR_TICK

#define TITAN_BLADE_PILLAR_TICK 32

From TITAN_BLADE_PILLAR_TICK, for TITAN_BLADE_PILLAR_TICKS, the pillar of fire rises and TITAN_BLADE_DUST_PER_TICK more dust spouts each tick.

Referenced by btEffectRunFallingSword().

Definition at line 61 of file battle_effect_titan_blade.c.

TITAN_BLADE_PILLAR_TICKS

#define TITAN_BLADE_PILLAR_TICKS 32

Referenced by btEffectRunFallingSword().

Definition at line 62 of file battle_effect_titan_blade.c.

TITAN_BLADE_DUST_PER_TICK

#define TITAN_BLADE_DUST_PER_TICK 16

Referenced by btEffectRunFallingSword().

Definition at line 63 of file battle_effect_titan_blade.c.

TITAN_BLADE_PILLAR_PHASE

#define TITAN_BLADE_PILLAR_PHASE 256

How far behind their climb the pillar's flames start, which sets the line of FirePillarSheetA's column they show first.

Referenced by btEffectRunFallingSword().

Definition at line 66 of file battle_effect_titan_blade.c.

TITAN_BLADE_STRIKE_TICK

#define TITAN_BLADE_STRIKE_TICK 60

The sword strikes: the crash, the damage and the canvas filled bright.

Referenced by btEffectRunFallingSword().

Definition at line 69 of file battle_effect_titan_blade.c.

Enumerations in detail

FALLING_SWORD_MODE

enum FALLING_SWORD_MODE

The falling sword's modes (btEffectRunFallingSword).

EnumeratorValueDescription
FALLING_SWORD_TITAN_BLADE
FALLING_SWORD_ACHERONS_GRIEF

Definition at line 5 of file battle_effect_titan_blade.c.

Functions in detail

btEffectRunTitanBlade

void btEffectRunTitanBlade(BATTLE_EFFECT_PARM *args)

Abilities: Titan Blade.

References btEffectRunFallingSword().

Referenced by BattleEffectHandlers.

Definition at line 21 of file battle_effect_titan_blade.c.

btEffectRunAcheronsGrief

void btEffectRunAcheronsGrief(BATTLE_EFFECT_PARM *args)

Abilities: Acheron's Grief.

References btEffectRunFallingSword().

Referenced by BattleEffectHandlers.

Definition at line 27 of file battle_effect_titan_blade.c.

btEffectRunFallingSword

void btEffectRunFallingSword(BATTLE_EFFECT_PARM *args, Sint32 mode)

A great sword falls from the sky onto the target, a pillar of fire and dust spouting under it, and drives into the ground in a burst of flashes and sparks. The sword comes down fast, holds, sinks slowly while the pillar rises and then plunges; the canvas floods white as it arrives and as it strikes, and every target is struck a little after. Acheron's Grief shows the same sword in other colours.

References BattleEffectMotePictures, btCameraShake(), btEffectPosProjectBattler(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btPaletteMirrorBgColors(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), Sint32, syCos(), syRandom(), syResourceGetTableEntry(), sySin(), sySoundPlayStub(), TitanBladeDustGravity and TitanBladeFlashPictures.

Referenced by btEffectRunAcheronsGrief() and btEffectRunTitanBlade().

Definition at line 77 of file battle_effect_titan_blade.c.