Skip to Content
The Alchemy Project

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

NameDescription
#defineLOBBED_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.
#defineLOBBED_SHELLS_PIECE_SLOTS 8
#defineLOBBED_SHELLS_TARGET_SHELLS 4Mud's shells for each target.
#defineLOBBED_SHELLS_PIECE (target, shell, n)Piece n of the burst of target target's shell shell.
#defineLOBBED_SHELLS_SLOTS 16Particles reserved for each target.
#defineLOBBED_SHELLS_BURST_SLOTS 256Burst particles after the shells.
#defineLOBBED_SHELLS_SMOKE_PICTURES 16000The smoke pictures in the sprite sheet.
#defineLOBBED_SHELL_WIDTH 24GoldShellSheet's shell as it tumbles, upright and then turned on its side.
#defineLOBBED_SHELL_HEIGHT 32
#defineLOBBED_SHELL_PICTURES 10The shell's tumbling pictures, and the shards' pictures after them.
#defineLOBBED_SHELLS_SHARD_PICTURES
#defineLOBBED_SHELLS_SMOKE_PUFFS 4The pieces a shell bursts into: puffs of smoke, or shards.
#defineLOBBED_SHELLS_SHARDS 16
#defineLOBBED_SHELLS_BURST_TICKS 45The ticks a burst's piece is drawn for.
#defineLOBBED_SHELLS_SMALL_SHARD 9A shard tumbles through nine pictures, five ticks each: the large shard's, or for every second shard the small shard's, which follow them.
#defineLOBBED_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.
#defineLOBBED_SHELLS_SHELL_BLITTER (mode) LobbedShellsStyles[(mode) * 4 + 1]
#defineLOBBED_SHELLS_SHELLS (mode) LobbedShellsStyles[(mode) * 4 + 2]
#defineLOBBED_SHELLS_TICKS (mode) LobbedShellsStyles[(mode) * 4 + 3]

Enumerations

NameDescription
enumLOBBED_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

NameDescription
voidbtEffectRunMadSpatter (BATTLE_EFFECT_PARM *args)Abilities: Mad Spatter.
voidbtEffectRunMud (BATTLE_EFFECT_PARM *args)A Venus Djinni appears, then four gold shells arc onto each target and burst into shards.
voidbtEffectRunDecompose (BATTLE_EFFECT_PARM *args)Green shells arc from the user onto each target in turn and burst into smoke, then Dull's effect plays.
voidbtEffectRunBoneChiller (BATTLE_EFFECT_PARM *args)Blue shells arc from the user onto each target in turn and burst into smoke.
voidbtEffectRunStickyGoo (BATTLE_EFFECT_PARM *args)Shells in the spider web's colours arc from the user onto each target in turn and burst into smoke.
voidbtEffectRunPoisonInk (BATTLE_EFFECT_PARM *args)Shells in Mars Djinn colours arc from the user onto each target in turn and burst into smoke.
voidbtEffectRunStickyPoison (BATTLE_EFFECT_PARM *args)Lime shells arc from the user onto each target in turn and burst into smoke.
voidbtEffectRunRottenBlood (BATTLE_EFFECT_PARM *args)Green shells arc from the user onto each target in turn and burst into shards, then Impair's effect plays.
voidbtEffectRunRisingVenom (BATTLE_EFFECT_PARM *args)Glowing lime shells arc from the user onto each target in turn and burst into smoke.
voidbtEffectRunFormicAcid (BATTLE_EFFECT_PARM *args)Pink shells arc from the user onto each target in turn and burst into smoke.
voidbtEffectRunLobbedShells (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.

EnumeratorValueDescription
LOBBED_SHELLS_BONE_CHILLERblue, bursting into smoke
LOBBED_SHELLS_STICKY_GOOthe spider web's colours, smoke
LOBBED_SHELLS_STICKY_POISONlime, smoke
LOBBED_SHELLS_ROTTEN_BLOODgreen, shards
LOBBED_SHELLS_MAD_SPATTERgold, shards
LOBBED_SHELLS_DECOMPOSEgreen, smoke
LOBBED_SHELLS_POISON_INKMars Djinn colours, smoke
LOBBED_SHELLS_MUDgold, four to a target, shards
LOBBED_SHELLS_RISING_VENOMlime and glowing, smoke
LOBBED_SHELLS_FORMIC_ACIDpink, 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.