src/battle_effect/battle_effect_burst_shower.c
The blessings' burst showers. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | BURST_SHOWER_PICTURES GLINT_SET_BYTES | Where the burst, lightning or face pictures start in the sprite sheet. |
#define | VIOLET_LIGHTNING_WIDTH 72 | VioletLightningSheetA's bolts (stored 72x64, drawn 62 tall) and DemonFaceSheet's face. |
#define | VIOLET_LIGHTNING_HEIGHT 62 | |
#define | VIOLET_LIGHTNING_PICTURE_BYTES (VIOLET_LIGHTNING_WIDTH * 64) | |
#define | DEMON_FACE_WIDTH 32 | |
#define | DEMON_FACE_HEIGHT 64 | |
#define | BURST_SHOWER_TICKS 64 | Ticks the shower lasts. |
#define | BURST_SHOWER_BURSTS 48 | Bursts fired, one a tick from tick 0. |
#define | BURST_SHOWER_BURST_LIFE 24 | Ticks each burst lives. |
Enumerations
| Name | Description | |
|---|---|---|
enum | BURST_SHOWER_MODE { BURST_SHOWER_MODE_FLASH, BURST_SHOWER_MODE_ICE, BURST_SHOWER … } | The burst shower's styles, its mode argument. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectArmBg2AffineHBlankDMA (void) | Bends BG2 line by line from the effect's table. |
void | btEffectRunFireBlessing (BATTLE_EFFECT_PARM *args) | The user fires a stream of flash bursts at the targets, one a tick, each towards a random point near a target. |
void | btEffectRunWaterBlessing (BATTLE_EFFECT_PARM *args) | The user fires a stream of bursts at the targets in the water-spray palette. |
void | btEffectRunDarkBlessing (BATTLE_EFFECT_PARM *args) | The user fires a stream of grey bursts at the targets, which turn solid black and stay so. |
void | btEffectRunAcidBlessing (BATTLE_EFFECT_PARM *args) | The user fires a stream of pink bursts at the targets, from 16 pixels higher than usual. |
void | btEffectRunStormBlessing (BATTLE_EFFECT_PARM *args) | Violet lightning reaches from the user across to the targets instead of bursts, on a canvas shown three times as wide, flickering through three pictures, and the targets flash in turn without being knocked back. |
void | btEffectRunEvilBlessing (BATTLE_EFFECT_PARM *args) | The user fires a stream of demon faces at the targets, from 16 pixels in front of it. |
void | btEffectRunDeadlyGas (BATTLE_EFFECT_PARM *args) | The user fires a stream of Mars-coloured bursts at the targets, from 28 pixels in front of it. |
void | btEffectRunBurstShower (BATTLE_EFFECT_PARM *args, Sint32 mode) | The user fires one burst a tick at a point near one of the targets, taking them in turn, and each target is hit in turn. |
Description
The blessings' burst showers. Part of battle_effect.c.
Macros in detail
BURST_SHOWER_PICTURES
#define BURST_SHOWER_PICTURES GLINT_SET_BYTES
Where the burst, lightning or face pictures start in the sprite sheet.
Referenced by btEffectRunBurstShower().
Definition at line 4 of file battle_effect_burst_shower.c.
VIOLET_LIGHTNING_WIDTH
#define VIOLET_LIGHTNING_WIDTH 72
VioletLightningSheetA's bolts (stored 72x64, drawn 62 tall) and DemonFaceSheet's face.
Referenced by btEffectRunBurstShower().
Definition at line 7 of file battle_effect_burst_shower.c.
VIOLET_LIGHTNING_HEIGHT
#define VIOLET_LIGHTNING_HEIGHT 62
Referenced by btEffectRunBurstShower().
Definition at line 8 of file battle_effect_burst_shower.c.
VIOLET_LIGHTNING_PICTURE_BYTES
#define VIOLET_LIGHTNING_PICTURE_BYTES (VIOLET_LIGHTNING_WIDTH * 64)
Referenced by btEffectRunBurstShower().
Definition at line 9 of file battle_effect_burst_shower.c.
DEMON_FACE_WIDTH
#define DEMON_FACE_WIDTH 32
Referenced by btEffectRunBurstShower().
Definition at line 10 of file battle_effect_burst_shower.c.
DEMON_FACE_HEIGHT
#define DEMON_FACE_HEIGHT 64
Referenced by btEffectRunBurstShower().
Definition at line 11 of file battle_effect_burst_shower.c.
BURST_SHOWER_TICKS
#define BURST_SHOWER_TICKS 64
Ticks the shower lasts.
Referenced by btEffectRunBurstShower().
Definition at line 13 of file battle_effect_burst_shower.c.
BURST_SHOWER_BURSTS
#define BURST_SHOWER_BURSTS 48
Bursts fired, one a tick from tick 0.
Referenced by btEffectRunBurstShower().
Definition at line 15 of file battle_effect_burst_shower.c.
BURST_SHOWER_BURST_LIFE
#define BURST_SHOWER_BURST_LIFE 24
Ticks each burst lives.
Referenced by btEffectRunBurstShower().
Definition at line 17 of file battle_effect_burst_shower.c.
Enumerations in detail
BURST_SHOWER_MODE
enum BURST_SHOWER_MODE
The burst shower's styles, its mode argument.
| Enumerator | Value | Description |
|---|---|---|
BURST_SHOWER_MODE_FLASH | ||
BURST_SHOWER_MODE_ICE | unused: in the ice block palette | |
BURST_SHOWER_MODE_SPRAY | in the water spray palette | |
BURST_SHOWER_MODE_PINK | pink, fired from 16 pixels higher | |
BURST_SHOWER_MODE_DJINNI | Mars Djinni palette, 28 pixels in front | |
BURST_SHOWER_MODE_LIGHTNING | no bursts: a violet lightning bolt | |
BURST_SHOWER_MODE_GREY | grey; the targets stay solid black | |
BURST_SHOWER_MODE_FACES | demon faces from 16 pixels in front |
Definition at line 20 of file battle_effect_burst_shower.c.
Functions in detail
btEffectArmBg2AffineHBlankDMA
void btEffectArmBg2AffineHBlankDMA(void)
Bends BG2 line by line from the effect's table.
References btDMAStop(), state and syDMAXCopy().
Referenced by btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunGatheringLights(), btEffectRunHaunt(), btEffectRunTargetMotes(), btEffectRunTorch() and btEffectRunUnusedOrbitingSpirals().
Definition at line 33 of file battle_effect_burst_shower.c.
btEffectRunFireBlessing
void btEffectRunFireBlessing(BATTLE_EFFECT_PARM *args)
The user fires a stream of flash bursts at the targets, one a tick, each towards a random point near a target.
Abilities: Fire Blessing.
References btEffectRunBurstShower().
Referenced by BattleEffectHandlers.
Definition at line 48 of file battle_effect_burst_shower.c.
btEffectRunWaterBlessing
void btEffectRunWaterBlessing(BATTLE_EFFECT_PARM *args)
The user fires a stream of bursts at the targets in the water-spray palette.
Abilities: Water Blessing.
References btEffectRunBurstShower().
Referenced by BattleEffectHandlers.
Definition at line 56 of file battle_effect_burst_shower.c.
btEffectRunDarkBlessing
void btEffectRunDarkBlessing(BATTLE_EFFECT_PARM *args)
The user fires a stream of grey bursts at the targets, which turn solid black and stay so.
Abilities: Dark Blessing (the first two; the third plays Acid Blessing's).
References btEffectRunBurstShower().
Referenced by BattleEffectHandlers.
Definition at line 65 of file battle_effect_burst_shower.c.
btEffectRunAcidBlessing
void btEffectRunAcidBlessing(BATTLE_EFFECT_PARM *args)
The user fires a stream of pink bursts at the targets, from 16 pixels higher than usual.
Abilities: Dark Blessing, Acid Blessing.
References btEffectRunBurstShower().
Referenced by BattleEffectHandlers.
Definition at line 74 of file battle_effect_burst_shower.c.
btEffectRunStormBlessing
void btEffectRunStormBlessing(BATTLE_EFFECT_PARM *args)
Violet lightning reaches from the user across to the targets instead of bursts, on a canvas shown three times as wide, flickering through three pictures, and the targets flash in turn without being knocked back.
Abilities: Storm Blessing.
References btEffectRunBurstShower().
Referenced by BattleEffectHandlers.
Definition at line 84 of file battle_effect_burst_shower.c.
btEffectRunEvilBlessing
void btEffectRunEvilBlessing(BATTLE_EFFECT_PARM *args)
The user fires a stream of demon faces at the targets, from 16 pixels in front of it.
Abilities: Evil Blessing.
References btEffectRunBurstShower().
Referenced by BattleEffectHandlers.
Definition at line 93 of file battle_effect_burst_shower.c.
btEffectRunDeadlyGas
void btEffectRunDeadlyGas(BATTLE_EFFECT_PARM *args)
The user fires a stream of Mars-coloured bursts at the targets, from 28 pixels in front of it.
Abilities: Deadly Gas.
References btEffectRunBurstShower().
Referenced by BattleEffectHandlers.
Definition at line 102 of file battle_effect_burst_shower.c.
btEffectRunBurstShower
void btEffectRunBurstShower(BATTLE_EFFECT_PARM *args, Sint32 mode)
The user fires one burst a tick at a point near one of the targets, taking them in turn, and each target is hit in turn.
References btCameraShake(), btEffectBuildCanvasBlitters(), btEffectCountDownBattlerTints(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btProjectionScaledUnit(), btProjectionSprite(), btResourceLoadAndDecompress(), Sint32, state, syRandom(), syResourceGetTableEntry(), sySetEvent(), sySoundPlayStub() and syWordsCopy().
Referenced by btEffectRunAcidBlessing(), btEffectRunDarkBlessing(), btEffectRunDeadlyGas(), btEffectRunEvilBlessing(), btEffectRunFireBlessing(), btEffectRunStormBlessing() and btEffectRunWaterBlessing().
Definition at line 109 of file battle_effect_burst_shower.c.