Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_ulysses.c

Drawing helpers several effects share (a sprite from the pool, the grey ramp, shaded discs, the mirrored palette), then the Ulysses summon. More…

Included by battle_effect.c.

Macros

NameDescription
#defineULYSSES_MAGE_SPRITES 7The mage is effect sprites 0 to 6, on UlyssesObjectX and UlyssesObjectZ, and sprite 7 is a white flake: its animations from ULYSSES_FLAKE_ANIMATION are the flake turning.
#defineULYSSES_FLAKE_SPRITE ULYSSES_MAGE_SPRITES
#defineULYSSES_FLAKE_ANIMATION 7
#defineULYSSES_FLAKE (state->particles[ARRAY_COUNT(state->particles) - 1])The particle the last flake flies by: the state's last.
#defineULYSSES_PICTURES 6017Where UlyssesSilhouette, then FlutteringFlakeSheet's pictures, are decoded in the effect's pictures, and the silhouette's size.
#defineULYSSES_SILHOUETTE_WIDTH 80
#defineULYSSES_SILHOUETTE_HEIGHT 112
#defineULYSSES_FLAKE_PICTURES 18FlutteringFlakeSheet's eighteen pictures of the white flake turning.
#defineULYSSES_RUNE_CIRCLE_PICTURES 10113Where RuneCircleSheet and YellowOrbSheet are decoded in the effect's pictures.
#defineULYSSES_YELLOW_ORB_PICTURES 7831
#defineULYSSES_CRESCENT_WIDTH 64FadingCrescentSheet, in the map cell buffer: a crescent of light closing to a disc and shrinking, seven pictures.
#defineULYSSES_CRESCENT_HEIGHT 64
#defineULYSSES_CRESCENT_SCALE (t) ((sySin((t) << 10) * 48) / 64)A crescent's scale t ticks into its sweep: a sine that turns a sixty-fourth of a turn a tick, at 48 sixty-fourths, so it swells to three quarters of its size and shrinks a little.
#defineULYSSES_TICKS 326The whole summon: the flake and the runes, the mage's strikes and the fire.
#defineULYSSES_RUNE_CIRCLES_TICK 76The flame bursts and the rune circles open, the second ULYSSES_RUNE_CIRCLE_INTERVAL ticks after the first; the mage's silhouette glows in them, and the mage appears.
#defineULYSSES_RUNE_CIRCLE_INTERVAL 16
#defineULYSSES_SILHOUETTE_TICK 92
#defineULYSSES_APPEAR_TICK 108
#defineULYSSES_SILHOUETTE_END_TICK 116The mage has faded in; the silhouette's layer is turned off, leaving the rune circles, and the glow's colours fade out to ULYSSES_RUNE_CIRCLES_FADE_TICK.
#defineULYSSES_RUNE_CIRCLES_FADE_TICK 124The rune circles' colours fade, then the strikes begin.
#defineULYSSES_STRIKES_TICK 132
#defineULYSSES_FLARE_TICK 266The fire flares over the mage, and the flake flutters away.
#defineULYSSES_FLAKE_TICK 288
#defineULYSSES_FLAKE_SWAY 860The flake drifts down, swaying 8 pixels either way, in 1/65536 turns a tick.
#defineULYSSES_SILHOUETTE_SWELL 800The silhouette swells and shrinks back as it zooms in, in 1/65536 turns a tick.
#defineULYSSES_GLOW_PALETTE 8The silhouette is drawn in the two BG palettes from ULYSSES_GLOW_PALETTE, which glow violet: brighter over its first ULYSSES_GLOW_TICKS, and gone ULYSSES_GLOW_END ticks after it shows.
#defineULYSSES_GLOW_COLORS 32
#defineULYSSES_GLOW_TICKS 16
#defineULYSSES_GLOW_END 32
#defineULYSSES_GLOW_RED (i, level) (((i) * (((level) * 9 * 4) / 16)) / 64)Colour i of the glow's at level (0 to 16): violet, brighter up the ramp, its red three quarters of its blue.
#defineULYSSES_GLOW_BLUE (i, level) (((i) * (level) * 3) / 64)
#defineULYSSES_RUNE_CIRCLE_HOLD_TICKS 40The rune circles: the first grows to three quarters of its size, holds and spreads out from ULYSSES_RUNE_CIRCLE_HOLD_TICKS; the second rises from lying flat over ULYSSES_RUNE_CIRCLE_TILT_TICKS, then shrinks.
#defineULYSSES_RUNE_CIRCLE_TILT_TICKS 24
#defineULYSSES_RUNE_CIRCLE_TILT_X (t)
#defineULYSSES_RUNE_CIRCLE_TILT_Z (t)
#defineULYSSES_BURST_FLAME_TICKS 18A flame of the opening burst and of the flare: six pictures, three or four ticks each.
#defineULYSSES_FLARE_FLAME_TICKS 24
#defineULYSSES_FLARE_FLAMES 32flames of the flare, in a column
#defineULYSSES_STRIKES 6The mage's six strikes, each ULYSSES_STRIKE_INTERVAL ticks after the last, by the strike's own tick: violet flames at the mage's hand, then a flake flies, a crescent of light sweeps round the targets and closes, and the strike lands, with a burst of light and sparks.
#defineULYSSES_STRIKE_INTERVAL 8
#defineULYSSES_STRIKE_FLAME_TICKS 36
#defineULYSSES_STRIKE_FLAKE_TICK 12
#defineULYSSES_STRIKE_FLAKE_TICKS 32
#defineULYSSES_STRIKE_CRESCENT_TICK 44
#defineULYSSES_STRIKE_CRESCENT_TICKS 22
#defineULYSSES_STRIKE_CLOSE_TICK 59
#defineULYSSES_STRIKE_POWER_TICK 60
#defineULYSSES_STRIKE_HIT_TICK 64
#defineULYSSES_STRIKE_BURST_TICKS 12
#defineULYSSES_SPARKS 19352The sparks each strike throws, in the effect's pictures.
#defineULYSSES_STRIKE_SPARKS 16
#defineULYSSES_SPARK_COUNT (ULYSSES_STRIKES * ULYSSES_STRIKE_SPARKS)

Functions

NameDescription
void *btEffectSpriteAcquire (Sint32 width, Sint32 height, Uint32 shape, Sint32 mode)Takes the first free sprite of the actor system's pool with a new animation entry.
voidbtGraphicsLoadGreyRamp (void)Fills BG palette colours 1 to 63, the canvas's levels, with a grey ramp, each level i / 2.
voidbtEffectDrawShadedDiscQuarter (Uint8 *map, Sint32 size, FIXED scale)Draws the upper left quarter of a shaded disc into a map size / 2 bytes wide and size rows tall, centred on its bottom right corner and squeezed to half width: each ring is darker than the one inside it by a cosine falloff, scaled by scale (toFIXED(1) at full strength) and clamped at CANVAS_LEVEL_BRIGHTEST.
voidbtEffectDrawShadedDisc (Uint8 *map, Sint32 size, Sint32 scale)Draws the whole shaded disc btEffectDrawShadedDiscQuarter draws a quarter of, mirrored into the four quarters of a map size bytes wide and twice size rows tall.
voidbtPaletteMirrorBgColors (void)Turns the canvas's ramp end for end: BG colours 1 to 63 swap places, the brightest with the darkest, and the backdrop keeps its colour.
voidbtUlyssesFlutterFlake (void)A tick event of Ulysses's end (btEffectRunUlysses adds and removes it): the white flake flutters away from where the mage stood, its speed in depth rising for 20 ticks and then falling, drifting sideways from tick 12, and turning through its eight pictures, seven ticks each.
voidbtEffectRunUlysses (BATTLE_EFFECT_PARM *args)A white flake drifts down, a flame bursts and a ring of red runes opens with the mage's silhouette glowing violet in it; the mage appears, and six times violet flames gather at the mage's hand and a crescent of light sweeps round the foes and strikes; then fire flares over the mage, who fades, and a white flake flutters away.

Variables

NameDescription
extern const SCALEUlyssesMageScaleThe mage's sprite scale, one to one.

Description

Drawing helpers several effects share (a sprite from the pool, the grey ramp, shaded discs, the mirrored palette), then the Ulysses summon. Part of battle_effect.c.

Macros in detail

ULYSSES_MAGE_SPRITES

#define ULYSSES_MAGE_SPRITES 7

The mage is effect sprites 0 to 6, on UlyssesObjectX and UlyssesObjectZ, and sprite 7 is a white flake: its animations from ULYSSES_FLAKE_ANIMATION are the flake turning.

Referenced by btEffectRunUlysses().

Definition at line 169 of file battle_effect_ulysses.c.

ULYSSES_FLAKE_SPRITE

#define ULYSSES_FLAKE_SPRITE ULYSSES_MAGE_SPRITES

Referenced by btUlyssesFlutterFlake().

Definition at line 170 of file battle_effect_ulysses.c.

ULYSSES_FLAKE_ANIMATION

#define ULYSSES_FLAKE_ANIMATION 7

Referenced by btUlyssesFlutterFlake().

Definition at line 171 of file battle_effect_ulysses.c.

ULYSSES_FLAKE

#define ULYSSES_FLAKE (state->particles[ARRAY_COUNT(state->particles) - 1])

The particle the last flake flies by: the state's last.

Referenced by btEffectRunUlysses() and btUlyssesFlutterFlake().

Definition at line 174 of file battle_effect_ulysses.c.

ULYSSES_PICTURES

#define ULYSSES_PICTURES 6017

Where UlyssesSilhouette, then FlutteringFlakeSheet's pictures, are decoded in the effect's pictures, and the silhouette's size.

Referenced by btEffectRunUlysses().

Definition at line 212 of file battle_effect_ulysses.c.

ULYSSES_SILHOUETTE_WIDTH

#define ULYSSES_SILHOUETTE_WIDTH 80

Referenced by btEffectRunUlysses().

Definition at line 213 of file battle_effect_ulysses.c.

ULYSSES_SILHOUETTE_HEIGHT

#define ULYSSES_SILHOUETTE_HEIGHT 112

Referenced by btEffectRunUlysses().

Definition at line 214 of file battle_effect_ulysses.c.

ULYSSES_FLAKE_PICTURES

#define ULYSSES_FLAKE_PICTURES 18

FlutteringFlakeSheet's eighteen pictures of the white flake turning.

Referenced by btEffectRunUlysses().

Definition at line 216 of file battle_effect_ulysses.c.

ULYSSES_RUNE_CIRCLE_PICTURES

#define ULYSSES_RUNE_CIRCLE_PICTURES 10113

Where RuneCircleSheet and YellowOrbSheet are decoded in the effect's pictures.

Referenced by btEffectRunUlysses().

Definition at line 219 of file battle_effect_ulysses.c.

ULYSSES_YELLOW_ORB_PICTURES

#define ULYSSES_YELLOW_ORB_PICTURES 7831

Referenced by btEffectRunUlysses().

Definition at line 220 of file battle_effect_ulysses.c.

ULYSSES_CRESCENT_WIDTH

#define ULYSSES_CRESCENT_WIDTH 64

FadingCrescentSheet, in the map cell buffer: a crescent of light closing to a disc and shrinking, seven pictures.

Definition at line 223 of file battle_effect_ulysses.c.

ULYSSES_CRESCENT_HEIGHT

#define ULYSSES_CRESCENT_HEIGHT 64

Definition at line 224 of file battle_effect_ulysses.c.

ULYSSES_CRESCENT_SCALE

#define ULYSSES_CRESCENT_SCALE(t) ((sySin((t) << 10) * 48) / 64)

A crescent's scale t ticks into its sweep: a sine that turns a sixty-fourth of a turn a tick, at 48 sixty-fourths, so it swells to three quarters of its size and shrinks a little.

Referenced by btEffectRunUlysses().

Definition at line 228 of file battle_effect_ulysses.c.

ULYSSES_TICKS

#define ULYSSES_TICKS 326

The whole summon: the flake and the runes, the mage's strikes and the fire.

Referenced by btEffectRunUlysses().

Definition at line 231 of file battle_effect_ulysses.c.

ULYSSES_RUNE_CIRCLES_TICK

#define ULYSSES_RUNE_CIRCLES_TICK 76

The flame bursts and the rune circles open, the second ULYSSES_RUNE_CIRCLE_INTERVAL ticks after the first; the mage's silhouette glows in them, and the mage appears.

Referenced by btEffectRunUlysses().

Definition at line 235 of file battle_effect_ulysses.c.

ULYSSES_RUNE_CIRCLE_INTERVAL

#define ULYSSES_RUNE_CIRCLE_INTERVAL 16

Referenced by btEffectRunUlysses().

Definition at line 236 of file battle_effect_ulysses.c.

ULYSSES_SILHOUETTE_TICK

#define ULYSSES_SILHOUETTE_TICK 92

Referenced by btEffectRunUlysses().

Definition at line 237 of file battle_effect_ulysses.c.

ULYSSES_APPEAR_TICK

#define ULYSSES_APPEAR_TICK 108

Referenced by btEffectRunUlysses().

Definition at line 238 of file battle_effect_ulysses.c.

ULYSSES_SILHOUETTE_END_TICK

#define ULYSSES_SILHOUETTE_END_TICK 116

The mage has faded in; the silhouette's layer is turned off, leaving the rune circles, and the glow's colours fade out to ULYSSES_RUNE_CIRCLES_FADE_TICK.

Referenced by btEffectRunUlysses().

Definition at line 241 of file battle_effect_ulysses.c.

ULYSSES_RUNE_CIRCLES_FADE_TICK

#define ULYSSES_RUNE_CIRCLES_FADE_TICK 124

The rune circles' colours fade, then the strikes begin.

Referenced by btEffectRunUlysses().

Definition at line 243 of file battle_effect_ulysses.c.

ULYSSES_STRIKES_TICK

#define ULYSSES_STRIKES_TICK 132

Referenced by btEffectRunUlysses().

Definition at line 244 of file battle_effect_ulysses.c.

ULYSSES_FLARE_TICK

#define ULYSSES_FLARE_TICK 266

The fire flares over the mage, and the flake flutters away.

Referenced by btEffectRunUlysses().

Definition at line 246 of file battle_effect_ulysses.c.

ULYSSES_FLAKE_TICK

#define ULYSSES_FLAKE_TICK 288

Referenced by btEffectRunUlysses().

Definition at line 247 of file battle_effect_ulysses.c.

ULYSSES_FLAKE_SWAY

#define ULYSSES_FLAKE_SWAY 860

The flake drifts down, swaying 8 pixels either way, in 1/65536 turns a tick.

Referenced by btEffectRunUlysses().

Definition at line 250 of file battle_effect_ulysses.c.

ULYSSES_SILHOUETTE_SWELL

#define ULYSSES_SILHOUETTE_SWELL 800

The silhouette swells and shrinks back as it zooms in, in 1/65536 turns a tick.

Referenced by btEffectRunUlysses().

Definition at line 253 of file battle_effect_ulysses.c.

ULYSSES_GLOW_PALETTE

#define ULYSSES_GLOW_PALETTE 8

The silhouette is drawn in the two BG palettes from ULYSSES_GLOW_PALETTE, which glow violet: brighter over its first ULYSSES_GLOW_TICKS, and gone ULYSSES_GLOW_END ticks after it shows.

Referenced by btEffectRunUlysses().

Definition at line 257 of file battle_effect_ulysses.c.

ULYSSES_GLOW_COLORS

#define ULYSSES_GLOW_COLORS 32

Referenced by btEffectRunUlysses().

Definition at line 258 of file battle_effect_ulysses.c.

ULYSSES_GLOW_TICKS

#define ULYSSES_GLOW_TICKS 16

Referenced by btEffectRunUlysses().

Definition at line 259 of file battle_effect_ulysses.c.

ULYSSES_GLOW_END

#define ULYSSES_GLOW_END 32

Referenced by btEffectRunUlysses().

Definition at line 260 of file battle_effect_ulysses.c.

ULYSSES_GLOW_RED

#define ULYSSES_GLOW_RED(i, level) (((i) * (((level) * 9 * 4) / 16)) / 64)

Colour i of the glow's at level (0 to 16): violet, brighter up the ramp, its red three quarters of its blue.

Referenced by btEffectRunUlysses().

Definition at line 263 of file battle_effect_ulysses.c.

ULYSSES_GLOW_BLUE

#define ULYSSES_GLOW_BLUE(i, level) (((i) * (level) * 3) / 64)

Referenced by btEffectRunUlysses().

Definition at line 264 of file battle_effect_ulysses.c.

ULYSSES_RUNE_CIRCLE_HOLD_TICKS

#define ULYSSES_RUNE_CIRCLE_HOLD_TICKS 40

The rune circles: the first grows to three quarters of its size, holds and spreads out from ULYSSES_RUNE_CIRCLE_HOLD_TICKS; the second rises from lying flat over ULYSSES_RUNE_CIRCLE_TILT_TICKS, then shrinks.

Referenced by btEffectRunUlysses().

Definition at line 269 of file battle_effect_ulysses.c.

ULYSSES_RUNE_CIRCLE_TILT_TICKS

#define ULYSSES_RUNE_CIRCLE_TILT_TICKS 24

Referenced by btEffectRunUlysses().

Definition at line 270 of file battle_effect_ulysses.c.

ULYSSES_RUNE_CIRCLE_TILT_X

#define ULYSSES_RUNE_CIRCLE_TILT_X(t)

Referenced by btEffectRunUlysses().

Definition at line 271 of file battle_effect_ulysses.c.

ULYSSES_RUNE_CIRCLE_TILT_Z

#define ULYSSES_RUNE_CIRCLE_TILT_Z(t)

Referenced by btEffectRunUlysses().

Definition at line 273 of file battle_effect_ulysses.c.

ULYSSES_BURST_FLAME_TICKS

#define ULYSSES_BURST_FLAME_TICKS 18

A flame of the opening burst and of the flare: six pictures, three or four ticks each.

Referenced by btEffectRunUlysses().

Definition at line 278 of file battle_effect_ulysses.c.

ULYSSES_FLARE_FLAME_TICKS

#define ULYSSES_FLARE_FLAME_TICKS 24

Referenced by btEffectRunUlysses().

Definition at line 279 of file battle_effect_ulysses.c.

ULYSSES_FLARE_FLAMES

#define ULYSSES_FLARE_FLAMES 32

flames of the flare, in a column

Referenced by btEffectRunUlysses().

Definition at line 280 of file battle_effect_ulysses.c.

ULYSSES_STRIKES

#define ULYSSES_STRIKES 6

The mage's six strikes, each ULYSSES_STRIKE_INTERVAL ticks after the last, by the strike's own tick: violet flames at the mage's hand, then a flake flies, a crescent of light sweeps round the targets and closes, and the strike lands, with a burst of light and sparks.

Referenced by btEffectRunUlysses().

Definition at line 286 of file battle_effect_ulysses.c.

ULYSSES_STRIKE_INTERVAL

#define ULYSSES_STRIKE_INTERVAL 8

Referenced by btEffectRunUlysses().

Definition at line 287 of file battle_effect_ulysses.c.

ULYSSES_STRIKE_FLAME_TICKS

#define ULYSSES_STRIKE_FLAME_TICKS 36

Referenced by btEffectRunUlysses().

Definition at line 288 of file battle_effect_ulysses.c.

ULYSSES_STRIKE_FLAKE_TICK

#define ULYSSES_STRIKE_FLAKE_TICK 12

Referenced by btEffectRunUlysses().

Definition at line 289 of file battle_effect_ulysses.c.

ULYSSES_STRIKE_FLAKE_TICKS

#define ULYSSES_STRIKE_FLAKE_TICKS 32

Referenced by btEffectRunUlysses().

Definition at line 290 of file battle_effect_ulysses.c.

ULYSSES_STRIKE_CRESCENT_TICK

#define ULYSSES_STRIKE_CRESCENT_TICK 44

Referenced by btEffectRunUlysses().

Definition at line 291 of file battle_effect_ulysses.c.

ULYSSES_STRIKE_CRESCENT_TICKS

#define ULYSSES_STRIKE_CRESCENT_TICKS 22

Referenced by btEffectRunUlysses().

Definition at line 292 of file battle_effect_ulysses.c.

ULYSSES_STRIKE_CLOSE_TICK

#define ULYSSES_STRIKE_CLOSE_TICK 59

Referenced by btEffectRunUlysses().

Definition at line 293 of file battle_effect_ulysses.c.

ULYSSES_STRIKE_POWER_TICK

#define ULYSSES_STRIKE_POWER_TICK 60

Referenced by btEffectRunUlysses().

Definition at line 294 of file battle_effect_ulysses.c.

ULYSSES_STRIKE_HIT_TICK

#define ULYSSES_STRIKE_HIT_TICK 64

Referenced by btEffectRunUlysses().

Definition at line 295 of file battle_effect_ulysses.c.

ULYSSES_STRIKE_BURST_TICKS

#define ULYSSES_STRIKE_BURST_TICKS 12

Referenced by btEffectRunUlysses().

Definition at line 296 of file battle_effect_ulysses.c.

ULYSSES_SPARKS

#define ULYSSES_SPARKS 19352

The sparks each strike throws, in the effect's pictures.

Referenced by btEffectRunUlysses().

Definition at line 298 of file battle_effect_ulysses.c.

ULYSSES_STRIKE_SPARKS

#define ULYSSES_STRIKE_SPARKS 16

Referenced by btEffectRunUlysses().

Definition at line 299 of file battle_effect_ulysses.c.

ULYSSES_SPARK_COUNT

#define ULYSSES_SPARK_COUNT (ULYSSES_STRIKES * ULYSSES_STRIKE_SPARKS)

Referenced by btEffectRunUlysses().

Definition at line 300 of file battle_effect_ulysses.c.

Functions in detail

btEffectSpriteAcquire

void * btEffectSpriteAcquire(Sint32 width, Sint32 height, Uint32 shape, Sint32 mode)

Takes the first free sprite of the actor system's pool with a new animation entry. Its callers also pass the sprite's OAM shape and mode, which it leaves for the caller to set.

References btAnimationObjectAllocateEmpty(), fdSpriteStartAnimationStub() and Sint32.

Referenced by btEffectRunAzul(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCruelRuin(), btEffectRunDaedalus(), btEffectRunFlora() and btEffectRunIris().

Definition at line 8 of file battle_effect_ulysses.c.

btGraphicsLoadGreyRamp

void btGraphicsLoadGreyRamp(void)

Fills BG palette colours 1 to 63, the canvas's levels, with a grey ramp, each level i / 2.

References Sint32.

Referenced by btEffectFillWhiteBand(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunEclipse(), btEffectRunFlora(), btEffectRunGaspFamily(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunMegiddo(), btEffectRunMeteorBlow(), btEffectRunMoloch(), btEffectRunOdyssey() and btEffectRunStatBoost().

Definition at line 41 of file battle_effect_ulysses.c.

btEffectDrawShadedDiscQuarter

void btEffectDrawShadedDiscQuarter(Uint8 *map, Sint32 size, FIXED scale)

Draws the upper left quarter of a shaded disc into a map size / 2 bytes wide and size rows tall, centred on its bottom right corner and squeezed to half width: each ring is darker than the one inside it by a cosine falloff, scaled by scale (toFIXED(1) at full strength) and clamped at CANVAS_LEVEL_BRIGHTEST.

References Sint32 and syCos().

Referenced by btEffectRunBallLightning(), btEffectRunCanvasBurst(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunDaedalusStrike(), btEffectRunEclipse(), btEffectRunFlora(), btEffectRunFormChange(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunLightSurge(), btEffectRunRadiantFire(), btEffectRunTrident() and btEffectRunWyrdCurse().

Definition at line 63 of file battle_effect_ulysses.c.

btEffectDrawShadedDisc

void btEffectDrawShadedDisc(Uint8 *map, Sint32 size, Sint32 scale)

Draws the whole shaded disc btEffectDrawShadedDiscQuarter draws a quarter of, mirrored into the four quarters of a map size bytes wide and twice size rows tall.

References Sint32 and syCos().

Referenced by btEffectRunBreaths(), btEffectRunCruelRuin(), btEffectRunDrainMotes() and btEffectRunIris().

Definition at line 104 of file battle_effect_ulysses.c.

btPaletteMirrorBgColors

void btPaletteMirrorBgColors(void)

Turns the canvas's ramp end for end: BG colours 1 to 63 swap places, the brightest with the darkest, and the backdrop keeps its colour. Leaves the canvas blended at full weight over half the battle.

References Sint32 and syWordsCopy().

Referenced by btEffectRunFallingSword() and btEffectRunGatheringLights().

Definition at line 152 of file battle_effect_ulysses.c.

btUlyssesFlutterFlake

void btUlyssesFlutterFlake(void)

A tick event of Ulysses's end (btEffectRunUlysses adds and removes it): the white flake flutters away from where the mage stood, its speed in depth rising for 20 ticks and then falling, drifting sideways from tick 12, and turning through its eight pictures, seven ticks each.

References fdRenderApplyProjectedPlacementStub(), fdSpriteStartAnimationStub() and UlyssesParticleScale.

Referenced by btEffectRunUlysses().

Definition at line 180 of file battle_effect_ulysses.c.

btEffectRunUlysses

void btEffectRunUlysses(BATTLE_EFFECT_PARM *args)

A white flake drifts down, a flame bursts and a ring of red runes opens with the mage's silhouette glowing violet in it; the mage appears, and six times violet flames gather at the mage's hand and a crescent of light sweeps round the foes and strikes; then fire flares over the mage, who fades, and a white flake flutters away.

Abilities: Ulysses.

References BattleEffectEmberStreakPictureBiasY, BattleEffectEmberStreakPictureHeights, BattleEffectEmberStreakPictures, BattleEffectEmberStreakPictureWidths, BattleEffectFlarePictures, BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, BattleEffectSquareMesh, BgScrollWork, btBackgroundLoadStub(), btDisplayApplyBg2Affine(), btEffectBuildCanvasBlitters(), btEffectCreateSprites(), btEffectDarkenBackgroundStep(), btEffectProcessPendingBlock2Transfer(), btEffectShowLivingTargets(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btEffectTransferCanvas(), btParticleAdvanceWithGravity2D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), btUlyssesFlutterFlake(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), MapGridMetatileBuffer, PerWork, ProjectionWork, Sint32, syCloseEvent(), syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syInitMatrix(), syMatrixScaleUniform(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotY(), syRotZ(), sySetEvent(), sySin(), sySoundPlayStub(), sySynch(), syTranslate(), syWordsClear() and 8 more.

Referenced by btEffectRunSummon().

Definition at line 309 of file battle_effect_ulysses.c.