src/battle_effect/battle_effect_ragnarok.c
Ragnarok. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | FLASH_LIFE 25 | A flash waits out its life, the ring's inner ones least, and in its last FLASH_BURN_TICKS burns down from FlashBurstSheet's fireball to embers, a picture every three ticks. |
#define | FLASH_BURN_TICKS 18 | |
#define | SWORD_GROUND_Y 108 | The canvas line the sparks bounce on, and where the falling sword, its pillar of fire and its dust stop. |
#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 not drawn below RAGNAROK_BLADE_FLOOR. |
#define | RAGNAROK_BLADE_FLOOR 104 | |
#define | RAGNAROK_COLUMNS 2 | Columns, particles, and ticks. |
#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 | BLADE_SWING_TICKS 10 | the blade comes down |
#define | BLADE_HOLD_TICK 20 | then holds, then creeps on |
#define | BLADE_LAST_TICK 39 | the last tick the blade shows |
#define | FIRST_STRIKE_TICK | |
#define | RESULT_TICK 40 | the damage shows |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunRagnarok (BATTLE_EFFECT_PARM *args) | A huge flaming blade swings down over the targets, holds and creeps on, while two columns of light burst over them eight ticks apart, each in a ring of flashes and a spray of sparks that bounce on the ground; the targets flash as each column strikes and are struck six ticks later. |
Description
Ragnarok. Part of battle_effect.c.
Macros in detail
FLASH_LIFE
#define FLASH_LIFE 25
A flash waits out its life, the ring's inner ones least, and in its last
FLASH_BURN_TICKS burns down from FlashBurstSheet's fireball to embers, a
picture every three ticks.
Referenced by btEffectRunFallingSword() and btEffectRunRagnarok().
Definition at line 6 of file battle_effect_ragnarok.c.
FLASH_BURN_TICKS
#define FLASH_BURN_TICKS 18
Referenced by btEffectRunFallingSword() and btEffectRunRagnarok().
Definition at line 7 of file battle_effect_ragnarok.c.
SWORD_GROUND_Y
#define SWORD_GROUND_Y 108
The canvas line the sparks bounce on, and where the falling sword, its pillar of fire and its dust stop.
Referenced by btEffectRunFallingSword() and btEffectRunRagnarok().
Definition at line 10 of file battle_effect_ragnarok.c.
RAGNAROK_BLADE_WIDTH
#define RAGNAROK_BLADE_WIDTH 64
FlameBladeSheet's blade, then FlashBurstSheet's pictures.
Referenced by btEffectRunRagnarok().
Definition at line 13 of file battle_effect_ragnarok.c.
RAGNAROK_BLADE_HEIGHT
#define RAGNAROK_BLADE_HEIGHT 128
Referenced by btEffectRunRagnarok().
Definition at line 14 of file battle_effect_ragnarok.c.
RAGNAROK_FLASH_PICTURES
#define RAGNAROK_FLASH_PICTURES PICTURE_BYTES(RAGNAROK_BLADE)
Referenced by btEffectRunRagnarok().
Definition at line 15 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 not drawn below
RAGNAROK_BLADE_FLOOR.
Referenced by btEffectRunRagnarok().
Definition at line 18 of file battle_effect_ragnarok.c.
RAGNAROK_BLADE_FLOOR
#define RAGNAROK_BLADE_FLOOR 104
Referenced by btEffectRunRagnarok().
Definition at line 19 of file battle_effect_ragnarok.c.
RAGNAROK_COLUMNS
#define RAGNAROK_COLUMNS 2
Columns, particles, and ticks.
columns that strike
Referenced by btEffectRunRagnarok().
Definition at line 22 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 23 of file battle_effect_ragnarok.c.
RAGNAROK_FLASHES
#define RAGNAROK_FLASHES 16
flashes kept per column
Referenced by btEffectRunRagnarok().
Definition at line 24 of file battle_effect_ragnarok.c.
RAGNAROK_RING
#define RAGNAROK_RING 12
of which drawn as the ring
Referenced by btEffectRunRagnarok().
Definition at line 25 of file battle_effect_ragnarok.c.
RAGNAROK_SPARKS
#define RAGNAROK_SPARKS 340
sparks kept per column
Referenced by btEffectRunRagnarok().
Definition at line 26 of file battle_effect_ragnarok.c.
RAGNAROK_DRAWN_SPARKS
#define RAGNAROK_DRAWN_SPARKS 256
of which flown
Referenced by btEffectRunRagnarok().
Definition at line 27 of file battle_effect_ragnarok.c.
RAGNAROK_TICKS
#define RAGNAROK_TICKS 80
Referenced by btEffectRunRagnarok().
Definition at line 29 of file battle_effect_ragnarok.c.
BLADE_SWING_TICKS
#define BLADE_SWING_TICKS 10
the blade comes down
Referenced by btEffectRunRagnarok().
Definition at line 30 of file battle_effect_ragnarok.c.
BLADE_HOLD_TICK
#define BLADE_HOLD_TICK 20
then holds, then creeps on
Referenced by btEffectRunRagnarok().
Definition at line 31 of file battle_effect_ragnarok.c.
BLADE_LAST_TICK
#define BLADE_LAST_TICK 39
the last tick the blade shows
Referenced by btEffectRunRagnarok().
Definition at line 32 of file battle_effect_ragnarok.c.
FIRST_STRIKE_TICK
#define FIRST_STRIKE_TICK
Referenced by btEffectRunRagnarok().
Definition at line 33 of file battle_effect_ragnarok.c.
RESULT_TICK
#define RESULT_TICK 40
the damage shows
Referenced by btEffectRunRagnarok().
Definition at line 36 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, holds and creeps on, while two columns of light burst over them eight ticks apart, each in a ring of flashes and a spray of sparks that bounce on the ground; the targets flash as each column strikes and are struck six ticks later.
Abilities: Ragnarok.
References BattleEffectMotePictures, btCameraShake(), btEffectBuildCanvasBlitters(), btEffectPosProjectBattler(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btObjectGetStub(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), fdActorSelectAnimationStub(), fdActorSetAnimationSpeedStub(), RagnarokFlashPictures, RagnarokStrikeColumns, Sint32, syCos(), syRandom(), sySin() and sySoundPlayStub().
Referenced by BattleEffectHandlers.
Definition at line 44 of file battle_effect_ragnarok.c.