Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_lobbed_shells.c

Lobbed shells (Mad Spatter, Decompose, Bone Chiller ...). More…

Included by battle_effect.c.

Macros

NameDescription
#defineLOBBED_SHELLS_BURSTS (PARTICLES + 256)The bursts, after the shells in PARTICLES.
#defineLOBBED_SHELLS_SLOTS 16Particles reserved for each target.
#defineLOBBED_SHELLS_BURST_SLOTS 256Burst particles after the shells.
#defineLOBBED_SHELLS_SMOKE_PICTURES 16000Where the smoke starts in the 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; it turns on its side from picture LOBBED_SHELL_UPRIGHT_PICTURES, a picture every three ticks.
#defineLOBBED_SHELL_UPRIGHT_PICTURES 5
#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_TARGET_TICKS 8Each target's shell is lobbed this many ticks after the last one's, and lands LOBBED_SHELL_FLIGHT_TICKS later, as its target flashes.
#defineLOBBED_SHELL_FLIGHT_TICKS 17
#defineLOBBED_SHELLS_SMOKE_END_TICKS 72The ticks the effect runs on after the last shell is lobbed: smoke drifts longer than shards fall.
#defineLOBBED_SHELLS_SHARDS_END_TICKS 56
#defineLOBBED_SHELLS_SHATTER (mode)Nonzero when the style's shells burst into shards instead of smoke.

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)Gold shells arc from the user onto each target in turn and burst into shards.
voidbtEffectRunDecompose (BATTLE_EFFECT_PARM *args)Green shells arc from the user onto each target in turn and burst into smoke.
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.
voidbtEffectRunLobbedShells (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.

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

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.