src/battle_effect/battle_effect_casting_impact.c
The casting impacts, the Djinn attacks, unleashes and enemy abilities that open the same way: sparks close in on the caster, a streak shoots at the target and the orb flashes over it in a spray of sparks, and then each impact plays its own effect over the target (CASTING_IMPACT). More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | CASTING_IMPACT_DJINN_KINDS CASTING_IMPACT_TERRA_STRIKE | The Djinn's kinds come before this one, the first unleash's. |
#define | CASTING_IMPACT_ORB_PICTURES (6 * PICTURE_BYTES(FIRE_STREAK)) | The impact orb's pictures, packed at half width, after the streak's. |
#define | CASTING_IMPACT_DJINNI_WIDTH 20 | The Djinni's picture, in the effect's pictures after the impact's own. |
#define | CASTING_IMPACT_DJINNI_HEIGHT 40 | |
#define | CASTING_IMPACT_DJINNI_PICTURE 15446 | |
#define | CASTING_IMPACT_GATHER_TICKS 32 | Ticks the sparks gather. |
#define | CASTING_IMPACT_SPARKS 64 | Sparks in state->particles. |
#define | CASTING_IMPACT_SPARK_DEPTH 60 | How far either side of the caster the gathering sparks' depth is clamped. |
#define | CASTING_IMPACT_PARTICLES ((PARTICLE *)(RamMapMetatileBuffer + 24576)) | The impact pictures' particles, in the map cell buffer after the Djinni and Stun Jip's flame band. |
#define | CASTING_IMPACT_PARTICLE_COUNT 64 | |
#define | CASTING_IMPACT_SPARK_LIFE 32 | A spark scattered over the target's life at the least, counted down two a tick (the draw visits each spark twice); it is drawn a mote size smaller for every CASTING_IMPACT_SPARK_SHRINK of life lost. |
#define | CASTING_IMPACT_SPARK_SHRINK 20 | |
#define | PICTURE_AFTER (name) (name + name##_WIDTH * name##_HEIGHT) | Where a picture of a sheet starts: right after the picture name before it, name##_WIDTH by name##_HEIGHT. |
#define | ASURA_SHEET_LOW_WIDTH 80 | Asura's sprite sheet: the masked swordsman with his sword low, then swung up, then the red crescent his stroke leaves. |
#define | ASURA_SHEET_LOW_HEIGHT 96 | |
#define | ASURA_SHEET_SWUNG_WIDTH 80 | |
#define | ASURA_SHEET_SWUNG_HEIGHT 104 | |
#define | ASURA_SHEET_CRESCENT_WIDTH 128 | |
#define | ASURA_SHEET_CRESCENT_HEIGHT 91 | |
#define | ASURA_SHEET_SWUNG PICTURE_BYTES(ASURA_SHEET_LOW) | |
#define | ASURA_SHEET_CRESCENT PICTURE_AFTER(ASURA_SHEET_SWUNG) | |
#define | CRESCENT_FADE_AFTER (fade) (fade + CANVAS_SIZE * fade##_HEIGHT) | RedCrescentSheetB, Asura's crescent fading in four pictures the width of the canvas, each after the one before. |
#define | ASURA_CRESCENT_FADE_A 0 | |
#define | ASURA_CRESCENT_FADE_A_HEIGHT 91 | |
#define | ASURA_CRESCENT_FADE_B_HEIGHT 59 | |
#define | ASURA_CRESCENT_FADE_C_HEIGHT 29 | |
#define | ASURA_CRESCENT_FADE_D_HEIGHT 26 | |
#define | ASURA_CRESCENT_FADE_B CRESCENT_FADE_AFTER(ASURA_CRESCENT_FADE_A) | |
#define | ASURA_CRESCENT_FADE_C CRESCENT_FADE_AFTER(ASURA_CRESCENT_FADE_B) | |
#define | ASURA_CRESCENT_FADE_D CRESCENT_FADE_AFTER(ASURA_CRESCENT_FADE_C) | |
#define | SARCOPHAGUS_COFFIN_WIDTH 69 | Sarcophagus's sprite sheet: the coffin, then seven pictures of the ghost rising out of it, one after another. |
#define | SARCOPHAGUS_COFFIN_HEIGHT 96 | |
#define | SARCOPHAGUS_GHOST_A PICTURE_BYTES(SARCOPHAGUS_COFFIN) | |
#define | SARCOPHAGUS_GHOST_A_WIDTH 59 | |
#define | SARCOPHAGUS_GHOST_A_HEIGHT 24 | |
#define | SARCOPHAGUS_GHOST_B PICTURE_AFTER(SARCOPHAGUS_GHOST_A) | |
#define | SARCOPHAGUS_GHOST_B_WIDTH 70 | |
#define | SARCOPHAGUS_GHOST_B_HEIGHT 27 | |
#define | SARCOPHAGUS_GHOST_C PICTURE_AFTER(SARCOPHAGUS_GHOST_B) | |
#define | SARCOPHAGUS_GHOST_C_WIDTH 84 | |
#define | SARCOPHAGUS_GHOST_C_HEIGHT 55 | |
#define | SARCOPHAGUS_GHOST_D PICTURE_AFTER(SARCOPHAGUS_GHOST_C) | |
#define | SARCOPHAGUS_GHOST_D_WIDTH 75 | |
#define | SARCOPHAGUS_GHOST_D_HEIGHT 57 | |
#define | SARCOPHAGUS_GHOST_E PICTURE_AFTER(SARCOPHAGUS_GHOST_D) | |
#define | SARCOPHAGUS_GHOST_E_WIDTH 67 | |
#define | SARCOPHAGUS_GHOST_E_HEIGHT 86 | |
#define | SARCOPHAGUS_GHOST_F PICTURE_AFTER(SARCOPHAGUS_GHOST_E) | |
#define | SARCOPHAGUS_GHOST_F_WIDTH 50 | |
#define | SARCOPHAGUS_GHOST_F_HEIGHT 65 | |
#define | SARCOPHAGUS_GHOST_G PICTURE_AFTER(SARCOPHAGUS_GHOST_F) | |
#define | SARCOPHAGUS_GHOST_G_WIDTH 48 | |
#define | SARCOPHAGUS_GHOST_G_HEIGHT 29 | |
#define | ROCK_SPIRE_WIDTH 32 | Terra Strike's rock spire at its tallest. |
#define | ROCK_SPIRE_HEIGHT 96 | |
#define | FALLING_FLAME_WIDTH 32 | The flame Forcible Arm and Truncheon Fist drop. |
#define | FALLING_FLAME_HEIGHT 64 | |
#define | CHILL_PUFF_WIDTH 32 | CloudPuffSheet: Chill's four puffs of cloud, each fainter than the last. |
#define | CHILL_PUFF_HEIGHT 64 | |
#define | CHILL_PUFFS 24 | puffs Chill sends up |
#define | BAD_OMEN_SKULL_LIFT_SHIFT 11 | Bad Omen's skulls rise faster by the tick, the slowest by toFIXED(1) / 32 more a tick, written as a shift of 1, and each of the next three twice as fast as the one before. |
#define | FLASH_EDGE_FLASH_LEVEL 47 | The level the canvas flashes to, three times, in Flash Edge. |
#define | CASTING_IMPACT_RING_TILT 1000 | How far Stun Jip's ring of fire and bands of flame and Armor Crush's rings of billows lean back. |
#define | IMP_FACE_WIDTH 32 | ImpFaceSheet's 32x32 face, and the seven dimmer copies Wheeze makes after it. |
#define | IMP_FACE_HEIGHT 32 | |
#define | IMP_FACE_FADES 8 | |
#define | BLITZ_BOLT_SPIN 1848 | How far Blitz's four bolts turn about the target each tick, about a 35th of a turn. |
#define | STUN_BOLT_TEXTURE_WIDTH 32 | The Stun Bolt's four bolts, LightningBoltSheet's pictures centred in 32x128 textures after the tornado's glints. |
#define | STUN_BOLT_TEXTURE_HEIGHT 128 | |
#define | STUN_BOLT_TEXTURES GLINT_SET_BYTES | |
#define | STUN_BOLT_PICTURES 4 | |
#define | HAMMERSPHERE_BALL 2048 | Hammersphere's ball: a 48x48 shaded circle mirrored into a 48x96 picture. |
#define | HAMMERSPHERE_BALL_WIDTH 48 | |
#define | HAMMERSPHERE_BALL_HEIGHT 96 | |
#define | CASTING_IMPACT_SMOKE_PICTURES 6153 | Where SmokeSheet is decoded in the effect's pictures. |
#define | CASTING_IMPACT_FLASH_BURST_PICTURES 3456 | Where FlashBurstSheet is decoded in the effect's pictures. |
#define | CASTING_IMPACT_RUNE_PICTURES 4096 | Where RuneSheet is decoded in the effect's pictures. |
#define | CASTING_IMPACT_BOULDER_PICTURES 8192 | Where BoulderPicture is decoded in the effect's pictures: Mother Earth's boulder, 64 pixels square. |
#define | BOULDER_PICTURE_SIZE 64 | |
#define | MOTHER_EARTH_SHARDS 32 | The shards Mother Earth's boulder breaks into. |
#define | CASTING_IMPACT_FLAME_BAND (128 * 128) | Stun Jip's flame band, after the 128x128 fire ring. |
#define | CASTING_IMPACT_RISING_PICTURES 16 | The impact particles that carry the rising pictures: flash bursts, skulls or puffs of smoke. |
#define | CASTING_IMPACT_RISING_LIFE 24 | The ticks a rising picture lives, and a flash burst, two to each picture. |
#define | CASTING_IMPACT_BURST_LIFE 12 | |
#define | POWER_DRIVE_FIREBALLS 16 | Power Drive's fireballs, and the ticks each flies. |
#define | POWER_DRIVE_FIREBALL_LIFE 24 | |
#define | TERRIBLE_BITE_BURSTS 24 | Terrible Bite's flash bursts; Dinox's are CASTING_IMPACT_RISING_PICTURES. |
#define | RAIDENS_WRATH_PICTURES 10 | Raiden's Wrath's pictures after its first, and Apocalypse's. |
#define | APOCALYPSE_PICTURES 7 | |
#define | RAIDENS_WRATH_WARRIOR_WIDTH 96 | Raiden's Wrath's first picture, the warrior with his sword; Apocalypse's, the woman in green with her ribbons. |
#define | RAIDENS_WRATH_WARRIOR_HEIGHT 88 | |
#define | APOCALYPSE_WOMAN_WIDTH 60 | |
#define | APOCALYPSE_WOMAN_HEIGHT 95 | |
#define | SARCOPHAGUS_DISSOLVE_ROWS 34 | The rows of Sarcophagus's coffin dissolving at once, the lowest the most. |
#define | BROIL_STREAKS 12 | Broil's ember streaks, and the motes in each streak's trail of Crucible Fire and Supernova. |
#define | CASTING_IMPACT_TRAIL_MOTES 12 | |
#define | STUN_BOLT_BOLTS ((PARTICLE *)(RamMapMetatileBuffer + 28160)) | Stun Bolt's bolts, each turning about the target: STUN_BOLT_COUNT are given a spin and a picture, and the first STUN_BOLT_STRIKES strike, one starting each tick. |
#define | STUN_BOLT_COUNT 32 | |
#define | STUN_BOLT_STRIKES 20 |
Enumerations
| Name | Description | |
|---|---|---|
enum | CASTING_IMPACT { CASTING_IMPACT_BANE, CASTING_IMPACT_SMOG, CASTING_IMPACT_MIS … } | The casting impacts, by effect kind less 100: each is named for the first ability whose effect entry selects it as a casting impact; those no ability selects are named UNUSED_ and for what they load or share. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectStepPaletteToResource (Sint32 resourceId) | Steps the canvas's 64 colours, background colours 0 to 63, one level towards a sheet's palette; colour 0 stays black. |
void | btEffectRunCastingImpact (BATTLE_EFFECT_PARM *action, Sint32 kind) | Gathers sparks around the caster, launches the Djinni and draws the impact on the first target. |
Description
The casting impacts, the Djinn attacks, unleashes and enemy abilities that
open the same way: sparks close in on the caster, a streak shoots at the
target and the orb flashes over it in a spray of sparks, and then each impact
plays its own effect over the target (CASTING_IMPACT). And the step of the
canvas's colours toward a sheet's palette, which many effects take a tick at
a time so their colours shift as they play. Part of battle_effect.c.
Macros in detail
CASTING_IMPACT_DJINN_KINDS
#define CASTING_IMPACT_DJINN_KINDS CASTING_IMPACT_TERRA_STRIKE
The Djinn's kinds come before this one, the first unleash's.
Referenced by btEffectRunCastingImpact().
Definition at line 145 of file battle_effect_casting_impact.c.
CASTING_IMPACT_ORB_PICTURES
#define CASTING_IMPACT_ORB_PICTURES (6 * PICTURE_BYTES(FIRE_STREAK))
The impact orb's pictures, packed at half width, after the streak's.
Referenced by btEffectRunCastingImpact().
Definition at line 148 of file battle_effect_casting_impact.c.
CASTING_IMPACT_DJINNI_WIDTH
#define CASTING_IMPACT_DJINNI_WIDTH 20
The Djinni's picture, in the effect's pictures after the impact's own.
Referenced by btEffectRunCastingImpact().
Definition at line 150 of file battle_effect_casting_impact.c.
CASTING_IMPACT_DJINNI_HEIGHT
#define CASTING_IMPACT_DJINNI_HEIGHT 40
Referenced by btEffectRunCastingImpact().
Definition at line 151 of file battle_effect_casting_impact.c.
CASTING_IMPACT_DJINNI_PICTURE
#define CASTING_IMPACT_DJINNI_PICTURE 15446
Referenced by btEffectRunCastingImpact().
Definition at line 152 of file battle_effect_casting_impact.c.
CASTING_IMPACT_GATHER_TICKS
#define CASTING_IMPACT_GATHER_TICKS 32
Ticks the sparks gather.
Referenced by btEffectRunCastingImpact().
Definition at line 154 of file battle_effect_casting_impact.c.
CASTING_IMPACT_SPARKS
#define CASTING_IMPACT_SPARKS 64
Sparks in state->particles.
Referenced by btEffectRunCastingImpact().
Definition at line 156 of file battle_effect_casting_impact.c.
CASTING_IMPACT_SPARK_DEPTH
#define CASTING_IMPACT_SPARK_DEPTH 60
How far either side of the caster the gathering sparks' depth is clamped.
Referenced by btEffectRunCastingImpact().
Definition at line 158 of file battle_effect_casting_impact.c.
CASTING_IMPACT_PARTICLES
#define CASTING_IMPACT_PARTICLES ((PARTICLE *)(RamMapMetatileBuffer + 24576))
The impact pictures' particles, in the map cell buffer after the Djinni and Stun Jip's flame band.
Referenced by btEffectRunCastingImpact().
Definition at line 161 of file battle_effect_casting_impact.c.
CASTING_IMPACT_PARTICLE_COUNT
#define CASTING_IMPACT_PARTICLE_COUNT 64
Referenced by btEffectRunCastingImpact().
Definition at line 162 of file battle_effect_casting_impact.c.
CASTING_IMPACT_SPARK_LIFE
#define CASTING_IMPACT_SPARK_LIFE 32
A spark scattered over the target's life at the least, counted down two a
tick (the draw visits each spark twice); it is drawn a mote size smaller for
every CASTING_IMPACT_SPARK_SHRINK of life lost.
Referenced by btEffectRunCastingImpact().
Definition at line 166 of file battle_effect_casting_impact.c.
CASTING_IMPACT_SPARK_SHRINK
#define CASTING_IMPACT_SPARK_SHRINK 20
Referenced by btEffectRunCastingImpact().
Definition at line 167 of file battle_effect_casting_impact.c.
PICTURE_AFTER
#define PICTURE_AFTER(name) (name + name##_WIDTH * name##_HEIGHT)
Where a picture of a sheet starts: right after the picture name before it,
name##_WIDTH by name##_HEIGHT.
Definition at line 171 of file battle_effect_casting_impact.c.
ASURA_SHEET_LOW_WIDTH
#define ASURA_SHEET_LOW_WIDTH 80
Asura's sprite sheet: the masked swordsman with his sword low, then swung up, then the red crescent his stroke leaves.
Referenced by btEffectRunCastingImpact().
Definition at line 175 of file battle_effect_casting_impact.c.
ASURA_SHEET_LOW_HEIGHT
#define ASURA_SHEET_LOW_HEIGHT 96
Definition at line 176 of file battle_effect_casting_impact.c.
ASURA_SHEET_SWUNG_WIDTH
#define ASURA_SHEET_SWUNG_WIDTH 80
Referenced by btEffectRunCastingImpact().
Definition at line 177 of file battle_effect_casting_impact.c.
ASURA_SHEET_SWUNG_HEIGHT
#define ASURA_SHEET_SWUNG_HEIGHT 104
Referenced by btEffectRunCastingImpact().
Definition at line 178 of file battle_effect_casting_impact.c.
ASURA_SHEET_CRESCENT_WIDTH
#define ASURA_SHEET_CRESCENT_WIDTH 128
Referenced by btEffectRunCastingImpact().
Definition at line 179 of file battle_effect_casting_impact.c.
ASURA_SHEET_CRESCENT_HEIGHT
#define ASURA_SHEET_CRESCENT_HEIGHT 91
Referenced by btEffectRunCastingImpact().
Definition at line 180 of file battle_effect_casting_impact.c.
ASURA_SHEET_SWUNG
#define ASURA_SHEET_SWUNG PICTURE_BYTES(ASURA_SHEET_LOW)
Referenced by btEffectRunCastingImpact().
Definition at line 181 of file battle_effect_casting_impact.c.
ASURA_SHEET_CRESCENT
#define ASURA_SHEET_CRESCENT PICTURE_AFTER(ASURA_SHEET_SWUNG)
Referenced by btEffectRunCastingImpact().
Definition at line 182 of file battle_effect_casting_impact.c.
CRESCENT_FADE_AFTER
#define CRESCENT_FADE_AFTER(fade) (fade + CANVAS_SIZE * fade##_HEIGHT)
RedCrescentSheetB, Asura's crescent fading in four pictures the width of the canvas, each after the one before.
Definition at line 186 of file battle_effect_casting_impact.c.
ASURA_CRESCENT_FADE_A
#define ASURA_CRESCENT_FADE_A 0
Definition at line 187 of file battle_effect_casting_impact.c.
ASURA_CRESCENT_FADE_A_HEIGHT
#define ASURA_CRESCENT_FADE_A_HEIGHT 91
Referenced by btEffectRunCastingImpact().
Definition at line 188 of file battle_effect_casting_impact.c.
ASURA_CRESCENT_FADE_B_HEIGHT
#define ASURA_CRESCENT_FADE_B_HEIGHT 59
Referenced by btEffectRunCastingImpact().
Definition at line 189 of file battle_effect_casting_impact.c.
ASURA_CRESCENT_FADE_C_HEIGHT
#define ASURA_CRESCENT_FADE_C_HEIGHT 29
Referenced by btEffectRunCastingImpact().
Definition at line 190 of file battle_effect_casting_impact.c.
ASURA_CRESCENT_FADE_D_HEIGHT
#define ASURA_CRESCENT_FADE_D_HEIGHT 26
Referenced by btEffectRunCastingImpact().
Definition at line 191 of file battle_effect_casting_impact.c.
ASURA_CRESCENT_FADE_B
#define ASURA_CRESCENT_FADE_B CRESCENT_FADE_AFTER(ASURA_CRESCENT_FADE_A)
Referenced by btEffectRunCastingImpact().
Definition at line 192 of file battle_effect_casting_impact.c.
ASURA_CRESCENT_FADE_C
#define ASURA_CRESCENT_FADE_C CRESCENT_FADE_AFTER(ASURA_CRESCENT_FADE_B)
Referenced by btEffectRunCastingImpact().
Definition at line 193 of file battle_effect_casting_impact.c.
ASURA_CRESCENT_FADE_D
#define ASURA_CRESCENT_FADE_D CRESCENT_FADE_AFTER(ASURA_CRESCENT_FADE_C)
Referenced by btEffectRunCastingImpact().
Definition at line 194 of file battle_effect_casting_impact.c.
SARCOPHAGUS_COFFIN_WIDTH
#define SARCOPHAGUS_COFFIN_WIDTH 69
Sarcophagus's sprite sheet: the coffin, then seven pictures of the ghost rising out of it, one after another.
Referenced by btEffectRunCastingImpact().
Definition at line 198 of file battle_effect_casting_impact.c.
SARCOPHAGUS_COFFIN_HEIGHT
#define SARCOPHAGUS_COFFIN_HEIGHT 96
Referenced by btEffectRunCastingImpact().
Definition at line 199 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_A
#define SARCOPHAGUS_GHOST_A PICTURE_BYTES(SARCOPHAGUS_COFFIN)
Referenced by btEffectRunCastingImpact().
Definition at line 200 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_A_WIDTH
#define SARCOPHAGUS_GHOST_A_WIDTH 59
Definition at line 201 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_A_HEIGHT
#define SARCOPHAGUS_GHOST_A_HEIGHT 24
Definition at line 202 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_B
#define SARCOPHAGUS_GHOST_B PICTURE_AFTER(SARCOPHAGUS_GHOST_A)
Referenced by btEffectRunCastingImpact().
Definition at line 203 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_B_WIDTH
#define SARCOPHAGUS_GHOST_B_WIDTH 70
Definition at line 204 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_B_HEIGHT
#define SARCOPHAGUS_GHOST_B_HEIGHT 27
Definition at line 205 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_C
#define SARCOPHAGUS_GHOST_C PICTURE_AFTER(SARCOPHAGUS_GHOST_B)
Referenced by btEffectRunCastingImpact().
Definition at line 206 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_C_WIDTH
#define SARCOPHAGUS_GHOST_C_WIDTH 84
Definition at line 207 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_C_HEIGHT
#define SARCOPHAGUS_GHOST_C_HEIGHT 55
Definition at line 208 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_D
#define SARCOPHAGUS_GHOST_D PICTURE_AFTER(SARCOPHAGUS_GHOST_C)
Referenced by btEffectRunCastingImpact().
Definition at line 209 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_D_WIDTH
#define SARCOPHAGUS_GHOST_D_WIDTH 75
Definition at line 210 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_D_HEIGHT
#define SARCOPHAGUS_GHOST_D_HEIGHT 57
Definition at line 211 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_E
#define SARCOPHAGUS_GHOST_E PICTURE_AFTER(SARCOPHAGUS_GHOST_D)
Referenced by btEffectRunCastingImpact().
Definition at line 212 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_E_WIDTH
#define SARCOPHAGUS_GHOST_E_WIDTH 67
Definition at line 213 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_E_HEIGHT
#define SARCOPHAGUS_GHOST_E_HEIGHT 86
Definition at line 214 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_F
#define SARCOPHAGUS_GHOST_F PICTURE_AFTER(SARCOPHAGUS_GHOST_E)
Referenced by btEffectRunCastingImpact().
Definition at line 215 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_F_WIDTH
#define SARCOPHAGUS_GHOST_F_WIDTH 50
Definition at line 216 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_F_HEIGHT
#define SARCOPHAGUS_GHOST_F_HEIGHT 65
Definition at line 217 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_G
#define SARCOPHAGUS_GHOST_G PICTURE_AFTER(SARCOPHAGUS_GHOST_F)
Referenced by btEffectRunCastingImpact().
Definition at line 218 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_G_WIDTH
#define SARCOPHAGUS_GHOST_G_WIDTH 48
Definition at line 219 of file battle_effect_casting_impact.c.
SARCOPHAGUS_GHOST_G_HEIGHT
#define SARCOPHAGUS_GHOST_G_HEIGHT 29
Definition at line 220 of file battle_effect_casting_impact.c.
ROCK_SPIRE_WIDTH
#define ROCK_SPIRE_WIDTH 32
Terra Strike's rock spire at its tallest.
Referenced by btEffectRunCastingImpact().
Definition at line 223 of file battle_effect_casting_impact.c.
ROCK_SPIRE_HEIGHT
#define ROCK_SPIRE_HEIGHT 96
Referenced by btEffectRunCastingImpact().
Definition at line 224 of file battle_effect_casting_impact.c.
FALLING_FLAME_WIDTH
#define FALLING_FLAME_WIDTH 32
The flame Forcible Arm and Truncheon Fist drop.
Referenced by btEffectRunCastingImpact().
Definition at line 226 of file battle_effect_casting_impact.c.
FALLING_FLAME_HEIGHT
#define FALLING_FLAME_HEIGHT 64
Referenced by btEffectRunCastingImpact().
Definition at line 227 of file battle_effect_casting_impact.c.
CHILL_PUFF_WIDTH
#define CHILL_PUFF_WIDTH 32
CloudPuffSheet: Chill's four puffs of cloud, each fainter than the last.
Referenced by btEffectRunCastingImpact().
Definition at line 229 of file battle_effect_casting_impact.c.
CHILL_PUFF_HEIGHT
#define CHILL_PUFF_HEIGHT 64
Referenced by btEffectRunCastingImpact().
Definition at line 230 of file battle_effect_casting_impact.c.
CHILL_PUFFS
#define CHILL_PUFFS 24
puffs Chill sends up
Referenced by btEffectRunCastingImpact().
Definition at line 231 of file battle_effect_casting_impact.c.
BAD_OMEN_SKULL_LIFT_SHIFT
#define BAD_OMEN_SKULL_LIFT_SHIFT 11
Bad Omen's skulls rise faster by the tick, the slowest by toFIXED(1) / 32
more a tick, written as a shift of 1, and each of the next three twice as
fast as the one before.
Referenced by btEffectRunCastingImpact().
Definition at line 235 of file battle_effect_casting_impact.c.
FLASH_EDGE_FLASH_LEVEL
#define FLASH_EDGE_FLASH_LEVEL 47
The level the canvas flashes to, three times, in Flash Edge.
Referenced by btEffectRunCastingImpact().
Definition at line 237 of file battle_effect_casting_impact.c.
CASTING_IMPACT_RING_TILT
#define CASTING_IMPACT_RING_TILT 1000
How far Stun Jip's ring of fire and bands of flame and Armor Crush's rings of billows lean back.
Referenced by btEffectRunCastingImpact().
Definition at line 240 of file battle_effect_casting_impact.c.
IMP_FACE_WIDTH
#define IMP_FACE_WIDTH 32
ImpFaceSheet's 32x32 face, and the seven dimmer copies Wheeze makes after it.
Referenced by btEffectRunCastingImpact().
Definition at line 243 of file battle_effect_casting_impact.c.
IMP_FACE_HEIGHT
#define IMP_FACE_HEIGHT 32
Referenced by btEffectRunCastingImpact().
Definition at line 244 of file battle_effect_casting_impact.c.
IMP_FACE_FADES
#define IMP_FACE_FADES 8
Referenced by btEffectRunCastingImpact().
Definition at line 245 of file battle_effect_casting_impact.c.
BLITZ_BOLT_SPIN
#define BLITZ_BOLT_SPIN 1848
How far Blitz's four bolts turn about the target each tick, about a 35th of a turn.
Referenced by btEffectRunCastingImpact().
Definition at line 248 of file battle_effect_casting_impact.c.
STUN_BOLT_TEXTURE_WIDTH
#define STUN_BOLT_TEXTURE_WIDTH 32
The Stun Bolt's four bolts, LightningBoltSheet's pictures centred in 32x128 textures after the tornado's glints.
Referenced by btEffectRunCastingImpact().
Definition at line 251 of file battle_effect_casting_impact.c.
STUN_BOLT_TEXTURE_HEIGHT
#define STUN_BOLT_TEXTURE_HEIGHT 128
Definition at line 252 of file battle_effect_casting_impact.c.
STUN_BOLT_TEXTURES
#define STUN_BOLT_TEXTURES GLINT_SET_BYTES
Referenced by btEffectRunCastingImpact().
Definition at line 253 of file battle_effect_casting_impact.c.
STUN_BOLT_PICTURES
#define STUN_BOLT_PICTURES 4
Referenced by btEffectRunCastingImpact().
Definition at line 254 of file battle_effect_casting_impact.c.
HAMMERSPHERE_BALL
#define HAMMERSPHERE_BALL 2048
Hammersphere's ball: a 48x48 shaded circle mirrored into a 48x96 picture.
Referenced by btEffectRunCastingImpact().
Definition at line 256 of file battle_effect_casting_impact.c.
HAMMERSPHERE_BALL_WIDTH
#define HAMMERSPHERE_BALL_WIDTH 48
Referenced by btEffectRunCastingImpact().
Definition at line 257 of file battle_effect_casting_impact.c.
HAMMERSPHERE_BALL_HEIGHT
#define HAMMERSPHERE_BALL_HEIGHT 96
Referenced by btEffectRunCastingImpact().
Definition at line 258 of file battle_effect_casting_impact.c.
CASTING_IMPACT_SMOKE_PICTURES
#define CASTING_IMPACT_SMOKE_PICTURES 6153
Where SmokeSheet is decoded in the effect's pictures.
Referenced by btEffectRunCastingImpact().
Definition at line 261 of file battle_effect_casting_impact.c.
CASTING_IMPACT_FLASH_BURST_PICTURES
#define CASTING_IMPACT_FLASH_BURST_PICTURES 3456
Where FlashBurstSheet is decoded in the effect's pictures.
Referenced by btEffectRunCastingImpact().
Definition at line 263 of file battle_effect_casting_impact.c.
CASTING_IMPACT_RUNE_PICTURES
#define CASTING_IMPACT_RUNE_PICTURES 4096
Where RuneSheet is decoded in the effect's pictures.
Referenced by btEffectRunCastingImpact().
Definition at line 265 of file battle_effect_casting_impact.c.
CASTING_IMPACT_BOULDER_PICTURES
#define CASTING_IMPACT_BOULDER_PICTURES 8192
Where BoulderPicture is decoded in the effect's pictures: Mother Earth's boulder, 64 pixels square.
Referenced by btEffectRunCastingImpact().
Definition at line 268 of file battle_effect_casting_impact.c.
BOULDER_PICTURE_SIZE
#define BOULDER_PICTURE_SIZE 64
Referenced by btEffectRunCastingImpact().
Definition at line 269 of file battle_effect_casting_impact.c.
MOTHER_EARTH_SHARDS
#define MOTHER_EARTH_SHARDS 32
The shards Mother Earth's boulder breaks into.
Referenced by btEffectRunCastingImpact().
Definition at line 271 of file battle_effect_casting_impact.c.
CASTING_IMPACT_FLAME_BAND
#define CASTING_IMPACT_FLAME_BAND (128 * 128)
Stun Jip's flame band, after the 128x128 fire ring.
Referenced by btEffectRunCastingImpact().
Definition at line 273 of file battle_effect_casting_impact.c.
CASTING_IMPACT_RISING_PICTURES
#define CASTING_IMPACT_RISING_PICTURES 16
The impact particles that carry the rising pictures: flash bursts, skulls or puffs of smoke.
Referenced by btEffectRunCastingImpact().
Definition at line 277 of file battle_effect_casting_impact.c.
CASTING_IMPACT_RISING_LIFE
#define CASTING_IMPACT_RISING_LIFE 24
The ticks a rising picture lives, and a flash burst, two to each picture.
Referenced by btEffectRunCastingImpact().
Definition at line 279 of file battle_effect_casting_impact.c.
CASTING_IMPACT_BURST_LIFE
#define CASTING_IMPACT_BURST_LIFE 12
Referenced by btEffectRunCastingImpact().
Definition at line 280 of file battle_effect_casting_impact.c.
POWER_DRIVE_FIREBALLS
#define POWER_DRIVE_FIREBALLS 16
Power Drive's fireballs, and the ticks each flies.
Referenced by btEffectRunCastingImpact().
Definition at line 282 of file battle_effect_casting_impact.c.
POWER_DRIVE_FIREBALL_LIFE
#define POWER_DRIVE_FIREBALL_LIFE 24
Referenced by btEffectRunCastingImpact().
Definition at line 283 of file battle_effect_casting_impact.c.
TERRIBLE_BITE_BURSTS
#define TERRIBLE_BITE_BURSTS 24
Terrible Bite's flash bursts; Dinox's are CASTING_IMPACT_RISING_PICTURES.
Referenced by btEffectRunCastingImpact().
Definition at line 285 of file battle_effect_casting_impact.c.
RAIDENS_WRATH_PICTURES
#define RAIDENS_WRATH_PICTURES 10
Raiden's Wrath's pictures after its first, and Apocalypse's.
Referenced by btEffectRunCastingImpact().
Definition at line 287 of file battle_effect_casting_impact.c.
APOCALYPSE_PICTURES
#define APOCALYPSE_PICTURES 7
Referenced by btEffectRunCastingImpact().
Definition at line 288 of file battle_effect_casting_impact.c.
RAIDENS_WRATH_WARRIOR_WIDTH
#define RAIDENS_WRATH_WARRIOR_WIDTH 96
Raiden's Wrath's first picture, the warrior with his sword; Apocalypse's, the woman in green with her ribbons.
Referenced by btEffectRunCastingImpact().
Definition at line 291 of file battle_effect_casting_impact.c.
RAIDENS_WRATH_WARRIOR_HEIGHT
#define RAIDENS_WRATH_WARRIOR_HEIGHT 88
Referenced by btEffectRunCastingImpact().
Definition at line 292 of file battle_effect_casting_impact.c.
APOCALYPSE_WOMAN_WIDTH
#define APOCALYPSE_WOMAN_WIDTH 60
Referenced by btEffectRunCastingImpact().
Definition at line 293 of file battle_effect_casting_impact.c.
APOCALYPSE_WOMAN_HEIGHT
#define APOCALYPSE_WOMAN_HEIGHT 95
Referenced by btEffectRunCastingImpact().
Definition at line 294 of file battle_effect_casting_impact.c.
SARCOPHAGUS_DISSOLVE_ROWS
#define SARCOPHAGUS_DISSOLVE_ROWS 34
The rows of Sarcophagus's coffin dissolving at once, the lowest the most.
Referenced by btEffectRunCastingImpact().
Definition at line 296 of file battle_effect_casting_impact.c.
BROIL_STREAKS
#define BROIL_STREAKS 12
Broil's ember streaks, and the motes in each streak's trail of Crucible Fire and Supernova.
Referenced by btEffectRunCastingImpact().
Definition at line 299 of file battle_effect_casting_impact.c.
CASTING_IMPACT_TRAIL_MOTES
#define CASTING_IMPACT_TRAIL_MOTES 12
Referenced by btEffectRunCastingImpact().
Definition at line 300 of file battle_effect_casting_impact.c.
STUN_BOLT_BOLTS
#define STUN_BOLT_BOLTS ((PARTICLE *)(RamMapMetatileBuffer + 28160))
Stun Bolt's bolts, each turning about the target: STUN_BOLT_COUNT are given a
spin and a picture, and the first STUN_BOLT_STRIKES strike, one starting each
tick.
Referenced by btEffectRunCastingImpact().
Definition at line 304 of file battle_effect_casting_impact.c.
STUN_BOLT_COUNT
#define STUN_BOLT_COUNT 32
Referenced by btEffectRunCastingImpact().
Definition at line 305 of file battle_effect_casting_impact.c.
STUN_BOLT_STRIKES
#define STUN_BOLT_STRIKES 20
Referenced by btEffectRunCastingImpact().
Definition at line 306 of file battle_effect_casting_impact.c.
Enumerations in detail
CASTING_IMPACT
enum CASTING_IMPACT
The casting impacts, by effect kind less 100: each is named for the first
ability whose effect entry selects it as a casting impact; those no ability
selects are named UNUSED_ and for what they load or share. The kinds before
CASTING_IMPACT_DJINN_KINDS are the Djinn's; from it on they are weapons'
unleashes and enemies' abilities.
| Enumerator | Value | Description |
|---|---|---|
CASTING_IMPACT_BANE | 0 | |
CASTING_IMPACT_SMOG | ||
CASTING_IMPACT_MIST | ||
CASTING_IMPACT_FEVER | ||
CASTING_IMPACT_FLINT | ||
CASTING_IMPACT_SCORCH | ||
CASTING_IMPACT_SQUALL | ||
CASTING_IMPACT_SAP | ||
CASTING_IMPACT_ECHO | ||
CASTING_IMPACT_SOUR | ||
CASTING_IMPACT_CHILL | ||
CASTING_IMPACT_GEL | ||
CASTING_IMPACT_STEEL | ||
CASTING_IMPACT_FOG | ||
CASTING_IMPACT_UNUSED_BOLTS | ||
CASTING_IMPACT_UNUSED_SKULLS | ||
CASTING_IMPACT_WHEEZE | ||
CASTING_IMPACT_BLITZ | ||
CASTING_IMPACT_TERRA_STRIKE | 38 | |
CASTING_IMPACT_POISON_CLOUD | ||
CASTING_IMPACT_POISON_DEATH | ||
CASTING_IMPACT_MORTAL_DANGER | Also Death Scythe. | |
CASTING_IMPACT_BAD_OMEN | ||
CASTING_IMPACT_LIFE_NOURISH | ||
CASTING_IMPACT_AQUA_SOCK | ||
CASTING_IMPACT_UNUSED_ICE_CHIPS | ||
CASTING_IMPACT_FROST_BITE | ||
CASTING_IMPACT_UNUSED_GATHERING | ||
CASTING_IMPACT_LIFE_LEECH | ||
CASTING_IMPACT_PSY_LEECH | ||
CASTING_IMPACT_BROIL | ||
CASTING_IMPACT_MELTDOWN | ||
CASTING_IMPACT_HEAT_MIRAGE | Also Heat Flash. | |
CASTING_IMPACT_BARRAGE | ||
CASTING_IMPACT_UNUSED_MYSTIC_FLAME | ||
CASTING_IMPACT_ACID_BATH | ||
CASTING_IMPACT_UNUSED_COMETS | ||
CASTING_IMPACT_STUN_VOLTAGE | ||
CASTING_IMPACT_BLINDING_SMOG | ||
CASTING_IMPACT_MURK | ||
CASTING_IMPACT_CYCLONE_SLASH | ||
CASTING_IMPACT_PSYPHON_SEAL | ||
CASTING_IMPACT_ASURA | ||
CASTING_IMPACT_FORCIBLE_ARM | Also Grand Golem. | |
CASTING_IMPACT_TRUNCHEON_FIST | ||
CASTING_IMPACT_UNUSED_SEVERE_BLOW | ||
CASTING_IMPACT_POWER_DRIVE | ||
CASTING_IMPACT_HEAT_SMASH | ||
CASTING_IMPACT_STUN_CLOUD | ||
CASTING_IMPACT_SEARING_FOG | ||
CASTING_IMPACT_ICE_CRUSH | ||
CASTING_IMPACT_SARGASSO | ||
CASTING_IMPACT_EVIL_EYE | ||
CASTING_IMPACT_VEIN_TAP | ||
CASTING_IMPACT_SCORPIONFISH | ||
CASTING_IMPACT_MOON_AIR | ||
CASTING_IMPACT_FLASH_EDGE | ||
CASTING_IMPACT_HIGH_VITALS | ||
CASTING_IMPACT_FLARE_BURST | ||
CASTING_IMPACT_HAMMERSPHERE | ||
CASTING_IMPACT_FLASH_FORCE | ||
CASTING_IMPACT_CRUCIBLE_FIRE | ||
CASTING_IMPACT_REVERSE_STAR | ||
CASTING_IMPACT_SUPERNOVA | ||
CASTING_IMPACT_STUN_BOLT | ||
CASTING_IMPACT_SARCOPHAGUS | ||
CASTING_IMPACT_RAIDENS_WRATH | ||
CASTING_IMPACT_UNUSED_TILED_CANVAS | ||
CASTING_IMPACT_APOCALYPSE | ||
CASTING_IMPACT_FLASH_PUNCH | ||
CASTING_IMPACT_ARMOR_CRUSH | ||
CASTING_IMPACT_STUN_JIP | ||
CASTING_IMPACT_QUICK_SLASH | ||
CASTING_IMPACT_BOSCA_HIT | ||
CASTING_IMPACT_MOTHER_EARTH | ||
CASTING_IMPACT_ROC | Also Orc. | |
CASTING_IMPACT_WILD_WOLF | Also Fatal Fang. | |
CASTING_IMPACT_DINOX | Also Power Bite. | |
CASTING_IMPACT_TERRIBLE_BITE | ||
CASTING_IMPACT_CALL_ZOMBIE | ||
CASTING_IMPACT_UNUSED_MERCURY_DJINNI |
Definition at line 55 of file battle_effect_casting_impact.c.
Functions in detail
btEffectStepPaletteToResource
void btEffectStepPaletteToResource(Sint32 resourceId)
Steps the canvas's 64 colours, background colours 0 to 63, one level towards a sheet's palette; colour 0 stays black.
References Sint32, syDMAXCopy() and syResourceGetTableEntry().
Referenced by btEffectRunBurstShower(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCloudSwirl(), btEffectRunDaedalus(), btEffectRunDjinniSign(), btEffectRunElementCards(), btEffectRunFallingSword(), btEffectRunFlora(), btEffectRunGaspFamily(), btEffectRunGeyser(), btEffectRunGround(), btEffectRunHealingMotes(), btEffectRunLightSurge(), btEffectRunMegaera(), btEffectRunMegiddo(), btEffectRunMeteorBlow(), btEffectRunRagingHeat(), btEffectRunRagnarok(), btEffectRunStarSwarm(), btEffectRunStatBoost(), btEffectRunThor(), btEffectRunTrident(), btEffectRunUlysses() and btEffectRunWindFunnel().
Definition at line 10 of file battle_effect_casting_impact.c.
btEffectRunCastingImpact
void btEffectRunCastingImpact(BATTLE_EFFECT_PARM *action, Sint32 kind)
Gathers sparks around the caster, launches the Djinni and draws the impact on the first target.
Abilities: Bane; Smog; Mist; Fever; Flint; Scorch; Squall; Sap; Echo; Sour; Chill; Gel; Steel; Fog; Wheeze; Blitz; Terra Strike; Poison Cloud; Poison Death; Mortal Danger, Death Scythe; Bad Omen; Life Nourish; Aqua Sock; Frost Bite; Life Leech; Psy Leech; Broil; Meltdown; Heat Mirage, Heat Flash; Barrage; Acid Bath; Stun Voltage; Blinding Smog; Murk; Cyclone Slash; Psyphon Seal; Asura; Forcible Arm, Grand Golem; Truncheon Fist; Power Drive; Heat Smash; Stun Cloud; Searing Fog; Ice Crush; Sargasso; Evil Eye; Vein Tap; Scorpionfish; Moon Air; Flash Edge; High Vitals; Flare Burst; Hammersphere; Flash Force; Crucible Fire; Reverse Star; Supernova; Stun Bolt; Sarcophagus; Raiden's Wrath; Apocalypse; Flash Punch; Armor Crush; Stun Jip; Quick Slash; Bosca Hit; Mother Earth; Roc, Orc; Wild Wolf, Fatal Fang; Dinox, Power Bite; Terrible Bite; Call Zombie.
References BattleEffectColumnMesh, BattleEffectEmberStreakPictureBiasY, BattleEffectEmberStreakPictureHeights, BattleEffectEmberStreakPictures, BattleEffectEmberStreakPictureWidths, BattleEffectGlintPictureHeights, BattleEffectGlintPictures, BattleEffectGlintPictureWidths, BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, BattleEffectOctagonBandCorners, BattleEffectRingCorners, BattleEffectRingMesh, BattleEffectSquareMesh, BattleEffectTaperedBeamCorners, btCameraShake(), btCanvasBlitMirroredQuarters(), btEffectArmBg2AffineHBlankDMA(), btEffectBuildCanvasBlitters(), btEffectDarkenBackgroundStep(), btEffectDrawShadedDiscQuarter(), btEffectPackYellowOrbs(), btEffectPosProjectPoint(), btEffectPosProjectScaledBattler(), btEffectRunDull(), btEffectRunImpair(), btEffectRunMysticFlame(), btEffectRunProjectileVolley(), btEffectRunSparkGroups(), btEffectRunWeaken(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectStartTiledCanvas(), btEffectStepPaletteToResource(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btObjectGetStub(), btParticleAdvanceWithGravity2D(), btParticleAdvanceWithGravity3D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), btUnitGetEffectHeightStub(), CastingImpactApocalypseBurstHeights, CastingImpactApocalypseBurstPictures, CastingImpactApocalypseBurstPoints, CastingImpactApocalypseBurstWidths, CastingImpactApocalypseHeights and 54 more.
Referenced by btEffectRunByIdRange().
Definition at line 323 of file battle_effect_casting_impact.c.