Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_flurry.c

Gust, Flying Attack, the rush bursts and the claws: the flurry of strikes they all play. More…

Included by battle_effect.c.

Macros

NameDescription
#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_MOTE_COUNT 256The motes in PARTICLES, waiting above the target; the wave, smoke and orb pictures follow them in the map cell buffer.
#defineFLURRY_STRIKE_MOTES 32Each strike's own run of the motes, of which it throws FlurryStyles' FLURRY_MOTES.
#defineFLURRY_WAVE_PICTURES (RamMapMetatileBuffer + 9216)The wave pictures, past the motes, where the effect's own pictures begin.
#defineFLURRY_SMOKE_PICTURES 5000The smoke pictures, past the waves: an offset into the effect's pictures.
#defineFLURRY_BLUE_ARC_PICTURES 3200Where BlueArcSheetA or BlueArcSheetB is decoded in the effect's pictures.
#defineFLURRY_ORB_PICTURES 11912The yellow orb's pictures, packed to half width past the smoke: an offset into the effect's pictures.
#defineFLURRY_FLASH_LEVEL 47The level the canvas fills with on each hit, where the style flashes.
#defineFLURRY_SMOKE_PUFFS 16Vanish Claw's smoke: sixteen puffs, each through six pictures four ticks apart.
#defineFLURRY_SMOKE_PICTURE_TICKS 4
#defineFLURRY_SMOKE_TICKS (6 * FLURRY_SMOKE_PICTURE_TICKS)

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.
voidbtEffectRunUrFlash (BATTLE_EFFECT_PARM *args)Three strikes land on the first target in the Mars Djinni's colours.
voidbtEffectRunClawAttack (BATTLE_EFFECT_PARM *args)The user lunges further at the first target and strikes once, in the embers' colours.
voidbtEffectRunCrusherGrip (BATTLE_EFFECT_PARM *args)One strike lands on the first target while glints flicker around it.
voidbtEffectRunVanishClaw (BATTLE_EFFECT_PARM *args)One strike lands on the first target while the battle ripples and smoke rises from its feet.
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, the rush bursts and the claws: the flurry of strikes they all play. Part of battle_effect.c.

Macros in detail

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 6 of file battle_effect_flurry.c.

FLURRY_MOTE_COUNT

#define FLURRY_MOTE_COUNT 256

The motes in PARTICLES, waiting above the target; the wave, smoke and orb pictures follow them in the map cell buffer.

Referenced by btEffectRunFlurry().

Definition at line 117 of file battle_effect_flurry.c.

FLURRY_STRIKE_MOTES

#define FLURRY_STRIKE_MOTES 32

Each strike's own run of the motes, of which it throws FlurryStyles' FLURRY_MOTES.

Referenced by btEffectRunFlurry().

Definition at line 120 of file battle_effect_flurry.c.

FLURRY_WAVE_PICTURES

#define FLURRY_WAVE_PICTURES (RamMapMetatileBuffer + 9216)

The wave pictures, past the motes, where the effect's own pictures begin.

Referenced by btEffectRunFlurry().

Definition at line 122 of file battle_effect_flurry.c.

FLURRY_SMOKE_PICTURES

#define FLURRY_SMOKE_PICTURES 5000

The smoke pictures, past the waves: an offset into the effect's pictures.

Referenced by btEffectRunFlurry().

Definition at line 124 of file battle_effect_flurry.c.

FLURRY_BLUE_ARC_PICTURES

#define FLURRY_BLUE_ARC_PICTURES 3200

Where BlueArcSheetA or BlueArcSheetB is decoded in the effect's pictures.

Referenced by btEffectRunFlurry().

Definition at line 126 of file battle_effect_flurry.c.

FLURRY_ORB_PICTURES

#define FLURRY_ORB_PICTURES 11912

The yellow orb's pictures, packed to half width past the smoke: an offset into the effect's pictures.

Referenced by btEffectRunFlurry().

Definition at line 129 of file battle_effect_flurry.c.

FLURRY_FLASH_LEVEL

#define FLURRY_FLASH_LEVEL 47

The level the canvas fills with on each hit, where the style flashes.

Referenced by btEffectRunFlurry().

Definition at line 131 of file battle_effect_flurry.c.

FLURRY_SMOKE_PUFFS

#define FLURRY_SMOKE_PUFFS 16

Vanish Claw's smoke: sixteen puffs, each through six pictures four ticks apart.

Referenced by btEffectRunFlurry().

Definition at line 135 of file battle_effect_flurry.c.

FLURRY_SMOKE_PICTURE_TICKS

#define FLURRY_SMOKE_PICTURE_TICKS 4

Referenced by btEffectRunFlurry().

Definition at line 136 of file battle_effect_flurry.c.

FLURRY_SMOKE_TICKS

#define FLURRY_SMOKE_TICKS (6 * FLURRY_SMOKE_PICTURE_TICKS)

Referenced by btEffectRunFlurry().

Definition at line 137 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 its run of FLURRY_STRIKE_MOTES
FLURRY_INTERVALticks between strikes
FLURRY_TICKSticks in the whole effect
FLURRY_FLASH1 fills the canvas with FLURRY_FLASH_LEVEL on each hit
FLURRY_EXTRAwhat else plays around the target (FLURRY_EXTRA_KIND)

Definition at line 140 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 35 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 43 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 51 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 59 of file battle_effect_flurry.c.

btEffectRunUrFlash

void btEffectRunUrFlash(BATTLE_EFFECT_PARM *args)

Three strikes land on the first target in the Mars Djinni's colours.

Abilities: Ur Flash.

References btEffectRunFlurry().

Referenced by BattleEffectHandlers.

Definition at line 76 of file battle_effect_flurry.c.

btEffectRunClawAttack

void btEffectRunClawAttack(BATTLE_EFFECT_PARM *args)

The user lunges further at the first target and strikes once, in the embers' colours.

Abilities: Claw Attack.

References btEffectRunFlurry().

Referenced by BattleEffectHandlers.

Definition at line 85 of file battle_effect_flurry.c.

btEffectRunCrusherGrip

void btEffectRunCrusherGrip(BATTLE_EFFECT_PARM *args)

One strike lands on the first target while glints flicker around it.

Abilities: Crusher Grip.

References btEffectRunFlurry().

Referenced by BattleEffectHandlers.

Definition at line 93 of file battle_effect_flurry.c.

btEffectRunVanishClaw

void btEffectRunVanishClaw(BATTLE_EFFECT_PARM *args)

One strike lands on the first target while the battle ripples and smoke rises from its feet.

Abilities: Vanish Claw.

References btEffectRunFlurry().

Referenced by BattleEffectHandlers.

Definition at line 102 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 BattleEffectGlintPictureHeights, BattleEffectGlintPictures, BattleEffectGlintPictureWidths, btCameraShake(), btEffectArmBg2AffineHBlankDMA(), btEffectEndCanvasLayer(), btEffectPosProjectPoint(), btEffectPosProjectScaledBattler(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btMotionApproachTargetStub(), btObjectGetStub(), btParticleAdvanceWithGravity2D(), btParticleAdvanceWithGravity3D(), btResourceLoadAndDecompress(), FlurryGlintFlips, FlurryStyles, Sint32, syCloseEvent(), syCos(), syHeapSlotRelease(), syRandom(), syResourceGetTableEntry(), sySetEvent(), sySin(), sySoundPlayStub() and sySynch().

Referenced by btEffectRunBacteriaRush(), btEffectRunBearClaw(), btEffectRunClawAttack(), btEffectRunCrusherGrip(), btEffectRunFreebiteRush(), btEffectRunRansack(), btEffectRunUrFlash() and btEffectRunVanishClaw().

Definition at line 156 of file battle_effect_flurry.c.