Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_growth.c

Growth, Punji, Vine and Thorn. More…

Included by battle_effect.c.

Macros

NameDescription
#defineGROWTH_FLARES 512Impact flares in PARTICLES.
#defineTHORN_FLARES 64Impact flares in PARTICLES for the thorns.
#defineGROWTH_FLARE_TICKS 14The ticks an impact flare lasts: its seven pictures, two ticks each.
#defineGROWING_COLUMNS 16The columns set out, of which GrowthColumnCounts picks how many grow.
#defineCOLUMN_INTERVAL 4The ticks from one column's start to the next's.
#defineGROWING_COLUMNS_VINE_FLARE_PICTURES 7769The impact flare's pictures in the vine sprite sheet, after the vines.
#defineGROWING_COLUMNS_PILLAR_FLARE_PICTURES 2815The impact flare's pictures in the pillar sprite sheet, after the pillars.
#defineVINE_COLUMNS 16columns that rise
#defineVINE_TICKS 70
#defineVINE_REACH_TICK 32The tick the vines reach the targets, which flash
#defineGREEN_VINE_WIDTH
#defineGREEN_VINE_HEIGHT 32drawn in turn
#defineGREEN_VINE_PICTURES 5
#defineTHORN_INTERVAL 8The ticks from one thorn's start to the next's.
#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

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, flaring at each root.
voidbtEffectRunPunji (BATTLE_EFFECT_PARM *args)Green pillars grow from the ground, flaring at each root.
voidbtEffectRunGrowingColumns (BATTLE_EFFECT_PARM *args, Sint32 mode)Vines or green pillars grow one after another, alternately mirrored, each flaring at 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 after another, flaring at their roots.

Description

Growth, Punji, Vine and Thorn. Part of battle_effect.c.

Macros in detail

GROWTH_FLARES

#define GROWTH_FLARES 512

Impact flares in PARTICLES.

Referenced by btEffectRunGrowingColumns().

Definition at line 4 of file battle_effect_growth.c.

THORN_FLARES

#define THORN_FLARES 64

Impact flares in PARTICLES for the thorns.

Referenced by btEffectRunThorn().

Definition at line 6 of file battle_effect_growth.c.

GROWTH_FLARE_TICKS

#define GROWTH_FLARE_TICKS 14

The ticks an impact flare lasts: its seven pictures, two ticks each.

Referenced by btEffectRunGrowingColumns() and btEffectRunThorn().

Definition at line 8 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 10 of file battle_effect_growth.c.

COLUMN_INTERVAL

#define COLUMN_INTERVAL 4

The ticks from one column's start to the next's.

Referenced by btEffectRunGrowingColumns().

Definition at line 12 of file battle_effect_growth.c.

GROWING_COLUMNS_VINE_FLARE_PICTURES

#define GROWING_COLUMNS_VINE_FLARE_PICTURES 7769

The impact flare's pictures in the vine sprite sheet, after the vines.

Referenced by btEffectRunGrowingColumns().

Definition at line 18 of file battle_effect_growth.c.

GROWING_COLUMNS_PILLAR_FLARE_PICTURES

#define GROWING_COLUMNS_PILLAR_FLARE_PICTURES 2815

The impact flare's pictures in the pillar sprite sheet, after the pillars.

Referenced by btEffectRunGrowingColumns().

Definition at line 20 of file battle_effect_growth.c.

VINE_COLUMNS

#define VINE_COLUMNS 16

columns that rise

Referenced by btEffectRunVine().

Definition at line 290 of file battle_effect_growth.c.

VINE_TICKS

#define VINE_TICKS 70

Referenced by btEffectRunVine().

Definition at line 291 of file battle_effect_growth.c.

VINE_REACH_TICK

#define VINE_REACH_TICK 32

The tick the vines reach the targets, which flash

Referenced by btEffectRunVine().

Definition at line 292 of file battle_effect_growth.c.

GREEN_VINE_WIDTH

#define GREEN_VINE_WIDTH

Referenced by btEffectRunVine().

Definition at line 293 of file battle_effect_growth.c.

GREEN_VINE_HEIGHT

#define GREEN_VINE_HEIGHT 32

drawn in turn

Referenced by btEffectRunVine().

Definition at line 296 of file battle_effect_growth.c.

GREEN_VINE_PICTURES

#define GREEN_VINE_PICTURES 5

Referenced by btEffectRunVine().

Definition at line 297 of file battle_effect_growth.c.

THORN_INTERVAL

#define THORN_INTERVAL 8

The ticks from one thorn's start to the next's.

Referenced by btEffectRunThorn().

Definition at line 405 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 407 of file battle_effect_growth.c.

THORN_BIG_HEIGHT

#define THORN_BIG_HEIGHT 80

Referenced by btEffectRunThorn().

Definition at line 408 of file battle_effect_growth.c.

THORN_SMALL_PICTURE_WIDTH

#define THORN_SMALL_PICTURE_WIDTH 32

Referenced by btEffectRunThorn().

Definition at line 409 of file battle_effect_growth.c.

THORN_SMALL_PICTURE_HEIGHT

#define THORN_SMALL_PICTURE_HEIGHT 64

Referenced by btEffectRunThorn().

Definition at line 410 of file battle_effect_growth.c.

THORN_SMALL_PICTURE

#define THORN_SMALL_PICTURE PICTURE_BYTES(THORN_BIG)

Referenced by btEffectRunThorn().

Definition at line 411 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 413 of file battle_effect_growth.c.

THORN_SMALL_LEAN

#define THORN_SMALL_LEAN 8

Referenced by btEffectRunThorn().

Definition at line 414 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 23 of file battle_effect_growth.c.

Functions in detail

btEffectRunGrowth

void btEffectRunGrowth(BATTLE_EFFECT_PARM *args)

Vines grow from the ground, flaring at each root.

Abilities: Growth, Mad Growth, Wild Growth.

References btEffectRunGrowingColumns().

Referenced by BattleEffectHandlers.

Definition at line 32 of file battle_effect_growth.c.

btEffectRunPunji

void btEffectRunPunji(BATTLE_EFFECT_PARM *args)

Green pillars grow from the ground, flaring at each root.

Abilities: Punji, Punji Trap, Punji Strike.

References btEffectRunGrowingColumns().

Referenced by BattleEffectHandlers.

Definition at line 40 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 flaring at its root.

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

Referenced by btEffectRunGrowth() and btEffectRunPunji().

Definition at line 47 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.

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

Referenced by BattleEffectHandlers.

Definition at line 303 of file battle_effect_growth.c.

btEffectRunThorn

void btEffectRunThorn(BATTLE_EFFECT_PARM *args)

Thorns burst from the ground one after another, flaring at their roots.

Abilities: Thorn, Briar, Nettle.

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

Referenced by BattleEffectHandlers.

Definition at line 419 of file battle_effect_growth.c.