Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_gasp.c

The body that sixteen abilities' effects share, named for Gasp, the first of them. More…

Included by battle_effect.c.

Macros

NameDescription
#defineGASP_DJINNI_PICTURE 26048Where the small Djinni sprite sheet is decoded in the effect's pictures, as The Broken Seal places it.
#defineSMALL_DJINNI (state) ((state)->sheet + GASP_DJINNI_PICTURE)The small Djinni's picture, SMALL_DJINNI_WIDTH by SMALL_DJINNI_HEIGHT, drawn onto the canvas.
#definePLACE_PARTICLE (p)Sets the transform for one of Beat Dance's and Clarion Cry's spinning notes: at its position, half as wide (the canvas holds every other column), turned by z.
#defineGASP_CENTRE 63The last three particles: the point a mode centres on (Shine's Djinni in flight, Emu's target), Shine's fall towards the target, and where its flash strikes.
#defineGASP_FALL 62
#defineGASP_FLASH 61
#defineGASP_MOTES 63The motes of Djinn Counter's blow and of Reflux's and Counter-rush's swirl: every particle but the last.
#defineGASP_DJINNI_SLOT 64Mold's 40x40 Djinni is copied to the middle of a 64x64 picture.
#defineGASP_DJINNI_SLOT_MARGIN ((GASP_DJINNI_SLOT - DJINNI_WIDTH) / 2)
#defineGASP_BOLT_PICTURE_COUNT 4Call Dullahan's four bolts, LightningBoltSheet's pictures, each copied into a 32x128 picture GASP_BOLT_PICTURE_INSET pixels in from its left.
#defineGASP_BOLT_PICTURE_WIDTH 32
#defineGASP_BOLT_PICTURE_HEIGHT 128
#defineGASP_BOLT_PICTURE_INSET
#defineGASP_BOLT_PICTURE_BYTES
#defineGASP_FAMILY_VENUS_DJINN_PICTURES 4096Where VenusDjinnSheet, CornerGlowSheet and FireRingTexture are decoded in the effect's pictures.
#defineGASP_FAMILY_CORNER_GLOW_PICTURES 16384
#defineGASP_FIRE_RING 12416
#defineGASP_TEXTURE_BYTES (32 * 32)The textures the model layer turns, 32 by 32: Gasp's two burning skulls, and the three music notes of Lull, Beat Dance and Clarion Cry.
#defineGASP_SEEDS 16The particles Gasp and Shine set up at their start, more than either draws: Gasp's GASP_SKULLS and Shine's GASP_SHINE_RAYS.
#defineGASP_TICKS 84Each mode's length in ticks.
#defineGASP_UNUSED_TICKS 48
#defineGASP_MOLD_TICKS 42
#defineGASP_LULL_TICKS 80
#defineGASP_BEAT_DANCE_TICKS 64
#defineGASP_CLARION_CRY_TICKS 64
#defineGASP_CAGE_TICKS 40
#defineGASP_ELEMENT_SWAP_TICKS 48
#defineGASP_PSY_BOOST_TICKS 48
#defineGASP_SHINE_TICKS 82
#defineGASP_DULLAHAN_TICKS 60
#defineGASP_COUNTER_RUSH_TICKS 76
#defineGASP_DEMON_EYE_TICKS 16
#defineGASP_EMU_TICKS 41
#defineGASP_REFLUX_TICKS 76
#defineGASP_DJINN_COUNTER_TICKS 70
#defineGASP_DJINNI_SWAY 20Gasp and Lull: the small Djinni sways GASP_DJINNI_SWAY pixels either side and bobs, a 32nd of a turn a tick.
#defineGASP_SKULLS 6
#defineGASP_SKULL_TICKS 32
#defineGASP_SKULL_SCALE (toFIXED(1875) / 4096)
#defineGASP_CRY_TICK 4Gasp: the beast's cry at GASP_CRY_TICK; at GASP_RISE_TICK the battle shows the damage and the Djinni rises away, two pixels a tick.
#defineGASP_RISE_TICK 48
#defineGASP_LULL_RISE_TICK 44
#defineGASP_REFLUX_RADIUS 12Reflux: the Djinni circles wider until GASP_REFLUX_RADIUS.
#defineGASP_SWIRL_MOTES 48
#defineGASP_SWIRL_MOTE_TICKS 32
#defineGASP_SWIRL_SCALE (toFIXED(375) / 512)
#defineGASP_SWIRL_GROWTH (GASP_SWIRL_SCALE / GASP_SWIRL_GROW_TICKS)The swirl grows to its full scale over its first 32 ticks, and shrinks away twice as fast.
#defineGASP_SWIRL_SHRINK (GASP_SWIRL_SCALE / 16)
#defineGASP_SWIRL_GROW_TICKS 32
#defineGASP_SWIRL_SHRINK_TICK 60The swirl shrinks from GASP_SWIRL_SHRINK_TICK for Reflux and Counter-rush, and from GASP_COUNTER_SHRINK_TICK for Djinn Counter.
#defineGASP_COUNTER_SHRINK_TICK 40
#defineGASP_REFLUX_SET_TICK 62
#defineGASP_COUNTER_STREAK_TICK 32Djinn Counter: from GASP_COUNTER_STREAK_TICK the Djinni streaks to the target, a step of GaspFamilyStreakSteps a tick up to the last of its GASP_COUNTER_STREAK_STAGES, and the blow lands at GASP_COUNTER_BLOW_TICK.
#defineGASP_COUNTER_STREAK_STAGES 8
#defineGASP_COUNTER_BLOW_TICK 38
#defineGASP_SHINE_GLIDE 40Shine: the Djinni glides a GASP_SHINE_GLIDE-th of the way to over the user a tick, then falls onto the target a GASP_SHINE_FALL-th of the way more each tick, turning rays of light about it.
#defineGASP_SHINE_FALL 32
#defineGASP_SHINE_RAYS 8
#defineGASP_SHINE_RAY_TICKS 32
#defineGASP_SHINE_RAY_SCROLL_MASK 0x1f
#defineGASP_SHINE_FALL_TICK 48Shine's fall starts at GASP_SHINE_FALL_TICK and it strikes at GASP_SHINE_STRIKE_TICK, where three rings flare, each GASP_SHINE_RING_STEP ticks after the last.
#defineGASP_SHINE_STRIKE_TICK 55
#defineGASP_SHINE_RING_STEP 4
#defineGASP_LULL_NOTES 12Lull: a ring of music notes, leaning back GASP_LULL_TILT (about 100 degrees) and righting itself a 1024th of a turn a tick, turning about 2 degrees a tick, fades after GASP_LULL_RING_TICKS.
#defineGASP_LULL_RING_TICKS 64
#defineGASP_LULL_TILT 18288
#defineGASP_MOLD_SHRINK 4592Mold: the Djinni's sprite shrinks GASP_MOLD_SHRINK a tick (about 7 percent of its size); for its first GASP_MOLD_SLOW_FADE_TICKS the canvas keeps three quarters of each pixel, then half.
#defineGASP_MOLD_SLOW_FADE_TICKS 24
#defineGASP_MOLD_SHRINK_TICK 16Mold's sprite shrinks from GASP_MOLD_SHRINK_TICK; the sound plays at GASP_MOLD_SOUND_TICK and the target flashes white at GASP_MOLD_TINT_TICK.
#defineGASP_MOLD_SHRINK_TICKS 64
#defineGASP_MOLD_SOUND_TICK 14
#defineGASP_MOLD_TINT_TICK 24
#defineGASP_EMU_PUFFS 32Emu: puffs of dust trail the bird, one each two ticks for its first ten; the blow scatters motes, each at least GASP_EMU_MOTE_SPEED_MIN fast.
#defineGASP_EMU_MOTES 256
#defineGASP_EMU_MOTE_SPEED_MIN 64
#defineGASP_EMU_BLOW_TICK 10The user reaches the target and strikes at GASP_EMU_BLOW_TICK; the ring of fire fades from GASP_EMU_FADE_TICK.
#defineGASP_EMU_FADE_TICK 16
#defineGASP_NOTE_SEEDS 32Beat Dance and Clarion Cry: the notes that fly from their unit, one every two ticks, each for GASP_NOTE_TICKS before it fades, at least GASP_NOTE_SPEED_MIN fast.
#defineGASP_NOTES 12
#defineGASP_NOTE_TICKS 24
#defineGASP_NOTE_SPEED_MIN 128
#defineGASP_DULLAHAN_SPARKS 128Call Dullahan: the sparks his bolt scatters, each at least GASP_DULLAHAN_SPARK_SPEED_MIN fast, and the first of them drawn; each bolt flies out GASP_DULLAHAN_REACH steps, turning GASP_DULLAHAN_SWING (about 265 degrees) as it goes.
#defineGASP_DULLAHAN_SPARKS_DRAWN 64
#defineGASP_DULLAHAN_SPARK_SPEED_MIN 32
#defineGASP_DULLAHAN_REACH 80
#defineGASP_DULLAHAN_SWING 48152
#defineGASP_DULLAHAN_LEAP_TICK 14The user's leap is held until GASP_DULLAHAN_LEAP_TICK.
#defineGASP_DULLAHAN_GROW_TICKS 24
#defineGASP_DULLAHAN_SWING_TICK 22
#defineGASP_DULLAHAN_STRIKE_TICK 26
#defineGASP_DULLAHAN_SPARKS_TICK 28
#defineGASP_DULLAHAN_SHRINK_TICK 32
#defineGASP_CAGE_RINGS 8Cage: its GASP_CAGE_RINGS rings lean, the first GASP_CAGE_TILT (about 22 degrees) and each next a further eighth of a turn, and close on the target from GASP_CAGE_CLOSE_TICK, each two ticks after the last; the battle shows the damage at GASP_CAGE_DAMAGE_TICK.
#defineGASP_CAGE_TILT 4000
#defineGASP_CAGE_CLOSE_TICK 16
#defineGASP_CAGE_DAMAGE_TICK 26
#defineGASP_SWAP_MOTE_SHIFT 4Element Swap: a mote's distance from the user is kept in sixteenths of a pixel, GASP_SWAP_MOTE_SHIFT bits of fraction.
#defineGASP_PSY_BOOST_RING_TICKS 16Psy Boost: each of its two rings shrinks onto the user over GASP_PSY_BOOST_RING_TICKS.
#defineGASP_SWAP_RING_TICKS 16Element Swap and Psy Boost: a ring shrinks onto the user over GASP_SWAP_RING_TICKS (Element Swap's motes close in over the same), a glow turns there from GASP_GLOW_START for GASP_GLOW_TICKS, the target flashes white at GASP_GLOW_TINT_TICK, and the battle shows the effect at GASP_GLOW_DAMAGE_TICK.
#defineGASP_GLOW_START 12
#defineGASP_GLOW_TICKS 32
#defineGASP_GLOW_TINT_TICK 16
#defineGASP_GLOW_DAMAGE_TICK 28
#defineGASP_SWAP_COLORS_START 8
#defineGASP_SWAP_COLOR_TICKS 8
#defineGASP_UNUSED_BRIGHTEN_TICK 32The unused mode: the colours brighten from GASP_UNUSED_BRIGHTEN_TICK, twice as fast from GASP_UNUSED_FAST_TICK.
#defineGASP_UNUSED_FAST_TICK 41
#defineGASP_DEMON_EYE_FLASH_TICK 8Demon Eye: the targets flash at GASP_DEMON_EYE_FLASH_TICK.

Functions

NameDescription
voidbtEffectRunGaspFamily (BATTLE_EFFECT_PARM *args, Sint32 mode)The shared body of sixteen abilities' effects, named for the first; the wrappers in battle_effect_rime.c pick a GASP_MODE: Gasp, Reflux, Djinn Counter, Mold and Meld, Shine, Lull, Counter-rush, Demon Eye, Emu and its kind's four other abilities, Call Dullahan and Formina Sage, Beat Dance, Element Swap, Cage, Clarion Cry and Psy Boost.

Description

The body that sixteen abilities' effects share, named for Gasp, the first of them. Part of battle_effect.c.

Macros in detail

GASP_DJINNI_PICTURE

#define GASP_DJINNI_PICTURE 26048

Where the small Djinni sprite sheet is decoded in the effect's pictures, as The Broken Seal places it.

Definition at line 6 of file battle_effect_gasp.c.

SMALL_DJINNI

#define SMALL_DJINNI(state) ((state)->sheet + GASP_DJINNI_PICTURE)

The small Djinni's picture, SMALL_DJINNI_WIDTH by SMALL_DJINNI_HEIGHT, drawn onto the canvas.

Referenced by btEffectRunGaspFamily().

Definition at line 9 of file battle_effect_gasp.c.

PLACE_PARTICLE

#define PLACE_PARTICLE(p)

Sets the transform for one of Beat Dance's and Clarion Cry's spinning notes: at its position, half as wide (the canvas holds every other column), turned by z.

Referenced by btEffectRunGaspFamily().

Definition at line 13 of file battle_effect_gasp.c.

GASP_CENTRE

#define GASP_CENTRE 63

The last three particles: the point a mode centres on (Shine's Djinni in flight, Emu's target), Shine's fall towards the target, and where its flash strikes.

Referenced by btEffectRunGaspFamily().

Definition at line 25 of file battle_effect_gasp.c.

GASP_FALL

#define GASP_FALL 62

Referenced by btEffectRunGaspFamily().

Definition at line 26 of file battle_effect_gasp.c.

GASP_FLASH

#define GASP_FLASH 61

Referenced by btEffectRunGaspFamily().

Definition at line 27 of file battle_effect_gasp.c.

GASP_MOTES

#define GASP_MOTES 63

The motes of Djinn Counter's blow and of Reflux's and Counter-rush's swirl: every particle but the last.

Referenced by btEffectRunGaspFamily().

Definition at line 30 of file battle_effect_gasp.c.

GASP_DJINNI_SLOT

#define GASP_DJINNI_SLOT 64

Mold's 40x40 Djinni is copied to the middle of a 64x64 picture.

Referenced by btEffectRunGaspFamily().

Definition at line 32 of file battle_effect_gasp.c.

GASP_DJINNI_SLOT_MARGIN

#define GASP_DJINNI_SLOT_MARGIN ((GASP_DJINNI_SLOT - DJINNI_WIDTH) / 2)

Referenced by btEffectRunGaspFamily().

Definition at line 33 of file battle_effect_gasp.c.

GASP_BOLT_PICTURE_COUNT

#define GASP_BOLT_PICTURE_COUNT 4

Call Dullahan's four bolts, LightningBoltSheet's pictures, each copied into a 32x128 picture GASP_BOLT_PICTURE_INSET pixels in from its left.

Referenced by btEffectRunGaspFamily().

Definition at line 36 of file battle_effect_gasp.c.

GASP_BOLT_PICTURE_WIDTH

#define GASP_BOLT_PICTURE_WIDTH 32

Referenced by btEffectRunGaspFamily().

Definition at line 37 of file battle_effect_gasp.c.

GASP_BOLT_PICTURE_HEIGHT

#define GASP_BOLT_PICTURE_HEIGHT 128

Definition at line 38 of file battle_effect_gasp.c.

GASP_BOLT_PICTURE_INSET

#define GASP_BOLT_PICTURE_INSET

Referenced by btEffectRunGaspFamily().

Definition at line 39 of file battle_effect_gasp.c.

GASP_BOLT_PICTURE_BYTES

#define GASP_BOLT_PICTURE_BYTES

Referenced by btEffectRunGaspFamily().

Definition at line 41 of file battle_effect_gasp.c.

GASP_FAMILY_VENUS_DJINN_PICTURES

#define GASP_FAMILY_VENUS_DJINN_PICTURES 4096

Where VenusDjinnSheet, CornerGlowSheet and FireRingTexture are decoded in the effect's pictures.

Referenced by btEffectRunGaspFamily().

Definition at line 46 of file battle_effect_gasp.c.

GASP_FAMILY_CORNER_GLOW_PICTURES

#define GASP_FAMILY_CORNER_GLOW_PICTURES 16384

Referenced by btEffectRunGaspFamily().

Definition at line 47 of file battle_effect_gasp.c.

GASP_FIRE_RING

#define GASP_FIRE_RING 12416

Referenced by btEffectRunGaspFamily().

Definition at line 48 of file battle_effect_gasp.c.

GASP_TEXTURE_BYTES

#define GASP_TEXTURE_BYTES (32 * 32)

The textures the model layer turns, 32 by 32: Gasp's two burning skulls, and the three music notes of Lull, Beat Dance and Clarion Cry.

Referenced by btEffectRunGaspFamily().

Definition at line 52 of file battle_effect_gasp.c.

GASP_SEEDS

#define GASP_SEEDS 16

The particles Gasp and Shine set up at their start, more than either draws: Gasp's GASP_SKULLS and Shine's GASP_SHINE_RAYS.

Referenced by btEffectRunGaspFamily().

Definition at line 55 of file battle_effect_gasp.c.

GASP_TICKS

#define GASP_TICKS 84

Each mode's length in ticks.

Referenced by btEffectRunGaspFamily().

Definition at line 58 of file battle_effect_gasp.c.

GASP_UNUSED_TICKS

#define GASP_UNUSED_TICKS 48

Referenced by btEffectRunGaspFamily().

Definition at line 59 of file battle_effect_gasp.c.

GASP_MOLD_TICKS

#define GASP_MOLD_TICKS 42

Referenced by btEffectRunGaspFamily().

Definition at line 60 of file battle_effect_gasp.c.

GASP_LULL_TICKS

#define GASP_LULL_TICKS 80

Referenced by btEffectRunGaspFamily().

Definition at line 61 of file battle_effect_gasp.c.

GASP_BEAT_DANCE_TICKS

#define GASP_BEAT_DANCE_TICKS 64

Referenced by btEffectRunGaspFamily().

Definition at line 62 of file battle_effect_gasp.c.

GASP_CLARION_CRY_TICKS

#define GASP_CLARION_CRY_TICKS 64

Referenced by btEffectRunGaspFamily().

Definition at line 63 of file battle_effect_gasp.c.

GASP_CAGE_TICKS

#define GASP_CAGE_TICKS 40

Referenced by btEffectRunGaspFamily().

Definition at line 64 of file battle_effect_gasp.c.

GASP_ELEMENT_SWAP_TICKS

#define GASP_ELEMENT_SWAP_TICKS 48

Referenced by btEffectRunGaspFamily().

Definition at line 65 of file battle_effect_gasp.c.

GASP_PSY_BOOST_TICKS

#define GASP_PSY_BOOST_TICKS 48

Referenced by btEffectRunGaspFamily().

Definition at line 66 of file battle_effect_gasp.c.

GASP_SHINE_TICKS

#define GASP_SHINE_TICKS 82

Referenced by btEffectRunGaspFamily().

Definition at line 67 of file battle_effect_gasp.c.

GASP_DULLAHAN_TICKS

#define GASP_DULLAHAN_TICKS 60

Referenced by btEffectRunGaspFamily().

Definition at line 68 of file battle_effect_gasp.c.

GASP_COUNTER_RUSH_TICKS

#define GASP_COUNTER_RUSH_TICKS 76

Referenced by btEffectRunGaspFamily().

Definition at line 69 of file battle_effect_gasp.c.

GASP_DEMON_EYE_TICKS

#define GASP_DEMON_EYE_TICKS 16

Referenced by btEffectRunGaspFamily().

Definition at line 70 of file battle_effect_gasp.c.

GASP_EMU_TICKS

#define GASP_EMU_TICKS 41

Referenced by btEffectRunGaspFamily().

Definition at line 71 of file battle_effect_gasp.c.

GASP_REFLUX_TICKS

#define GASP_REFLUX_TICKS 76

Referenced by btEffectRunGaspFamily().

Definition at line 72 of file battle_effect_gasp.c.

GASP_DJINN_COUNTER_TICKS

#define GASP_DJINN_COUNTER_TICKS 70

Referenced by btEffectRunGaspFamily().

Definition at line 73 of file battle_effect_gasp.c.

GASP_DJINNI_SWAY

#define GASP_DJINNI_SWAY 20

Gasp and Lull: the small Djinni sways GASP_DJINNI_SWAY pixels either side and bobs, a 32nd of a turn a tick. Gasp's burning skulls rise one every 8 ticks, each for GASP_SKULL_TICKS before it fades.

Referenced by btEffectRunGaspFamily().

Definition at line 78 of file battle_effect_gasp.c.

GASP_SKULLS

#define GASP_SKULLS 6

Referenced by btEffectRunGaspFamily().

Definition at line 79 of file battle_effect_gasp.c.

GASP_SKULL_TICKS

#define GASP_SKULL_TICKS 32

Referenced by btEffectRunGaspFamily().

Definition at line 80 of file battle_effect_gasp.c.

GASP_SKULL_SCALE

#define GASP_SKULL_SCALE (toFIXED(1875) / 4096)

Referenced by btEffectRunGaspFamily().

Definition at line 81 of file battle_effect_gasp.c.

GASP_CRY_TICK

#define GASP_CRY_TICK 4

Gasp: the beast's cry at GASP_CRY_TICK; at GASP_RISE_TICK the battle shows the damage and the Djinni rises away, two pixels a tick. Lull's Djinni rises from GASP_LULL_RISE_TICK.

Referenced by btEffectRunGaspFamily().

Definition at line 85 of file battle_effect_gasp.c.

GASP_RISE_TICK

#define GASP_RISE_TICK 48

Referenced by btEffectRunGaspFamily().

Definition at line 86 of file battle_effect_gasp.c.

GASP_LULL_RISE_TICK

#define GASP_LULL_RISE_TICK 44

Referenced by btEffectRunGaspFamily().

Definition at line 87 of file battle_effect_gasp.c.

GASP_REFLUX_RADIUS

#define GASP_REFLUX_RADIUS 12

Reflux: the Djinni circles wider until GASP_REFLUX_RADIUS. Reflux and Counter-rush: of GASP_MOTES set up, GASP_SWIRL_MOTES close in on the swirl, each for GASP_SWIRL_MOTE_TICKS, as the swirl grows to GASP_SWIRL_SCALE.

Referenced by btEffectRunGaspFamily().

Definition at line 92 of file battle_effect_gasp.c.

GASP_SWIRL_MOTES

#define GASP_SWIRL_MOTES 48

Referenced by btEffectRunGaspFamily().

Definition at line 93 of file battle_effect_gasp.c.

GASP_SWIRL_MOTE_TICKS

#define GASP_SWIRL_MOTE_TICKS 32

Referenced by btEffectRunGaspFamily().

Definition at line 94 of file battle_effect_gasp.c.

GASP_SWIRL_SCALE

#define GASP_SWIRL_SCALE (toFIXED(375) / 512)

Referenced by btEffectRunGaspFamily().

Definition at line 95 of file battle_effect_gasp.c.

GASP_SWIRL_GROWTH

#define GASP_SWIRL_GROWTH (GASP_SWIRL_SCALE / GASP_SWIRL_GROW_TICKS)

The swirl grows to its full scale over its first 32 ticks, and shrinks away twice as fast.

Referenced by btEffectRunGaspFamily().

Definition at line 98 of file battle_effect_gasp.c.

GASP_SWIRL_SHRINK

#define GASP_SWIRL_SHRINK (GASP_SWIRL_SCALE / 16)

Referenced by btEffectRunGaspFamily().

Definition at line 99 of file battle_effect_gasp.c.

GASP_SWIRL_GROW_TICKS

#define GASP_SWIRL_GROW_TICKS 32

Referenced by btEffectRunGaspFamily().

Definition at line 100 of file battle_effect_gasp.c.

GASP_SWIRL_SHRINK_TICK

#define GASP_SWIRL_SHRINK_TICK 60

The swirl shrinks from GASP_SWIRL_SHRINK_TICK for Reflux and Counter-rush, and from GASP_COUNTER_SHRINK_TICK for Djinn Counter. Reflux's Djinni circles until GASP_REFLUX_SET_TICK, when it goes and the Djinni's sound plays.

Referenced by btEffectRunGaspFamily().

Definition at line 104 of file battle_effect_gasp.c.

GASP_COUNTER_SHRINK_TICK

#define GASP_COUNTER_SHRINK_TICK 40

Referenced by btEffectRunGaspFamily().

Definition at line 105 of file battle_effect_gasp.c.

GASP_REFLUX_SET_TICK

#define GASP_REFLUX_SET_TICK 62

Referenced by btEffectRunGaspFamily().

Definition at line 106 of file battle_effect_gasp.c.

GASP_COUNTER_STREAK_TICK

#define GASP_COUNTER_STREAK_TICK 32

Djinn Counter: from GASP_COUNTER_STREAK_TICK the Djinni streaks to the target, a step of GaspFamilyStreakSteps a tick up to the last of its GASP_COUNTER_STREAK_STAGES, and the blow lands at GASP_COUNTER_BLOW_TICK.

Referenced by btEffectRunGaspFamily().

Definition at line 110 of file battle_effect_gasp.c.

GASP_COUNTER_STREAK_STAGES

#define GASP_COUNTER_STREAK_STAGES 8

Referenced by btEffectRunGaspFamily().

Definition at line 111 of file battle_effect_gasp.c.

GASP_COUNTER_BLOW_TICK

#define GASP_COUNTER_BLOW_TICK 38

Referenced by btEffectRunGaspFamily().

Definition at line 112 of file battle_effect_gasp.c.

GASP_SHINE_GLIDE

#define GASP_SHINE_GLIDE 40

Shine: the Djinni glides a GASP_SHINE_GLIDE-th of the way to over the user a tick, then falls onto the target a GASP_SHINE_FALL-th of the way more each tick, turning rays of light about it. Each ray's texture scrolls two texels a tick, seven behind the last ray's, within the 32 texels its mesh spans.

Referenced by btEffectRunGaspFamily().

Definition at line 118 of file battle_effect_gasp.c.

GASP_SHINE_FALL

#define GASP_SHINE_FALL 32

Referenced by btEffectRunGaspFamily().

Definition at line 119 of file battle_effect_gasp.c.

GASP_SHINE_RAYS

#define GASP_SHINE_RAYS 8

Referenced by btEffectRunGaspFamily().

Definition at line 120 of file battle_effect_gasp.c.

GASP_SHINE_RAY_TICKS

#define GASP_SHINE_RAY_TICKS 32

Referenced by btEffectRunGaspFamily().

Definition at line 121 of file battle_effect_gasp.c.

GASP_SHINE_RAY_SCROLL_MASK

#define GASP_SHINE_RAY_SCROLL_MASK 0x1f

Referenced by btEffectRunGaspFamily().

Definition at line 122 of file battle_effect_gasp.c.

GASP_SHINE_FALL_TICK

#define GASP_SHINE_FALL_TICK 48

Shine's fall starts at GASP_SHINE_FALL_TICK and it strikes at GASP_SHINE_STRIKE_TICK, where three rings flare, each GASP_SHINE_RING_STEP ticks after the last.

Referenced by btEffectRunGaspFamily().

Definition at line 126 of file battle_effect_gasp.c.

GASP_SHINE_STRIKE_TICK

#define GASP_SHINE_STRIKE_TICK 55

Referenced by btEffectRunGaspFamily().

Definition at line 127 of file battle_effect_gasp.c.

GASP_SHINE_RING_STEP

#define GASP_SHINE_RING_STEP 4

Referenced by btEffectRunGaspFamily().

Definition at line 128 of file battle_effect_gasp.c.

GASP_LULL_NOTES

#define GASP_LULL_NOTES 12

Lull: a ring of music notes, leaning back GASP_LULL_TILT (about 100 degrees) and righting itself a 1024th of a turn a tick, turning about 2 degrees a tick, fades after GASP_LULL_RING_TICKS.

Referenced by btEffectRunGaspFamily().

Definition at line 133 of file battle_effect_gasp.c.

GASP_LULL_RING_TICKS

#define GASP_LULL_RING_TICKS 64

Referenced by btEffectRunGaspFamily().

Definition at line 134 of file battle_effect_gasp.c.

GASP_LULL_TILT

#define GASP_LULL_TILT 18288

Referenced by btEffectRunGaspFamily().

Definition at line 135 of file battle_effect_gasp.c.

GASP_MOLD_SHRINK

#define GASP_MOLD_SHRINK 4592

Mold: the Djinni's sprite shrinks GASP_MOLD_SHRINK a tick (about 7 percent of its size); for its first GASP_MOLD_SLOW_FADE_TICKS the canvas keeps three quarters of each pixel, then half.

Referenced by btEffectRunGaspFamily().

Definition at line 140 of file battle_effect_gasp.c.

GASP_MOLD_SLOW_FADE_TICKS

#define GASP_MOLD_SLOW_FADE_TICKS 24

Referenced by btEffectRunGaspFamily().

Definition at line 141 of file battle_effect_gasp.c.

GASP_MOLD_SHRINK_TICK

#define GASP_MOLD_SHRINK_TICK 16

Mold's sprite shrinks from GASP_MOLD_SHRINK_TICK; the sound plays at GASP_MOLD_SOUND_TICK and the target flashes white at GASP_MOLD_TINT_TICK.

Referenced by btEffectRunGaspFamily().

Definition at line 144 of file battle_effect_gasp.c.

GASP_MOLD_SHRINK_TICKS

#define GASP_MOLD_SHRINK_TICKS 64

Referenced by btEffectRunGaspFamily().

Definition at line 145 of file battle_effect_gasp.c.

GASP_MOLD_SOUND_TICK

#define GASP_MOLD_SOUND_TICK 14

Referenced by btEffectRunGaspFamily().

Definition at line 146 of file battle_effect_gasp.c.

GASP_MOLD_TINT_TICK

#define GASP_MOLD_TINT_TICK 24

Referenced by btEffectRunGaspFamily().

Definition at line 147 of file battle_effect_gasp.c.

GASP_EMU_PUFFS

#define GASP_EMU_PUFFS 32

Emu: puffs of dust trail the bird, one each two ticks for its first ten; the blow scatters motes, each at least GASP_EMU_MOTE_SPEED_MIN fast.

Referenced by btEffectRunGaspFamily().

Definition at line 151 of file battle_effect_gasp.c.

GASP_EMU_MOTES

#define GASP_EMU_MOTES 256

Referenced by btEffectRunGaspFamily().

Definition at line 152 of file battle_effect_gasp.c.

GASP_EMU_MOTE_SPEED_MIN

#define GASP_EMU_MOTE_SPEED_MIN 64

Referenced by btEffectRunGaspFamily().

Definition at line 153 of file battle_effect_gasp.c.

GASP_EMU_BLOW_TICK

#define GASP_EMU_BLOW_TICK 10

The user reaches the target and strikes at GASP_EMU_BLOW_TICK; the ring of fire fades from GASP_EMU_FADE_TICK.

Referenced by btEffectRunGaspFamily().

Definition at line 156 of file battle_effect_gasp.c.

GASP_EMU_FADE_TICK

#define GASP_EMU_FADE_TICK 16

Referenced by btEffectRunGaspFamily().

Definition at line 157 of file battle_effect_gasp.c.

GASP_NOTE_SEEDS

#define GASP_NOTE_SEEDS 32

Beat Dance and Clarion Cry: the notes that fly from their unit, one every two ticks, each for GASP_NOTE_TICKS before it fades, at least GASP_NOTE_SPEED_MIN fast.

Referenced by btEffectRunGaspFamily().

Definition at line 162 of file battle_effect_gasp.c.

GASP_NOTES

#define GASP_NOTES 12

Referenced by btEffectRunGaspFamily().

Definition at line 163 of file battle_effect_gasp.c.

GASP_NOTE_TICKS

#define GASP_NOTE_TICKS 24

Referenced by btEffectRunGaspFamily().

Definition at line 164 of file battle_effect_gasp.c.

GASP_NOTE_SPEED_MIN

#define GASP_NOTE_SPEED_MIN 128

Referenced by btEffectRunGaspFamily().

Definition at line 165 of file battle_effect_gasp.c.

GASP_DULLAHAN_SPARKS

#define GASP_DULLAHAN_SPARKS 128

Call Dullahan: the sparks his bolt scatters, each at least GASP_DULLAHAN_SPARK_SPEED_MIN fast, and the first of them drawn; each bolt flies out GASP_DULLAHAN_REACH steps, turning GASP_DULLAHAN_SWING (about 265 degrees) as it goes.

Referenced by btEffectRunGaspFamily().

Definition at line 171 of file battle_effect_gasp.c.

GASP_DULLAHAN_SPARKS_DRAWN

#define GASP_DULLAHAN_SPARKS_DRAWN 64

Referenced by btEffectRunGaspFamily().

Definition at line 172 of file battle_effect_gasp.c.

GASP_DULLAHAN_SPARK_SPEED_MIN

#define GASP_DULLAHAN_SPARK_SPEED_MIN 32

Referenced by btEffectRunGaspFamily().

Definition at line 173 of file battle_effect_gasp.c.

GASP_DULLAHAN_REACH

#define GASP_DULLAHAN_REACH 80

Referenced by btEffectRunGaspFamily().

Definition at line 174 of file battle_effect_gasp.c.

GASP_DULLAHAN_SWING

#define GASP_DULLAHAN_SWING 48152

Referenced by btEffectRunGaspFamily().

Definition at line 175 of file battle_effect_gasp.c.

GASP_DULLAHAN_LEAP_TICK

#define GASP_DULLAHAN_LEAP_TICK 14

The user's leap is held until GASP_DULLAHAN_LEAP_TICK. A bolt grows at the user over the first GASP_DULLAHAN_GROW_TICKS; from GASP_DULLAHAN_SWING_TICK, with a second sound, the four swing out, each a little behind the last; the target is struck at GASP_DULLAHAN_STRIKE_TICK and the sparks burst at GASP_DULLAHAN_SPARKS_TICK; from GASP_DULLAHAN_SHRINK_TICK the bolts narrow away.

Referenced by btEffectRunGaspFamily().

Definition at line 182 of file battle_effect_gasp.c.

GASP_DULLAHAN_GROW_TICKS

#define GASP_DULLAHAN_GROW_TICKS 24

Referenced by btEffectRunGaspFamily().

Definition at line 183 of file battle_effect_gasp.c.

GASP_DULLAHAN_SWING_TICK

#define GASP_DULLAHAN_SWING_TICK 22

Referenced by btEffectRunGaspFamily().

Definition at line 184 of file battle_effect_gasp.c.

GASP_DULLAHAN_STRIKE_TICK

#define GASP_DULLAHAN_STRIKE_TICK 26

Referenced by btEffectRunGaspFamily().

Definition at line 185 of file battle_effect_gasp.c.

GASP_DULLAHAN_SPARKS_TICK

#define GASP_DULLAHAN_SPARKS_TICK 28

Referenced by btEffectRunGaspFamily().

Definition at line 186 of file battle_effect_gasp.c.

GASP_DULLAHAN_SHRINK_TICK

#define GASP_DULLAHAN_SHRINK_TICK 32

Referenced by btEffectRunGaspFamily().

Definition at line 187 of file battle_effect_gasp.c.

GASP_CAGE_RINGS

#define GASP_CAGE_RINGS 8

Cage: its GASP_CAGE_RINGS rings lean, the first GASP_CAGE_TILT (about 22 degrees) and each next a further eighth of a turn, and close on the target from GASP_CAGE_CLOSE_TICK, each two ticks after the last; the battle shows the damage at GASP_CAGE_DAMAGE_TICK.

Referenced by btEffectRunGaspFamily().

Definition at line 193 of file battle_effect_gasp.c.

GASP_CAGE_TILT

#define GASP_CAGE_TILT 4000

Referenced by btEffectRunGaspFamily().

Definition at line 194 of file battle_effect_gasp.c.

GASP_CAGE_CLOSE_TICK

#define GASP_CAGE_CLOSE_TICK 16

Referenced by btEffectRunGaspFamily().

Definition at line 195 of file battle_effect_gasp.c.

GASP_CAGE_DAMAGE_TICK

#define GASP_CAGE_DAMAGE_TICK 26

Referenced by btEffectRunGaspFamily().

Definition at line 196 of file battle_effect_gasp.c.

GASP_SWAP_MOTE_SHIFT

#define GASP_SWAP_MOTE_SHIFT 4

Element Swap: a mote's distance from the user is kept in sixteenths of a pixel, GASP_SWAP_MOTE_SHIFT bits of fraction.

Referenced by btEffectRunGaspFamily().

Definition at line 200 of file battle_effect_gasp.c.

GASP_PSY_BOOST_RING_TICKS

#define GASP_PSY_BOOST_RING_TICKS 16

Psy Boost: each of its two rings shrinks onto the user over GASP_PSY_BOOST_RING_TICKS.

Referenced by btEffectRunGaspFamily().

Definition at line 204 of file battle_effect_gasp.c.

GASP_SWAP_RING_TICKS

#define GASP_SWAP_RING_TICKS 16

Element Swap and Psy Boost: a ring shrinks onto the user over GASP_SWAP_RING_TICKS (Element Swap's motes close in over the same), a glow turns there from GASP_GLOW_START for GASP_GLOW_TICKS, the target flashes white at GASP_GLOW_TINT_TICK, and the battle shows the effect at GASP_GLOW_DAMAGE_TICK. Element Swap's colours step towards each Djinni's for GASP_SWAP_COLOR_TICKS from GASP_SWAP_COLORS_START.

Referenced by btEffectRunGaspFamily().

Definition at line 212 of file battle_effect_gasp.c.

GASP_GLOW_START

#define GASP_GLOW_START 12

Referenced by btEffectRunGaspFamily().

Definition at line 213 of file battle_effect_gasp.c.

GASP_GLOW_TICKS

#define GASP_GLOW_TICKS 32

Referenced by btEffectRunGaspFamily().

Definition at line 214 of file battle_effect_gasp.c.

GASP_GLOW_TINT_TICK

#define GASP_GLOW_TINT_TICK 16

Referenced by btEffectRunGaspFamily().

Definition at line 215 of file battle_effect_gasp.c.

GASP_GLOW_DAMAGE_TICK

#define GASP_GLOW_DAMAGE_TICK 28

Referenced by btEffectRunGaspFamily().

Definition at line 216 of file battle_effect_gasp.c.

GASP_SWAP_COLORS_START

#define GASP_SWAP_COLORS_START 8

Referenced by btEffectRunGaspFamily().

Definition at line 217 of file battle_effect_gasp.c.

GASP_SWAP_COLOR_TICKS

#define GASP_SWAP_COLOR_TICKS 8

Referenced by btEffectRunGaspFamily().

Definition at line 218 of file battle_effect_gasp.c.

GASP_UNUSED_BRIGHTEN_TICK

#define GASP_UNUSED_BRIGHTEN_TICK 32

The unused mode: the colours brighten from GASP_UNUSED_BRIGHTEN_TICK, twice as fast from GASP_UNUSED_FAST_TICK.

Referenced by btEffectRunGaspFamily().

Definition at line 222 of file battle_effect_gasp.c.

GASP_UNUSED_FAST_TICK

#define GASP_UNUSED_FAST_TICK 41

Referenced by btEffectRunGaspFamily().

Definition at line 223 of file battle_effect_gasp.c.

GASP_DEMON_EYE_FLASH_TICK

#define GASP_DEMON_EYE_FLASH_TICK 8

Demon Eye: the targets flash at GASP_DEMON_EYE_FLASH_TICK.

Referenced by btEffectRunGaspFamily().

Definition at line 226 of file battle_effect_gasp.c.

Functions in detail

btEffectRunGaspFamily

void btEffectRunGaspFamily(BATTLE_EFFECT_PARM *args, Sint32 mode)

The shared body of sixteen abilities' effects, named for the first; the wrappers in battle_effect_rime.c pick a GASP_MODE: Gasp, Reflux, Djinn Counter, Mold and Meld, Shine, Lull, Counter-rush, Demon Eye, Emu and its kind's four other abilities, Call Dullahan and Formina Sage, Beat Dance, Element Swap, Cage, Clarion Cry and Psy Boost. GASP_MODE_UNUSED has no caller. Each mode loads its own sprite sheets, then draws a canvas layer and a model layer every tick for the mode's length.

References BattleEffectColumnMesh, BattleEffectCylinderCorners, BattleEffectCylinderMesh, BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, BattleEffectLongBeamCorners, BattleEffectSmallSquareMeshReversed, BattleEffectSquareCorners, BattleEffectSquareMesh, BattleEffectTaperedBeamCorners, btCameraShake(), btEffectArmBg2AffineHBlankDMA(), btEffectCountDownBattlerTints(), btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectPosProjectPoint(), btEffectPosProjectScaledBattler(), btEffectRunDjinniEntrance(), btEffectSetApproachMotion(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btEffectTransferCanvas(), btEffectUpdatePhasePalette(), btGraphicsLoadGreyRamp(), btMotionApplyKnockbackStub(), btObjectGetStub(), btParticleAdvanceWithGravity2D(), btParticleAdvanceWithGravity3D(), btPictureMirrorIntoQuadrants(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), fdActorSelectAnimationStub(), fdActorSetAnimationSpeedStub(), GaspFamilyCounts, GaspFamilyStreakMesh, GaspFamilyStreakSteps, ProjectionWork, Sint32, syCloseEvent(), syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syLookAtLoad(), syMatrixScaleUniform(), syPopMatrix() and 11 more.

Referenced by btEffectRunBeatDance(), btEffectRunCage(), btEffectRunCallDullahan(), btEffectRunClarionCry(), btEffectRunCounterRush(), btEffectRunDemonEye(), btEffectRunDjinnCounter(), btEffectRunElementSwap(), btEffectRunEmu(), btEffectRunGasp(), btEffectRunLull(), btEffectRunMeld(), btEffectRunMold(), btEffectRunPsyBoost(), btEffectRunReflux() and btEffectRunShine().

Definition at line 235 of file battle_effect_gasp.c.

On this page

MacrosFunctionsDescriptionMacros in detailGASP_DJINNI_PICTURESMALL_DJINNIPLACE_PARTICLEGASP_CENTREGASP_FALLGASP_FLASHGASP_MOTESGASP_DJINNI_SLOTGASP_DJINNI_SLOT_MARGINGASP_BOLT_PICTURE_COUNTGASP_BOLT_PICTURE_WIDTHGASP_BOLT_PICTURE_HEIGHTGASP_BOLT_PICTURE_INSETGASP_BOLT_PICTURE_BYTESGASP_FAMILY_VENUS_DJINN_PICTURESGASP_FAMILY_CORNER_GLOW_PICTURESGASP_FIRE_RINGGASP_TEXTURE_BYTESGASP_SEEDSGASP_TICKSGASP_UNUSED_TICKSGASP_MOLD_TICKSGASP_LULL_TICKSGASP_BEAT_DANCE_TICKSGASP_CLARION_CRY_TICKSGASP_CAGE_TICKSGASP_ELEMENT_SWAP_TICKSGASP_PSY_BOOST_TICKSGASP_SHINE_TICKSGASP_DULLAHAN_TICKSGASP_COUNTER_RUSH_TICKSGASP_DEMON_EYE_TICKSGASP_EMU_TICKSGASP_REFLUX_TICKSGASP_DJINN_COUNTER_TICKSGASP_DJINNI_SWAYGASP_SKULLSGASP_SKULL_TICKSGASP_SKULL_SCALEGASP_CRY_TICKGASP_RISE_TICKGASP_LULL_RISE_TICKGASP_REFLUX_RADIUSGASP_SWIRL_MOTESGASP_SWIRL_MOTE_TICKSGASP_SWIRL_SCALEGASP_SWIRL_GROWTHGASP_SWIRL_SHRINKGASP_SWIRL_GROW_TICKSGASP_SWIRL_SHRINK_TICKGASP_COUNTER_SHRINK_TICKGASP_REFLUX_SET_TICKGASP_COUNTER_STREAK_TICKGASP_COUNTER_STREAK_STAGESGASP_COUNTER_BLOW_TICKGASP_SHINE_GLIDEGASP_SHINE_FALLGASP_SHINE_RAYSGASP_SHINE_RAY_TICKSGASP_SHINE_RAY_SCROLL_MASKGASP_SHINE_FALL_TICKGASP_SHINE_STRIKE_TICKGASP_SHINE_RING_STEPGASP_LULL_NOTESGASP_LULL_RING_TICKSGASP_LULL_TILTGASP_MOLD_SHRINKGASP_MOLD_SLOW_FADE_TICKSGASP_MOLD_SHRINK_TICKGASP_MOLD_SHRINK_TICKSGASP_MOLD_SOUND_TICKGASP_MOLD_TINT_TICKGASP_EMU_PUFFSGASP_EMU_MOTESGASP_EMU_MOTE_SPEED_MINGASP_EMU_BLOW_TICKGASP_EMU_FADE_TICKGASP_NOTE_SEEDSGASP_NOTESGASP_NOTE_TICKSGASP_NOTE_SPEED_MINGASP_DULLAHAN_SPARKSGASP_DULLAHAN_SPARKS_DRAWNGASP_DULLAHAN_SPARK_SPEED_MINGASP_DULLAHAN_REACHGASP_DULLAHAN_SWINGGASP_DULLAHAN_LEAP_TICKGASP_DULLAHAN_GROW_TICKSGASP_DULLAHAN_SWING_TICKGASP_DULLAHAN_STRIKE_TICKGASP_DULLAHAN_SPARKS_TICKGASP_DULLAHAN_SHRINK_TICKGASP_CAGE_RINGSGASP_CAGE_TILTGASP_CAGE_CLOSE_TICKGASP_CAGE_DAMAGE_TICKGASP_SWAP_MOTE_SHIFTGASP_PSY_BOOST_RING_TICKSGASP_SWAP_RING_TICKSGASP_GLOW_STARTGASP_GLOW_TICKSGASP_GLOW_TINT_TICKGASP_GLOW_DAMAGE_TICKGASP_SWAP_COLORS_STARTGASP_SWAP_COLOR_TICKSGASP_UNUSED_BRIGHTEN_TICKGASP_UNUSED_FAST_TICKGASP_DEMON_EYE_FLASH_TICKFunctions in detailbtEffectRunGaspFamily