Smoke Bomb and Blast. More...
Go to the source code of this file.
Macros | |
| #define | ERUPTION_FIELD_MOTE_CELLS 0x3200 |
| The mote pictures in the sheet: two sets, MOTE_SET_BYTES apart. | |
Enumerations | |
| enum | { ERUPTION_FIELD_MOTES , ERUPTION_FIELD_PUFFS , ERUPTION_FIELD_FRAMES } |
| The columns of a gEruption_Counts row. More... | |
Functions | |
| void | BattleFx_RunSmokeBomb (struct BattleEffectArgument *effect) |
| A fountain of grey motes and puffs of smoke bursts up beside the targets and falls back, flashing each target. | |
| void | BattleFx_RunBlast (struct BattleEffectArgument *effect) |
| 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 | BattleFx_RunEruption (struct BattleEffectArgument *effect, s32 mode) |
| A fountain of motes and puffs of smoke bursts up beside the targets and falls back, hitting the targets one frame apart from frame 6. | |
| void | BattleFx_SpawnObjects (s32 entryCount, s32 source, u32 priority) |
| Creates the effect's animation objects in gBattleFxWork's objects. | |
| void | BattleFx_DoNothing (void) |
| Does nothing. | |
Smoke Bomb and Blast.
Part of effect.c, the battle effect object, compiled only through it.
Definition in file eruption.c.
| #define ERUPTION_FIELD_MOTE_CELLS 0x3200 |
The mote pictures in the sheet: two sets, MOTE_SET_BYTES apart.
Definition at line 32 of file eruption.c.
Referenced by BattleFx_RunEruption().
| anonymous enum |
The columns of a gEruption_Counts row.
| Enumerator | |
|---|---|
| ERUPTION_FIELD_MOTES | motes thrown |
| ERUPTION_FIELD_PUFFS | puffs of smoke thrown |
| ERUPTION_FIELD_FRAMES | frames in the whole effect |
Definition at line 25 of file eruption.c.
| void BattleFx_RunSmokeBomb | ( | struct BattleEffectArgument * | effect | ) |
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 (kind 380).
It always uses the second row of gEruption_Counts: 32 motes, 16 puffs, 80 frames.
Definition at line 14 of file eruption.c.
Referenced by BattleFx_RunSmokeBomb().
| void BattleFx_RunBlast | ( | struct BattleEffectArgument * | effect | ) |
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 (kind 14).
Definition at line 21 of file eruption.c.
Referenced by BattleFx_RunBlast().
| void BattleFx_RunEruption | ( | struct BattleEffectArgument * | effect, |
| s32 | mode ) |
A fountain of motes and puffs of smoke bursts up beside the targets and falls back, hitting the targets one frame apart from frame 6.
Called by BattleFx_RunBlast (mode 0) and BattleFx_RunSmokeBomb (mode 1). A sound and a 6-frame screen shake start on frame 2, and the battle shows the damage 48 frames before the end. Writes the first 64 BG colours, sets work->shakeFrames, and ends with the transfer callback removed, the blitter freed and the canvas layer closed.
effect: the targets. mode: 0 burns (the fire streak palette, the effect's variant picks the counts, and the targets recoil); 1 is grey (a ramp of greys, variant 1's counts).
Definition at line 47 of file eruption.c.
Referenced by BattleFx_RunBlast(), BattleFx_RunEruption(), and BattleFx_RunSmokeBomb().
Creates the effect's animation objects in gBattleFxWork's objects.
Called by the summon scenes (Ramses, Nereid, Kirin, Atalanta, Cybele, Neptune, Tiamat, Procne, Boreas, Thor), Judgment and the particle streams. Fills work->objects[0] to [entryCount - 1]: object n plays animation n, with its flags cleared and its sprite priority set. A slot whose object could not be created is left NULL.
entryCount: how many objects to create. source: the resource object every one of them is made from. priority: the sprite priority they take.
Definition at line 220 of file eruption.c.
Referenced by BattleFx_RunAtalanta(), BattleFx_RunBoreas(), BattleFx_RunCybele(), BattleFx_RunJudgment(), BattleFx_RunKirin(), BattleFx_RunNeptune(), BattleFx_RunNereid(), BattleFx_RunPaletteParticles(), BattleFx_RunParticleStreams(), BattleFx_RunProcne(), BattleFx_RunRamses(), BattleFx_RunThor(), and BattleFx_SpawnObjects().
| void BattleFx_DoNothing | ( | void | ) |
Does nothing.
BattleFx_CallDoNothing calls it in a loop, 10000 times for Annihilation, a busy wait.
Definition at line 242 of file eruption.c.
Referenced by BattleFx_CallDoNothing(), and BattleFx_DoNothing().