src/battle_effect/battle_effect_undead_sword.c
Undead Sword, Plume Edge and Diamond Berg, and the bodies of Dreamtide and Watery Grave and of Waft and Aroma. More…
Included by battle_effect.c.
Structures
| Name | Description | |
|---|---|---|
struct | WATER_VERTEX | A corner of the water sheet: x, y and depth, a byte each. |
struct | WATER_TRIANGLE | One triangle of the water's mesh: three vertex indices, then a texture coordinate for each. |
Macros
| Name | Description | |
|---|---|---|
#define | UNDEAD_SWORD_SPARK_COUNT 16 | The sparks, and the ticks each lasts. |
#define | UNDEAD_SWORD_SPARK_LIFE 28 | |
#define | LIME_COLUMN_WIDTH 14 | LimeColumnSheet: one column of light, 14 by 80. |
#define | LIME_COLUMN_HEIGHT 80 | |
#define | UNDEAD_SWORD_SPARK_SHEET PICTURE_BYTES(LIME_COLUMN) | Where BlastSheet is decoded, after the column. |
#define | UNDEAD_SWORD_TICKS 54 | Ticks of the columns. |
#define | UNDEAD_SWORD_HIT_TICK 10 | The targets are hit. |
#define | UNDEAD_SWORD_RISE_TICK 8 | The columns break the ground. |
#define | UNDEAD_SWORD_PEAK_TICK 31 | The columns stop rising. |
#define | UNDEAD_SWORD_GROUND 112 | The canvas line the columns stand on and the sparks start from. |
#define | PLUME_EDGE_FOAM_PICTURES 8192 | Where FlashBurstSheet is decoded in the effect's pictures: its six pictures, in Mercury's colours, are a puff of foam bursting and fading. |
#define | PLUME_EDGE_TICKS 80 | |
#define | PLUME_EDGE_BILLOW 18192 | Where BillowTexture is decoded in the effect's pictures. |
#define | PLUME_EDGE_FOAM_PUFFS 32 | The puffs of foam drawn, one more each tick from tick 0, each for PLUME_EDGE_FOAM_TICKS: its six pictures, three ticks apiece. |
#define | PLUME_EDGE_FOAM_TICKS 18 | |
#define | PLUME_EDGE_LIFT_TICKS 24 | The geyser lifts the target this many ticks, two pixels a tick. |
#define | PLUME_EDGE_BURST_TICK 32 | The tick the geyser bursts into its drops; it is drawn until then. |
#define | PLUME_EDGE_FIRST_DROP 256 | The drops it bursts into, in PARTICLES from PLUME_EDGE_FIRST_DROP. |
#define | PLUME_EDGE_DROPS 256 | |
#define | PLUME_EDGE_GEYSER_FOOT 8 | The geyser's foot, below the target's place; it rises 8 pixels a tick. |
#define | PLUME_EDGE_GEYSER_SPEED 8 | |
#define | WATER_VERTICES ((WATER_VERTEX *)RamMapMetatileBuffer) | The water's 16 by 8 vertices, at the head of the map cell buffer. |
#define | WATER_COLUMNS 16 | The water's grid of quads, across and down. |
#define | WATER_ROWS 8 | |
#define | WATER_QUAD_TEXELS_ACROSS 8 | A quad of the grid spans this many texels across and down; the texture wraps every 64. |
#define | WATER_QUAD_TEXELS_DOWN 16 | |
#define | WATER_QUADS ((WATER_ROWS - 1) * (WATER_COLUMNS - 1)) | |
#define | WATER_MESH_OFFSET 16384 | Where the water's mesh is built in the map cell buffer. |
#define | WATER_MESH | The water's mesh as triangles, two to a quad. |
#define | WATER_SHEET_SWIRL 8192 | Where SwirlTexture is decoded in the effect's pictures. |
#define | WATER_SHEET_SMOKE 12288 | Where SmokeSheet is decoded in the effect's pictures, and its six puffs. |
#define | WATER_SHEET_SMOKE_PICTURE_COUNT 6 | |
#define | WATER_SHEET_MIRRORED 1024 | Where the 32x32 picture at the sprite sheet's start is mirrored into a 64x64 one. |
#define | DREAMTIDE_TICKS 48 | |
#define | WATERY_GRAVE_TICKS 81 | |
#define | WATER_SHEET_CAMERA_TURN 128 | The camera turns WATER_SHEET_CAMERA_TURN a tick until its yaw reaches WATER_SHEET_CAMERA_LIMIT either way. |
#define | WATER_SHEET_CAMERA_LIMIT 12000 | |
#define | WATER_WAVE_COLUMN_PHASE 5000 | The angle a wave's phase moves on from one column of the grid to the next, and the one each row's phase is the sine of a multiple of. |
#define | WATER_WAVE_ROW_PHASE 3553 | |
#define | WATERY_GRAVE_PUFFS 20 | Watery Grave's puffs of smoke, in state->particles; one is drawn only beyond WATERY_GRAVE_PUFF_DEPTH. |
#define | WATERY_GRAVE_PUFF_DEPTH 10 | |
#define | WATERY_GRAVE_TILT 4000 | Watery Grave tilts its water towards the camera. |
#define | WATER_SHEET_START_X 128 | The water slides in from WATER_SHEET_START_X to WATER_SHEET_END_X, 8 pixels a tick. |
#define | WATER_SHEET_END_X (-64) | |
#define | WIND_FUNNEL_SEGMENTS 33 | The funnel is a band of WIND_FUNNEL_SEGMENTS segments, each two corners WIND_FUNNEL_BAND apart in height, laid in the map cell buffer: the corners, then those btRenderTransformVertices makes of them, then the band's mesh. |
#define | WIND_FUNNEL_CORNERS (WIND_FUNNEL_SEGMENTS * 2) | |
#define | WIND_FUNNEL_BAND 24 | |
#define | WIND_FUNNEL_RADIUS 32 | The funnel's head goes round a circle of this radius. |
#define | WIND_FUNNEL_VERTICES | |
#define | WIND_FUNNEL_MESH | |
#define | WIND_FUNNEL_QUADS (WIND_FUNNEL_SEGMENTS - 1) | The band's quads, each 4 texels of StreakTexture across and its 32 down. |
#define | WIND_FUNNEL_JUPITER_DJINN_SMALL_PICTURES 8192 | Where JupiterDjinnSmallSheet is decoded in the effect's pictures. |
#define | WAFT_FUNNEL_HEIGHT 80 | How high the funnel's head stands, and how far it dips and rises again, an angle of WIND_FUNNEL_DIP_SPEED a tick. |
#define | AROMA_FUNNEL_HEIGHT 30 | |
#define | AROMA_FUNNEL_DIP 20 | |
#define | WIND_FUNNEL_DIP_SPEED 820 | |
#define | WIND_FUNNEL_SPREAD 21000 | The funnel is drawn three times, each turned WIND_FUNNEL_SPREAD further. |
#define | WAFT_FUNNEL_SCALE (toFIXED(2673) / 2048) | Waft's funnels swell and shrink about WAFT_FUNNEL_SCALE, an angle of WAFT_FUNNEL_PULSE_SPEED a tick; Aroma's about full size. |
#define | WAFT_FUNNEL_PULSE_SPEED 964 | |
#define | AROMA_FUNNEL_PULSE_SPEED 682 | |
#define | AROMA_FUNNEL_SPACING 16 | Aroma's three funnels stand one above another, this far apart. |
#define | DIAMOND_BERG_TICKS 148 | |
#define | DIAMOND_BERG_CRYSTAL_BITMAP_PICTURES 20000 | Where CrystalBitmapSheet, the iceberg (48 by 104), is decoded in the map cell buffer. |
#define | DIAMOND_BERG_WIDTH 48 | |
#define | DIAMOND_BERG_HEIGHT 104 | |
#define | DIAMOND_BERG_DROP_SPEED 16 | The berg drops DIAMOND_BERG_DROP_SPEED lines a tick, then each of DIAMOND_BERG_BLOWS blows drives it DIAMOND_BERG_BLOW_DEPTH further, and the ground cuts it off at DIAMOND_BERG_GROUND. |
#define | DIAMOND_BERG_BLOWS 8 | |
#define | DIAMOND_BERG_BLOW_DEPTH 8 | |
#define | DIAMOND_BERG_GROUND 108 | |
#define | DIAMOND_BERG_BILLOW 4096 | Where BillowTexture is decoded in the map cell buffer, after the frost's FlameBandTexture. |
#define | DIAMOND_BERG_FIRE_RING 12416 | Where FireRingTexture is decoded in the effect's pictures. |
#define | DIAMOND_BERG_CRASH_SHARDS 32 | The shards: DIAMOND_BERG_CRASH_SHARDS when the berg lands, then DIAMOND_BERG_BLOW_SHARDS at each blow, in the slots after them; a shard bounces on DIAMOND_BERG_SHARD_GROUND and is drawn until it has spun DIAMOND_BERG_SHARD_SPIN. |
#define | DIAMOND_BERG_BLOW_SHARDS 8 | |
#define | DIAMOND_BERG_SHARD_GROUND 104 | |
#define | DIAMOND_BERG_SHARD_SPIN 1024 | |
#define | DIAMOND_BERG_RIPPLE_TILT 3000 | The ripples of frost lean towards the camera, each starting at about a quarter of its size and growing by its row's growth times DIAMOND_BERG_RIPPLE_GROWTH a tick. |
#define | DIAMOND_BERG_RIPPLE_START_SCALE (toFIXED(131) / 512) | |
#define | DIAMOND_BERG_RIPPLE_GROWTH 1400 |
Enumerations
| Name | Description | |
|---|---|---|
enum | WATER_SHEET_MODE { WATER_SHEET_DREAMTIDE, WATER_SHEET_WATERY_GRAVE } | The water sheet's modes (btEffectRunWaterSheet). |
enum | WIND_FUNNEL_MODE { WIND_FUNNEL_WAFT, WIND_FUNNEL_AROMA } | The wind funnel's modes (btEffectRunWindFunnel). |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunUndeadSword (BATTLE_EFFECT_PARM *args) | Two mirrored columns of light rise at the first target's feet and sink again, scattering sparks that drift upward. |
void | btEffectRunPlumeEdge (BATTLE_EFFECT_PARM *args) | A geyser of water erupts under the target in billows of foam and lifts it; the user dashes in, and the geyser bursts into a spray of drops as the canvas flashes white. |
void | btPictureMirrorIntoQuadrants (Uint8 *src, Uint8 *dest, Sint32 width, Sint32 height) | Copies a width by height picture into a picture twice its size, mirrored into all four quadrants. |
void | btEffectRunDreamtide (BATTLE_EFFECT_PARM *args) | Abilities: Dreamtide. |
void | btEffectRunWateryGrave (BATTLE_EFFECT_PARM *args) | Abilities: Watery Grave. |
void | btEffectRunWaterSheet (BATTLE_EFFECT_PARM *args, Sint32 mode) | The body of Dreamtide and Watery Grave: a sheet of water (a 16 by 8 grid of vertices, its mesh built here) rolls in under the targets in waves while the camera turns; Dreamtide strikes the first target with two splashes at tick 17, Watery Grave strikes every target at ticks 17 and 46 while puffs of smoke bob on the water. |
void | btEffectRunWaft (BATTLE_EFFECT_PARM *args) | Abilities: Waft. |
void | btEffectRunAroma (BATTLE_EFFECT_PARM *args) | Abilities: Aroma. |
void | btEffectRunWindFunnel (BATTLE_EFFECT_PARM *args, Sint32 mode) | The body of Waft and Aroma: after the Jupiter Djinni's entrance a small Djinni bobs and rises, while three funnels of wind, each a band whose head moves and whose tail follows where the head has been, twist over the targets and take on Waft's cyan or Aroma's tan; Waft strikes the first target at tick 28, Aroma touches each target in turn, four ticks apart. |
void | btEffectRunDiamondBerg (BATTLE_EFFECT_PARM *args) | An iceberg drops onto the target and is driven down in eight blows (every eighth tick from 31), each throwing eight shards and flaring a ring; the last shatters it in a flash. |
Description
Undead Sword, Plume Edge and Diamond Berg, and the bodies of Dreamtide and
Watery Grave and of Waft and Aroma. Part of battle_effect.c.
Macros in detail
UNDEAD_SWORD_SPARK_COUNT
#define UNDEAD_SWORD_SPARK_COUNT 16
The sparks, and the ticks each lasts.
Referenced by btEffectRunUndeadSword().
Definition at line 19 of file battle_effect_undead_sword.c.
UNDEAD_SWORD_SPARK_LIFE
#define UNDEAD_SWORD_SPARK_LIFE 28
Referenced by btEffectRunUndeadSword().
Definition at line 20 of file battle_effect_undead_sword.c.
LIME_COLUMN_WIDTH
#define LIME_COLUMN_WIDTH 14
LimeColumnSheet: one column of light, 14 by 80.
Referenced by btEffectRunUndeadSword().
Definition at line 22 of file battle_effect_undead_sword.c.
LIME_COLUMN_HEIGHT
#define LIME_COLUMN_HEIGHT 80
Referenced by btEffectRunUndeadSword().
Definition at line 23 of file battle_effect_undead_sword.c.
UNDEAD_SWORD_SPARK_SHEET
#define UNDEAD_SWORD_SPARK_SHEET PICTURE_BYTES(LIME_COLUMN)
Where BlastSheet is decoded, after the column.
Referenced by btEffectRunUndeadSword().
Definition at line 25 of file battle_effect_undead_sword.c.
UNDEAD_SWORD_TICKS
#define UNDEAD_SWORD_TICKS 54
Ticks of the columns.
Referenced by btEffectRunUndeadSword().
Definition at line 28 of file battle_effect_undead_sword.c.
UNDEAD_SWORD_HIT_TICK
#define UNDEAD_SWORD_HIT_TICK 10
The targets are hit.
Referenced by btEffectRunUndeadSword().
Definition at line 30 of file battle_effect_undead_sword.c.
UNDEAD_SWORD_RISE_TICK
#define UNDEAD_SWORD_RISE_TICK 8
The columns break the ground.
Referenced by btEffectRunUndeadSword().
Definition at line 32 of file battle_effect_undead_sword.c.
UNDEAD_SWORD_PEAK_TICK
#define UNDEAD_SWORD_PEAK_TICK 31
The columns stop rising.
Referenced by btEffectRunUndeadSword().
Definition at line 34 of file battle_effect_undead_sword.c.
UNDEAD_SWORD_GROUND
#define UNDEAD_SWORD_GROUND 112
The canvas line the columns stand on and the sparks start from.
Referenced by btEffectRunUndeadSword().
Definition at line 36 of file battle_effect_undead_sword.c.
PLUME_EDGE_FOAM_PICTURES
#define PLUME_EDGE_FOAM_PICTURES 8192
Where FlashBurstSheet is decoded in the effect's pictures: its six pictures, in Mercury's colours, are a puff of foam bursting and fading.
Referenced by btEffectRunPlumeEdge().
Definition at line 194 of file battle_effect_undead_sword.c.
PLUME_EDGE_TICKS
#define PLUME_EDGE_TICKS 80
Referenced by btEffectRunPlumeEdge().
Definition at line 196 of file battle_effect_undead_sword.c.
PLUME_EDGE_BILLOW
#define PLUME_EDGE_BILLOW 18192
Where BillowTexture is decoded in the effect's pictures.
Referenced by btEffectRunPlumeEdge().
Definition at line 199 of file battle_effect_undead_sword.c.
PLUME_EDGE_FOAM_PUFFS
#define PLUME_EDGE_FOAM_PUFFS 32
The puffs of foam drawn, one more each tick from tick 0, each for
PLUME_EDGE_FOAM_TICKS: its six pictures, three ticks apiece.
Referenced by btEffectRunPlumeEdge().
Definition at line 203 of file battle_effect_undead_sword.c.
PLUME_EDGE_FOAM_TICKS
#define PLUME_EDGE_FOAM_TICKS 18
Referenced by btEffectRunPlumeEdge().
Definition at line 204 of file battle_effect_undead_sword.c.
PLUME_EDGE_LIFT_TICKS
#define PLUME_EDGE_LIFT_TICKS 24
The geyser lifts the target this many ticks, two pixels a tick.
Referenced by btEffectRunPlumeEdge().
Definition at line 206 of file battle_effect_undead_sword.c.
PLUME_EDGE_BURST_TICK
#define PLUME_EDGE_BURST_TICK 32
The tick the geyser bursts into its drops; it is drawn until then.
Referenced by btEffectRunPlumeEdge().
Definition at line 208 of file battle_effect_undead_sword.c.
PLUME_EDGE_FIRST_DROP
#define PLUME_EDGE_FIRST_DROP 256
The drops it bursts into, in PARTICLES from PLUME_EDGE_FIRST_DROP.
Referenced by btEffectRunPlumeEdge().
Definition at line 210 of file battle_effect_undead_sword.c.
PLUME_EDGE_DROPS
#define PLUME_EDGE_DROPS 256
Referenced by btEffectRunPlumeEdge().
Definition at line 211 of file battle_effect_undead_sword.c.
PLUME_EDGE_GEYSER_FOOT
#define PLUME_EDGE_GEYSER_FOOT 8
The geyser's foot, below the target's place; it rises 8 pixels a tick.
Referenced by btEffectRunPlumeEdge().
Definition at line 213 of file battle_effect_undead_sword.c.
PLUME_EDGE_GEYSER_SPEED
#define PLUME_EDGE_GEYSER_SPEED 8
Referenced by btEffectRunPlumeEdge().
Definition at line 214 of file battle_effect_undead_sword.c.
WATER_VERTICES
#define WATER_VERTICES ((WATER_VERTEX *)RamMapMetatileBuffer)
The water's 16 by 8 vertices, at the head of the map cell buffer.
Referenced by btEffectRunWaterSheet().
Definition at line 444 of file battle_effect_undead_sword.c.
WATER_COLUMNS
#define WATER_COLUMNS 16
The water's grid of quads, across and down.
Referenced by btEffectRunWaterSheet().
Definition at line 463 of file battle_effect_undead_sword.c.
WATER_ROWS
#define WATER_ROWS 8
Referenced by btEffectRunWaterSheet().
Definition at line 464 of file battle_effect_undead_sword.c.
WATER_QUAD_TEXELS_ACROSS
#define WATER_QUAD_TEXELS_ACROSS 8
A quad of the grid spans this many texels across and down; the texture wraps every 64.
Referenced by btEffectRunWaterSheet().
Definition at line 467 of file battle_effect_undead_sword.c.
WATER_QUAD_TEXELS_DOWN
#define WATER_QUAD_TEXELS_DOWN 16
Referenced by btEffectRunWaterSheet().
Definition at line 468 of file battle_effect_undead_sword.c.
WATER_QUADS
#define WATER_QUADS ((WATER_ROWS - 1) * (WATER_COLUMNS - 1))
Referenced by btEffectRunWaterSheet().
Definition at line 469 of file battle_effect_undead_sword.c.
WATER_MESH_OFFSET
#define WATER_MESH_OFFSET 16384
Where the water's mesh is built in the map cell buffer.
Referenced by btEffectRunWaterSheet().
Definition at line 471 of file battle_effect_undead_sword.c.
WATER_MESH
#define WATER_MESH
The water's mesh as triangles, two to a quad.
Referenced by btEffectRunWaterSheet().
Definition at line 473 of file battle_effect_undead_sword.c.
WATER_SHEET_SWIRL
#define WATER_SHEET_SWIRL 8192
Where SwirlTexture is decoded in the effect's pictures.
Referenced by btEffectRunWaterSheet().
Definition at line 477 of file battle_effect_undead_sword.c.
WATER_SHEET_SMOKE
#define WATER_SHEET_SMOKE 12288
Where SmokeSheet is decoded in the effect's pictures, and its six puffs.
Referenced by btEffectRunWaterSheet().
Definition at line 480 of file battle_effect_undead_sword.c.
WATER_SHEET_SMOKE_PICTURE_COUNT
#define WATER_SHEET_SMOKE_PICTURE_COUNT 6
Referenced by btEffectRunWaterSheet().
Definition at line 481 of file battle_effect_undead_sword.c.
WATER_SHEET_MIRRORED
#define WATER_SHEET_MIRRORED 1024
Where the 32x32 picture at the sprite sheet's start is mirrored into a 64x64 one.
Referenced by btEffectRunWaterSheet().
Definition at line 485 of file battle_effect_undead_sword.c.
DREAMTIDE_TICKS
#define DREAMTIDE_TICKS 48
Referenced by btEffectRunWaterSheet().
Definition at line 487 of file battle_effect_undead_sword.c.
WATERY_GRAVE_TICKS
#define WATERY_GRAVE_TICKS 81
Referenced by btEffectRunWaterSheet().
Definition at line 488 of file battle_effect_undead_sword.c.
WATER_SHEET_CAMERA_TURN
#define WATER_SHEET_CAMERA_TURN 128
The camera turns WATER_SHEET_CAMERA_TURN a tick until its yaw reaches
WATER_SHEET_CAMERA_LIMIT either way.
Referenced by btEffectRunWaterSheet().
Definition at line 491 of file battle_effect_undead_sword.c.
WATER_SHEET_CAMERA_LIMIT
#define WATER_SHEET_CAMERA_LIMIT 12000
Referenced by btEffectRunWaterSheet().
Definition at line 492 of file battle_effect_undead_sword.c.
WATER_WAVE_COLUMN_PHASE
#define WATER_WAVE_COLUMN_PHASE 5000
The angle a wave's phase moves on from one column of the grid to the next, and the one each row's phase is the sine of a multiple of.
Referenced by btEffectRunWaterSheet().
Definition at line 495 of file battle_effect_undead_sword.c.
WATER_WAVE_ROW_PHASE
#define WATER_WAVE_ROW_PHASE 3553
Referenced by btEffectRunWaterSheet().
Definition at line 496 of file battle_effect_undead_sword.c.
WATERY_GRAVE_PUFFS
#define WATERY_GRAVE_PUFFS 20
Watery Grave's puffs of smoke, in state->particles; one is drawn only beyond
WATERY_GRAVE_PUFF_DEPTH.
Referenced by btEffectRunWaterSheet().
Definition at line 499 of file battle_effect_undead_sword.c.
WATERY_GRAVE_PUFF_DEPTH
#define WATERY_GRAVE_PUFF_DEPTH 10
Referenced by btEffectRunWaterSheet().
Definition at line 500 of file battle_effect_undead_sword.c.
WATERY_GRAVE_TILT
#define WATERY_GRAVE_TILT 4000
Watery Grave tilts its water towards the camera.
Referenced by btEffectRunWaterSheet().
Definition at line 502 of file battle_effect_undead_sword.c.
WATER_SHEET_START_X
#define WATER_SHEET_START_X 128
The water slides in from WATER_SHEET_START_X to WATER_SHEET_END_X, 8 pixels a
tick.
Referenced by btEffectRunWaterSheet().
Definition at line 505 of file battle_effect_undead_sword.c.
WATER_SHEET_END_X
#define WATER_SHEET_END_X (-64)
Referenced by btEffectRunWaterSheet().
Definition at line 506 of file battle_effect_undead_sword.c.
WIND_FUNNEL_SEGMENTS
#define WIND_FUNNEL_SEGMENTS 33
The funnel is a band of WIND_FUNNEL_SEGMENTS segments, each two corners
WIND_FUNNEL_BAND apart in height, laid in the map cell buffer: the corners,
then those btRenderTransformVertices makes of them, then the band's mesh.
Referenced by btEffectRunWindFunnel().
Definition at line 960 of file battle_effect_undead_sword.c.
WIND_FUNNEL_CORNERS
#define WIND_FUNNEL_CORNERS (WIND_FUNNEL_SEGMENTS * 2)
Referenced by btEffectRunWindFunnel().
Definition at line 961 of file battle_effect_undead_sword.c.
WIND_FUNNEL_BAND
#define WIND_FUNNEL_BAND 24
Referenced by btEffectRunWindFunnel().
Definition at line 962 of file battle_effect_undead_sword.c.
WIND_FUNNEL_RADIUS
#define WIND_FUNNEL_RADIUS 32
The funnel's head goes round a circle of this radius.
Referenced by btEffectRunWindFunnel().
Definition at line 964 of file battle_effect_undead_sword.c.
WIND_FUNNEL_VERTICES
#define WIND_FUNNEL_VERTICES
Referenced by btEffectRunWindFunnel().
Definition at line 965 of file battle_effect_undead_sword.c.
WIND_FUNNEL_MESH
#define WIND_FUNNEL_MESH
Referenced by btEffectRunWindFunnel().
Definition at line 967 of file battle_effect_undead_sword.c.
WIND_FUNNEL_QUADS
#define WIND_FUNNEL_QUADS (WIND_FUNNEL_SEGMENTS - 1)
The band's quads, each 4 texels of StreakTexture across and its 32 down.
Referenced by btEffectRunWindFunnel().
Definition at line 970 of file battle_effect_undead_sword.c.
WIND_FUNNEL_JUPITER_DJINN_SMALL_PICTURES
#define WIND_FUNNEL_JUPITER_DJINN_SMALL_PICTURES 8192
Where JupiterDjinnSmallSheet is decoded in the effect's pictures.
Referenced by btEffectRunWindFunnel().
Definition at line 973 of file battle_effect_undead_sword.c.
WAFT_FUNNEL_HEIGHT
#define WAFT_FUNNEL_HEIGHT 80
How high the funnel's head stands, and how far it dips and rises again, an
angle of WIND_FUNNEL_DIP_SPEED a tick.
Referenced by btEffectRunWindFunnel().
Definition at line 977 of file battle_effect_undead_sword.c.
AROMA_FUNNEL_HEIGHT
#define AROMA_FUNNEL_HEIGHT 30
Referenced by btEffectRunWindFunnel().
Definition at line 978 of file battle_effect_undead_sword.c.
AROMA_FUNNEL_DIP
#define AROMA_FUNNEL_DIP 20
Referenced by btEffectRunWindFunnel().
Definition at line 979 of file battle_effect_undead_sword.c.
WIND_FUNNEL_DIP_SPEED
#define WIND_FUNNEL_DIP_SPEED 820
Referenced by btEffectRunWindFunnel().
Definition at line 980 of file battle_effect_undead_sword.c.
WIND_FUNNEL_SPREAD
#define WIND_FUNNEL_SPREAD 21000
The funnel is drawn three times, each turned WIND_FUNNEL_SPREAD further.
Referenced by btEffectRunWindFunnel().
Definition at line 982 of file battle_effect_undead_sword.c.
WAFT_FUNNEL_SCALE
#define WAFT_FUNNEL_SCALE (toFIXED(2673) / 2048)
Waft's funnels swell and shrink about WAFT_FUNNEL_SCALE, an angle of
WAFT_FUNNEL_PULSE_SPEED a tick; Aroma's about full size.
Referenced by btEffectRunWindFunnel().
Definition at line 985 of file battle_effect_undead_sword.c.
WAFT_FUNNEL_PULSE_SPEED
#define WAFT_FUNNEL_PULSE_SPEED 964
Referenced by btEffectRunWindFunnel().
Definition at line 986 of file battle_effect_undead_sword.c.
AROMA_FUNNEL_PULSE_SPEED
#define AROMA_FUNNEL_PULSE_SPEED 682
Referenced by btEffectRunWindFunnel().
Definition at line 987 of file battle_effect_undead_sword.c.
AROMA_FUNNEL_SPACING
#define AROMA_FUNNEL_SPACING 16
Aroma's three funnels stand one above another, this far apart.
Referenced by btEffectRunWindFunnel().
Definition at line 989 of file battle_effect_undead_sword.c.
DIAMOND_BERG_TICKS
#define DIAMOND_BERG_TICKS 148
Referenced by btEffectRunDiamondBerg().
Definition at line 1318 of file battle_effect_undead_sword.c.
DIAMOND_BERG_CRYSTAL_BITMAP_PICTURES
#define DIAMOND_BERG_CRYSTAL_BITMAP_PICTURES 20000
Where CrystalBitmapSheet, the iceberg (48 by 104), is decoded in the map cell buffer.
Referenced by btEffectRunDiamondBerg().
Definition at line 1322 of file battle_effect_undead_sword.c.
DIAMOND_BERG_WIDTH
#define DIAMOND_BERG_WIDTH 48
Referenced by btEffectRunDiamondBerg().
Definition at line 1323 of file battle_effect_undead_sword.c.
DIAMOND_BERG_HEIGHT
#define DIAMOND_BERG_HEIGHT 104
Referenced by btEffectRunDiamondBerg().
Definition at line 1324 of file battle_effect_undead_sword.c.
DIAMOND_BERG_DROP_SPEED
#define DIAMOND_BERG_DROP_SPEED 16
The berg drops DIAMOND_BERG_DROP_SPEED lines a tick, then each of
DIAMOND_BERG_BLOWS blows drives it DIAMOND_BERG_BLOW_DEPTH further, and the
ground cuts it off at DIAMOND_BERG_GROUND.
Referenced by btEffectRunDiamondBerg().
Definition at line 1328 of file battle_effect_undead_sword.c.
DIAMOND_BERG_BLOWS
#define DIAMOND_BERG_BLOWS 8
Referenced by btEffectRunDiamondBerg().
Definition at line 1329 of file battle_effect_undead_sword.c.
DIAMOND_BERG_BLOW_DEPTH
#define DIAMOND_BERG_BLOW_DEPTH 8
Referenced by btEffectRunDiamondBerg().
Definition at line 1330 of file battle_effect_undead_sword.c.
DIAMOND_BERG_GROUND
#define DIAMOND_BERG_GROUND 108
Referenced by btEffectRunDiamondBerg().
Definition at line 1331 of file battle_effect_undead_sword.c.
DIAMOND_BERG_BILLOW
#define DIAMOND_BERG_BILLOW 4096
Where BillowTexture is decoded in the map cell buffer, after the frost's FlameBandTexture.
Referenced by btEffectRunDiamondBerg().
Definition at line 1335 of file battle_effect_undead_sword.c.
DIAMOND_BERG_FIRE_RING
#define DIAMOND_BERG_FIRE_RING 12416
Where FireRingTexture is decoded in the effect's pictures.
Referenced by btEffectRunDiamondBerg().
Definition at line 1338 of file battle_effect_undead_sword.c.
DIAMOND_BERG_CRASH_SHARDS
#define DIAMOND_BERG_CRASH_SHARDS 32
The shards: DIAMOND_BERG_CRASH_SHARDS when the berg lands, then
DIAMOND_BERG_BLOW_SHARDS at each blow, in the slots after them; a shard
bounces on DIAMOND_BERG_SHARD_GROUND and is drawn until it has spun
DIAMOND_BERG_SHARD_SPIN.
Referenced by btEffectRunDiamondBerg().
Definition at line 1344 of file battle_effect_undead_sword.c.
DIAMOND_BERG_BLOW_SHARDS
#define DIAMOND_BERG_BLOW_SHARDS 8
Referenced by btEffectRunDiamondBerg().
Definition at line 1345 of file battle_effect_undead_sword.c.
DIAMOND_BERG_SHARD_GROUND
#define DIAMOND_BERG_SHARD_GROUND 104
Referenced by btEffectRunDiamondBerg().
Definition at line 1346 of file battle_effect_undead_sword.c.
DIAMOND_BERG_SHARD_SPIN
#define DIAMOND_BERG_SHARD_SPIN 1024
Referenced by btEffectRunDiamondBerg().
Definition at line 1347 of file battle_effect_undead_sword.c.
DIAMOND_BERG_RIPPLE_TILT
#define DIAMOND_BERG_RIPPLE_TILT 3000
The ripples of frost lean towards the camera, each starting at about a
quarter of its size and growing by its row's growth times
DIAMOND_BERG_RIPPLE_GROWTH a tick.
Referenced by btEffectRunDiamondBerg().
Definition at line 1351 of file battle_effect_undead_sword.c.
DIAMOND_BERG_RIPPLE_START_SCALE
#define DIAMOND_BERG_RIPPLE_START_SCALE (toFIXED(131) / 512)
Referenced by btEffectRunDiamondBerg().
Definition at line 1352 of file battle_effect_undead_sword.c.
DIAMOND_BERG_RIPPLE_GROWTH
#define DIAMOND_BERG_RIPPLE_GROWTH 1400
Referenced by btEffectRunDiamondBerg().
Definition at line 1353 of file battle_effect_undead_sword.c.
Enumerations in detail
WATER_SHEET_MODE
enum WATER_SHEET_MODE
The water sheet's modes (btEffectRunWaterSheet).
| Enumerator | Value | Description |
|---|---|---|
WATER_SHEET_DREAMTIDE | ||
WATER_SHEET_WATERY_GRAVE |
Definition at line 5 of file battle_effect_undead_sword.c.
WIND_FUNNEL_MODE
enum WIND_FUNNEL_MODE
The wind funnel's modes (btEffectRunWindFunnel).
| Enumerator | Value | Description |
|---|---|---|
WIND_FUNNEL_WAFT | ||
WIND_FUNNEL_AROMA |
Definition at line 12 of file battle_effect_undead_sword.c.
Functions in detail
btEffectRunUndeadSword
void btEffectRunUndeadSword(BATTLE_EFFECT_PARM *args)
Two mirrored columns of light rise at the first target's feet and sink again, scattering sparks that drift upward.
Abilities: Undead Sword.
References btCameraShake(), btEffectBuildCanvasBlitters(), btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), Sint32, syCloseEvent(), syCos(), syHeapSlotRelease(), syRandom(), sySin(), UndeadSwordPuffPictures and UndeadSwordPuffSizes.
Referenced by BattleEffectHandlers.
Definition at line 42 of file battle_effect_undead_sword.c.
btEffectRunPlumeEdge
void btEffectRunPlumeEdge(BATTLE_EFFECT_PARM *args)
A geyser of water erupts under the target in billows of foam and lifts it; the user dashes in, and the geyser bursts into a spray of drops as the canvas flashes white.
Abilities: Plume Edge.
References btEffectBuildCanvasBlitters(), btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectSetApproachMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btMotionApproachTargetStub(), btObjectGetStub(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), Sint32, syCloseEvent(), syCos(), syHeapSlotRelease(), syRandom(), syResourceGetTableEntry(), sySin() and sySoundPlayStub().
Referenced by BattleEffectHandlers.
Definition at line 221 of file battle_effect_undead_sword.c.
btPictureMirrorIntoQuadrants
void btPictureMirrorIntoQuadrants(Uint8 *src, Uint8 *dest, Sint32 width, Sint32 height)
Copies a width by height picture into a picture twice its size, mirrored into all four quadrants.
References Sint32.
Referenced by btEffectRunAzul(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunGaspFamily(), btEffectRunHaures(), btEffectRunLegend(), btEffectRunRagingHeat() and btEffectRunWaterSheet().
Definition at line 401 of file battle_effect_undead_sword.c.
btEffectRunDreamtide
void btEffectRunDreamtide(BATTLE_EFFECT_PARM *args)
Abilities: Dreamtide.
References btEffectRunWaterSheet().
Referenced by BattleEffectHandlers.
Definition at line 424 of file battle_effect_undead_sword.c.
btEffectRunWateryGrave
void btEffectRunWateryGrave(BATTLE_EFFECT_PARM *args)
Abilities: Watery Grave.
References btEffectRunWaterSheet().
Referenced by BattleEffectHandlers.
Definition at line 430 of file battle_effect_undead_sword.c.
btEffectRunWaterSheet
void btEffectRunWaterSheet(BATTLE_EFFECT_PARM *args, Sint32 mode)
The body of Dreamtide and Watery Grave: a sheet of water (a 16 by 8 grid of vertices, its mesh built here) rolls in under the targets in waves while the camera turns; Dreamtide strikes the first target with two splashes at tick 17, Watery Grave strikes every target at ticks 17 and 46 while puffs of smoke bob on the water.
References BattleEffectGroundSquareCorners, BattleEffectSquareMesh, btCameraShake(), btEffectConfigureEffectDisplay(), btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectPosProjectPoint(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity3D(), btPictureMirrorIntoQuadrants(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), fdScreenPointCoordinates(), MapGridMetatileBuffer, Sint32, syCloseEvent(), syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syMatrixScaleUniform(), syRandom(), syRotX(), syRotY(), syRotZ(), syScale(), sySin(), sySoundPlayStub() and syTranslate().
Referenced by btEffectRunDreamtide() and btEffectRunWateryGrave().
Definition at line 513 of file battle_effect_undead_sword.c.
btEffectRunWaft
void btEffectRunWaft(BATTLE_EFFECT_PARM *args)
Abilities: Waft.
References btEffectRunWindFunnel().
Referenced by BattleEffectHandlers.
Definition at line 946 of file battle_effect_undead_sword.c.
btEffectRunAroma
void btEffectRunAroma(BATTLE_EFFECT_PARM *args)
Abilities: Aroma.
References btEffectRunWindFunnel().
Referenced by BattleEffectHandlers.
Definition at line 952 of file battle_effect_undead_sword.c.
btEffectRunWindFunnel
void btEffectRunWindFunnel(BATTLE_EFFECT_PARM *args, Sint32 mode)
The body of Waft and Aroma: after the Jupiter Djinni's entrance a small Djinni bobs and rises, while three funnels of wind, each a band whose head moves and whose tail follows where the head has been, twist over the targets and take on Waft's cyan or Aroma's tan; Waft strikes the first target at tick 28, Aroma touches each target in turn, four ticks apart.
References btCameraShake(), btEffectEndCanvasLayer(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btEffectTransferCanvas(), btRenderAllocateModelList(), btRenderBuildQuadStrip(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), MapGridMetatileBuffer, ProjectionWork, Sint32, syCloseEvent(), syCos(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syLookAtLoad(), syRotX(), syRotY(), syScale(), sySetEvent(), sySin(), sySoundPlayStub(), syTranslate() and WindFunnelCounts.
Referenced by btEffectRunAroma() and btEffectRunWaft().
Definition at line 996 of file battle_effect_undead_sword.c.
btEffectRunDiamondBerg
void btEffectRunDiamondBerg(BATTLE_EFFECT_PARM *args)
An iceberg drops onto the target and is driven down in eight blows (every eighth tick from 31), each throwing eight shards and flaring a ring; the last shatters it in a flash. Ripples of frost spread beneath.
Abilities: Diamond Berg.
References BattleEffectCylinderCorners, BattleEffectCylinderMesh, BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, btCameraShake(), btEffectPosProjectBattler(), btEffectSetApproachMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity2D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), DiamondBergRingGrowth, DiamondBergRingHeights, DiamondBergRingStarts, DiamondBergShardPitches, DiamondBergShardRolls, MapGridMetatileBuffer, PrismShardHeights, PrismShardPictures, PrismShardWidths, Sint32, syHeapAllocateEWRAM(), syHeapRelease(), syInitMatrix(), syMatrixScaleUniform(), syRandom(), syRotX(), syRotY(), syRotZ(), syScale(), sySoundPlayStub() and syTranslate().
Referenced by BattleEffectHandlers.
Definition at line 1360 of file battle_effect_undead_sword.c.