Alchemy

ragnarok.c

Ragnarok.

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

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

Functions

BattleFx_RunRagnarok

void BattleFx_RunRagnarok(struct BattleEffectArgument *effect)

A huge flaming blade swings down over the targets and two columns of light strike through them.

Abilities: Ragnarok (kind 58).

The sword is drawn for 40 frames: it swings down over 10 frames, pauses until frame 20, then creeps on. The columns flash at frames 16 and 24 and scatter sparks six frames later, as the targets recoil; the battle shows the damage on frame 40. Column x comes from gRagnarok_StrikeColumns: first two of three per side. work->particles holds 16 flashes a column and PARTICLES 340 sparks a column.

Used by gBattleFx_EffectHandlers.

Line 33

Macros

RAGNAROK_FLASH_CELLS

#define RAGNAROK_FLASH_CELLS (64 * 128)

Where the flash graphics start: after the 64x128 sword image.

Used by BattleFx_RunRagnarok.

Line 8

RAGNAROK_COLUMN_X

#define RAGNAROK_COLUMN_X(side, column)

gRagnarok_StrikeColumns has three columns for each side.

Used by BattleFx_RunRagnarok.

Line 19

Also, macros without a comment: RAGNAROK_FRAMES, RAGNAROK_COLUMNS, RAGNAROK_SEEDED, RAGNAROK_FLASHES, RAGNAROK_RING, RAGNAROK_SPARKS, RAGNAROK_DRAWN_SPARKS.

On this page