Alchemy

spire.c

Spire.

games/tbs/src/effect/parts/spire.c on GitHub

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

Functions

BattleFx_RunSpire

void BattleFx_RunSpire(struct BattleEffectArgument *effect)

Shattering rocks: boulders drop along the row of targets, centred on it, and burst into tumbling shards, hitting every target as each lands.

Abilities: Spire, Clay Spire, Stone Spire (kind 2).

effect: the targets; its variant picks the number of boulders
        (gSpire_RockCounts).

Used by gBattleFx_EffectHandlers.

Line 23

Macros

SPIRE_SHARD_CELLS

#define SPIRE_SHARD_CELLS (SPIRE_ROCK_WIDTH * SPIRE_ROCK_HEIGHT)

The shard pictures in the sheet, after the boulder.

Used by BattleFx_RunSpire.

Line 10

SPIRE_FALL_FRAMES

#define SPIRE_FALL_FRAMES 18

Frames a boulder falls, from its drop frame (gSpire_DropFrames) until it lands, shakes the screen and strikes the targets.

Used by BattleFx_RunSpire.

Line 14

Also, macros without a comment: SPIRE_ROCK_WIDTH, SPIRE_ROCK_HEIGHT, SPIRE_SHARDS.

On this page