Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_procne.c

The Procne summon. More…

Included by battle_effect.c.

Macros

NameDescription
#definePROCNE_TICKS 400Ticks of Procne.
#definePROCNE_ARRIVAL_TICK 160Procne appears in the violet sky, and the targets it lifted drop.
#definePROCNE_DROP_TICK 395
#definePROCNE_COMET_TICK 330The first comet leaves Procne, and the next each 12 ticks after.
#definePROCNE_COMET_INTERVAL 12
#definePROCNE_SPRITES 9Procne's sprites, on ProcneGridX, ProcneGridY.
#definePROCNE_WHIRLWIND_WIDTH 48The whirlwind sheet: three whirlwind pictures, shown 4 ticks each, then the dust.
#definePROCNE_WHIRLWIND_HEIGHT 64
#definePROCNE_WHIRLWIND_PICTURE
#definePROCNE_WHIRLWIND_FOOT_HEIGHT 48The whirlwind rises in two pieces: its foot, a picture's upper rows, then a whole picture above it.
#definePROCNE_DUST (3 * PROCNE_WHIRLWIND_PICTURE)
#definePROCNE_COMET_PICTURES 13824
#definePROCNE_DUST_MOTES 24dust motes that swirl up the whirlwind
#definePROCNE_DUST_SPIN_GAIN 50How much faster a dust mote circles the whirlwind each tick, up to PROCNE_DUST_SPIN_MAX, in 1/65536 turns a tick.
#definePROCNE_DUST_SPIN_MAX (TRIG_TURN / 16)
#definePROCNE_CORE_RADIUS 16The distance from the whirlwind's centre, in half pixels, that the lifted targets spiral in to.
#definePROCNE_SPIN_GAIN 48How much faster the lifted targets circle each tick, in 1/65536 turns a tick, and how fast they circle once Procne arrives.
#definePROCNE_SKY_SPIN 6000
#definePROCNE_SWAY 32Procne's sway: sixty-fourths of the wave's sine, as 16.16 pixels a tick, across and up and down; it bobs twice as far over its first 64 ticks.
#definePROCNE_BOB 16
#definePROCNE_GATHERING_SPARKS 32Procne's particles in state->particles: the sparks that gather on it, the ring of light each comet leaves, then one per comet.
#definePROCNE_RING PROCNE_GATHERING_SPARKS
#definePROCNE_RING_MOTES 28
#definePROCNE_COMET_PARTICLES (PROCNE_RING + PROCNE_RING_MOTES)
#definePROCNE_STRIKES 4The four strikes, at ProcneTicks: each throws out its sparks from its own rows of PARTICLES.
#definePROCNE_STRIKE_SPARKS 96
#definePROCNE_STRIKE_SPARK_ROWS 128
#definePROCNE_DEPTH_NEAR 170The depths a spark is drawn between.
#definePROCNE_DEPTH_FAR 350
#definePROCNE_SPARK_SIZE (depth, largest)A spark's mote size at depth: largest at PROCNE_DEPTH_NEAR, down to 1 at PROCNE_DEPTH_FAR.

Functions

NameDescription
voidbtEffectRunProcne (BATTLE_EFFECT_PARM *args)A whirlwind lifts the targets and spins them while dust swirls up it; then Procne, a great bird in a violet sky, gathers sparks and strikes them with four comets, each throwing out a burst of sparks.

Description

The Procne summon. Part of battle_effect.c.

Macros in detail

PROCNE_TICKS

#define PROCNE_TICKS 400

Ticks of Procne.

Referenced by btEffectRunProcne().

Definition at line 4 of file battle_effect_procne.c.

PROCNE_ARRIVAL_TICK

#define PROCNE_ARRIVAL_TICK 160

Procne appears in the violet sky, and the targets it lifted drop.

Referenced by btEffectRunProcne().

Definition at line 6 of file battle_effect_procne.c.

PROCNE_DROP_TICK

#define PROCNE_DROP_TICK 395

Referenced by btEffectRunProcne().

Definition at line 7 of file battle_effect_procne.c.

PROCNE_COMET_TICK

#define PROCNE_COMET_TICK 330

The first comet leaves Procne, and the next each 12 ticks after.

Referenced by btEffectRunProcne().

Definition at line 9 of file battle_effect_procne.c.

PROCNE_COMET_INTERVAL

#define PROCNE_COMET_INTERVAL 12

Referenced by btEffectRunProcne().

Definition at line 10 of file battle_effect_procne.c.

PROCNE_SPRITES

#define PROCNE_SPRITES 9

Procne's sprites, on ProcneGridX, ProcneGridY.

Referenced by btEffectRunProcne().

Definition at line 13 of file battle_effect_procne.c.

PROCNE_WHIRLWIND_WIDTH

#define PROCNE_WHIRLWIND_WIDTH 48

The whirlwind sheet: three whirlwind pictures, shown 4 ticks each, then the dust.

Referenced by btEffectRunProcne().

Definition at line 17 of file battle_effect_procne.c.

PROCNE_WHIRLWIND_HEIGHT

#define PROCNE_WHIRLWIND_HEIGHT 64

Referenced by btEffectRunProcne().

Definition at line 18 of file battle_effect_procne.c.

PROCNE_WHIRLWIND_PICTURE

#define PROCNE_WHIRLWIND_PICTURE

Referenced by btEffectRunProcne().

Definition at line 19 of file battle_effect_procne.c.

PROCNE_WHIRLWIND_FOOT_HEIGHT

#define PROCNE_WHIRLWIND_FOOT_HEIGHT 48

The whirlwind rises in two pieces: its foot, a picture's upper rows, then a whole picture above it.

Referenced by btEffectRunProcne().

Definition at line 23 of file battle_effect_procne.c.

PROCNE_DUST

#define PROCNE_DUST (3 * PROCNE_WHIRLWIND_PICTURE)

Referenced by btEffectRunProcne().

Definition at line 24 of file battle_effect_procne.c.

PROCNE_COMET_PICTURES

#define PROCNE_COMET_PICTURES 13824

Referenced by btEffectRunProcne().

Definition at line 25 of file battle_effect_procne.c.

PROCNE_DUST_MOTES

#define PROCNE_DUST_MOTES 24

dust motes that swirl up the whirlwind

Referenced by btEffectRunProcne().

Definition at line 27 of file battle_effect_procne.c.

PROCNE_DUST_SPIN_GAIN

#define PROCNE_DUST_SPIN_GAIN 50

How much faster a dust mote circles the whirlwind each tick, up to PROCNE_DUST_SPIN_MAX, in 1/65536 turns a tick.

Referenced by btEffectRunProcne().

Definition at line 30 of file battle_effect_procne.c.

PROCNE_DUST_SPIN_MAX

#define PROCNE_DUST_SPIN_MAX (TRIG_TURN / 16)

Referenced by btEffectRunProcne().

Definition at line 31 of file battle_effect_procne.c.

PROCNE_CORE_RADIUS

#define PROCNE_CORE_RADIUS 16

The distance from the whirlwind's centre, in half pixels, that the lifted targets spiral in to.

Referenced by btEffectRunProcne().

Definition at line 34 of file battle_effect_procne.c.

PROCNE_SPIN_GAIN

#define PROCNE_SPIN_GAIN 48

How much faster the lifted targets circle each tick, in 1/65536 turns a tick, and how fast they circle once Procne arrives.

Referenced by btEffectRunProcne().

Definition at line 37 of file battle_effect_procne.c.

PROCNE_SKY_SPIN

#define PROCNE_SKY_SPIN 6000

Referenced by btEffectRunProcne().

Definition at line 38 of file battle_effect_procne.c.

PROCNE_SWAY

#define PROCNE_SWAY 32

Procne's sway: sixty-fourths of the wave's sine, as 16.16 pixels a tick, across and up and down; it bobs twice as far over its first 64 ticks.

Referenced by btEffectRunProcne().

Definition at line 42 of file battle_effect_procne.c.

PROCNE_BOB

#define PROCNE_BOB 16

Referenced by btEffectRunProcne().

Definition at line 43 of file battle_effect_procne.c.

PROCNE_GATHERING_SPARKS

#define PROCNE_GATHERING_SPARKS 32

Procne's particles in state->particles: the sparks that gather on it, the ring of light each comet leaves, then one per comet.

Referenced by btEffectRunProcne().

Definition at line 47 of file battle_effect_procne.c.

PROCNE_RING

#define PROCNE_RING PROCNE_GATHERING_SPARKS

Referenced by btEffectRunProcne().

Definition at line 48 of file battle_effect_procne.c.

PROCNE_RING_MOTES

#define PROCNE_RING_MOTES 28

Referenced by btEffectRunProcne().

Definition at line 49 of file battle_effect_procne.c.

PROCNE_COMET_PARTICLES

#define PROCNE_COMET_PARTICLES (PROCNE_RING + PROCNE_RING_MOTES)

Referenced by btEffectRunProcne().

Definition at line 50 of file battle_effect_procne.c.

PROCNE_STRIKES

#define PROCNE_STRIKES 4

The four strikes, at ProcneTicks: each throws out its sparks from its own rows of PARTICLES.

Referenced by btEffectRunProcne().

Definition at line 54 of file battle_effect_procne.c.

PROCNE_STRIKE_SPARKS

#define PROCNE_STRIKE_SPARKS 96

Referenced by btEffectRunProcne().

Definition at line 55 of file battle_effect_procne.c.

PROCNE_STRIKE_SPARK_ROWS

#define PROCNE_STRIKE_SPARK_ROWS 128

Referenced by btEffectRunProcne().

Definition at line 56 of file battle_effect_procne.c.

PROCNE_DEPTH_NEAR

#define PROCNE_DEPTH_NEAR 170

The depths a spark is drawn between.

Referenced by btEffectRunProcne().

Definition at line 59 of file battle_effect_procne.c.

PROCNE_DEPTH_FAR

#define PROCNE_DEPTH_FAR 350

Referenced by btEffectRunProcne().

Definition at line 60 of file battle_effect_procne.c.

PROCNE_SPARK_SIZE

#define PROCNE_SPARK_SIZE(depth, largest)

A spark's mote size at depth: largest at PROCNE_DEPTH_NEAR, down to 1 at PROCNE_DEPTH_FAR.

Referenced by btEffectRunProcne().

Definition at line 63 of file battle_effect_procne.c.

Functions in detail

btEffectRunProcne

void btEffectRunProcne(BATTLE_EFFECT_PARM *args)

A whirlwind lifts the targets and spins them while dust swirls up it; then Procne, a great bird in a violet sky, gathers sparks and strikes them with four comets, each throwing out a burst of sparks. A or B skips to Procne's arrival, then to the drop.

Abilities: Procne.

References BattleEffectMotePictures, btBackgroundLoadStub(), btBackgroundSetModeStub(), btEffectCreateSprites(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectStartCanvasLayer(), btEffectTintBattler(), btObjectGetStub(), btProjectionPoint(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), HeapSlots, PerRepeat, ProcneGridX, ProcneGridY, ProcnePictureBiasY, ProcnePictureHeights, ProcnePictures, ProcnePictureWidths, ProcneTicks, ProjectionWork, Sint32, state, syAtan(), syCos(), syDecompressTaggedLZ(), syInitMatrix(), syMatrixTranslateVector(), syRandom(), syResourceGetTableEntry(), syRotY(), syRotZ(), sySin(), sySoundPlayStub(), sySquartIWRAM(), syVector3Coordinates(), syWordsCopy() and width.

Referenced by btEffectRunSummon().

Definition at line 74 of file battle_effect_procne.c.