Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_tiamat.c

Dragon Driver and the Tiamat summon. More…

Included by battle_effect.c.

Macros

NameDescription
#defineDRAGON_FIRE_TICKS 208
#defineDRAGON_FIRE_BREATH_TICK 128The breath of fire, then the flash that ends it.
#defineDRAGON_FIRE_FLASH_TICK 160
#defineDRAGON_FIRE_FLASH_END_TICK 176
#defineDRAGON_FIRE_FIREBALLS 16Falling fireballs.
#defineDRAGON_FIRE_FIRST_FIREBALL 24The first fireball in state->particles.
#defineDRAGON_FIRE_FIRST_SPARK 40The first spark in state->particles.
#defineDRAGON_FIRE_EMBERS 512Embers in PARTICLES.
#defineDRAGON_FIRE_BREATH 24Puffs of breath, state->particles 0 to 23.
#defineDRAGON_FIRE_SPARKS 24Sparks, state->particles 40 to 63.
#defineDRAGON_FIRE_FLAME_PICTURES 12288The flames a fireball burns with where it lands, in the sprite sheet.
#defineDRAGON_FIRE_PUFF_PICTURES 6A puff of breath shows the flash burst's six pictures, four ticks each.
#defineDRAGON_FIRE_PUFF_TICKS 4
#defineDRAGON_FIRE_BURN_PICTURES 6A landed fireball's flame burns through its six pictures, two ticks each, over and over.
#defineDRAGON_FIRE_BURN_TICKS 2
#defineDRAGON_FIRE_SPARK_LIFE 48Ticks a spark flies.
#defineDRAGON_FIRE_EMBER_LIFE 256Ticks an ember rises.
#defineDRAGON_FIRE_FIREBALL_SIZE 10A falling fireball is the largest mote.
#defineTIAMAT_SPRITES 8The sprites Tiamat is drawn from.

Enumerations

NameDescription
enumDRAGON_FIRE_MODE { DRAGON_FIRE_TIAMAT, DRAGON_FIRE_DRAGON_DRIVER }Who breathes the dragon's fire (btEffectRunDragonFire).
enumTIAMAT_PIECE { TIAMAT_HEAD, TIAMAT_HORNS, TIAMAT_JAW, TIAMAT_THROAT }Tiamat's pieces (state->sprites), each showing its own picture of the sprite sheet: piece n shows animation n.
enumTIAMAT_ANIMATION { TIAMAT_HEAD_BREATHING, TIAMAT_HORNS_BREATHING, TIAMAT_JAW_BR … }The fire-lit pictures the pieces show as Tiamat breathes, by animation.

Functions

NameDescription
voidbtEffectRunDragonDriver (BATTLE_EFFECT_PARM *args)Fireballs rain on the targets and a blast of fire sweeps across them, in the LightningBolt colours.
voidbtEffectRunTiamat (BATTLE_EFFECT_PARM *args)Tiamat lands while fireballs rain on the targets, breathes fire across them, and bursts away.
voidbtEffectRunDragonFire (BATTLE_EFFECT_PARM *args, Sint32 mode)Fireballs rain on the targets and burn where they land while embers rise from the ground; then a blast of fire sweeps across them and the screen flares white.

Description

Dragon Driver and the Tiamat summon. Part of battle_effect.c.

Macros in detail

DRAGON_FIRE_TICKS

#define DRAGON_FIRE_TICKS 208

Referenced by btEffectRunDragonFire().

Definition at line 32 of file battle_effect_tiamat.c.

DRAGON_FIRE_BREATH_TICK

#define DRAGON_FIRE_BREATH_TICK 128

The breath of fire, then the flash that ends it.

Referenced by btEffectRunDragonFire().

Definition at line 34 of file battle_effect_tiamat.c.

DRAGON_FIRE_FLASH_TICK

#define DRAGON_FIRE_FLASH_TICK 160

Referenced by btEffectRunDragonFire().

Definition at line 35 of file battle_effect_tiamat.c.

DRAGON_FIRE_FLASH_END_TICK

#define DRAGON_FIRE_FLASH_END_TICK 176

Referenced by btEffectRunDragonFire().

Definition at line 36 of file battle_effect_tiamat.c.

DRAGON_FIRE_FIREBALLS

#define DRAGON_FIRE_FIREBALLS 16

Falling fireballs.

Referenced by btEffectRunDragonFire().

Definition at line 38 of file battle_effect_tiamat.c.

DRAGON_FIRE_FIRST_FIREBALL

#define DRAGON_FIRE_FIRST_FIREBALL 24

The first fireball in state->particles.

Referenced by btEffectRunDragonFire().

Definition at line 40 of file battle_effect_tiamat.c.

DRAGON_FIRE_FIRST_SPARK

#define DRAGON_FIRE_FIRST_SPARK 40

The first spark in state->particles.

Referenced by btEffectRunDragonFire().

Definition at line 42 of file battle_effect_tiamat.c.

DRAGON_FIRE_EMBERS

#define DRAGON_FIRE_EMBERS 512

Embers in PARTICLES.

Referenced by btEffectRunDragonFire().

Definition at line 44 of file battle_effect_tiamat.c.

DRAGON_FIRE_BREATH

#define DRAGON_FIRE_BREATH 24

Puffs of breath, state->particles 0 to 23.

Referenced by btEffectRunDragonFire().

Definition at line 46 of file battle_effect_tiamat.c.

DRAGON_FIRE_SPARKS

#define DRAGON_FIRE_SPARKS 24

Sparks, state->particles 40 to 63.

Referenced by btEffectRunDragonFire().

Definition at line 48 of file battle_effect_tiamat.c.

DRAGON_FIRE_FLAME_PICTURES

#define DRAGON_FIRE_FLAME_PICTURES 12288

The flames a fireball burns with where it lands, in the sprite sheet.

Referenced by btEffectRunDragonFire().

Definition at line 50 of file battle_effect_tiamat.c.

DRAGON_FIRE_PUFF_PICTURES

#define DRAGON_FIRE_PUFF_PICTURES 6

A puff of breath shows the flash burst's six pictures, four ticks each.

Referenced by btEffectRunDragonFire().

Definition at line 52 of file battle_effect_tiamat.c.

DRAGON_FIRE_PUFF_TICKS

#define DRAGON_FIRE_PUFF_TICKS 4

Referenced by btEffectRunDragonFire().

Definition at line 53 of file battle_effect_tiamat.c.

DRAGON_FIRE_BURN_PICTURES

#define DRAGON_FIRE_BURN_PICTURES 6

A landed fireball's flame burns through its six pictures, two ticks each, over and over.

Referenced by btEffectRunDragonFire().

Definition at line 56 of file battle_effect_tiamat.c.

DRAGON_FIRE_BURN_TICKS

#define DRAGON_FIRE_BURN_TICKS 2

Referenced by btEffectRunDragonFire().

Definition at line 57 of file battle_effect_tiamat.c.

DRAGON_FIRE_SPARK_LIFE

#define DRAGON_FIRE_SPARK_LIFE 48

Ticks a spark flies.

Referenced by btEffectRunDragonFire().

Definition at line 59 of file battle_effect_tiamat.c.

DRAGON_FIRE_EMBER_LIFE

#define DRAGON_FIRE_EMBER_LIFE 256

Ticks an ember rises.

Referenced by btEffectRunDragonFire().

Definition at line 61 of file battle_effect_tiamat.c.

DRAGON_FIRE_FIREBALL_SIZE

#define DRAGON_FIRE_FIREBALL_SIZE 10

A falling fireball is the largest mote.

Referenced by btEffectRunDragonFire().

Definition at line 63 of file battle_effect_tiamat.c.

TIAMAT_SPRITES

#define TIAMAT_SPRITES 8

The sprites Tiamat is drawn from.

Referenced by btEffectRunDragonFire().

Definition at line 65 of file battle_effect_tiamat.c.

Enumerations in detail

DRAGON_FIRE_MODE

enum DRAGON_FIRE_MODE

Who breathes the dragon's fire (btEffectRunDragonFire).

EnumeratorValueDescription
DRAGON_FIRE_TIAMATTiamat lands beside the targets and breathes the fire, then bursts away (btEffectRunImpactBurst)
DRAGON_FIRE_DRAGON_DRIVERno dragon is drawn: the breath starts just in front of the targets, in the LightningBolt colours

Definition at line 4 of file battle_effect_tiamat.c.

TIAMAT_PIECE

enum TIAMAT_PIECE

Tiamat's pieces (state->sprites), each showing its own picture of the sprite sheet: piece n shows animation n. As it breathes, its head, horns, jaw and throat show the fire-lit pictures of its open mouth.

EnumeratorValueDescription
TIAMAT_HEAD0
TIAMAT_HORNS1
TIAMAT_JAW3
TIAMAT_THROAT4

Definition at line 70 of file battle_effect_tiamat.c.

TIAMAT_ANIMATION

enum TIAMAT_ANIMATION

The fire-lit pictures the pieces show as Tiamat breathes, by animation.

EnumeratorValueDescription
TIAMAT_HEAD_BREATHING8
TIAMAT_HORNS_BREATHING
TIAMAT_JAW_BREATHING
TIAMAT_THROAT_BREATHING

Definition at line 79 of file battle_effect_tiamat.c.

Functions in detail

btEffectRunDragonDriver

void btEffectRunDragonDriver(BATTLE_EFFECT_PARM *args)

Fireballs rain on the targets and a blast of fire sweeps across them, in the LightningBolt colours.

Abilities: Dragon Driver, the Fusion Dragon's.

References btEffectRunDragonFire().

Referenced by BattleEffectHandlers.

Definition at line 18 of file battle_effect_tiamat.c.

btEffectRunTiamat

void btEffectRunTiamat(BATTLE_EFFECT_PARM *args)

Tiamat lands while fireballs rain on the targets, breathes fire across them, and bursts away.

Abilities: Tiamat.

References btEffectRunDragonFire().

Referenced by btEffectRunSummon().

Definition at line 27 of file battle_effect_tiamat.c.

btEffectRunDragonFire

void btEffectRunDragonFire(BATTLE_EFFECT_PARM *args, Sint32 mode)

Fireballs rain on the targets and burn where they land while embers rise from the ground; then a blast of fire sweeps across them and the screen flares white.

References BattleEffectMotePictures, btCameraShake(), btEffectCreateSprites(), btEffectEndCanvasLayer(), btEffectPlaceFormationSprites(), btEffectRunImpactBurst(), btEffectShowLivingTargets(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btPaletteBrightenBgEntries(), btProjectionScaledUnit(), fdSpriteDestroyStub(), fdSpriteStartAnimationStub(), PerRepeat, Sint32, state, syCloseEvent(), syCos(), syDecompressTaggedLZ(), syRandom(), syResourceGetTableEntry(), sySin(), sySoundPlayStub(), sySynch(), syWordsCopy(), TiamatEmberSizes, TiamatEmberSpeeds, TiamatFlameDrops, TiamatFlameHeights, TiamatFlamePictures, TiamatFlameWidths and TiamatSparkPixels.

Referenced by btEffectRunDragonDriver() and btEffectRunTiamat().

Definition at line 90 of file battle_effect_tiamat.c.