src/battle_effect/battle_effect_eruption.c
Smoke Bomb and Blast. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | ERUPTION_MOTE_PICTURES 12800 | The mote pictures in the sprite sheet: two sets, MOTE_SET_BYTES apart. |
#define | ERUPTION_PUFFS 32 | The puffs of smoke given a start; the variant's ERUPTION_FIELD_PUFFS of them are thrown. |
#define | ERUPTION_PUFF_TICKS 21 | A puff shows each of its seven pictures (EruptionPuffPictures) for three ticks, then is gone. |
#define | ERUPTION_MOTE_LARGEST 9 | A mote is drawn ERUPTION_MOTE_LARGEST pixels wide (and twice as tall) at MOTE_DEPTH_NEAR or nearer, a size smaller for every MOTE_DEPTH_STEP farther. |
Enumerations
| Name | Description | |
|---|---|---|
enum | ERUPTION_MODE { ERUPTION_BLAST, ERUPTION_SMOKE_BOMB } | The eruption's modes (btEffectRunEruption). |
enum | anonymous enum { ERUPTION_FIELD_MOTES, ERUPTION_FIELD_PUFFS, ERUPTION_FIELD_T … } | The columns of a EruptionCounts row. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunSmokeBomb (BATTLE_EFFECT_PARM *args) | A fountain of grey motes and puffs of smoke bursts up beside the targets and falls back, flashing each target. |
void | btEffectRunBlast (BATTLE_EFFECT_PARM *args) | A fountain of fire-coloured motes and puffs of smoke bursts up beside the targets and falls back, flashing each target and making it recoil. |
void | btEffectRunEruption (BATTLE_EFFECT_PARM *args, Sint32 mode) | A fountain of motes and puffs of smoke bursts up beside the targets and falls back, hitting the targets one after another. |
void | btEffectCreateSprites (Sint32 count, Sint32 spriteId, Uint32 priority) | Creates the count sprites a summon's figure is drawn from, all of sprite spriteId, into state->sprites: sprite n plays animation n, its piece of the figure, at BG priority priority. |
void | btEffectNoOperation (void) | Does nothing; Annihilation calls it 10,000 times as a busy wait (btEffectCallNoOperation). |
Description
Smoke Bomb and Blast. Part of battle_effect.c.
Macros in detail
ERUPTION_MOTE_PICTURES
#define ERUPTION_MOTE_PICTURES 12800
The mote pictures in the sprite sheet: two sets, MOTE_SET_BYTES apart.
Referenced by btEffectRunEruption().
Definition at line 38 of file battle_effect_eruption.c.
ERUPTION_PUFFS
#define ERUPTION_PUFFS 32
The puffs of smoke given a start; the variant's ERUPTION_FIELD_PUFFS of them
are thrown.
Referenced by btEffectRunEruption().
Definition at line 42 of file battle_effect_eruption.c.
ERUPTION_PUFF_TICKS
#define ERUPTION_PUFF_TICKS 21
A puff shows each of its seven pictures (EruptionPuffPictures) for three
ticks, then is gone.
Referenced by btEffectRunEruption().
Definition at line 45 of file battle_effect_eruption.c.
ERUPTION_MOTE_LARGEST
#define ERUPTION_MOTE_LARGEST 9
A mote is drawn ERUPTION_MOTE_LARGEST pixels wide (and twice as tall) at
MOTE_DEPTH_NEAR or nearer, a size smaller for every MOTE_DEPTH_STEP farther.
Referenced by btEffectRunEruption().
Definition at line 48 of file battle_effect_eruption.c.
Enumerations in detail
ERUPTION_MODE
enum ERUPTION_MODE
The eruption's modes (btEffectRunEruption).
| Enumerator | Value | Description |
|---|---|---|
ERUPTION_BLAST | fire streak colours; the variant picks the counts and the targets recoil | |
ERUPTION_SMOKE_BOMB | greys, with Mad Blast's counts |
Definition at line 4 of file battle_effect_eruption.c.
anonymous enum
enum { ERUPTION_FIELD_MOTES, ERUPTION_FIELD_PUFFS, ERUPTION_FIELD_TICKS }
The columns of a EruptionCounts row.
| Enumerator | Value | Description |
|---|---|---|
ERUPTION_FIELD_MOTES | motes thrown | |
ERUPTION_FIELD_PUFFS | puffs of smoke thrown | |
ERUPTION_FIELD_TICKS | ticks in the whole effect |
Definition at line 30 of file battle_effect_eruption.c.
Functions in detail
btEffectRunSmokeBomb
void btEffectRunSmokeBomb(BATTLE_EFFECT_PARM *args)
A fountain of grey motes and puffs of smoke bursts up beside the targets and falls back, flashing each target.
Abilities: Smoke Bomb, Sleep Bomb.
References btEffectRunEruption().
Referenced by BattleEffectHandlers.
Definition at line 15 of file battle_effect_eruption.c.
btEffectRunBlast
void btEffectRunBlast(BATTLE_EFFECT_PARM *args)
A fountain of fire-coloured motes and puffs of smoke bursts up beside the targets and falls back, flashing each target and making it recoil.
Abilities: Blast, Mad Blast, Fiery Blast.



References btEffectRunEruption().
Referenced by BattleEffectHandlers.
Definition at line 24 of file battle_effect_eruption.c.
btEffectRunEruption
void btEffectRunEruption(BATTLE_EFFECT_PARM *args, Sint32 mode)
A fountain of motes and puffs of smoke bursts up beside the targets and falls back, hitting the targets one after another.
References BattleEffectMotePictures, btCameraShake(), btEffectStartCanvasLayer(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity3D(), btProjectionPoint(), btResourceLoadAndDecompress(), EruptionCounts, EruptionPuffPictures, EruptionPuffSizes, Sint32, state, syRandom(), syResourceGetTableEntry(), sySoundPlayStub(), syWordsCopy() and width.
Referenced by btEffectRunBlast() and btEffectRunSmokeBomb().
Definition at line 52 of file battle_effect_eruption.c.
btEffectCreateSprites
void btEffectCreateSprites(Sint32 count, Sint32 spriteId, Uint32 priority)
Creates the count sprites a summon's figure is drawn from, all of sprite
spriteId, into state->sprites: sprite n plays animation n, its piece of the
figure, at BG priority priority.
References fdSpriteCreateStub(), fdSpriteStartAnimationStub(), Sint32 and state.
Referenced by btEffectRunAtalanta(), btEffectRunBoreas(), btEffectRunCybele(), btEffectRunDragonFire(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunProcne(), btEffectRunRamses(), btEffectRunStarfieldFall() and btEffectRunThor().
Definition at line 255 of file battle_effect_eruption.c.
btEffectNoOperation
void btEffectNoOperation(void)
Does nothing; Annihilation calls it 10,000 times as a busy wait
(btEffectCallNoOperation).
Referenced by btEffectCallNoOperation().
Definition at line 280 of file battle_effect_eruption.c.