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
| Name | Description | |
|---|---|---|
#define | GASP_DJINNI_PICTURE 26048 | Where the small Djinni sprite sheet is decoded in the effect's pictures, as The Broken Seal places it. |
#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. |
#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. |
#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. |
#define | GASP_FALL 62 | |
#define | GASP_FLASH 61 | |
#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. |
#define | GASP_DJINNI_SLOT 64 | Mold's 40x40 Djinni is copied to the middle of a 64x64 picture. |
#define | GASP_DJINNI_SLOT_MARGIN ((GASP_DJINNI_SLOT - DJINNI_WIDTH) / 2) | |
#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. |
#define | GASP_BOLT_PICTURE_WIDTH 32 | |
#define | GASP_BOLT_PICTURE_HEIGHT 128 | |
#define | GASP_BOLT_PICTURE_INSET | |
#define | GASP_BOLT_PICTURE_BYTES | |
#define | GASP_FAMILY_VENUS_DJINN_PICTURES 4096 | Where VenusDjinnSheet, CornerGlowSheet and FireRingTexture are decoded in the effect's pictures. |
#define | GASP_FAMILY_CORNER_GLOW_PICTURES 16384 | |
#define | GASP_FIRE_RING 12416 | |
#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. |
#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. |
#define | GASP_TICKS 84 | Each mode's length in ticks. |
#define | GASP_UNUSED_TICKS 48 | |
#define | GASP_MOLD_TICKS 42 | |
#define | GASP_LULL_TICKS 80 | |
#define | GASP_BEAT_DANCE_TICKS 64 | |
#define | GASP_CLARION_CRY_TICKS 64 | |
#define | GASP_CAGE_TICKS 40 | |
#define | GASP_ELEMENT_SWAP_TICKS 48 | |
#define | GASP_PSY_BOOST_TICKS 48 | |
#define | GASP_SHINE_TICKS 82 | |
#define | GASP_DULLAHAN_TICKS 60 | |
#define | GASP_COUNTER_RUSH_TICKS 76 | |
#define | GASP_DEMON_EYE_TICKS 16 | |
#define | GASP_EMU_TICKS 41 | |
#define | GASP_REFLUX_TICKS 76 | |
#define | GASP_DJINN_COUNTER_TICKS 70 | |
#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. |
#define | GASP_SKULLS 6 | |
#define | GASP_SKULL_TICKS 32 | |
#define | GASP_SKULL_SCALE (toFIXED(1875) / 4096) | |
#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. |
#define | GASP_RISE_TICK 48 | |
#define | GASP_LULL_RISE_TICK 44 | |
#define | GASP_REFLUX_RADIUS 12 | Reflux: the Djinni circles wider until GASP_REFLUX_RADIUS. |
#define | GASP_SWIRL_MOTES 48 | |
#define | GASP_SWIRL_MOTE_TICKS 32 | |
#define | GASP_SWIRL_SCALE (toFIXED(375) / 512) | |
#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. |
#define | GASP_SWIRL_SHRINK (GASP_SWIRL_SCALE / 16) | |
#define | GASP_SWIRL_GROW_TICKS 32 | |
#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. |
#define | GASP_COUNTER_SHRINK_TICK 40 | |
#define | GASP_REFLUX_SET_TICK 62 | |
#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. |
#define | GASP_COUNTER_STREAK_STAGES 8 | |
#define | GASP_COUNTER_BLOW_TICK 38 | |
#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. |
#define | GASP_SHINE_FALL 32 | |
#define | GASP_SHINE_RAYS 8 | |
#define | GASP_SHINE_RAY_TICKS 32 | |
#define | GASP_SHINE_RAY_SCROLL_MASK 0x1f | |
#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. |
#define | GASP_SHINE_STRIKE_TICK 55 | |
#define | GASP_SHINE_RING_STEP 4 | |
#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. |
#define | GASP_LULL_RING_TICKS 64 | |
#define | GASP_LULL_TILT 18288 | |
#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. |
#define | GASP_MOLD_SLOW_FADE_TICKS 24 | |
#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. |
#define | GASP_MOLD_SHRINK_TICKS 64 | |
#define | GASP_MOLD_SOUND_TICK 14 | |
#define | GASP_MOLD_TINT_TICK 24 | |
#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. |
#define | GASP_EMU_MOTES 256 | |
#define | GASP_EMU_MOTE_SPEED_MIN 64 | |
#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. |
#define | GASP_EMU_FADE_TICK 16 | |
#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. |
#define | GASP_NOTES 12 | |
#define | GASP_NOTE_TICKS 24 | |
#define | GASP_NOTE_SPEED_MIN 128 | |
#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. |
#define | GASP_DULLAHAN_SPARKS_DRAWN 64 | |
#define | GASP_DULLAHAN_SPARK_SPEED_MIN 32 | |
#define | GASP_DULLAHAN_REACH 80 | |
#define | GASP_DULLAHAN_SWING 48152 | |
#define | GASP_DULLAHAN_LEAP_TICK 14 | The user's leap is held until GASP_DULLAHAN_LEAP_TICK. |
#define | GASP_DULLAHAN_GROW_TICKS 24 | |
#define | GASP_DULLAHAN_SWING_TICK 22 | |
#define | GASP_DULLAHAN_STRIKE_TICK 26 | |
#define | GASP_DULLAHAN_SPARKS_TICK 28 | |
#define | GASP_DULLAHAN_SHRINK_TICK 32 | |
#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. |
#define | GASP_CAGE_TILT 4000 | |
#define | GASP_CAGE_CLOSE_TICK 16 | |
#define | GASP_CAGE_DAMAGE_TICK 26 | |
#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. |
#define | GASP_PSY_BOOST_RING_TICKS 16 | Psy Boost: each of its two rings shrinks onto the user over GASP_PSY_BOOST_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. |
#define | GASP_GLOW_START 12 | |
#define | GASP_GLOW_TICKS 32 | |
#define | GASP_GLOW_TINT_TICK 16 | |
#define | GASP_GLOW_DAMAGE_TICK 28 | |
#define | GASP_SWAP_COLORS_START 8 | |
#define | GASP_SWAP_COLOR_TICKS 8 | |
#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. |
#define | GASP_UNUSED_FAST_TICK 41 | |
#define | GASP_DEMON_EYE_FLASH_TICK 8 | Demon Eye: the targets flash at GASP_DEMON_EYE_FLASH_TICK. |
Functions
| Name | Description | |
|---|---|---|
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. |
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.