src/battle_effect/battle_effect_lobbed_shells.c
Lobbed shells (Mad Spatter, Decompose, Bone Chiller ...). More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | LOBBED_SHELLS_BURSTS (PARTICLES + 256) | The bursts, after the shells in PARTICLES. |
#define | LOBBED_SHELLS_SLOTS 16 | Particles reserved for each target. |
#define | LOBBED_SHELLS_BURST_SLOTS 256 | Burst particles after the shells. |
#define | LOBBED_SHELLS_SMOKE_PICTURES 16000 | Where the smoke starts in the sheet. |
#define | LOBBED_SHELL_WIDTH 24 | GoldShellSheet's shell as it tumbles, upright and then turned on its side. |
#define | LOBBED_SHELL_HEIGHT 32 | |
#define | LOBBED_SHELL_PICTURES 10 | The shell's tumbling pictures, and the shards' pictures after them; it turns on its side from picture LOBBED_SHELL_UPRIGHT_PICTURES, a picture every three ticks. |
#define | LOBBED_SHELL_UPRIGHT_PICTURES 5 | |
#define | LOBBED_SHELLS_SHARD_PICTURES | |
#define | LOBBED_SHELLS_SMOKE_PUFFS 4 | The pieces a shell bursts into: puffs of smoke, or shards. |
#define | LOBBED_SHELLS_SHARDS 16 | |
#define | LOBBED_SHELLS_BURST_TICKS 45 | The ticks a burst's piece is drawn for. |
#define | LOBBED_SHELLS_TARGET_TICKS 8 | Each target's shell is lobbed this many ticks after the last one's, and lands LOBBED_SHELL_FLIGHT_TICKS later, as its target flashes. |
#define | LOBBED_SHELL_FLIGHT_TICKS 17 | |
#define | LOBBED_SHELLS_SMOKE_END_TICKS 72 | The ticks the effect runs on after the last shell is lobbed: smoke drifts longer than shards fall. |
#define | LOBBED_SHELLS_SHARDS_END_TICKS 56 | |
#define | LOBBED_SHELLS_SHATTER (mode) | Nonzero when the style's shells burst into shards instead of smoke. |
Enumerations
| Name | Description | |
|---|---|---|
enum | LOBBED_SHELLS_MODE { LOBBED_SHELLS_BONE_CHILLER, LOBBED_SHELLS_STICKY_GOO, LOBBED … } | The lobbed shells' styles (btEffectRunLobbedShells), each named for the effect that plays it, and its row of LobbedShellsStyles. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunMadSpatter (BATTLE_EFFECT_PARM *args) | Gold shells arc from the user onto each target in turn and burst into shards. |
void | btEffectRunDecompose (BATTLE_EFFECT_PARM *args) | Green shells arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunBoneChiller (BATTLE_EFFECT_PARM *args) | Blue shells arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunStickyGoo (BATTLE_EFFECT_PARM *args) | Shells in the spider web's colours arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunPoisonInk (BATTLE_EFFECT_PARM *args) | Shells in Mars Djinn colours arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunStickyPoison (BATTLE_EFFECT_PARM *args) | Lime shells arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunRottenBlood (BATTLE_EFFECT_PARM *args) | Green shells arc from the user onto each target in turn and burst into shards. |
void | btEffectRunLobbedShells (BATTLE_EFFECT_PARM *args, Sint32 mode) | Lobs a shell from the user at each target in turn; when it lands the target flashes and the shell bursts into smoke that drifts up or shards that fly up and fall. |
Description
Lobbed shells (Mad Spatter, Decompose, Bone Chiller ...). Part of
battle_effect.c.
Macros in detail
LOBBED_SHELLS_BURSTS
#define LOBBED_SHELLS_BURSTS (PARTICLES + 256)
The bursts, after the shells in PARTICLES.
Referenced by btEffectRunLobbedShells().
Definition at line 80 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SLOTS
#define LOBBED_SHELLS_SLOTS 16
Particles reserved for each target.
Referenced by btEffectRunLobbedShells().
Definition at line 82 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_BURST_SLOTS
#define LOBBED_SHELLS_BURST_SLOTS 256
Burst particles after the shells.
Referenced by btEffectRunLobbedShells().
Definition at line 84 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SMOKE_PICTURES
#define LOBBED_SHELLS_SMOKE_PICTURES 16000
Where the smoke starts in the sheet.
Referenced by btEffectRunLobbedShells().
Definition at line 86 of file battle_effect_lobbed_shells.c.
LOBBED_SHELL_WIDTH
#define LOBBED_SHELL_WIDTH 24
GoldShellSheet's shell as it tumbles, upright and then turned on its side.
Referenced by btEffectRunLobbedShells().
Definition at line 88 of file battle_effect_lobbed_shells.c.
LOBBED_SHELL_HEIGHT
#define LOBBED_SHELL_HEIGHT 32
Referenced by btEffectRunLobbedShells().
Definition at line 89 of file battle_effect_lobbed_shells.c.
LOBBED_SHELL_PICTURES
#define LOBBED_SHELL_PICTURES 10
The shell's tumbling pictures, and the shards' pictures after them; it turns
on its side from picture LOBBED_SHELL_UPRIGHT_PICTURES, a picture every three
ticks.
Referenced by btEffectRunLobbedShells().
Definition at line 93 of file battle_effect_lobbed_shells.c.
LOBBED_SHELL_UPRIGHT_PICTURES
#define LOBBED_SHELL_UPRIGHT_PICTURES 5
Referenced by btEffectRunLobbedShells().
Definition at line 94 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SHARD_PICTURES
#define LOBBED_SHELLS_SHARD_PICTURES
Referenced by btEffectRunLobbedShells().
Definition at line 95 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SMOKE_PUFFS
#define LOBBED_SHELLS_SMOKE_PUFFS 4
The pieces a shell bursts into: puffs of smoke, or shards.
Referenced by btEffectRunLobbedShells().
Definition at line 98 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SHARDS
#define LOBBED_SHELLS_SHARDS 16
Referenced by btEffectRunLobbedShells().
Definition at line 99 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_BURST_TICKS
#define LOBBED_SHELLS_BURST_TICKS 45
The ticks a burst's piece is drawn for.
Referenced by btEffectRunLobbedShells().
Definition at line 101 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_TARGET_TICKS
#define LOBBED_SHELLS_TARGET_TICKS 8
Each target's shell is lobbed this many ticks after the last one's, and lands
LOBBED_SHELL_FLIGHT_TICKS later, as its target flashes.
Referenced by btEffectRunLobbedShells().
Definition at line 104 of file battle_effect_lobbed_shells.c.
LOBBED_SHELL_FLIGHT_TICKS
#define LOBBED_SHELL_FLIGHT_TICKS 17
Referenced by btEffectRunLobbedShells().
Definition at line 105 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SMOKE_END_TICKS
#define LOBBED_SHELLS_SMOKE_END_TICKS 72
The ticks the effect runs on after the last shell is lobbed: smoke drifts longer than shards fall.
Referenced by btEffectRunLobbedShells().
Definition at line 108 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SHARDS_END_TICKS
#define LOBBED_SHELLS_SHARDS_END_TICKS 56
Referenced by btEffectRunLobbedShells().
Definition at line 109 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SHATTER
#define LOBBED_SHELLS_SHATTER(mode)
Nonzero when the style's shells burst into shards instead of smoke.
Referenced by btEffectRunLobbedShells().
Definition at line 112 of file battle_effect_lobbed_shells.c.
Enumerations in detail
LOBBED_SHELLS_MODE
enum LOBBED_SHELLS_MODE
The lobbed shells' styles (btEffectRunLobbedShells), each named for the
effect that plays it, and its row of LobbedShellsStyles.
| Enumerator | Value | Description |
|---|---|---|
LOBBED_SHELLS_BONE_CHILLER | blue, bursting into smoke | |
LOBBED_SHELLS_STICKY_GOO | the spider web's colours, smoke | |
LOBBED_SHELLS_STICKY_POISON | lime, smoke | |
LOBBED_SHELLS_ROTTEN_BLOOD | green, shards | |
LOBBED_SHELLS_MAD_SPATTER | gold, shards | |
LOBBED_SHELLS_DECOMPOSE | green, smoke | |
LOBBED_SHELLS_POISON_INK | Mars Djinn colours, smoke |
Definition at line 9 of file battle_effect_lobbed_shells.c.
Functions in detail
btEffectRunMadSpatter
void btEffectRunMadSpatter(BATTLE_EFFECT_PARM *args)
Gold shells arc from the user onto each target in turn and burst into shards.
Abilities: Mad Spatter.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 23 of file battle_effect_lobbed_shells.c.
btEffectRunDecompose
void btEffectRunDecompose(BATTLE_EFFECT_PARM *args)
Green shells arc from the user onto each target in turn and burst into smoke.
Abilities: Decompose.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 31 of file battle_effect_lobbed_shells.c.
btEffectRunBoneChiller
void btEffectRunBoneChiller(BATTLE_EFFECT_PARM *args)
Blue shells arc from the user onto each target in turn and burst into smoke.
Abilities: Bone Chiller.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 39 of file battle_effect_lobbed_shells.c.
btEffectRunStickyGoo
void btEffectRunStickyGoo(BATTLE_EFFECT_PARM *args)
Shells in the spider web's colours arc from the user onto each target in turn and burst into smoke.
Abilities: Sticky Goo.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 48 of file battle_effect_lobbed_shells.c.
btEffectRunPoisonInk
void btEffectRunPoisonInk(BATTLE_EFFECT_PARM *args)
Shells in Mars Djinn colours arc from the user onto each target in turn and burst into smoke.
Abilities: Poison Ink.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 57 of file battle_effect_lobbed_shells.c.
btEffectRunStickyPoison
void btEffectRunStickyPoison(BATTLE_EFFECT_PARM *args)
Lime shells arc from the user onto each target in turn and burst into smoke.
Abilities: Sticky Poison.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 65 of file battle_effect_lobbed_shells.c.
btEffectRunRottenBlood
void btEffectRunRottenBlood(BATTLE_EFFECT_PARM *args)
Green shells arc from the user onto each target in turn and burst into shards.
Abilities: Rotten Blood.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 74 of file battle_effect_lobbed_shells.c.
btEffectRunLobbedShells
void btEffectRunLobbedShells(BATTLE_EFFECT_PARM *args, Sint32 mode)
Lobs a shell from the user at each target in turn; when it lands the target flashes and the shell bursts into smoke that drifts up or shards that fly up and fall.
References btCameraShake(), btEffectStartCanvasLayer(), btEffectTintBattler(), btObjectGetStub(), btParticleAdvanceWithGravity3D(), btProjectionPoint(), LobbedShellsShardHeights, LobbedShellsShardPictures, LobbedShellsShardWidths, LobbedShellsStyles, Sint32, state, syDecompressTaggedLZ(), syRandom(), syResourceGetTableEntry(), sySoundPlayStub() and syWordsCopy().
Referenced by btEffectRunBoneChiller(), btEffectRunDecompose(), btEffectRunMadSpatter(), btEffectRunPoisonInk(), btEffectRunRottenBlood(), btEffectRunStickyGoo() and btEffectRunStickyPoison().
Definition at line 118 of file battle_effect_lobbed_shells.c.