Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_flurry.c

Gust, Flying Attack and the rush strikes. More…

Included by battle_effect.c.

Macros

NameDescription
#defineFLURRY_WAITING_MOTES 768The motes in PARTICLES, waiting above the target.
#defineFLURRY_DRAWN_MOTES 512The motes the strikes draw, from the first.
#defineFLURRY_MOTES_PER_STRIKE 32Each strike's run of PARTICLES, from the strike's number times this.
#defineFLURRY_DEFINE_BY_VARIANT (name, basic, stronger, strongest)Each plays the flurry mode basic, stronger or strongest as the effect's variant (EFFECT_VARIANT) says.
#defineFLURRY_ORB_PICTURES 20736The flash pictures, packed to half width after the arcs.
#defineFLURRY_WAVE_PICTURES (RamMapGridMetatileBuffer + 24064)The wave pictures, in the map grid buffer past the motes.

Enumerations

NameDescription
enumFLURRY_COLUMN { FLURRY_ARC_SHEET, FLURRY_PALETTE, FLURRY_STRIKES, FLURRY_MOT … }The bytes of a FlurryStyles row, one row a mode.

Functions

NameDescription
voidbtEffectRunBearClaw (BATTLE_EFFECT_PARM *args)The user strikes the first target five times.
voidbtEffectRunRansack (BATTLE_EFFECT_PARM *args)Ransack plays the same five strikes as Bear Claw.
voidbtEffectRunBacteriaRush (BATTLE_EFFECT_PARM *args)Seven strikes land on the first target in the lime palette.
voidbtEffectRunFreebiteRush (BATTLE_EFFECT_PARM *args)Nine strikes land on the first target in the blue palette.
voidbtEffectRunFlurry (BATTLE_EFFECT_PARM *args, Sint32 mode)The user closes on the first target and strikes it again and again, each strike an arc or a wave with a flash and a spray of motes; the last knocks the target back.

Description

Gust, Flying Attack and the rush strikes. Part of battle_effect.c.

Macros in detail

FLURRY_WAITING_MOTES

#define FLURRY_WAITING_MOTES 768

The motes in PARTICLES, waiting above the target.

Referenced by btEffectRunFlurry().

Definition at line 4 of file battle_effect_flurry.c.

FLURRY_DRAWN_MOTES

#define FLURRY_DRAWN_MOTES 512

The motes the strikes draw, from the first.

Referenced by btEffectRunFlurry().

Definition at line 6 of file battle_effect_flurry.c.

FLURRY_MOTES_PER_STRIKE

#define FLURRY_MOTES_PER_STRIKE 32

Each strike's run of PARTICLES, from the strike's number times this.

Referenced by btEffectRunFlurry().

Definition at line 8 of file battle_effect_flurry.c.

FLURRY_DEFINE_BY_VARIANT

#define FLURRY_DEFINE_BY_VARIANT(name, basic, stronger, strongest)

Each plays the flurry mode basic, stronger or strongest as the effect's variant (EFFECT_VARIANT) says.

Definition at line 12 of file battle_effect_flurry.c.

FLURRY_ORB_PICTURES

#define FLURRY_ORB_PICTURES 20736

The flash pictures, packed to half width after the arcs.

Referenced by btEffectRunFlurry().

Definition at line 93 of file battle_effect_flurry.c.

FLURRY_WAVE_PICTURES

#define FLURRY_WAVE_PICTURES (RamMapGridMetatileBuffer + 24064)

The wave pictures, in the map grid buffer past the motes.

Referenced by btEffectRunFlurry().

Definition at line 95 of file battle_effect_flurry.c.

Enumerations in detail

FLURRY_COLUMN

enum FLURRY_COLUMN

The bytes of a FlurryStyles row, one row a mode.

EnumeratorValueDescription
FLURRY_ARC_SHEETthe arcs (FLURRY_ARC)
FLURRY_PALETTEwhose palette (FLURRY_PAL)
FLURRY_STRIKES
FLURRY_MOTESmotes thrown by each strike, at most FLURRY_MOTES_PER_STRIKE
FLURRY_INTERVALticks between strikes
FLURRY_TICKSticks in the whole effect
FLURRY_FLASH1 fills the canvas with level 47 on each hit

Definition at line 80 of file battle_effect_flurry.c.

Functions in detail

btEffectRunBearClaw

void btEffectRunBearClaw(BATTLE_EFFECT_PARM *args)

The user strikes the first target five times.

Abilities: Bear Claw; Counterstrike.

References btEffectRunFlurry().

Referenced by BattleEffectHandlers.

Definition at line 41 of file battle_effect_flurry.c.

btEffectRunRansack

void btEffectRunRansack(BATTLE_EFFECT_PARM *args)

Ransack plays the same five strikes as Bear Claw.

Abilities: Ransack; Mad Dash.

References btEffectRunFlurry().

Referenced by BattleEffectHandlers.

Definition at line 49 of file battle_effect_flurry.c.

btEffectRunBacteriaRush

void btEffectRunBacteriaRush(BATTLE_EFFECT_PARM *args)

Seven strikes land on the first target in the lime palette.

Abilities: Bacteria Rush.

References btEffectRunFlurry().

Referenced by BattleEffectHandlers.

Definition at line 57 of file battle_effect_flurry.c.

btEffectRunFreebiteRush

void btEffectRunFreebiteRush(BATTLE_EFFECT_PARM *args)

Nine strikes land on the first target in the blue palette.

Abilities: Freebite Rush.

References btEffectRunFlurry().

Referenced by BattleEffectHandlers.

Definition at line 65 of file battle_effect_flurry.c.

btEffectRunFlurry

void btEffectRunFlurry(BATTLE_EFFECT_PARM *args, Sint32 mode)

The user closes on the first target and strikes it again and again, each strike an arc or a wave with a flash and a spray of motes; the last knocks the target back.

References btCameraShake(), btEffectEndCanvasLayer(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btMotionApproachTargetStub(), btObjectGetStub(), btParticleAdvanceWithGravity3D(), btProjectionPoint(), btProjectionScaledUnit(), btResourceLoadAndDecompress(), FlurryStyles, Sint32, state, syCloseEvent(), syRandom(), syResourceGetTableEntry(), sySoundPlayStub(), sySynch(), syWordsCopy() and syWordsFill().

Referenced by btEffectRunBacteriaRush(), btEffectRunBearClaw(), btEffectRunFreebiteRush() and btEffectRunRansack().

Definition at line 100 of file battle_effect_flurry.c.