Alchemy
Loading...
Searching...
No Matches

ragnarok.c File Reference

Ragnarok. More...

Go to the source code of this file.

Macros

#define RAGNAROK_FLASH_CELLS   (64 * 128)
 Where the flash graphics start: after the 64x128 sword image.
#define RAGNAROK_FRAMES   80
#define RAGNAROK_COLUMNS   2
 columns that strike
#define RAGNAROK_SEEDED   3
 columns given particles; the third is unused
#define RAGNAROK_FLASHES   16
 flashes kept per column
#define RAGNAROK_RING   12
 of which drawn as the ring
#define RAGNAROK_SPARKS   340
 sparks kept per column
#define RAGNAROK_DRAWN_SPARKS   256
 of which flown
#define RAGNAROK_COLUMN_X(side, column)
 gRagnarok_StrikeColumns has three columns for each side.

Functions

void BattleFx_RunRagnarok (struct BattleEffectArgument *effect)
 A huge flaming blade swings down over the targets and two columns of light strike through them.

Detailed Description

Ragnarok.

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

Definition in file ragnarok.c.

Macro Definition Documentation

◆ RAGNAROK_FLASH_CELLS

#define RAGNAROK_FLASH_CELLS   (64 * 128)

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

Definition at line 8 of file ragnarok.c.

Referenced by BattleFx_RunRagnarok().

◆ RAGNAROK_FRAMES

#define RAGNAROK_FRAMES   80

Definition at line 10 of file ragnarok.c.

Referenced by BattleFx_RunRagnarok().

◆ RAGNAROK_COLUMNS

#define RAGNAROK_COLUMNS   2

columns that strike

Definition at line 11 of file ragnarok.c.

Referenced by BattleFx_RunRagnarok().

◆ RAGNAROK_SEEDED

#define RAGNAROK_SEEDED   3

columns given particles; the third is unused

Definition at line 12 of file ragnarok.c.

Referenced by BattleFx_RunRagnarok().

◆ RAGNAROK_FLASHES

#define RAGNAROK_FLASHES   16

flashes kept per column

Definition at line 13 of file ragnarok.c.

Referenced by BattleFx_RunRagnarok().

◆ RAGNAROK_RING

#define RAGNAROK_RING   12

of which drawn as the ring

Definition at line 14 of file ragnarok.c.

Referenced by BattleFx_RunRagnarok().

◆ RAGNAROK_SPARKS

#define RAGNAROK_SPARKS   340

sparks kept per column

Definition at line 15 of file ragnarok.c.

Referenced by BattleFx_RunRagnarok().

◆ RAGNAROK_DRAWN_SPARKS

#define RAGNAROK_DRAWN_SPARKS   256

of which flown

Definition at line 16 of file ragnarok.c.

Referenced by BattleFx_RunRagnarok().

◆ RAGNAROK_COLUMN_X

#define RAGNAROK_COLUMN_X ( side,
column )
Value:
gRagnarok_StrikeColumns[(side)][(column)]
u8 gRagnarok_StrikeColumns[][3]
The canvas x of each strike column, three for each side.

gRagnarok_StrikeColumns has three columns for each side.

Definition at line 19 of file ragnarok.c.

Referenced by BattleFx_RunRagnarok().

Function Documentation

◆ 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.

Definition at line 33 of file ragnarok.c.

Referenced by BattleFx_RunRagnarok().