Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_cruel_ruin.c

Cruel Ruin, one of the Doom Dragon's attacks. More…

Included by battle_effect.c.

Macros

NameDescription
#defineCRUEL_RUIN_SWIRL 9800Where Cruel Ruin's pictures are built or decoded in the effect's pictures: SwirlTexture; GlowBandTextureA (GlowBandTextureB in the second act) and GlowBandTextureB; PinkBarSheet; the ten shaded circles, 2 to 20 wide, at CruelRuinCirclePictures; and, in the last act, GlowBandTextureB with the shaded circle drawn after it.
#defineCRUEL_RUIN_BAND_A 13896
#defineCRUEL_RUIN_BAND_B 13960
#defineCRUEL_RUIN_PINK_BAR 14024
#defineCRUEL_RUIN_CIRCLES 14920
#defineCRUEL_RUIN_BURST_BAND 14400
#defineCRUEL_RUIN_BURST_CIRCLE 14528
#defineCRUEL_RUIN_RUNE_CIRCLE 16384CornerRuneASheet's 64x64 rune mirrored into a 128x128 one, in the map cell buffer.
#defineCRUEL_RUIN_STRIP_MESH (RamMapMetatileBuffer + 8192)The ribbons' strip mesh, in the map cell buffer.
#defineCRUEL_RUIN_SKY_TICKS 180The sky act lasts CRUEL_RUIN_SKY_TICKS.
#defineCRUEL_RUIN_BURST_TICK 124
#defineCRUEL_RUIN_MOTE_TICK 128
#defineCRUEL_RUIN_BALL_TICK 160
#defineCRUEL_RUIN_BALL_LANDING_TICK 169
#defineCRUEL_RUIN_SKY_CRIMSON_TICK 32The sky's colour through the act, each a level added to the sunbeam clouds' red, green and blue: from CRUEL_RUIN_SKY_CRIMSON_TICK it deepens to crimson; at the burst it flashes orange, then fades to a greyish green from CRUEL_RUIN_BURST_TICK + 4, turns a bright green from CRUEL_RUIN_SKY_GREEN_TICK and goes back to orange from CRUEL_RUIN_SKY_GOLD_TICK.
#defineCRUEL_RUIN_SKY_GREEN_TICK 144
#defineCRUEL_RUIN_SKY_GOLD_TICK 156
#defineCRUEL_RUIN_RAYS 24The particles of the first act: rays of light from the orb, the motes that swell below it, and the ball of light that falls, once in the sky and again on the foes.
#defineCRUEL_RUIN_FIRST_MOTE 32
#defineCRUEL_RUIN_MOTES 31
#defineCRUEL_RUIN_BALL_PARTICLE 63
#defineCRUEL_RUIN_GLOW_SIZE 96The glow that swells at the caster's feet as Cruel Ruin starts grows to this size.
#defineCRUEL_RUIN_CIRCLE_SIZES 10The shaded circles built for the motes and blasts: CRUEL_RUIN_CIRCLE_SIZES of them, 2 to 20 wide.
#defineCRUEL_RUIN_SKY_GLOW_SIZE 140The glow in the sky starts this large and shrinks into the orb.
#defineCRUEL_RUIN_SKY_GLOW_Y 58
#defineCRUEL_RUIN_SKY_GLOW_RISE 44
#defineCRUEL_RUIN_MOTE_TICKS 16Each mote swells in place over CRUEL_RUIN_MOTE_TICKS, then is gone.
#defineCRUEL_RUIN_RINGS 4The rings of fire (FireRingTexture): four fly out from the orb, one every CRUEL_RUIN_RING_INTERVAL ticks, each for CRUEL_RUIN_RING_TICKS, and a fifth swells as the rays burst, shining for CRUEL_RUIN_RING_SHINE_TICKS before it fades 8 levels a tick.
#defineCRUEL_RUIN_FIRST_RING_TICK 64
#defineCRUEL_RUIN_RING_INTERVAL 10
#defineCRUEL_RUIN_RING_TICKS 16
#defineCRUEL_RUIN_RING_SHINE_TICKS 8
#defineCRUEL_RUIN_RUNE_TICK 24The circle of runes turns round the orb from CRUEL_RUIN_RUNE_TICK for CRUEL_RUIN_RUNE_TICKS, until the flash.
#defineCRUEL_RUIN_RUNE_TICKS 100
#defineCRUEL_RUIN_RAY_LENGTH_MAX (toFIXED(625) / 512)The rays' length grows to CRUEL_RUIN_RAY_LENGTH_MAX; each is CRUEL_RUIN_RAY_WIDTH across, a little under half of the beam it is drawn from, after the beam is already halved.
#defineCRUEL_RUIN_RAY_WIDTH 30384
#defineCRUEL_RUIN_BALL_SIZE 64The ball of light that falls grows to this size; its streak's width scales by CRUEL_RUIN_STREAK_SCALE for each pixel of the ball's size, as the falling streaks' do.
#defineCRUEL_RUIN_STREAK_SCALE 9400
#defineCRUEL_RUIN_RIBBON_POINTS 33The two ribbons of light (PinkBarSheet): a strip of CRUEL_RUIN_RIBBON_POINTS points each, two corners a point, swaying CRUEL_RUIN_RIBBON_SWAY_STEP further round a sine at each point, each standing for CRUEL_RUIN_RIBBON_TICKS.
#defineCRUEL_RUIN_RIBBON_QUADS (CRUEL_RUIN_RIBBON_POINTS - 1)
#defineCRUEL_RUIN_RIBBON_POINT_BYTES 8
#defineCRUEL_RUIN_STRIP_QUAD_BYTES (2 * sizeof(MESH_TRIANGLE))
#defineCRUEL_RUIN_RIBBON_SWAY_STEP 2348
#defineCRUEL_RUIN_RIBBON_TICKS 46
#defineCRUEL_RUIN_FIRST_RIBBON_ROLL 3048
#defineCRUEL_RUIN_RIBBON_STRETCH 45536The ribbons are drawn at about 70 percent of their strip's length.
#defineCRUEL_RUIN_RIBBON_SCROLL 63The ribbons' texture scrolls back from ~CRUEL_RUIN_RIBBON_SCROLL, 2 texels a tick on the first and 4 on the second.
#defineCRUEL_RUIN_CANOPY_PALETTE 15The forest rushing by below (ForestCanopyTiles, in its own sprite palette): two rows of CRUEL_RUIN_CANOPY_COLUMNS sprites, the last of each row sharing the first's tiles, their pictures cycling through CRUEL_RUIN_CANOPY_PICTURE_COUNT.
#defineCRUEL_RUIN_CANOPY_COLUMNS 9
#defineCRUEL_RUIN_CANOPY_SPRITES (2 * CRUEL_RUIN_CANOPY_COLUMNS)
#defineCRUEL_RUIN_CANOPY_SIZE 32
#defineCRUEL_RUIN_CANOPY_PICTURE_COUNT 8
#defineCRUEL_RUIN_CANOPY_CYCLE_BIAS (8 * CRUEL_RUIN_CANOPY_PICTURE_COUNT)Whole cycles of the pictures added to a sprite's picture number before it is taken modulo CRUEL_RUIN_CANOPY_PICTURE_COUNT.
#defineCRUEL_RUIN_FIRST_STREAK CRUEL_RUIN_CANOPY_SPRITESThe falling streaks' particles, after the canopy's pictures.
#defineCRUEL_RUIN_STREAKS 4
#defineCRUEL_RUIN_FOREST_TICKS 102The forest act lasts CRUEL_RUIN_FOREST_TICKS, its canvas brightening to white over the last CRUEL_RUIN_FOREST_BRIGHTEN_TICKS; A or B before then starts the brightening at once.
#defineCRUEL_RUIN_FOREST_BRIGHTEN_TICKS 17
#defineCRUEL_RUIN_BLASTS 6The six blasts, each swelling and shrinking over CRUEL_RUIN_BLAST_TICKS.
#defineCRUEL_RUIN_BLAST_TICKS 16
#defineCRUEL_RUIN_SWEEP_SIZE 120The wall of light that sweeps over the foes at the end: a gradient this many pixels square, built in the effect's pictures.
#defineCRUEL_RUIN_SPRITE_COLORS (14 * PALETTE_COLORS)The battle sprites' colours, OBJ palettes 0 to 13, which the foes' silhouettes take.

Functions

NameDescription
voidbtEffectRunCruelRuin (BATTLE_EFFECT_PARM *args)Cruel Ruin: light swells at the caster's feet as the caster rises out of sight; under a sky of sunbeams a glow gathers into an orb amid a turning circle of runes, rings of fire fly out from it, rays burst and a ball of light falls; then in a sky clearing to gold over a forest rushing by, six blasts go off, streaks rain and two ribbons of light sway past; last the ball falls on the foes, who darken to silhouettes, and a wall of light sweeps over them.

Description

Cruel Ruin, one of the Doom Dragon's attacks. Part of battle_effect.c.

Macros in detail

CRUEL_RUIN_SWIRL

#define CRUEL_RUIN_SWIRL 9800

Where Cruel Ruin's pictures are built or decoded in the effect's pictures: SwirlTexture; GlowBandTextureA (GlowBandTextureB in the second act) and GlowBandTextureB; PinkBarSheet; the ten shaded circles, 2 to 20 wide, at CruelRuinCirclePictures; and, in the last act, GlowBandTextureB with the shaded circle drawn after it.

Referenced by btEffectRunCruelRuin().

Definition at line 8 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_BAND_A

#define CRUEL_RUIN_BAND_A 13896

Referenced by btEffectRunCruelRuin().

Definition at line 9 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_BAND_B

#define CRUEL_RUIN_BAND_B 13960

Referenced by btEffectRunCruelRuin().

Definition at line 10 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_PINK_BAR

#define CRUEL_RUIN_PINK_BAR 14024

Referenced by btEffectRunCruelRuin().

Definition at line 11 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_CIRCLES

#define CRUEL_RUIN_CIRCLES 14920

Referenced by btEffectRunCruelRuin().

Definition at line 12 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_BURST_BAND

#define CRUEL_RUIN_BURST_BAND 14400

Referenced by btEffectRunCruelRuin().

Definition at line 13 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_BURST_CIRCLE

#define CRUEL_RUIN_BURST_CIRCLE 14528

Referenced by btEffectRunCruelRuin().

Definition at line 14 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RUNE_CIRCLE

#define CRUEL_RUIN_RUNE_CIRCLE 16384

CornerRuneASheet's 64x64 rune mirrored into a 128x128 one, in the map cell buffer.

Referenced by btEffectRunCruelRuin().

Definition at line 17 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_STRIP_MESH

#define CRUEL_RUIN_STRIP_MESH (RamMapMetatileBuffer + 8192)

The ribbons' strip mesh, in the map cell buffer.

Referenced by btEffectRunCruelRuin().

Definition at line 19 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_SKY_TICKS

#define CRUEL_RUIN_SKY_TICKS 180

The sky act lasts CRUEL_RUIN_SKY_TICKS. At CRUEL_RUIN_BURST_TICK the rays burst from the orb and the canvas flashes white; the motes swell from CRUEL_RUIN_MOTE_TICK, the ball of light appears at CRUEL_RUIN_BALL_TICK and lands at CRUEL_RUIN_BALL_LANDING_TICK, where A or B skips to.

Referenced by btEffectRunCruelRuin().

Definition at line 24 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_BURST_TICK

#define CRUEL_RUIN_BURST_TICK 124

Referenced by btEffectRunCruelRuin().

Definition at line 25 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_MOTE_TICK

#define CRUEL_RUIN_MOTE_TICK 128

Referenced by btEffectRunCruelRuin().

Definition at line 26 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_BALL_TICK

#define CRUEL_RUIN_BALL_TICK 160

Referenced by btEffectRunCruelRuin().

Definition at line 27 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_BALL_LANDING_TICK

#define CRUEL_RUIN_BALL_LANDING_TICK 169

Referenced by btEffectRunCruelRuin().

Definition at line 28 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_SKY_CRIMSON_TICK

#define CRUEL_RUIN_SKY_CRIMSON_TICK 32

The sky's colour through the act, each a level added to the sunbeam clouds' red, green and blue: from CRUEL_RUIN_SKY_CRIMSON_TICK it deepens to crimson; at the burst it flashes orange, then fades to a greyish green from CRUEL_RUIN_BURST_TICK + 4, turns a bright green from CRUEL_RUIN_SKY_GREEN_TICK and goes back to orange from CRUEL_RUIN_SKY_GOLD_TICK.

Referenced by btEffectRunCruelRuin().

Definition at line 35 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_SKY_GREEN_TICK

#define CRUEL_RUIN_SKY_GREEN_TICK 144

Referenced by btEffectRunCruelRuin().

Definition at line 36 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_SKY_GOLD_TICK

#define CRUEL_RUIN_SKY_GOLD_TICK 156

Referenced by btEffectRunCruelRuin().

Definition at line 37 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RAYS

#define CRUEL_RUIN_RAYS 24

The particles of the first act: rays of light from the orb, the motes that swell below it, and the ball of light that falls, once in the sky and again on the foes.

Referenced by btEffectRunCruelRuin().

Definition at line 41 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_FIRST_MOTE

#define CRUEL_RUIN_FIRST_MOTE 32

Referenced by btEffectRunCruelRuin().

Definition at line 42 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_MOTES

#define CRUEL_RUIN_MOTES 31

Referenced by btEffectRunCruelRuin().

Definition at line 43 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_BALL_PARTICLE

#define CRUEL_RUIN_BALL_PARTICLE 63

Referenced by btEffectRunCruelRuin().

Definition at line 44 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_GLOW_SIZE

#define CRUEL_RUIN_GLOW_SIZE 96

The glow that swells at the caster's feet as Cruel Ruin starts grows to this size.

Referenced by btEffectRunCruelRuin().

Definition at line 47 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_CIRCLE_SIZES

#define CRUEL_RUIN_CIRCLE_SIZES 10

The shaded circles built for the motes and blasts: CRUEL_RUIN_CIRCLE_SIZES of them, 2 to 20 wide.

Referenced by btEffectRunCruelRuin().

Definition at line 50 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_SKY_GLOW_SIZE

#define CRUEL_RUIN_SKY_GLOW_SIZE 140

The glow in the sky starts this large and shrinks into the orb. Its foot starts at y CRUEL_RUIN_SKY_GLOW_Y, and from tick 20 it rises along a quarter of a cosine towards CRUEL_RUIN_SKY_GLOW_RISE pixels higher, to hold at y 20 from tick 36.

Referenced by btEffectRunCruelRuin().

Definition at line 55 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_SKY_GLOW_Y

#define CRUEL_RUIN_SKY_GLOW_Y 58

Referenced by btEffectRunCruelRuin().

Definition at line 56 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_SKY_GLOW_RISE

#define CRUEL_RUIN_SKY_GLOW_RISE 44

Referenced by btEffectRunCruelRuin().

Definition at line 57 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_MOTE_TICKS

#define CRUEL_RUIN_MOTE_TICKS 16

Each mote swells in place over CRUEL_RUIN_MOTE_TICKS, then is gone.

Referenced by btEffectRunCruelRuin().

Definition at line 59 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RINGS

#define CRUEL_RUIN_RINGS 4

The rings of fire (FireRingTexture): four fly out from the orb, one every CRUEL_RUIN_RING_INTERVAL ticks, each for CRUEL_RUIN_RING_TICKS, and a fifth swells as the rays burst, shining for CRUEL_RUIN_RING_SHINE_TICKS before it fades 8 levels a tick.

Referenced by btEffectRunCruelRuin().

Definition at line 64 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_FIRST_RING_TICK

#define CRUEL_RUIN_FIRST_RING_TICK 64

Referenced by btEffectRunCruelRuin().

Definition at line 65 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RING_INTERVAL

#define CRUEL_RUIN_RING_INTERVAL 10

Referenced by btEffectRunCruelRuin().

Definition at line 66 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RING_TICKS

#define CRUEL_RUIN_RING_TICKS 16

Referenced by btEffectRunCruelRuin().

Definition at line 67 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RING_SHINE_TICKS

#define CRUEL_RUIN_RING_SHINE_TICKS 8

Referenced by btEffectRunCruelRuin().

Definition at line 68 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RUNE_TICK

#define CRUEL_RUIN_RUNE_TICK 24

The circle of runes turns round the orb from CRUEL_RUIN_RUNE_TICK for CRUEL_RUIN_RUNE_TICKS, until the flash.

Referenced by btEffectRunCruelRuin().

Definition at line 71 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RUNE_TICKS

#define CRUEL_RUIN_RUNE_TICKS 100

Referenced by btEffectRunCruelRuin().

Definition at line 72 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RAY_LENGTH_MAX

#define CRUEL_RUIN_RAY_LENGTH_MAX (toFIXED(625) / 512)

The rays' length grows to CRUEL_RUIN_RAY_LENGTH_MAX; each is CRUEL_RUIN_RAY_WIDTH across, a little under half of the beam it is drawn from, after the beam is already halved.

Referenced by btEffectRunCruelRuin().

Definition at line 76 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RAY_WIDTH

#define CRUEL_RUIN_RAY_WIDTH 30384

Referenced by btEffectRunCruelRuin().

Definition at line 77 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_BALL_SIZE

#define CRUEL_RUIN_BALL_SIZE 64

The ball of light that falls grows to this size; its streak's width scales by CRUEL_RUIN_STREAK_SCALE for each pixel of the ball's size, as the falling streaks' do.

Referenced by btEffectRunCruelRuin().

Definition at line 81 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_STREAK_SCALE

#define CRUEL_RUIN_STREAK_SCALE 9400

Referenced by btEffectRunCruelRuin().

Definition at line 82 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RIBBON_POINTS

#define CRUEL_RUIN_RIBBON_POINTS 33

The two ribbons of light (PinkBarSheet): a strip of CRUEL_RUIN_RIBBON_POINTS points each, two corners a point, swaying CRUEL_RUIN_RIBBON_SWAY_STEP further round a sine at each point, each standing for CRUEL_RUIN_RIBBON_TICKS. The first leans by CRUEL_RUIN_FIRST_RIBBON_ROLL (about 17 degrees), the second by TRIG_TURN / 64.

Referenced by btEffectRunCruelRuin().

Definition at line 88 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RIBBON_QUADS

#define CRUEL_RUIN_RIBBON_QUADS (CRUEL_RUIN_RIBBON_POINTS - 1)

Referenced by btEffectRunCruelRuin().

Definition at line 89 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RIBBON_POINT_BYTES

#define CRUEL_RUIN_RIBBON_POINT_BYTES 8

Referenced by btEffectRunCruelRuin().

Definition at line 90 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_STRIP_QUAD_BYTES

#define CRUEL_RUIN_STRIP_QUAD_BYTES (2 * sizeof(MESH_TRIANGLE))

Referenced by btEffectRunCruelRuin().

Definition at line 91 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RIBBON_SWAY_STEP

#define CRUEL_RUIN_RIBBON_SWAY_STEP 2348

Referenced by btEffectRunCruelRuin().

Definition at line 92 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RIBBON_TICKS

#define CRUEL_RUIN_RIBBON_TICKS 46

Referenced by btEffectRunCruelRuin().

Definition at line 93 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_FIRST_RIBBON_ROLL

#define CRUEL_RUIN_FIRST_RIBBON_ROLL 3048

Referenced by btEffectRunCruelRuin().

Definition at line 94 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RIBBON_STRETCH

#define CRUEL_RUIN_RIBBON_STRETCH 45536

The ribbons are drawn at about 70 percent of their strip's length.

Referenced by btEffectRunCruelRuin().

Definition at line 96 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_RIBBON_SCROLL

#define CRUEL_RUIN_RIBBON_SCROLL 63

The ribbons' texture scrolls back from ~CRUEL_RUIN_RIBBON_SCROLL, 2 texels a tick on the first and 4 on the second.

Referenced by btEffectRunCruelRuin().

Definition at line 99 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_CANOPY_PALETTE

#define CRUEL_RUIN_CANOPY_PALETTE 15

The forest rushing by below (ForestCanopyTiles, in its own sprite palette): two rows of CRUEL_RUIN_CANOPY_COLUMNS sprites, the last of each row sharing the first's tiles, their pictures cycling through CRUEL_RUIN_CANOPY_PICTURE_COUNT.

Referenced by btEffectRunCruelRuin().

Definition at line 104 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_CANOPY_COLUMNS

#define CRUEL_RUIN_CANOPY_COLUMNS 9

Referenced by btEffectRunCruelRuin().

Definition at line 105 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_CANOPY_SPRITES

#define CRUEL_RUIN_CANOPY_SPRITES (2 * CRUEL_RUIN_CANOPY_COLUMNS)

Referenced by btEffectRunCruelRuin().

Definition at line 106 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_CANOPY_SIZE

#define CRUEL_RUIN_CANOPY_SIZE 32

Referenced by btEffectRunCruelRuin().

Definition at line 107 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_CANOPY_PICTURE_COUNT

#define CRUEL_RUIN_CANOPY_PICTURE_COUNT 8

Referenced by btEffectRunCruelRuin().

Definition at line 108 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_CANOPY_CYCLE_BIAS

#define CRUEL_RUIN_CANOPY_CYCLE_BIAS (8 * CRUEL_RUIN_CANOPY_PICTURE_COUNT)

Whole cycles of the pictures added to a sprite's picture number before it is taken modulo CRUEL_RUIN_CANOPY_PICTURE_COUNT.

Referenced by btEffectRunCruelRuin().

Definition at line 111 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_FIRST_STREAK

#define CRUEL_RUIN_FIRST_STREAK CRUEL_RUIN_CANOPY_SPRITES

The falling streaks' particles, after the canopy's pictures.

Referenced by btEffectRunCruelRuin().

Definition at line 113 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_STREAKS

#define CRUEL_RUIN_STREAKS 4

Referenced by btEffectRunCruelRuin().

Definition at line 114 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_FOREST_TICKS

#define CRUEL_RUIN_FOREST_TICKS 102

The forest act lasts CRUEL_RUIN_FOREST_TICKS, its canvas brightening to white over the last CRUEL_RUIN_FOREST_BRIGHTEN_TICKS; A or B before then starts the brightening at once.

Referenced by btEffectRunCruelRuin().

Definition at line 118 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_FOREST_BRIGHTEN_TICKS

#define CRUEL_RUIN_FOREST_BRIGHTEN_TICKS 17

Referenced by btEffectRunCruelRuin().

Definition at line 119 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_BLASTS

#define CRUEL_RUIN_BLASTS 6

The six blasts, each swelling and shrinking over CRUEL_RUIN_BLAST_TICKS.

Referenced by btEffectRunCruelRuin().

Definition at line 121 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_BLAST_TICKS

#define CRUEL_RUIN_BLAST_TICKS 16

Referenced by btEffectRunCruelRuin().

Definition at line 122 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_SWEEP_SIZE

#define CRUEL_RUIN_SWEEP_SIZE 120

The wall of light that sweeps over the foes at the end: a gradient this many pixels square, built in the effect's pictures.

Referenced by btEffectRunCruelRuin().

Definition at line 125 of file battle_effect_cruel_ruin.c.

CRUEL_RUIN_SPRITE_COLORS

#define CRUEL_RUIN_SPRITE_COLORS (14 * PALETTE_COLORS)

The battle sprites' colours, OBJ palettes 0 to 13, which the foes' silhouettes take.

Referenced by btEffectRunCruelRuin().

Definition at line 128 of file battle_effect_cruel_ruin.c.

Functions in detail

btEffectRunCruelRuin

void btEffectRunCruelRuin(BATTLE_EFFECT_PARM *args)

Cruel Ruin: light swells at the caster's feet as the caster rises out of sight; under a sky of sunbeams a glow gathers into an orb amid a turning circle of runes, rings of fire fly out from it, rays burst and a ball of light falls; then in a sky clearing to gold over a forest rushing by, six blasts go off, streaks rain and two ribbons of light sway past; last the ball falls on the foes, who darken to silhouettes, and a wall of light sweeps over them.

Abilities: Cruel Ruin.

References BattleEffectBeamCorners, BattleEffectLargeSquareMesh, BattleEffectSmallSquareMesh, BattleEffectSquareCorners, BattleEffectSquareMesh, BgScrollWork, btActorSpawnObjectsForListStub(), btBackgroundLoadStub(), btCameraShake(), btCanvasBlitMirroredQuarters(), btColorBufferScaleStub(), btEffectConfigureEffectDisplay(), btEffectCountDownBattlerTints(), btEffectDrawShadedDisc(), btEffectDrawShadedDiscQuarter(), btEffectPosProjectBattler(), btEffectShowLivingTargets(), btEffectSpriteAcquire(), btEffectSpriteCreateWithTiles(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btGraphicsLoadGreyRamp(), btObjectGetStub(), btPaletteBrightenBattleBg(), btPaletteBrightenBgEntries(), btPaletteBrightenSavedBattleBg(), btPictureMirrorIntoQuadrants(), btRenderAllocateModelList(), btRenderBuildQuadStrip(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), CruelRuinBlastSizes, CruelRuinBlastTicks, CruelRuinBlastX, CruelRuinBlastY, CruelRuinCirclePictures, CruelRuinDiscPitches, CruelRuinDiscYaws, CruelRuinRibbonSways, CruelRuinRibbonWidths, CruelRuinStreakCorners, CruelRuinStreakEndY, CruelRuinStreakRolls, CruelRuinStreakSizes, CruelRuinStreakStarts, CruelRuinStreakStepX, CruelRuinStreakStepY, CruelRuinStreakX and 28 more.

Referenced by btEffectRunSummon().

Definition at line 139 of file battle_effect_cruel_ruin.c.