Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_projectiles.c

The Djinni entrance that opens the Djinn effects; the projectile volleys, from Slash and Shuriken to the stings, the wing attacks and the fire and ice volleys of Cutting Edge, Heat Wave and Blizzard; and a battler sent leaping toward another. More…

Included by battle_effect.c.

Macros

NameDescription
#defineDJINNI_ENTRANCE_SPARKS 32The sparks that spin into the Djinni, the ticks their centre takes from the user to the anchor, and the depths that size them: one size smaller every DJINNI_SPARK_DEPTH_STEP from DJINNI_SPARK_DEPTH_NEAR, held below DJINNI_SPARK_DEPTH_FAR.
#defineDJINNI_ENTRANCE_TRAVEL_TICKS 40
#defineDJINNI_SPARK_DEPTH_NEAR 250
#defineDJINNI_SPARK_DEPTH_STEP 64
#defineDJINNI_SPARK_DEPTH_FAR 634
#definePROJECTILE_VOLLEY_PARTICLE_COUNT PARTICLE_POOL_COUNTThe particle buffer at the map cell buffer: flashes from 0, sparks from 100, the smoke trails from 512, the falling-streak particles from 960.
#definePROJECTILE_VOLLEY_FIRST_SPARK 100
#definePROJECTILE_VOLLEY_FIRST_TRAIL 512
#definePROJECTILE_VOLLEY_FIRST_STREAK 960
#definePROJECTILE_VOLLEY_STREAKS
#defineSHORT_STREAK_WIDTH 17The stings' short streak, then what each draws where it lands: Poison Sting's smoke, Stun Sting's glints.
#defineSHORT_STREAK_HEIGHT 2
#definePROJECTILE_VOLLEY_STING_HIT_PICTURES PICTURE_BYTES(SHORT_STREAK)
#definePROJECTILE_VOLLEY_HALVED_BUBBLE_PICTURES 4096Hydro Slash's bubble, BlueBeamSheet's first picture, decoded at the sprite sheet's start; its three pictures copied at every second byte after it, which nothing draws.
#definePROJECTILE_VOLLEY_HALVED_BUBBLE_BYTES
#definePROJECTILE_VOLLEY_SPARK_SPEED_SHIFT 11A hit's sparks fly at up to 4 pixels a tick each way, as a random -128 to 127 shifted up; Cutting Edge's at up to 8.
#defineCUTTING_EDGE_SPARK_SPEED_SHIFT 12
#defineDRAW_ALTERNATE (RamHeapSlots->ramCodePaired)The second blitter, loaded again for each draw that needs its own.
#definePROJECTILE_VOLLEY_STREAK_PICTURES 8192wind streaks
#definePROJECTILE_VOLLEY_DJINNI_PICTURE 26048the small Mercury Djinni
#definePROJECTILE_VOLLEY_COMET_PICTURES 4096The comet's picture, its upper half, which is drawn again flipped for the lower.
#definePROJECTILE_VOLLEY_FLASH_TURNEDThe hit flashes turned on their side, after the upright ones.
#definePROJECTILE_VOLLEY_SMALL_SPARK_PICTURE_WIDTH 12The yellow spark sprite sheet: the small spark first, then the medium one, then the large one.
#definePROJECTILE_VOLLEY_SMALL_SPARK_PICTURE_HEIGHT 8
#definePROJECTILE_VOLLEY_MEDIUM_SPARK_PICTURE_WIDTH 18
#definePROJECTILE_VOLLEY_MEDIUM_SPARK_PICTURE_HEIGHT 13
#definePROJECTILE_VOLLEY_LARGE_SPARK_PICTURE_WIDTH 29
#definePROJECTILE_VOLLEY_LARGE_SPARK_PICTURE_HEIGHT 23
#definePROJECTILE_VOLLEY_SMALL_SPARK_PICTURE 0
#definePROJECTILE_VOLLEY_MEDIUM_SPARK_PICTURE
#definePROJECTILE_VOLLEY_LARGE_SPARK_PICTURE
#definePROJECTILE_VOLLEY_PELLET_SIZE 8Sleet's, Blizzard's, Ice Blessing's and Chill Breath's ice pellets, and Crazy Voice's musical notes, six pictures of ProjectileVolleyImage.
#definePROJECTILE_VOLLEY_NOTE_WIDTH 8
#definePROJECTILE_VOLLEY_NOTE_HEIGHT 16
#definePROJECTILE_VOLLEY_COMET_WIDTH 32The comets' width, and the shuriken's six pictures.
#defineSHURIKEN_WIDTH 32
#defineSHURIKEN_HEIGHT 24

Enumerations

NameDescription
enumSPIN_AXIS { SPIN_YAW, SPIN_PITCH, SPIN_ROLL, SPIN_PITCH_AND_ROLL }The axis each of the Djinni entrance's sparks spins on, by its number.
enumPROJECTILE_VOLLEY_COMET { PROJECTILE_VOLLEY_COMET_SLASH, PROJECTILE_VOLLEY_COMET_WIND_ … }The volley's comets, its CometSheet resources: Slash, Wind Slash and Sonic Slash fire the one their variant picks.

Functions

NameDescription
voidbtEffectRunDjinniEntrance (BATTLE_EFFECT_PARM *args, Uint32 packed, Sint32 *screen, Sint32 *world)Sparks swirl around a point that travels from the user to the anchor and gather into a Djinni, which sways for 16 ticks and bursts into motes. packed is a DJINNI_ENTRANCE() value: the Djinni's element, the side casting and the anchor; the anchor's screen point goes to screen and its world point to world.
voidbtEffectRunSlash (BATTLE_EFFECT_PARM *args)Six comets fly at each target, three ticks apart, and burst into a flash and sparks; the effect's variant picks one of three comets.
voidbtEffectRunShuriken (BATTLE_EFFECT_PARM *args)Four spinning shurikens fly at each target, five ticks apart, and vanish once past it.
voidbtEffectRunCrazyVoice (BATTLE_EFFECT_PARM *args)Ten musical notes fly slowly at each target and bounce off it, up or down at random.
voidbtEffectRunWingFlutter (BATTLE_EFFECT_PARM *args)Five yellow sparks fly level at each target, five ticks apart.
voidbtEffectRunWingStroke (BATTLE_EFFECT_PARM *args)Ten large yellow sparks stream level at each target, one a tick, spread up and down.
voidbtEffectRunWingBeat (BATTLE_EFFECT_PARM *args)Ten small yellow sparks stream level at each target, one a tick.
static inline voidbtEffectRunVolleyWithAction (BATTLE_EFFECT_PARM *args, Sint32 mode)Fires the volley from the user's leap pose, animated three times as fast.
voidbtEffectRunCuttingEdge (BATTLE_EFFECT_PARM *args)From the user's leap pose, one large comet in ice colours flies at each target and bursts into 80 sparks.
voidbtEffectRunHeatWave (BATTLE_EFFECT_PARM *args)From the user's leap pose, seven fireballs trailing embers fly at each target, two ticks apart, each bursting into 40 sparks.
voidbtEffectRunSleet (BATTLE_EFFECT_PARM *args)Thirty ice chips fall from high above the user onto each target.
voidbtEffectRunBlizzard (BATTLE_EFFECT_PARM *args)From the user's leap pose, sixty ice chips stream at each target, one a tick, scattered up and down, without knocking it back.
voidbtEffectRunBlazeRush (BATTLE_EFFECT_PARM *args)From the user's leap pose, seven fireballs trailing smoke fly level at each target, two ticks apart, scattered up and down, each bursting into 40 sparks.
voidbtEffectRunHydroSlash (BATTLE_EFFECT_PARM *args)From the user's leap pose, twenty blue bubbles stream at each target, one a tick, scattered up and down, each bursting into 40 drops of spray.
voidbtEffectRunDiamondDust (BATTLE_EFFECT_PARM *args)From the user's leap pose, thirty turning ice crystals stream at each target, two ticks apart, scattered up and down.
voidbtEffectRunBeastNeedle (BATTLE_EFFECT_PARM *args)Thirty white needles stream at each target, one a tick.
voidbtEffectRunPoisonSting (BATTLE_EFFECT_PARM *args)Thirty lime needles stream at each target, one a tick, and lime smoke billows where they land.
voidbtEffectRunStunSting (BATTLE_EFFECT_PARM *args)Thirty blue needles stream at each target, one a tick, and blue glints flash about it where they land.
voidbtEffectRunIceBlessing (BATTLE_EFFECT_PARM *args)Sixty ice chips stream at each target, one a tick, without knocking it back.
voidbtEffectRunChillBreath (BATTLE_EFFECT_PARM *args)Sixty ice chips stream at each target, one a tick, from the user's breath.
voidbtEffectRunProjectileVolley (BATTLE_EFFECT_PARM *args, Sint32 mode)Shots fly from the user to each target and burst into a flash and sparks when they pass it.
voidbtEffectHopBackToSpot (Sint32 id)Unused: nothing calls it.
voidbtEffectSetApproachMotion (Sint32 id, Sint32 targetId, Sint32 ticks, Sint32 rate)Sends a battler leaping rate percent of the way toward another, to arrive in the given ticks.

Description

The Djinni entrance that opens the Djinn effects; the projectile volleys, from Slash and Shuriken to the stings, the wing attacks and the fire and ice volleys of Cutting Edge, Heat Wave and Blizzard; and a battler sent leaping toward another. Part of battle_effect.c.

Macros in detail

DJINNI_ENTRANCE_SPARKS

#define DJINNI_ENTRANCE_SPARKS 32

The sparks that spin into the Djinni, the ticks their centre takes from the user to the anchor, and the depths that size them: one size smaller every DJINNI_SPARK_DEPTH_STEP from DJINNI_SPARK_DEPTH_NEAR, held below DJINNI_SPARK_DEPTH_FAR.

Referenced by btEffectRunDjinniEntrance().

Definition at line 19 of file battle_effect_projectiles.c.

DJINNI_ENTRANCE_TRAVEL_TICKS

#define DJINNI_ENTRANCE_TRAVEL_TICKS 40

Referenced by btEffectRunDjinniEntrance().

Definition at line 20 of file battle_effect_projectiles.c.

DJINNI_SPARK_DEPTH_NEAR

#define DJINNI_SPARK_DEPTH_NEAR 250

Referenced by btEffectRunDjinniEntrance().

Definition at line 21 of file battle_effect_projectiles.c.

DJINNI_SPARK_DEPTH_STEP

#define DJINNI_SPARK_DEPTH_STEP 64

Referenced by btEffectRunDjinniEntrance().

Definition at line 22 of file battle_effect_projectiles.c.

DJINNI_SPARK_DEPTH_FAR

#define DJINNI_SPARK_DEPTH_FAR 634

Referenced by btEffectRunDjinniEntrance().

Definition at line 23 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_PARTICLE_COUNT

#define PROJECTILE_VOLLEY_PARTICLE_COUNT PARTICLE_POOL_COUNT

The particle buffer at the map cell buffer: flashes from 0, sparks from 100, the smoke trails from 512, the falling-streak particles from 960.

Referenced by btEffectRunProjectileVolley().

Definition at line 551 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_FIRST_SPARK

#define PROJECTILE_VOLLEY_FIRST_SPARK 100

Referenced by btEffectRunProjectileVolley().

Definition at line 552 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_FIRST_TRAIL

#define PROJECTILE_VOLLEY_FIRST_TRAIL 512

Referenced by btEffectRunProjectileVolley().

Definition at line 553 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_FIRST_STREAK

#define PROJECTILE_VOLLEY_FIRST_STREAK 960

Referenced by btEffectRunProjectileVolley().

Definition at line 554 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_STREAKS

#define PROJECTILE_VOLLEY_STREAKS

Referenced by btEffectRunProjectileVolley().

Definition at line 555 of file battle_effect_projectiles.c.

SHORT_STREAK_WIDTH

#define SHORT_STREAK_WIDTH 17

The stings' short streak, then what each draws where it lands: Poison Sting's smoke, Stun Sting's glints.

Referenced by btEffectRunProjectileVolley().

Definition at line 559 of file battle_effect_projectiles.c.

SHORT_STREAK_HEIGHT

#define SHORT_STREAK_HEIGHT 2

Referenced by btEffectRunProjectileVolley().

Definition at line 560 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_STING_HIT_PICTURES

#define PROJECTILE_VOLLEY_STING_HIT_PICTURES PICTURE_BYTES(SHORT_STREAK)

Referenced by btEffectRunProjectileVolley().

Definition at line 561 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_HALVED_BUBBLE_PICTURES

#define PROJECTILE_VOLLEY_HALVED_BUBBLE_PICTURES 4096

Hydro Slash's bubble, BlueBeamSheet's first picture, decoded at the sprite sheet's start; its three pictures copied at every second byte after it, which nothing draws.

Referenced by btEffectRunProjectileVolley().

Definition at line 565 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_HALVED_BUBBLE_BYTES

#define PROJECTILE_VOLLEY_HALVED_BUBBLE_BYTES

Referenced by btEffectRunProjectileVolley().

Definition at line 566 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_SPARK_SPEED_SHIFT

#define PROJECTILE_VOLLEY_SPARK_SPEED_SHIFT 11

A hit's sparks fly at up to 4 pixels a tick each way, as a random -128 to 127 shifted up; Cutting Edge's at up to 8.

Referenced by btEffectRunProjectileVolley().

Definition at line 570 of file battle_effect_projectiles.c.

CUTTING_EDGE_SPARK_SPEED_SHIFT

#define CUTTING_EDGE_SPARK_SPEED_SHIFT 12

Referenced by btEffectRunProjectileVolley().

Definition at line 571 of file battle_effect_projectiles.c.

DRAW_ALTERNATE

#define DRAW_ALTERNATE (RamHeapSlots->ramCodePaired)

The second blitter, loaded again for each draw that needs its own.

Referenced by btEffectRunProjectileVolley().

Definition at line 583 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_STREAK_PICTURES

#define PROJECTILE_VOLLEY_STREAK_PICTURES 8192

wind streaks

Referenced by btEffectRunProjectileVolley().

Definition at line 585 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_DJINNI_PICTURE

#define PROJECTILE_VOLLEY_DJINNI_PICTURE 26048

the small Mercury Djinni

Referenced by btEffectRunProjectileVolley().

Definition at line 586 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_COMET_PICTURES

#define PROJECTILE_VOLLEY_COMET_PICTURES 4096

The comet's picture, its upper half, which is drawn again flipped for the lower.

Referenced by btEffectRunProjectileVolley().

Definition at line 590 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_FLASH_TURNED

#define PROJECTILE_VOLLEY_FLASH_TURNED

The hit flashes turned on their side, after the upright ones.

Referenced by btEffectRunProjectileVolley().

Definition at line 592 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_SMALL_SPARK_PICTURE_WIDTH

#define PROJECTILE_VOLLEY_SMALL_SPARK_PICTURE_WIDTH 12

The yellow spark sprite sheet: the small spark first, then the medium one, then the large one.

Referenced by btEffectRunProjectileVolley().

Definition at line 596 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_SMALL_SPARK_PICTURE_HEIGHT

#define PROJECTILE_VOLLEY_SMALL_SPARK_PICTURE_HEIGHT 8

Referenced by btEffectRunProjectileVolley().

Definition at line 597 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_MEDIUM_SPARK_PICTURE_WIDTH

#define PROJECTILE_VOLLEY_MEDIUM_SPARK_PICTURE_WIDTH 18

Referenced by btEffectRunProjectileVolley().

Definition at line 598 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_MEDIUM_SPARK_PICTURE_HEIGHT

#define PROJECTILE_VOLLEY_MEDIUM_SPARK_PICTURE_HEIGHT 13

Referenced by btEffectRunProjectileVolley().

Definition at line 599 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_LARGE_SPARK_PICTURE_WIDTH

#define PROJECTILE_VOLLEY_LARGE_SPARK_PICTURE_WIDTH 29

Referenced by btEffectRunProjectileVolley().

Definition at line 600 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_LARGE_SPARK_PICTURE_HEIGHT

#define PROJECTILE_VOLLEY_LARGE_SPARK_PICTURE_HEIGHT 23

Referenced by btEffectRunProjectileVolley().

Definition at line 601 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_SMALL_SPARK_PICTURE

#define PROJECTILE_VOLLEY_SMALL_SPARK_PICTURE 0

Referenced by btEffectRunProjectileVolley().

Definition at line 602 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_MEDIUM_SPARK_PICTURE

#define PROJECTILE_VOLLEY_MEDIUM_SPARK_PICTURE

Referenced by btEffectRunProjectileVolley().

Definition at line 603 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_LARGE_SPARK_PICTURE

#define PROJECTILE_VOLLEY_LARGE_SPARK_PICTURE

Referenced by btEffectRunProjectileVolley().

Definition at line 605 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_PELLET_SIZE

#define PROJECTILE_VOLLEY_PELLET_SIZE 8

Sleet's, Blizzard's, Ice Blessing's and Chill Breath's ice pellets, and Crazy Voice's musical notes, six pictures of ProjectileVolleyImage.

Referenced by btEffectRunProjectileVolley().

Definition at line 610 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_NOTE_WIDTH

#define PROJECTILE_VOLLEY_NOTE_WIDTH 8

Referenced by btEffectRunProjectileVolley().

Definition at line 611 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_NOTE_HEIGHT

#define PROJECTILE_VOLLEY_NOTE_HEIGHT 16

Referenced by btEffectRunProjectileVolley().

Definition at line 612 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_COMET_WIDTH

#define PROJECTILE_VOLLEY_COMET_WIDTH 32

The comets' width, and the shuriken's six pictures.

Referenced by btEffectRunProjectileVolley().

Definition at line 614 of file battle_effect_projectiles.c.

SHURIKEN_WIDTH

#define SHURIKEN_WIDTH 32

Referenced by btEffectRunProjectileVolley().

Definition at line 615 of file battle_effect_projectiles.c.

SHURIKEN_HEIGHT

#define SHURIKEN_HEIGHT 24

Referenced by btEffectRunProjectileVolley().

Definition at line 616 of file battle_effect_projectiles.c.

Enumerations in detail

SPIN_AXIS

enum SPIN_AXIS

The axis each of the Djinni entrance's sparks spins on, by its number.

EnumeratorValueDescription
SPIN_YAW
SPIN_PITCH
SPIN_ROLL
SPIN_PITCH_AND_ROLL

Definition at line 7 of file battle_effect_projectiles.c.

PROJECTILE_VOLLEY_COMET

enum PROJECTILE_VOLLEY_COMET

The volley's comets, its CometSheet resources: Slash, Wind Slash and Sonic Slash fire the one their variant picks.

EnumeratorValueDescription
PROJECTILE_VOLLEY_COMET_SLASHCometSheetA
PROJECTILE_VOLLEY_COMET_WIND_SLASHCometSheetB
PROJECTILE_VOLLEY_COMET_SONIC_SLASHCometSheetC, also Cutting Edge's

Definition at line 575 of file battle_effect_projectiles.c.

Functions in detail

btEffectRunDjinniEntrance

void btEffectRunDjinniEntrance(BATTLE_EFFECT_PARM *args, Uint32 packed, Sint32 *screen, Sint32 *world)

Sparks swirl around a point that travels from the user to the anchor and gather into a Djinni, which sways for 16 ticks and bursts into motes. packed is a DJINNI_ENTRANCE() value: the Djinni's element, the side casting and the anchor; the anchor's screen point goes to screen and its world point to world.

References btEffectPosProjectPoint(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btPaletteBrightenBattleBg(), btParticleAdvanceWithGravity2D(), btParticleAdvanceWithGravity3D(), btResourceLoadAndDecompress(), Sint32, syCloseEvent(), syCos(), syDecompressTaggedLZ(), syInitMatrix(), syLookAtLoad(), syMatrixTranslateVector(), syPopMatrix(), syPushMatrix(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotY(), syRotZ(), sySin(), sySoundPlayStub(), syWordsClear() and syWordsCopy().

Referenced by btEffectRunBind(), btEffectRunBurstShower(), btEffectRunCrystal(), btEffectRunDjinnBeams(), btEffectRunDjinniCharge(), btEffectRunDjinniSign(), btEffectRunFlurry(), btEffectRunGaspFamily(), btEffectRunGeode(), btEffectRunGround(), btEffectRunHail(), btEffectRunHealingMotes(), btEffectRunKite(), btEffectRunLobbedShells(), btEffectRunProjectileVolley(), btEffectRunSerac(), btEffectRunStatBoost(), btEffectRunTorch(), btEffectRunTumblingQuads(), btEffectRunTwistingColumn(), btEffectRunVine() and btEffectRunWindFunnel().

Definition at line 30 of file battle_effect_projectiles.c.

btEffectRunSlash

void btEffectRunSlash(BATTLE_EFFECT_PARM *args)

Six comets fly at each target, three ticks apart, and burst into a flash and sparks; the effect's variant picks one of three comets.

Abilities: Slash, Wind Slash, Sonic Slash.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 382 of file battle_effect_projectiles.c.

btEffectRunShuriken

void btEffectRunShuriken(BATTLE_EFFECT_PARM *args)

Four spinning shurikens fly at each target, five ticks apart, and vanish once past it.

Abilities: Shuriken.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 391 of file battle_effect_projectiles.c.

btEffectRunCrazyVoice

void btEffectRunCrazyVoice(BATTLE_EFFECT_PARM *args)

Ten musical notes fly slowly at each target and bounce off it, up or down at random.

Abilities: Crazy Voice.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 400 of file battle_effect_projectiles.c.

btEffectRunWingFlutter

void btEffectRunWingFlutter(BATTLE_EFFECT_PARM *args)

Five yellow sparks fly level at each target, five ticks apart.

Abilities: Wing Flutter.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 408 of file battle_effect_projectiles.c.

btEffectRunWingStroke

void btEffectRunWingStroke(BATTLE_EFFECT_PARM *args)

Ten large yellow sparks stream level at each target, one a tick, spread up and down.

Abilities: Wing Stroke.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 417 of file battle_effect_projectiles.c.

btEffectRunWingBeat

void btEffectRunWingBeat(BATTLE_EFFECT_PARM *args)

Ten small yellow sparks stream level at each target, one a tick.

Abilities: Wing Beat.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 425 of file battle_effect_projectiles.c.

btEffectRunVolleyWithAction

static inline void btEffectRunVolleyWithAction(BATTLE_EFFECT_PARM *args, Sint32 mode)

Fires the volley from the user's leap pose, animated three times as fast.

References btEffectRunProjectileVolley(), btObjectGetStub(), fdActorSelectAnimationStub(), fdActorSetAnimationSpeedStub() and Sint32.

Referenced by btEffectRunBlazeRush(), btEffectRunBlizzard(), btEffectRunCuttingEdge(), btEffectRunDiamondDust(), btEffectRunHeatWave() and btEffectRunHydroSlash().

Definition at line 431 of file battle_effect_projectiles.c.

btEffectRunCuttingEdge

void btEffectRunCuttingEdge(BATTLE_EFFECT_PARM *args)

From the user's leap pose, one large comet in ice colours flies at each target and bursts into 80 sparks.

Abilities: Cutting Edge.

References btEffectRunVolleyWithAction().

Referenced by BattleEffectHandlers.

Definition at line 447 of file battle_effect_projectiles.c.

btEffectRunHeatWave

void btEffectRunHeatWave(BATTLE_EFFECT_PARM *args)

From the user's leap pose, seven fireballs trailing embers fly at each target, two ticks apart, each bursting into 40 sparks.

Abilities: Heat Wave.

References btEffectRunVolleyWithAction().

Referenced by BattleEffectHandlers.

Definition at line 456 of file battle_effect_projectiles.c.

btEffectRunSleet

void btEffectRunSleet(BATTLE_EFFECT_PARM *args)

Thirty ice chips fall from high above the user onto each target.

Abilities: Sleet.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 464 of file battle_effect_projectiles.c.

btEffectRunBlizzard

void btEffectRunBlizzard(BATTLE_EFFECT_PARM *args)

From the user's leap pose, sixty ice chips stream at each target, one a tick, scattered up and down, without knocking it back.

Abilities: Blizzard.

References btEffectRunVolleyWithAction().

Referenced by BattleEffectHandlers.

Definition at line 473 of file battle_effect_projectiles.c.

btEffectRunBlazeRush

void btEffectRunBlazeRush(BATTLE_EFFECT_PARM *args)

From the user's leap pose, seven fireballs trailing smoke fly level at each target, two ticks apart, scattered up and down, each bursting into 40 sparks.

Abilities: Steel, Blaze Rush.

References btEffectRunVolleyWithAction().

Referenced by BattleEffectHandlers.

Definition at line 482 of file battle_effect_projectiles.c.

btEffectRunHydroSlash

void btEffectRunHydroSlash(BATTLE_EFFECT_PARM *args)

From the user's leap pose, twenty blue bubbles stream at each target, one a tick, scattered up and down, each bursting into 40 drops of spray.

Abilities: Hydro Slash.

References btEffectRunVolleyWithAction().

Referenced by BattleEffectHandlers.

Definition at line 491 of file battle_effect_projectiles.c.

btEffectRunDiamondDust

void btEffectRunDiamondDust(BATTLE_EFFECT_PARM *args)

From the user's leap pose, thirty turning ice crystals stream at each target, two ticks apart, scattered up and down.

Abilities: Diamond Dust.

References btEffectRunVolleyWithAction().

Referenced by BattleEffectHandlers.

Definition at line 500 of file battle_effect_projectiles.c.

btEffectRunBeastNeedle

void btEffectRunBeastNeedle(BATTLE_EFFECT_PARM *args)

Thirty white needles stream at each target, one a tick.

Abilities: Beast Needle.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 508 of file battle_effect_projectiles.c.

btEffectRunPoisonSting

void btEffectRunPoisonSting(BATTLE_EFFECT_PARM *args)

Thirty lime needles stream at each target, one a tick, and lime smoke billows where they land.

Abilities: Poison Sting.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 517 of file battle_effect_projectiles.c.

btEffectRunStunSting

void btEffectRunStunSting(BATTLE_EFFECT_PARM *args)

Thirty blue needles stream at each target, one a tick, and blue glints flash about it where they land.

Abilities: Stun Sting.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 526 of file battle_effect_projectiles.c.

btEffectRunIceBlessing

void btEffectRunIceBlessing(BATTLE_EFFECT_PARM *args)

Sixty ice chips stream at each target, one a tick, without knocking it back. The Broken Seal plays it for Ice Blessing, whose three ability slots The Lost Age calls Ice Breath.

Abilities: Ice Breath, Blue Dragon.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 536 of file battle_effect_projectiles.c.

btEffectRunChillBreath

void btEffectRunChillBreath(BATTLE_EFFECT_PARM *args)

Sixty ice chips stream at each target, one a tick, from the user's breath.

Abilities: Chill Breath.

References btEffectRunProjectileVolley().

Referenced by BattleEffectHandlers.

Definition at line 544 of file battle_effect_projectiles.c.

btEffectRunProjectileVolley

void btEffectRunProjectileVolley(BATTLE_EFFECT_PARM *args, Sint32 mode)

Shots fly from the user to each target and burst into a flash and sparks when they pass it. The hit sound plays at most once every 8 ticks.

References BattleEffectGlintPictureHeights, BattleEffectGlintPictures, BattleEffectGlintPictureWidths, btCameraShake(), btEffectPosProjectBattler(), btEffectPosProjectPoint(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btObjectGetStub(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), btUnitGetEffectHeightStub(), PrismShardHeights, PrismShardPictures, PrismShardWidths, ProjectileVolleyCometHeights, ProjectileVolleyFlashHeights, ProjectileVolleyFlashPictures, ProjectileVolleyFlashRises, ProjectileVolleyFlashSteps, ProjectileVolleyFlashWidths, ProjectileVolleyGlintFlips, ProjectileVolleyModes, ProjectileVolleyPelletPictures, Sint32, syCos(), syHeapSlotRelease(), syInitMatrix(), syLookAtLoad(), syRandom(), syResourceGetTableEntry(), sySetEvent(), sySin() and sySoundPlayStub().

Referenced by btEffectRunBeastNeedle(), btEffectRunCastingImpact(), btEffectRunChillBreath(), btEffectRunCrazyVoice(), btEffectRunIceBlessing(), btEffectRunPoisonSting(), btEffectRunShuriken(), btEffectRunSlash(), btEffectRunSleet(), btEffectRunStunSting(), btEffectRunVolleyWithAction(), btEffectRunWingBeat(), btEffectRunWingFlutter() and btEffectRunWingStroke().

Definition at line 620 of file battle_effect_projectiles.c.

btEffectHopBackToSpot

void btEffectHopBackToSpot(Sint32 id)

Unused: nothing calls it. Sends a unit back to its place (its anchor) with a hop.

References btObjectGetStub(), fdActorSelectAnimationStub() and Sint32.

Definition at line 1646 of file battle_effect_projectiles.c.

btEffectSetApproachMotion

void btEffectSetApproachMotion(Sint32 id, Sint32 targetId, Sint32 ticks, Sint32 rate)

Sends a battler leaping rate percent of the way toward another, to arrive in the given ticks.

References btObjectGetStub(), fdActorSelectAnimationStub(), Sint32 and sySquartIWRAM().

Referenced by btEffectRunBackstab(), btEffectRunBreaths(), btEffectRunDiamondBerg(), btEffectRunGaspFamily(), btEffectRunMadZephyr(), btEffectRunOdyssey(), btEffectRunPlumeEdge(), btEffectRunRadiantFire(), btEffectRunRushingStrike() and btEffectRunTripleChomp().

Definition at line 1665 of file battle_effect_projectiles.c.

On this page

MacrosEnumerationsFunctionsDescriptionMacros in detailDJINNI_ENTRANCE_SPARKSDJINNI_ENTRANCE_TRAVEL_TICKSDJINNI_SPARK_DEPTH_NEARDJINNI_SPARK_DEPTH_STEPDJINNI_SPARK_DEPTH_FARPROJECTILE_VOLLEY_PARTICLE_COUNTPROJECTILE_VOLLEY_FIRST_SPARKPROJECTILE_VOLLEY_FIRST_TRAILPROJECTILE_VOLLEY_FIRST_STREAKPROJECTILE_VOLLEY_STREAKSSHORT_STREAK_WIDTHSHORT_STREAK_HEIGHTPROJECTILE_VOLLEY_STING_HIT_PICTURESPROJECTILE_VOLLEY_HALVED_BUBBLE_PICTURESPROJECTILE_VOLLEY_HALVED_BUBBLE_BYTESPROJECTILE_VOLLEY_SPARK_SPEED_SHIFTCUTTING_EDGE_SPARK_SPEED_SHIFTDRAW_ALTERNATEPROJECTILE_VOLLEY_STREAK_PICTURESPROJECTILE_VOLLEY_DJINNI_PICTUREPROJECTILE_VOLLEY_COMET_PICTURESPROJECTILE_VOLLEY_FLASH_TURNEDPROJECTILE_VOLLEY_SMALL_SPARK_PICTURE_WIDTHPROJECTILE_VOLLEY_SMALL_SPARK_PICTURE_HEIGHTPROJECTILE_VOLLEY_MEDIUM_SPARK_PICTURE_WIDTHPROJECTILE_VOLLEY_MEDIUM_SPARK_PICTURE_HEIGHTPROJECTILE_VOLLEY_LARGE_SPARK_PICTURE_WIDTHPROJECTILE_VOLLEY_LARGE_SPARK_PICTURE_HEIGHTPROJECTILE_VOLLEY_SMALL_SPARK_PICTUREPROJECTILE_VOLLEY_MEDIUM_SPARK_PICTUREPROJECTILE_VOLLEY_LARGE_SPARK_PICTUREPROJECTILE_VOLLEY_PELLET_SIZEPROJECTILE_VOLLEY_NOTE_WIDTHPROJECTILE_VOLLEY_NOTE_HEIGHTPROJECTILE_VOLLEY_COMET_WIDTHSHURIKEN_WIDTHSHURIKEN_HEIGHTEnumerations in detailSPIN_AXISPROJECTILE_VOLLEY_COMETFunctions in detailbtEffectRunDjinniEntrancebtEffectRunSlashbtEffectRunShurikenbtEffectRunCrazyVoicebtEffectRunWingFlutterbtEffectRunWingStrokebtEffectRunWingBeatbtEffectRunVolleyWithActionbtEffectRunCuttingEdgebtEffectRunHeatWavebtEffectRunSleetbtEffectRunBlizzardbtEffectRunBlazeRushbtEffectRunHydroSlashbtEffectRunDiamondDustbtEffectRunBeastNeedlebtEffectRunPoisonStingbtEffectRunStunStingbtEffectRunIceBlessingbtEffectRunChillBreathbtEffectRunProjectileVolleybtEffectHopBackToSpotbtEffectSetApproachMotion