Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_growth.c

Growth, Punji, Vine and Thorn: columns, vines and thorns spring up one after another, each shaking the screen and throwing up dust from its root, and the targets react a few ticks later. More…

Included by battle_effect.c.

Structures

NameDescription
structGROWING_COLUMNOne growing column, laid over a PARTICLE in state->particles.

Macros

NameDescription
#defineGROWTH_DUST 512Puffs of dust in PARTICLES.
#defineTHORN_DUST 64Puffs of dust in PARTICLES for the thorns.
#defineDUST_PUFF_TICKS 14The ticks a puff of dust lasts: its seven pictures, two ticks each.
#defineGROWING_COLUMNS 16The columns set out, of which GrowthColumnCounts picks how many grow.
#defineGROWING_COLUMNS_VINE_DUST_PICTURES 7769Where the dust pictures begin in the vine sprite sheet, in bytes, after the vines.
#defineGROWING_COLUMNS_PILLAR_DUST_PICTURES 2815Where they begin in the pillar sprite sheet, after the pillars.
#defineTHORN_BIG_WIDTH 48ThornSheet: the big thorn, then the small one.
#defineTHORN_BIG_HEIGHT 80
#defineTHORN_SMALL_PICTURE_WIDTH 32
#defineTHORN_SMALL_PICTURE_HEIGHT 64
#defineTHORN_SMALL_PICTURE PICTURE_BYTES(THORN_BIG)
#defineTHORN_BIG_LEAN 30The pixels a big and a small thorn lean sideways at most as they grow.
#defineTHORN_SMALL_LEAN 8
#defineVINE_COLUMNS 16columns that rise
#defineVINE_TICKS 70
#defineGREEN_VINE_WIDTH
#defineGREEN_VINE_HEIGHT 32drawn in turn
#defineGREEN_VINE_PICTURES 5

Enumerations

NameDescription
enumGROWING_COLUMNS_MODE { GROWING_COLUMNS_VINES, GROWING_COLUMNS_PILLARS }What the growing columns grow (btEffectRunGrowingColumns).

Functions

NameDescription
voidbtEffectRunGrowth (BATTLE_EFFECT_PARM *args)Vines grow from the ground, scattering dust from each root.
voidbtEffectRunPunji (BATTLE_EFFECT_PARM *args)Green pillars grow from the ground, scattering dust from each root.
voidbtEffectRunGrowingColumns (BATTLE_EFFECT_PARM *args, Sint32 mode)Vines or green pillars grow one after another, alternately mirrored, each throwing up dust from its root.
voidbtEffectRunVine (BATTLE_EFFECT_PARM *args)Sixteen green vines grow from the middle of the row of targets, 2 ticks apart, and shrink back.
voidbtEffectRunThorn (BATTLE_EFFECT_PARM *args)Thorns burst from the ground one every 8 ticks, throwing up dust from their roots.

Description

Growth, Punji, Vine and Thorn: columns, vines and thorns spring up one after another, each shaking the screen and throwing up dust from its root, and the targets react a few ticks later. Part of battle_effect.c.

Macros in detail

GROWTH_DUST

#define GROWTH_DUST 512

Puffs of dust in PARTICLES.

Referenced by btEffectRunGrowingColumns().

Definition at line 6 of file battle_effect_growth.c.

THORN_DUST

#define THORN_DUST 64

Puffs of dust in PARTICLES for the thorns.

Referenced by btEffectRunThorn().

Definition at line 8 of file battle_effect_growth.c.

DUST_PUFF_TICKS

#define DUST_PUFF_TICKS 14

The ticks a puff of dust lasts: its seven pictures, two ticks each.

Referenced by btEffectRunGrowingColumns() and btEffectRunThorn().

Definition at line 10 of file battle_effect_growth.c.

GROWING_COLUMNS

#define GROWING_COLUMNS 16

The columns set out, of which GrowthColumnCounts picks how many grow.

Referenced by btEffectRunGrowingColumns().

Definition at line 12 of file battle_effect_growth.c.

GROWING_COLUMNS_VINE_DUST_PICTURES

#define GROWING_COLUMNS_VINE_DUST_PICTURES 7769

Where the dust pictures begin in the vine sprite sheet, in bytes, after the vines.

Referenced by btEffectRunGrowingColumns().

Definition at line 16 of file battle_effect_growth.c.

GROWING_COLUMNS_PILLAR_DUST_PICTURES

#define GROWING_COLUMNS_PILLAR_DUST_PICTURES 2815

Where they begin in the pillar sprite sheet, after the pillars.

Referenced by btEffectRunGrowingColumns().

Definition at line 18 of file battle_effect_growth.c.

THORN_BIG_WIDTH

#define THORN_BIG_WIDTH 48

ThornSheet: the big thorn, then the small one.

Referenced by btEffectRunThorn().

Definition at line 20 of file battle_effect_growth.c.

THORN_BIG_HEIGHT

#define THORN_BIG_HEIGHT 80

Referenced by btEffectRunThorn().

Definition at line 21 of file battle_effect_growth.c.

THORN_SMALL_PICTURE_WIDTH

#define THORN_SMALL_PICTURE_WIDTH 32

Referenced by btEffectRunThorn().

Definition at line 22 of file battle_effect_growth.c.

THORN_SMALL_PICTURE_HEIGHT

#define THORN_SMALL_PICTURE_HEIGHT 64

Referenced by btEffectRunThorn().

Definition at line 23 of file battle_effect_growth.c.

THORN_SMALL_PICTURE

#define THORN_SMALL_PICTURE PICTURE_BYTES(THORN_BIG)

Referenced by btEffectRunThorn().

Definition at line 24 of file battle_effect_growth.c.

THORN_BIG_LEAN

#define THORN_BIG_LEAN 30

The pixels a big and a small thorn lean sideways at most as they grow.

Referenced by btEffectRunThorn().

Definition at line 26 of file battle_effect_growth.c.

THORN_SMALL_LEAN

#define THORN_SMALL_LEAN 8

Referenced by btEffectRunThorn().

Definition at line 27 of file battle_effect_growth.c.

VINE_COLUMNS

#define VINE_COLUMNS 16

columns that rise

Referenced by btEffectRunVine().

Definition at line 312 of file battle_effect_growth.c.

VINE_TICKS

#define VINE_TICKS 70

Referenced by btEffectRunVine().

Definition at line 313 of file battle_effect_growth.c.

GREEN_VINE_WIDTH

#define GREEN_VINE_WIDTH

Referenced by btEffectRunVine().

Definition at line 314 of file battle_effect_growth.c.

GREEN_VINE_HEIGHT

#define GREEN_VINE_HEIGHT 32

drawn in turn

Referenced by btEffectRunVine().

Definition at line 317 of file battle_effect_growth.c.

GREEN_VINE_PICTURES

#define GREEN_VINE_PICTURES 5

Referenced by btEffectRunVine().

Definition at line 318 of file battle_effect_growth.c.

Enumerations in detail

GROWING_COLUMNS_MODE

enum GROWING_COLUMNS_MODE

What the growing columns grow (btEffectRunGrowingColumns).

EnumeratorValueDescription
GROWING_COLUMNS_VINESGrowth
GROWING_COLUMNS_PILLARSPunji's green pillars

Definition at line 30 of file battle_effect_growth.c.

Functions in detail

btEffectRunGrowth

void btEffectRunGrowth(BATTLE_EFFECT_PARM *args)

Vines grow from the ground, scattering dust from each root.

Abilities: Growth, Mad Growth, Wild Growth.

Growth
Growth
Mad Growth
Mad Growth
Wild Growth
Wild Growth

References btEffectRunGrowingColumns().

Referenced by BattleEffectHandlers.

Definition at line 53 of file battle_effect_growth.c.

btEffectRunPunji

void btEffectRunPunji(BATTLE_EFFECT_PARM *args)

Green pillars grow from the ground, scattering dust from each root.

Abilities: Punji, Punji Trap, Punji Strike.

Punji
Punji
Punji Trap
Punji Trap
Punji Strike
Punji Strike

References btEffectRunGrowingColumns().

Referenced by BattleEffectHandlers.

Definition at line 61 of file battle_effect_growth.c.

btEffectRunGrowingColumns

void btEffectRunGrowingColumns(BATTLE_EFFECT_PARM *args, Sint32 mode)

Vines or green pillars grow one after another, alternately mirrored, each throwing up dust from its root.

References btCameraShake(), btEffectStartCanvasLayer(), btEffectTintBattler(), btResourceLoadAndDecompress(), GrowthColumnCounts, GrowthColumnX, GrowthHeightLimits, GrowthPillarHeights, GrowthPillarPictures, GrowthPillarWidths, GrowthPuffHeights, GrowthPuffPictures, GrowthPuffWidths, GrowthVinePictures, GrowthVineWidths, Sint32, state, syRandom(), sySoundPlayStub() and width.

Referenced by btEffectRunGrowth() and btEffectRunPunji().

Definition at line 68 of file battle_effect_growth.c.

btEffectRunVine

void btEffectRunVine(BATTLE_EFFECT_PARM *args)

Sixteen green vines grow from the middle of the row of targets, 2 ticks apart, and shrink back.

Abilities: Vine.

Vine
Vine

References btCameraShake(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTintBattler(), btProjectionScaledUnit(), btResourceLoadAndDecompress(), Sint32, state, sySoundPlayStub() and VineColumnOffsets.

Referenced by BattleEffectHandlers.

Definition at line 324 of file battle_effect_growth.c.

btEffectRunThorn

void btEffectRunThorn(BATTLE_EFFECT_PARM *args)

Thorns burst from the ground one every 8 ticks, throwing up dust from their roots.

Abilities: Thorn, Briar, Nettle.

Thorn
Thorn
Briar
Briar
Nettle
Nettle

References btCameraShake(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btResourceLoadAndDecompress(), Sint32, state, syRandom(), sySetEvent(), sySoundPlayStub(), ThornCounts, ThornKinds, ThornPuffHeights, ThornPuffPictures, ThornPuffWidths and ThornX.

Referenced by BattleEffectHandlers.

Definition at line 422 of file battle_effect_growth.c.