src/battle_effect/battle_effect_volcano.c
Volcano. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | VOLCANO_TICKS 96 | |
#define | VOLCANO_MOST_PILLARS 4 | The strongest variant's pillars. |
#define | VOLCANO_PILLAR_TICKS 64 | The ticks the pillars burn, and the strongest variant's camera turns. |
#define | VOLCANO_CAMERA_SPIN (TRIG_TURN * 3 / 16 / VOLCANO_PILLAR_TICKS) | The camera's turn each of those ticks: three sixteenths of a turn in all. |
#define | VOLCANO_ERUPTION 200 | Sparks thrown as a pillar starts. |
#define | VOLCANO_TRICKLE 4 | Sparks thrown each tick after. |
#define | VOLCANO_SPARK_POOL PARTICLE_POOL_COUNT | Sparks in PARTICLES. |
#define | VOLCANO_FLAME_PICTURE_ODD PICTURE_BYTES(FIRE_PILLAR) | The flame on odd ticks, then on even ticks, after the 34x104 column. |
#define | VOLCANO_FLAME_PICTURE_EVEN | |
#define | VOLCANO_SPARK_GRAVITY (Q_8_8(1) / 16) | How much faster a spark falls each tick: a sixteenth of a pixel a tick. |
#define | VOLCANO_SPARK_SIZE (life) (((life) - 17) / 8) | The mote size a spark is drawn at: a size smaller every 8 ticks of its life, and the smallest for its last 32, which is all of a trickled spark's. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunVolcano (BATTLE_EFFECT_PARM *args) | One, two or four columns of fire rise among the targets, each erupting in a fountain of sparks and knocking the targets back. |
Description
Volcano. Part of battle_effect.c.
Macros in detail
VOLCANO_TICKS
#define VOLCANO_TICKS 96
Referenced by btEffectRunVolcano().
Definition at line 3 of file battle_effect_volcano.c.
VOLCANO_MOST_PILLARS
#define VOLCANO_MOST_PILLARS 4
The strongest variant's pillars.
Referenced by btEffectRunVolcano().
Definition at line 5 of file battle_effect_volcano.c.
VOLCANO_PILLAR_TICKS
#define VOLCANO_PILLAR_TICKS 64
The ticks the pillars burn, and the strongest variant's camera turns.
Referenced by btEffectRunVolcano().
Definition at line 7 of file battle_effect_volcano.c.
VOLCANO_CAMERA_SPIN
#define VOLCANO_CAMERA_SPIN (TRIG_TURN * 3 / 16 / VOLCANO_PILLAR_TICKS)
The camera's turn each of those ticks: three sixteenths of a turn in all.
Referenced by btEffectRunVolcano().
Definition at line 9 of file battle_effect_volcano.c.
VOLCANO_ERUPTION
#define VOLCANO_ERUPTION 200
Sparks thrown as a pillar starts.
Referenced by btEffectRunVolcano().
Definition at line 11 of file battle_effect_volcano.c.
VOLCANO_TRICKLE
#define VOLCANO_TRICKLE 4
Sparks thrown each tick after.
Referenced by btEffectRunVolcano().
Definition at line 13 of file battle_effect_volcano.c.
VOLCANO_SPARK_POOL
#define VOLCANO_SPARK_POOL PARTICLE_POOL_COUNT
Sparks in PARTICLES.
Referenced by btEffectRunVolcano().
Definition at line 15 of file battle_effect_volcano.c.
VOLCANO_FLAME_PICTURE_ODD
#define VOLCANO_FLAME_PICTURE_ODD PICTURE_BYTES(FIRE_PILLAR)
The flame on odd ticks, then on even ticks, after the 34x104 column.
Referenced by btEffectRunVolcano().
Definition at line 17 of file battle_effect_volcano.c.
VOLCANO_FLAME_PICTURE_EVEN
#define VOLCANO_FLAME_PICTURE_EVEN
Referenced by btEffectRunVolcano().
Definition at line 18 of file battle_effect_volcano.c.
VOLCANO_SPARK_GRAVITY
#define VOLCANO_SPARK_GRAVITY (Q_8_8(1) / 16)
How much faster a spark falls each tick: a sixteenth of a pixel a tick.
Referenced by btEffectRunVolcano().
Definition at line 21 of file battle_effect_volcano.c.
VOLCANO_SPARK_SIZE
#define VOLCANO_SPARK_SIZE(life) (((life) - 17) / 8)
The mote size a spark is drawn at: a size smaller every 8 ticks of its life, and the smallest for its last 32, which is all of a trickled spark's.
Referenced by btEffectRunVolcano().
Definition at line 24 of file battle_effect_volcano.c.
Functions in detail
btEffectRunVolcano
void btEffectRunVolcano(BATTLE_EFFECT_PARM *args)
One, two or four columns of fire rise among the targets, each erupting in a fountain of sparks and knocking the targets back.
Abilities: Volcano, Eruption, Pyroclasm, Lava Shower, Molten Bath, Magma Storm.






References btCameraShake(), btEffectEndCanvasLayer(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btObjectGetStub(), btProjectionPoint(), btResourceLoadAndDecompress(), Sint32, state, syCloseEvent(), syCos(), syRandom(), syResourceGetTableEntry(), sySin(), sySoundPlayStub(), syWordsCopy(), VolcanoCounts, VolcanoDepths and VolcanoStartTicks.
Referenced by BattleEffectHandlers.
Definition at line 31 of file battle_effect_volcano.c.