Alchemy
Loading...
Searching...
No Matches

volcano.c File Reference

Volcano. More...

Go to the source code of this file.

Macros

#define VOLCANO_FRAMES   96
#define VOLCANO_ERUPTION   200
 sparks thrown as a pillar starts
#define VOLCANO_TRICKLE   4
 and each frame after
#define VOLCANO_SPARK_POOL   1024
 sparks in PARTICLES
#define VOLCANO_FLAME_IMAGE_ODD   0xdd0
 the flame on odd frames
#define VOLCANO_FLAME_IMAGE_EVEN   0x10b4
 the flame on even frames

Functions

void BattleFx_RunVolcano (struct BattleEffectArgument *effect)
 One, two or four columns of fire (gVolcano_Counts by effect->variant) rise near the far edge on the targets' side, at the depths of gVolcano_Depths, starting at gVolcano_StartFrames; each erupts with a fountain of 200 sparks and keeps spitting more, and each eruption knocks the targets back.

Detailed Description

Volcano.

Part of effect.c, the battle effect object, compiled only through it.

Definition in file volcano.c.

Macro Definition Documentation

◆ VOLCANO_FRAMES

#define VOLCANO_FRAMES   96

Definition at line 14 of file volcano.c.

Referenced by BattleFx_RunVolcano().

◆ VOLCANO_ERUPTION

#define VOLCANO_ERUPTION   200

sparks thrown as a pillar starts

Definition at line 15 of file volcano.c.

Referenced by BattleFx_RunVolcano().

◆ VOLCANO_TRICKLE

#define VOLCANO_TRICKLE   4

and each frame after

Definition at line 16 of file volcano.c.

Referenced by BattleFx_RunVolcano().

◆ VOLCANO_SPARK_POOL

#define VOLCANO_SPARK_POOL   1024

sparks in PARTICLES

Definition at line 17 of file volcano.c.

Referenced by BattleFx_RunVolcano().

◆ VOLCANO_FLAME_IMAGE_ODD

#define VOLCANO_FLAME_IMAGE_ODD   0xdd0

the flame on odd frames

Definition at line 18 of file volcano.c.

Referenced by BattleFx_RunVolcano().

◆ VOLCANO_FLAME_IMAGE_EVEN

#define VOLCANO_FLAME_IMAGE_EVEN   0x10b4

the flame on even frames

Definition at line 19 of file volcano.c.

Referenced by BattleFx_RunVolcano().

Function Documentation

◆ BattleFx_RunVolcano()

void BattleFx_RunVolcano ( struct BattleEffectArgument * effect)

One, two or four columns of fire (gVolcano_Counts by effect->variant) rise near the far edge on the targets' side, at the depths of gVolcano_Depths, starting at gVolcano_StartFrames; each erupts with a fountain of 200 sparks and keeps spitting more, and each eruption knocks the targets back.

Abilities: Volcano, Eruption, Pyroclasm, Lava Shower, Molten Bath, Magma Storm (kind 13).

The battle shows the damage on frame 16. Variant 0 is red, 2 orange; variant 2 also swings the camera round over the first 64 frames.

work->particles 0 to 3 are the pillars' feet, battle positions in 16.16. Sets REG_BLDALPHA, loads the red or orange palette into the first 64 background colours (variant 1 keeps the fire pillar sheet's), turns the camera's yaw (variant 2) and sets work->shakeFrames at each eruption.

Definition at line 36 of file volcano.c.

Referenced by BattleFx_RunVolcano().