Skip to Content
The Alchemy Project

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

NameDescription
structWATER_VERTEXA corner of the water sheet: x, y and depth, a byte each.
structWATER_TRIANGLEOne triangle of the water's mesh: three vertex indices, then a texture coordinate for each.

Macros

NameDescription
#defineUNDEAD_SWORD_SPARK_COUNT 16The sparks, and the ticks each lasts.
#defineUNDEAD_SWORD_SPARK_LIFE 28
#defineLIME_COLUMN_WIDTH 14LimeColumnSheet: one column of light, 14 by 80.
#defineLIME_COLUMN_HEIGHT 80
#defineUNDEAD_SWORD_SPARK_SHEET PICTURE_BYTES(LIME_COLUMN)Where BlastSheet is decoded, after the column.
#defineUNDEAD_SWORD_TICKS 54Ticks of the columns.
#defineUNDEAD_SWORD_HIT_TICK 10The targets are hit.
#defineUNDEAD_SWORD_RISE_TICK 8The columns break the ground.
#defineUNDEAD_SWORD_PEAK_TICK 31The columns stop rising.
#defineUNDEAD_SWORD_GROUND 112The canvas line the columns stand on and the sparks start from.
#definePLUME_EDGE_FOAM_PICTURES 8192Where FlashBurstSheet is decoded in the effect's pictures: its six pictures, in Mercury's colours, are a puff of foam bursting and fading.
#definePLUME_EDGE_TICKS 80
#definePLUME_EDGE_BILLOW 18192Where BillowTexture is decoded in the effect's pictures.
#definePLUME_EDGE_FOAM_PUFFS 32The puffs of foam drawn, one more each tick from tick 0, each for PLUME_EDGE_FOAM_TICKS: its six pictures, three ticks apiece.
#definePLUME_EDGE_FOAM_TICKS 18
#definePLUME_EDGE_LIFT_TICKS 24The geyser lifts the target this many ticks, two pixels a tick.
#definePLUME_EDGE_BURST_TICK 32The tick the geyser bursts into its drops; it is drawn until then.
#definePLUME_EDGE_FIRST_DROP 256The drops it bursts into, in PARTICLES from PLUME_EDGE_FIRST_DROP.
#definePLUME_EDGE_DROPS 256
#definePLUME_EDGE_GEYSER_FOOT 8The geyser's foot, below the target's place; it rises 8 pixels a tick.
#definePLUME_EDGE_GEYSER_SPEED 8
#defineWATER_VERTICES ((WATER_VERTEX *)RamMapMetatileBuffer)The water's 16 by 8 vertices, at the head of the map cell buffer.
#defineWATER_COLUMNS 16The water's grid of quads, across and down.
#defineWATER_ROWS 8
#defineWATER_QUAD_TEXELS_ACROSS 8A quad of the grid spans this many texels across and down; the texture wraps every 64.
#defineWATER_QUAD_TEXELS_DOWN 16
#defineWATER_QUADS ((WATER_ROWS - 1) * (WATER_COLUMNS - 1))
#defineWATER_MESH_OFFSET 16384Where the water's mesh is built in the map cell buffer.
#defineWATER_MESHThe water's mesh as triangles, two to a quad.
#defineWATER_SHEET_SWIRL 8192Where SwirlTexture is decoded in the effect's pictures.
#defineWATER_SHEET_SMOKE 12288Where SmokeSheet is decoded in the effect's pictures, and its six puffs.
#defineWATER_SHEET_SMOKE_PICTURE_COUNT 6
#defineWATER_SHEET_MIRRORED 1024Where the 32x32 picture at the sprite sheet's start is mirrored into a 64x64 one.
#defineDREAMTIDE_TICKS 48
#defineWATERY_GRAVE_TICKS 81
#defineWATER_SHEET_CAMERA_TURN 128The camera turns WATER_SHEET_CAMERA_TURN a tick until its yaw reaches WATER_SHEET_CAMERA_LIMIT either way.
#defineWATER_SHEET_CAMERA_LIMIT 12000
#defineWATER_WAVE_COLUMN_PHASE 5000The 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.
#defineWATER_WAVE_ROW_PHASE 3553
#defineWATERY_GRAVE_PUFFS 20Watery Grave's puffs of smoke, in state->particles; one is drawn only beyond WATERY_GRAVE_PUFF_DEPTH.
#defineWATERY_GRAVE_PUFF_DEPTH 10
#defineWATERY_GRAVE_TILT 4000Watery Grave tilts its water towards the camera.
#defineWATER_SHEET_START_X 128The water slides in from WATER_SHEET_START_X to WATER_SHEET_END_X, 8 pixels a tick.
#defineWATER_SHEET_END_X (-64)
#defineWIND_FUNNEL_SEGMENTS 33The 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.
#defineWIND_FUNNEL_CORNERS (WIND_FUNNEL_SEGMENTS * 2)
#defineWIND_FUNNEL_BAND 24
#defineWIND_FUNNEL_RADIUS 32The funnel's head goes round a circle of this radius.
#defineWIND_FUNNEL_VERTICES
#defineWIND_FUNNEL_MESH
#defineWIND_FUNNEL_QUADS (WIND_FUNNEL_SEGMENTS - 1)The band's quads, each 4 texels of StreakTexture across and its 32 down.
#defineWIND_FUNNEL_JUPITER_DJINN_SMALL_PICTURES 8192Where JupiterDjinnSmallSheet is decoded in the effect's pictures.
#defineWAFT_FUNNEL_HEIGHT 80How high the funnel's head stands, and how far it dips and rises again, an angle of WIND_FUNNEL_DIP_SPEED a tick.
#defineAROMA_FUNNEL_HEIGHT 30
#defineAROMA_FUNNEL_DIP 20
#defineWIND_FUNNEL_DIP_SPEED 820
#defineWIND_FUNNEL_SPREAD 21000The funnel is drawn three times, each turned WIND_FUNNEL_SPREAD further.
#defineWAFT_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.
#defineWAFT_FUNNEL_PULSE_SPEED 964
#defineAROMA_FUNNEL_PULSE_SPEED 682
#defineAROMA_FUNNEL_SPACING 16Aroma's three funnels stand one above another, this far apart.
#defineDIAMOND_BERG_TICKS 148
#defineDIAMOND_BERG_CRYSTAL_BITMAP_PICTURES 20000Where CrystalBitmapSheet, the iceberg (48 by 104), is decoded in the map cell buffer.
#defineDIAMOND_BERG_WIDTH 48
#defineDIAMOND_BERG_HEIGHT 104
#defineDIAMOND_BERG_DROP_SPEED 16The 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.
#defineDIAMOND_BERG_BLOWS 8
#defineDIAMOND_BERG_BLOW_DEPTH 8
#defineDIAMOND_BERG_GROUND 108
#defineDIAMOND_BERG_BILLOW 4096Where BillowTexture is decoded in the map cell buffer, after the frost's FlameBandTexture.
#defineDIAMOND_BERG_FIRE_RING 12416Where FireRingTexture is decoded in the effect's pictures.
#defineDIAMOND_BERG_CRASH_SHARDS 32The 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.
#defineDIAMOND_BERG_BLOW_SHARDS 8
#defineDIAMOND_BERG_SHARD_GROUND 104
#defineDIAMOND_BERG_SHARD_SPIN 1024
#defineDIAMOND_BERG_RIPPLE_TILT 3000The 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.
#defineDIAMOND_BERG_RIPPLE_START_SCALE (toFIXED(131) / 512)
#defineDIAMOND_BERG_RIPPLE_GROWTH 1400

Enumerations

NameDescription
enumWATER_SHEET_MODE { WATER_SHEET_DREAMTIDE, WATER_SHEET_WATERY_GRAVE }The water sheet's modes (btEffectRunWaterSheet).
enumWIND_FUNNEL_MODE { WIND_FUNNEL_WAFT, WIND_FUNNEL_AROMA }The wind funnel's modes (btEffectRunWindFunnel).

Functions

NameDescription
voidbtEffectRunUndeadSword (BATTLE_EFFECT_PARM *args)Two mirrored columns of light rise at the first target's feet and sink again, scattering sparks that drift upward.
voidbtEffectRunPlumeEdge (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.
voidbtPictureMirrorIntoQuadrants (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.
voidbtEffectRunDreamtide (BATTLE_EFFECT_PARM *args)Abilities: Dreamtide.
voidbtEffectRunWateryGrave (BATTLE_EFFECT_PARM *args)Abilities: Watery Grave.
voidbtEffectRunWaterSheet (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.
voidbtEffectRunWaft (BATTLE_EFFECT_PARM *args)Abilities: Waft.
voidbtEffectRunAroma (BATTLE_EFFECT_PARM *args)Abilities: Aroma.
voidbtEffectRunWindFunnel (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.
voidbtEffectRunDiamondBerg (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).

EnumeratorValueDescription
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).

EnumeratorValueDescription
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.

On this page

StructuresMacrosEnumerationsFunctionsDescriptionMacros in detailUNDEAD_SWORD_SPARK_COUNTUNDEAD_SWORD_SPARK_LIFELIME_COLUMN_WIDTHLIME_COLUMN_HEIGHTUNDEAD_SWORD_SPARK_SHEETUNDEAD_SWORD_TICKSUNDEAD_SWORD_HIT_TICKUNDEAD_SWORD_RISE_TICKUNDEAD_SWORD_PEAK_TICKUNDEAD_SWORD_GROUNDPLUME_EDGE_FOAM_PICTURESPLUME_EDGE_TICKSPLUME_EDGE_BILLOWPLUME_EDGE_FOAM_PUFFSPLUME_EDGE_FOAM_TICKSPLUME_EDGE_LIFT_TICKSPLUME_EDGE_BURST_TICKPLUME_EDGE_FIRST_DROPPLUME_EDGE_DROPSPLUME_EDGE_GEYSER_FOOTPLUME_EDGE_GEYSER_SPEEDWATER_VERTICESWATER_COLUMNSWATER_ROWSWATER_QUAD_TEXELS_ACROSSWATER_QUAD_TEXELS_DOWNWATER_QUADSWATER_MESH_OFFSETWATER_MESHWATER_SHEET_SWIRLWATER_SHEET_SMOKEWATER_SHEET_SMOKE_PICTURE_COUNTWATER_SHEET_MIRROREDDREAMTIDE_TICKSWATERY_GRAVE_TICKSWATER_SHEET_CAMERA_TURNWATER_SHEET_CAMERA_LIMITWATER_WAVE_COLUMN_PHASEWATER_WAVE_ROW_PHASEWATERY_GRAVE_PUFFSWATERY_GRAVE_PUFF_DEPTHWATERY_GRAVE_TILTWATER_SHEET_START_XWATER_SHEET_END_XWIND_FUNNEL_SEGMENTSWIND_FUNNEL_CORNERSWIND_FUNNEL_BANDWIND_FUNNEL_RADIUSWIND_FUNNEL_VERTICESWIND_FUNNEL_MESHWIND_FUNNEL_QUADSWIND_FUNNEL_JUPITER_DJINN_SMALL_PICTURESWAFT_FUNNEL_HEIGHTAROMA_FUNNEL_HEIGHTAROMA_FUNNEL_DIPWIND_FUNNEL_DIP_SPEEDWIND_FUNNEL_SPREADWAFT_FUNNEL_SCALEWAFT_FUNNEL_PULSE_SPEEDAROMA_FUNNEL_PULSE_SPEEDAROMA_FUNNEL_SPACINGDIAMOND_BERG_TICKSDIAMOND_BERG_CRYSTAL_BITMAP_PICTURESDIAMOND_BERG_WIDTHDIAMOND_BERG_HEIGHTDIAMOND_BERG_DROP_SPEEDDIAMOND_BERG_BLOWSDIAMOND_BERG_BLOW_DEPTHDIAMOND_BERG_GROUNDDIAMOND_BERG_BILLOWDIAMOND_BERG_FIRE_RINGDIAMOND_BERG_CRASH_SHARDSDIAMOND_BERG_BLOW_SHARDSDIAMOND_BERG_SHARD_GROUNDDIAMOND_BERG_SHARD_SPINDIAMOND_BERG_RIPPLE_TILTDIAMOND_BERG_RIPPLE_START_SCALEDIAMOND_BERG_RIPPLE_GROWTHEnumerations in detailWATER_SHEET_MODEWIND_FUNNEL_MODEFunctions in detailbtEffectRunUndeadSwordbtEffectRunPlumeEdgebtPictureMirrorIntoQuadrantsbtEffectRunDreamtidebtEffectRunWateryGravebtEffectRunWaterSheetbtEffectRunWaftbtEffectRunAromabtEffectRunWindFunnelbtEffectRunDiamondBerg