Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_ragnarok.c

Ragnarok. More…

Included by battle_effect.c.

Macros

NameDescription
#defineRAGNAROK_BLADE_WIDTH 64FlameBladeSheet's blade, then FlashBurstSheet's pictures.
#defineRAGNAROK_BLADE_HEIGHT 128
#defineRAGNAROK_FLASH_PICTURES PICTURE_BYTES(RAGNAROK_BLADE)
#defineRAGNAROK_BLADE_HOLD_TOP 16The blade comes down to RAGNAROK_BLADE_HOLD_TOP, and is cut off at the canvas row RAGNAROK_BLADE_FLOOR as it sinks into the ground.
#defineRAGNAROK_BLADE_FLOOR 104
#defineRAGNAROK_FLASH_LIFE 25A flash waits out its life, the ring's inner ones least, and in its last RAGNAROK_FLASH_BURN_TICKS burns down through six pictures, three ticks each.
#defineRAGNAROK_FLASH_BURN_TICKS 18
#defineRAGNAROK_GROUND_Y 108The canvas row the sparks bounce on.
#defineRAGNAROK_COLUMNS 2Columns and particles.
#defineRAGNAROK_SEEDED 3columns given particles; the third is unused
#defineRAGNAROK_FLASHES 16flashes kept per column
#defineRAGNAROK_RING 12of which drawn as the ring
#defineRAGNAROK_SPARKS 340sparks kept per column
#defineRAGNAROK_DRAWN_SPARKS 256of which flown
#defineRAGNAROK_TICKS 80
#defineRAGNAROK_BLADE_SWING_TICKS 10the blade comes down
#defineRAGNAROK_BLADE_HOLD_TICK 20then holds, then creeps on
#defineRAGNAROK_BLADE_LAST_TICK 39the blade is gone after it
#defineRAGNAROK_FIRST_STRIKE_TICK
#defineRAGNAROK_DAMAGE_TICK 40the damage is shown

Functions

NameDescription
voidbtEffectRunRagnarok (BATTLE_EFFECT_PARM *args)A huge flaming blade swings down over the targets and light bursts over them twice.

Description

Ragnarok. Part of battle_effect.c.

Macros in detail

RAGNAROK_BLADE_WIDTH

#define RAGNAROK_BLADE_WIDTH 64

FlameBladeSheet's blade, then FlashBurstSheet's pictures.

Referenced by btEffectRunRagnarok().

Definition at line 4 of file battle_effect_ragnarok.c.

RAGNAROK_BLADE_HEIGHT

#define RAGNAROK_BLADE_HEIGHT 128

Referenced by btEffectRunRagnarok().

Definition at line 5 of file battle_effect_ragnarok.c.

RAGNAROK_FLASH_PICTURES

#define RAGNAROK_FLASH_PICTURES PICTURE_BYTES(RAGNAROK_BLADE)

Referenced by btEffectRunRagnarok().

Definition at line 6 of file battle_effect_ragnarok.c.

RAGNAROK_BLADE_HOLD_TOP

#define RAGNAROK_BLADE_HOLD_TOP 16

The blade comes down to RAGNAROK_BLADE_HOLD_TOP, and is cut off at the canvas row RAGNAROK_BLADE_FLOOR as it sinks into the ground.

Referenced by btEffectRunRagnarok().

Definition at line 9 of file battle_effect_ragnarok.c.

RAGNAROK_BLADE_FLOOR

#define RAGNAROK_BLADE_FLOOR 104

Referenced by btEffectRunRagnarok().

Definition at line 10 of file battle_effect_ragnarok.c.

RAGNAROK_FLASH_LIFE

#define RAGNAROK_FLASH_LIFE 25

A flash waits out its life, the ring's inner ones least, and in its last RAGNAROK_FLASH_BURN_TICKS burns down through six pictures, three ticks each.

Referenced by btEffectRunRagnarok().

Definition at line 13 of file battle_effect_ragnarok.c.

RAGNAROK_FLASH_BURN_TICKS

#define RAGNAROK_FLASH_BURN_TICKS 18

Referenced by btEffectRunRagnarok().

Definition at line 14 of file battle_effect_ragnarok.c.

RAGNAROK_GROUND_Y

#define RAGNAROK_GROUND_Y 108

The canvas row the sparks bounce on.

Referenced by btEffectRunRagnarok().

Definition at line 16 of file battle_effect_ragnarok.c.

RAGNAROK_COLUMNS

#define RAGNAROK_COLUMNS 2

Columns and particles.

columns that strike

Referenced by btEffectRunRagnarok().

Definition at line 19 of file battle_effect_ragnarok.c.

RAGNAROK_SEEDED

#define RAGNAROK_SEEDED 3

columns given particles; the third is unused

Referenced by btEffectRunRagnarok().

Definition at line 20 of file battle_effect_ragnarok.c.

RAGNAROK_FLASHES

#define RAGNAROK_FLASHES 16

flashes kept per column

Referenced by btEffectRunRagnarok().

Definition at line 21 of file battle_effect_ragnarok.c.

RAGNAROK_RING

#define RAGNAROK_RING 12

of which drawn as the ring

Referenced by btEffectRunRagnarok().

Definition at line 22 of file battle_effect_ragnarok.c.

RAGNAROK_SPARKS

#define RAGNAROK_SPARKS 340

sparks kept per column

Referenced by btEffectRunRagnarok().

Definition at line 23 of file battle_effect_ragnarok.c.

RAGNAROK_DRAWN_SPARKS

#define RAGNAROK_DRAWN_SPARKS 256

of which flown

Referenced by btEffectRunRagnarok().

Definition at line 24 of file battle_effect_ragnarok.c.

RAGNAROK_TICKS

#define RAGNAROK_TICKS 80

Referenced by btEffectRunRagnarok().

Definition at line 26 of file battle_effect_ragnarok.c.

RAGNAROK_BLADE_SWING_TICKS

#define RAGNAROK_BLADE_SWING_TICKS 10

the blade comes down

Referenced by btEffectRunRagnarok().

Definition at line 27 of file battle_effect_ragnarok.c.

RAGNAROK_BLADE_HOLD_TICK

#define RAGNAROK_BLADE_HOLD_TICK 20

then holds, then creeps on

Referenced by btEffectRunRagnarok().

Definition at line 28 of file battle_effect_ragnarok.c.

RAGNAROK_BLADE_LAST_TICK

#define RAGNAROK_BLADE_LAST_TICK 39

the blade is gone after it

Referenced by btEffectRunRagnarok().

Definition at line 29 of file battle_effect_ragnarok.c.

RAGNAROK_FIRST_STRIKE_TICK

#define RAGNAROK_FIRST_STRIKE_TICK

Referenced by btEffectRunRagnarok().

Definition at line 30 of file battle_effect_ragnarok.c.

RAGNAROK_DAMAGE_TICK

#define RAGNAROK_DAMAGE_TICK 40

the damage is shown

Referenced by btEffectRunRagnarok().

Definition at line 33 of file battle_effect_ragnarok.c.

Functions in detail

btEffectRunRagnarok

void btEffectRunRagnarok(BATTLE_EFFECT_PARM *args)

A huge flaming blade swings down over the targets and light bursts over them twice.

Abilities: Ragnarok.

Ragnarok
Ragnarok

References BattleEffectMotePictures, btCameraShake(), btEffectBuildCanvasBlitters(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btObjectGetStub(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), fdActorSelectAnimationStub(), fdActorSetAnimationSpeedStub(), RagnarokFlashPictures, RagnarokStrikeColumns, Sint32, state, syCos(), syRandom(), sySin() and sySoundPlayStub().

Referenced by BattleEffectHandlers.

Definition at line 39 of file battle_effect_ragnarok.c.