src/battle_effect/battle_effect_ragnarok.c
Ragnarok. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | RAGNAROK_BLADE_WIDTH 64 | FlameBladeSheet's blade, then FlashBurstSheet's pictures. |
#define | RAGNAROK_BLADE_HEIGHT 128 | |
#define | RAGNAROK_FLASH_PICTURES PICTURE_BYTES(RAGNAROK_BLADE) | |
#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. |
#define | RAGNAROK_BLADE_FLOOR 104 | |
#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. |
#define | RAGNAROK_FLASH_BURN_TICKS 18 | |
#define | RAGNAROK_GROUND_Y 108 | The canvas row the sparks bounce on. |
#define | RAGNAROK_COLUMNS 2 | Columns and particles. |
#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_TICKS 80 | |
#define | RAGNAROK_BLADE_SWING_TICKS 10 | the blade comes down |
#define | RAGNAROK_BLADE_HOLD_TICK 20 | then holds, then creeps on |
#define | RAGNAROK_BLADE_LAST_TICK 39 | the blade is gone after it |
#define | RAGNAROK_FIRST_STRIKE_TICK | |
#define | RAGNAROK_DAMAGE_TICK 40 | the damage is shown |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunRagnarok (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.

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.