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
| Name | Description | |
|---|---|---|
struct | GROWING_COLUMN | One growing column, laid over a PARTICLE in state->particles. |
Macros
| Name | Description | |
|---|---|---|
#define | GROWTH_DUST 512 | Puffs of dust in PARTICLES. |
#define | THORN_DUST 64 | Puffs of dust in PARTICLES for the thorns. |
#define | DUST_PUFF_TICKS 14 | The ticks a puff of dust lasts: its seven pictures, two ticks each. |
#define | GROWING_COLUMNS 16 | The columns set out, of which GrowthColumnCounts picks how many grow. |
#define | GROWING_COLUMNS_VINE_DUST_PICTURES 7769 | Where the dust pictures begin in the vine sprite sheet, in bytes, after the vines. |
#define | GROWING_COLUMNS_PILLAR_DUST_PICTURES 2815 | Where they begin in the pillar sprite sheet, after the pillars. |
#define | THORN_BIG_WIDTH 48 | ThornSheet: the big thorn, then the small one. |
#define | THORN_BIG_HEIGHT 80 | |
#define | THORN_SMALL_PICTURE_WIDTH 32 | |
#define | THORN_SMALL_PICTURE_HEIGHT 64 | |
#define | THORN_SMALL_PICTURE PICTURE_BYTES(THORN_BIG) | |
#define | THORN_BIG_LEAN 30 | The pixels a big and a small thorn lean sideways at most as they grow. |
#define | THORN_SMALL_LEAN 8 | |
#define | VINE_COLUMNS 16 | columns that rise |
#define | VINE_TICKS 70 | |
#define | GREEN_VINE_WIDTH | |
#define | GREEN_VINE_HEIGHT 32 | drawn in turn |
#define | GREEN_VINE_PICTURES 5 |
Enumerations
| Name | Description | |
|---|---|---|
enum | GROWING_COLUMNS_MODE { GROWING_COLUMNS_VINES, GROWING_COLUMNS_PILLARS } | What the growing columns grow (btEffectRunGrowingColumns). |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunGrowth (BATTLE_EFFECT_PARM *args) | Vines grow from the ground, scattering dust from each root. |
void | btEffectRunPunji (BATTLE_EFFECT_PARM *args) | Green pillars grow from the ground, scattering dust from each root. |
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. |
void | btEffectRunVine (BATTLE_EFFECT_PARM *args) | Sixteen green vines grow from the middle of the row of targets, 2 ticks apart, and shrink back. |
void | btEffectRunThorn (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).
| Enumerator | Value | Description |
|---|---|---|
GROWING_COLUMNS_VINES | Growth | |
GROWING_COLUMNS_PILLARS | Punji'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.



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.



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.

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.



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.