src/battle_effect/battle_effect_plasma.c
Plasma, and the spark groups of Blast and Dynamite. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | PLASMA_SPARK_COUNT PARTICLE_POOL_COUNT | Sparks in PARTICLES, shared by every pillar. |
#define | PLASMA_SPACING 8 | Ticks between pillars. |
#define | PLASMA_SECOND_PICTURE PICTURE_BYTES(LIGHTNING_PILLAR) | The second picture in the sprite sheet, after the first 48x112 one. |
#define | PLASMA_COLUMN_X (side, pillar) PlasmaColumns[(side)][(pillar)] | PlasmaColumns has seven pillars for each side. |
#define | SPARK_GROUPS_FLASHES 16 | flashes kept per burst |
#define | SPARK_GROUPS_SPACING 8 | ticks between bursts |
#define | SPARK_GROUPS_RING 12 | of which drawn as the ring |
#define | SPARK_GROUPS_FLASH_DRAWN 18 | a flash is drawn over its final 18 ticks |
#define | SPARK_GROUPS_FLASH_LIFE | |
#define | SPARK_GROUPS_BURST_REACH 28 | Where a burst goes off: this far across from the origin, mirrored on the enemies' side, less its SPARK_GROUPS_OFFSET. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunPlasma (BATTLE_EFFECT_PARM *args) | Pillars of lightning strike one after another, each with a white flash, throwing sparks up from the ground and knocking the targets back. |
void | btEffectRunNova (BATTLE_EFFECT_PARM *args) | Bursts of light go off among the targets, each ringed by fading flashes and throwing sparks. |
void | btEffectRunDynamite (BATTLE_EFFECT_PARM *args) | Orange bursts go off in front of the battle. |
void | btEffectRunSparkGroups (BATTLE_EFFECT_PARM *args, Sint32 mode) | One to three bursts go off: each flashes, rings itself with smaller flashes that fade, and throws out sparks that bounce on the ground, knocking the targets back. |
Description
Plasma, and the spark groups of Blast and Dynamite. Part of battle_effect.c.
Macros in detail
PLASMA_SPARK_COUNT
#define PLASMA_SPARK_COUNT PARTICLE_POOL_COUNT
Sparks in PARTICLES, shared by every pillar.
Referenced by btEffectRunPlasma().
Definition at line 7 of file battle_effect_plasma.c.
PLASMA_SPACING
#define PLASMA_SPACING 8
Ticks between pillars.
Referenced by btEffectRunPlasma().
Definition at line 10 of file battle_effect_plasma.c.
PLASMA_SECOND_PICTURE
#define PLASMA_SECOND_PICTURE PICTURE_BYTES(LIGHTNING_PILLAR)
The second picture in the sprite sheet, after the first 48x112 one.
Referenced by btEffectRunPlasma().
Definition at line 12 of file battle_effect_plasma.c.
PLASMA_COLUMN_X
#define PLASMA_COLUMN_X(side, pillar) PlasmaColumns[(side)][(pillar)]
PlasmaColumns has seven pillars for each side.
Referenced by btEffectRunPlasma().
Definition at line 15 of file battle_effect_plasma.c.
SPARK_GROUPS_FLASHES
#define SPARK_GROUPS_FLASHES 16
flashes kept per burst
Referenced by btEffectRunSparkGroups().
Definition at line 217 of file battle_effect_plasma.c.
SPARK_GROUPS_SPACING
#define SPARK_GROUPS_SPACING 8
ticks between bursts
Referenced by btEffectRunSparkGroups().
Definition at line 218 of file battle_effect_plasma.c.
SPARK_GROUPS_RING
#define SPARK_GROUPS_RING 12
of which drawn as the ring
Referenced by btEffectRunSparkGroups().
Definition at line 219 of file battle_effect_plasma.c.
SPARK_GROUPS_FLASH_DRAWN
#define SPARK_GROUPS_FLASH_DRAWN 18
a flash is drawn over its final 18 ticks
Referenced by btEffectRunSparkGroups().
Definition at line 220 of file battle_effect_plasma.c.
SPARK_GROUPS_FLASH_LIFE
#define SPARK_GROUPS_FLASH_LIFE
Referenced by btEffectRunSparkGroups().
Definition at line 221 of file battle_effect_plasma.c.
SPARK_GROUPS_BURST_REACH
#define SPARK_GROUPS_BURST_REACH 28
Where a burst goes off: this far across from the origin, mirrored on the
enemies' side, less its SPARK_GROUPS_OFFSET. The weaker strengths' one burst
(offset 16) goes off 12 pixels across, the strongest's three (offsets 0, 24
and 48) 28, 4 and -20.
Referenced by btEffectRunSparkGroups().
Definition at line 229 of file battle_effect_plasma.c.
Functions in detail
btEffectRunPlasma
void btEffectRunPlasma(BATTLE_EFFECT_PARM *args)
Pillars of lightning strike one after another, each with a white flash, throwing sparks up from the ground and knocking the targets back.
Abilities: Plasma, Shine Plasma, Spark Plasma, Thunderclap, Thunderbolt, Thunderstorm.






References btCameraShake(), btEffectStartCanvasLayer(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), PlasmaCounts, PlasmaSparks, Sint32, state, syCos(), syRandom(), syResourceGetTableEntry(), sySin(), sySoundPlayStub(), syWordsCopy() and syWordsFill().
Referenced by BattleEffectHandlers.
Definition at line 22 of file battle_effect_plasma.c.
btEffectRunNova
void btEffectRunNova(BATTLE_EFFECT_PARM *args)
Bursts of light go off among the targets, each ringed by fading flashes and throwing sparks.
Abilities: Blast, Nova, Supernova, Fire Bomb, Cluster Bomb, Carpet Bomb.






References btEffectRunSparkGroups().
Referenced by BattleEffectHandlers.
Definition at line 204 of file battle_effect_plasma.c.
btEffectRunDynamite
void btEffectRunDynamite(BATTLE_EFFECT_PARM *args)
Orange bursts go off in front of the battle.
Abilities: Dynamite.
References btEffectRunSparkGroups().
Referenced by BattleEffectHandlers.
Definition at line 212 of file battle_effect_plasma.c.
btEffectRunSparkGroups
void btEffectRunSparkGroups(BATTLE_EFFECT_PARM *args, Sint32 mode)
One to three bursts go off: each flashes, rings itself with smaller flashes that fade, and throws out sparks that bounce on the ground, knocking the targets back. Nova and Dynamite set them in the field; Thrash sets them under the user, with the sparks rising.
References btCameraShake(), btEffectStartCanvasLayer(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity2D(), btProjectionScaledUnit(), btResourceLoadAndDecompress(), PlasmaFlashPictures, Sint32, SparkGroupsShapes, state, syCos(), syRandom(), syResourceGetTableEntry(), sySin(), sySoundPlayStub(), syWordsCopy() and syWordsFill().
Referenced by btEffectRunCastingImpact(), btEffectRunDynamite(), btEffectRunNova(), btEffectRunThrash() and btEffectRunUnusedSevereBlowLeap().
Definition at line 235 of file battle_effect_plasma.c.