src/battle_effect/battle_effect_lobbed_shells.c
Lobbed shells (Mad Spatter, Mud, Decompose, Bone Chiller, Sticky Goo, Poison Ink, Sticky Poison, Rotten Blood, Rising Venom, Formic Acid). More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | LOBBED_SHELLS_BURSTS (PARTICLES + 256) | The bursts, after the shells in PARTICLES: LOBBED_SHELLS_PIECE_SLOTS for each shell, LOBBED_SHELLS_TARGET_SHELLS shells' worth for each target. |
#define | LOBBED_SHELLS_PIECE_SLOTS 8 | |
#define | LOBBED_SHELLS_TARGET_SHELLS 4 | Mud's shells for each target. |
#define | LOBBED_SHELLS_PIECE (target, shell, n) | Piece n of the burst of target target's shell shell. |
#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 | The smoke pictures in the sprite 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. |
#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_SMALL_SHARD 9 | A shard tumbles through nine pictures, five ticks each: the large shard's, or for every second shard the small shard's, which follow them. |
#define | LOBBED_SHELLS_SHATTER (mode) LobbedShellsStyles[(mode) * 4] | A style's record in LobbedShellsStyles: nonzero when its shells burst into shards instead of smoke, the blitter its shells are drawn with (0 keeps the brighter level, 1 adds), its shells for each target, and the ticks the effect runs past the targets' share. |
#define | LOBBED_SHELLS_SHELL_BLITTER (mode) LobbedShellsStyles[(mode) * 4 + 1] | |
#define | LOBBED_SHELLS_SHELLS (mode) LobbedShellsStyles[(mode) * 4 + 2] | |
#define | LOBBED_SHELLS_TICKS (mode) LobbedShellsStyles[(mode) * 4 + 3] |
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) | Abilities: Mad Spatter. |
void | btEffectRunMud (BATTLE_EFFECT_PARM *args) | A Venus Djinni appears, then four gold shells arc onto each target 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, then Dull's effect plays. |
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, then Impair's effect plays. |
void | btEffectRunRisingVenom (BATTLE_EFFECT_PARM *args) | Glowing lime shells arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunFormicAcid (BATTLE_EFFECT_PARM *args) | Pink shells arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunLobbedShells (BATTLE_EFFECT_PARM *args, Sint32 mode) | Lobs shells from the user at each target in turn, eight ticks apart, one each or Mud's four; they tumble as they fly, and when one 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, Mud, Decompose, Bone Chiller, Sticky Goo, Poison
Ink, Sticky Poison, Rotten Blood, Rising Venom, Formic Acid). Part of
battle_effect.c.
Macros in detail
LOBBED_SHELLS_BURSTS
#define LOBBED_SHELLS_BURSTS (PARTICLES + 256)
The bursts, after the shells in PARTICLES: LOBBED_SHELLS_PIECE_SLOTS for each
shell, LOBBED_SHELLS_TARGET_SHELLS shells' worth for each target.
Referenced by btEffectRunLobbedShells().
Definition at line 109 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_PIECE_SLOTS
#define LOBBED_SHELLS_PIECE_SLOTS 8
Definition at line 110 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_TARGET_SHELLS
#define LOBBED_SHELLS_TARGET_SHELLS 4
Mud's shells for each target.
Definition at line 112 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_PIECE
#define LOBBED_SHELLS_PIECE(target, shell, n)
Piece n of the burst of target target's shell shell.
Referenced by btEffectRunLobbedShells().
Definition at line 114 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 119 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 121 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SMOKE_PICTURES
#define LOBBED_SHELLS_SMOKE_PICTURES 16000
The smoke pictures in the sprite sheet.
Referenced by btEffectRunLobbedShells().
Definition at line 123 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 125 of file battle_effect_lobbed_shells.c.
LOBBED_SHELL_HEIGHT
#define LOBBED_SHELL_HEIGHT 32
Referenced by btEffectRunLobbedShells().
Definition at line 126 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.
Referenced by btEffectRunLobbedShells().
Definition at line 128 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SHARD_PICTURES
#define LOBBED_SHELLS_SHARD_PICTURES
Referenced by btEffectRunLobbedShells().
Definition at line 129 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 132 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SHARDS
#define LOBBED_SHELLS_SHARDS 16
Referenced by btEffectRunLobbedShells().
Definition at line 133 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 135 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SMALL_SHARD
#define LOBBED_SHELLS_SMALL_SHARD 9
A shard tumbles through nine pictures, five ticks each: the large shard's, or for every second shard the small shard's, which follow them.
Referenced by btEffectRunLobbedShells().
Definition at line 138 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SHATTER
#define LOBBED_SHELLS_SHATTER(mode) LobbedShellsStyles[(mode) * 4]
A style's record in LobbedShellsStyles: nonzero when its shells burst into
shards instead of smoke, the blitter its shells are drawn with (0 keeps the
brighter level, 1 adds), its shells for each target, and the ticks the effect
runs past the targets' share.
Referenced by btEffectRunLobbedShells().
Definition at line 144 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SHELL_BLITTER
#define LOBBED_SHELLS_SHELL_BLITTER(mode) LobbedShellsStyles[(mode) * 4 + 1]
Referenced by btEffectRunLobbedShells().
Definition at line 145 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_SHELLS
#define LOBBED_SHELLS_SHELLS(mode) LobbedShellsStyles[(mode) * 4 + 2]
Referenced by btEffectRunLobbedShells().
Definition at line 146 of file battle_effect_lobbed_shells.c.
LOBBED_SHELLS_TICKS
#define LOBBED_SHELLS_TICKS(mode) LobbedShellsStyles[(mode) * 4 + 3]
Referenced by btEffectRunLobbedShells().
Definition at line 147 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 | |
LOBBED_SHELLS_MUD | gold, four to a target, shards | |
LOBBED_SHELLS_RISING_VENOM | lime and glowing, smoke | |
LOBBED_SHELLS_FORMIC_ACID | pink, smoke |
Definition at line 7 of file battle_effect_lobbed_shells.c.
Functions in detail
btEffectRunMadSpatter
void btEffectRunMadSpatter(BATTLE_EFFECT_PARM *args)
Abilities: Mad Spatter.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 24 of file battle_effect_lobbed_shells.c.
btEffectRunMud
void btEffectRunMud(BATTLE_EFFECT_PARM *args)
A Venus Djinni appears, then four gold shells arc onto each target and burst into shards.
Abilities: Mud.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 33 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, then Dull's effect plays.
Abilities: Decompose.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 42 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 50 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 59 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 68 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 76 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, then Impair's effect plays.
Abilities: Rotten Blood.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 85 of file battle_effect_lobbed_shells.c.
btEffectRunRisingVenom
void btEffectRunRisingVenom(BATTLE_EFFECT_PARM *args)
Glowing lime shells arc from the user onto each target in turn and burst into smoke.
Abilities: Rising Venom.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 94 of file battle_effect_lobbed_shells.c.
btEffectRunFormicAcid
void btEffectRunFormicAcid(BATTLE_EFFECT_PARM *args)
Pink shells arc from the user onto each target in turn and burst into smoke.
Abilities: Formic Acid.
References btEffectRunLobbedShells().
Referenced by BattleEffectHandlers.
Definition at line 102 of file battle_effect_lobbed_shells.c.
btEffectRunLobbedShells
void btEffectRunLobbedShells(BATTLE_EFFECT_PARM *args, Sint32 mode)
Lobs shells from the user at each target in turn, eight ticks apart, one each or Mud's four; they tumble as they fly, and when one lands the target flashes and the shell bursts into smoke that drifts up or shards that fly up and fall. Mud's Venus Djinni appears first; Rotten Blood and Decompose go on into Impair's and Dull's effects.
References btCameraShake(), btEffectBuildCanvasBlitters(), btEffectDarkenBackgroundStep(), btEffectEndCanvasLayer(), btEffectPosProjectPoint(), btEffectRunDjinniEntrance(), btEffectRunDull(), btEffectRunImpair(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btParticleAdvanceWithGravity3D(), btResourceLoadAndDecompress(), LobbedShellsShardHeights, LobbedShellsShardPictures, LobbedShellsShardWidths, Sint32, syCloseEvent(), syRandom(), syResourceGetTableEntry(), sySetEvent(), sySoundPlayStub() and syWordsClear().
Referenced by btEffectRunBoneChiller(), btEffectRunDecompose(), btEffectRunFormicAcid(), btEffectRunMadSpatter(), btEffectRunMud(), btEffectRunPoisonInk(), btEffectRunRisingVenom(), btEffectRunRottenBlood(), btEffectRunStickyGoo() and btEffectRunStickyPoison().
Definition at line 154 of file battle_effect_lobbed_shells.c.