include/battle_effect/battle_effect.h
The battle effects: the effect kinds an ability plays, and the runners in src/battle_effect/ that draw them over the battle, part by part.
#include "types.h"#include "fixed_math.h"#include "battle/battle_effect_state.h"#include "battle/blitter.h"#include "battle_effect/battle_effect_ids.h"#include "graphics/render_placement.h"
Included by ability_staging.c, battle_effect_internal.h and battle_effect_table.c.
Structures
| Name | Description | |
|---|---|---|
struct | BATTLE_EFFECT_INDEX_WINDOW | What btEffectBuildCenteredIndexList (unused) reads: a value to find in a list, and how many indices either side of it to keep. |
struct | VECTOR2 | An {x, y} position or velocity in 16.16 pixels, kept by the summons Nereid, Procne, Tiamat and Ramses and by Dragon Cloud's trail. |
Macros
| Name | Description | |
|---|---|---|
#define | PARTICLES ((PARTICLE *)RamMapGridMetatileBuffer) | The map cell buffer (MapGridMetatileBuffer), which the effects borrow, has two views here: RamMapGridMetatileBuffer as bytes, at its fixed address, and PARTICLES as particles. |
#define | PARTICLE_POOL_COUNT 1024 | The particles PARTICLES holds. |
#define | EFFECT_CLIP_BOUNDS (BLITTER_CLIP_X | BLITTER_CLIP_Y) | Clips overflow on all four sides. |
#define | FIXED_INTEGER_PART (v) ((Sint32)(v) >> 16) | |
#define | EFFECT_BLITTERS ((DRAW_RECTANGLE *)HeapSlots) | The heap slots read as blitters: EFFECT_BLITTERS[HEAP_SLOT_RAM_CODE] and EFFECT_BLITTERS[HEAP_SLOT_RAM_CODE_PAIRED]. |
#define | TINT_KEEP (-1) | Passed to btEffectTintBattler as its palette, animation or timerSlot: leave that one as it is. |
Typedefs
| Name | Description | |
|---|---|---|
typedef void (* | BATTLE_EFFECT_HANDLER )(BATTLE_EFFECT_PARM *args); | An effect handler: plays one effect over the battle, tick by tick, and returns when it is over. |
typedef DRAW_RECTANGLE | BLITTER_PAIR [2]; | A blitter pair: [0] built in HEAP_SLOT_RAM_CODE and [1] in HEAP_SLOT_RAM_CODE_PAIRED (btEffectBuildCanvasBlitters fills one). |
Enumerations
| Name | Description | |
|---|---|---|
enum | EFFECT_VARIANT { EFFECT_VARIANT_BASIC, EFFECT_VARIANT_STRONGER, EFFECT_VARIAN … } | An effect's variant: the strength of the ability that plays it, from bits 12 and 13 of its row of AbilityBattleEffects. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | btEffectBuildBlitter (Sint32 slot, Sint32 widthShift, Sint32 heightShift, Sint32 flags, Uint32 mode) | The battle-effect module's functions in the order of its stub table (src/battle_effect/stubs.s). |
void | btEffectRunByIdRange (BATTLE_EFFECT_PARM *args) | Runs an effect the battle names by kind rather than from the handler table: from EFFECT_RANGE_CASTING_IMPACT a casting impact, from EFFECT_RANGE_BEAM a plain attack's slash, and from EFFECT_RANGE_RING_AND_SPARK a critical hit. |
void | btEffectRunSummon (BATTLE_EFFECT_PARM *args) | Runs one of the large battle effects, the summons: takes the effect's sheet, state and canvas, runs it and frees them again. |
void | btEffectRunFromTable (BATTLE_EFFECT_PARM *args) | Runs an ordinary battle effect from BattleEffectHandlers, with the sprite sheet, state and canvas it lends. |
void | btEffectRunElementPillar (BATTLE_EFFECT_PARM *args) | A pillar of light in an element's colours stands at a unit's feet while motes spiral up around it. |
void | btEffectRunShatteringOpening (BATTLE_EFFECT_PARM *args) | As a battle opens on the storm at Venus Lighthouse's aerie, the screen turns white and breaks into pieces that fly apart and fall, while a grey disc grows over it and the battle background's colours return. |
void | btEffectRunElementBurst (BATTLE_EFFECT_PARM *args) | Sparks in an element's colours flare at four corners around a unit and motes spiral in, then a burst of light plays over it. |
void | btEffectStartElementStreaks (Sint32 element) | Starts the element streaks, which then draw by themselves while the battle runs on. |
void | btEffectEndElementStreaks (void) | Ends the element streaks and frees what they took. |
void | btEffectConfigureEffectDisplay (void) | battle_effect_display.c |
void | btEffectAdvanceScrollOnInterval (void) | Scrolls BG1 a step every few frames. |
void | btEffectAdvanceBg2OnInterval (void) | Slides the affine BG2 a step every few frames. |
void | btEffectArmWin0HBlankDMA (void) | Restarts the DMA that feeds window 0's edges from the effect's per-line table. |
void | btEffectRunIce (BATTLE_EFFECT_PARM *args) | battle_effect_falling.c |
void | btEffectRunDouse (BATTLE_EFFECT_PARM *args) | Drops of water fall diagonally onto the targets' side of the field, 8 pixels down and 4 across a tick, each bursting in a splash that throws up droplets where it lands, while the targets flash; Deluge throws them higher. |
void | btEffectRunSonicWave (BATTLE_EFFECT_PARM *args) | battle_effect_streaks.c |
void | btEffectRunShriek (BATTLE_EFFECT_PARM *args) | Three streaks of lime light fly from the user at each target in turn; each target flashes and recoils. |
void | btEffectRunBansheeHowl (BATTLE_EFFECT_PARM *args) | Three streaks of violet light fly from the user at each target in turn; each target flashes and trembles. |
void | btEffectRunWarCry (BATTLE_EFFECT_PARM *args) | Three flickering cyan streaks, cycling through three colour rows, fly from the user at each target in turn; each target flashes and recoils. |
void | btEffectRunWickedHowl (BATTLE_EFFECT_PARM *args) | Three flickering red streaks, cycling through three colour rows, fly from the user at each target in turn; each target flashes and trembles. |
void | btEffectRunLimeStreaks (BATTLE_EFFECT_PARM *args) | Unused: no entry of the effect table points here. |
void | btEffectRunStreakVolley (BATTLE_EFFECT_PARM *args, Sint32 mode) | Fires the streaks at each target in turn from above the user; each leaves a fading trail. |
void | btEffectRunSleepStar (BATTLE_EFFECT_PARM *args) | Motes burst out of the user and float up, wobbling, as they drift across the field onto the targets, and each target flinches in turn. |
void | btEffectRunSoothingStar (BATTLE_EFFECT_PARM *args) | Orange healing motes burst out of the user and float up close to it, and each target glows in turn with the recovery sound. |
void | btEffectRunMoteFountain (BATTLE_EFFECT_PARM *args, Sint32 mode) | Motes burst out of the user and float upwards, wobbling, and each target reacts in turn. |
void | btEffectRunNumbingSting (BATTLE_EFFECT_PARM *args) | battle_effect_target_strike.c |
void | btEffectRunCannibalFang (BATTLE_EFFECT_PARM *args) | Fangs bite the first target three times, in ember colours, and drain it into the user. |
void | btEffectRunPoisonousBite (BATTLE_EFFECT_PARM *args) | Fangs bite the first target once, in lime, with smoke. |
void | btEffectRunRabidFang (BATTLE_EFFECT_PARM *args) | Fangs bite the first target once, with smoke, in Mars Djinn colours. |
void | btEffectRunElectricBite (BATTLE_EFFECT_PARM *args) | Fangs bite the first target three times among glints, in lightning colours. |
void | btEffectRunPoisonTail (BATTLE_EFFECT_PARM *args) | One lime slash strikes the first target, with smoke. |
void | btEffectRunVampiricFang (BATTLE_EFFECT_PARM *args) | Fangs bite the first target three times and drain it, in Mars Djinn colours. |
void | btEffectRunDoubleFang (BATTLE_EFFECT_PARM *args) | Fangs bite the first target twice, in blue, with sparks. |
void | btEffectRunMortalBlow (BATTLE_EFFECT_PARM *args) | One heavy slash strikes the first target, with sparks, in Mars Djinn colours. |
void | btEffectRunTwinBeaks (BATTLE_EFFECT_PARM *args) | Two slashes strike the first target, with sparks, in lightning colours. |
void | btEffectRunAcidBite (BATTLE_EFFECT_PARM *args) | Fangs bite the first target three times, in pink, with smoke. |
void | btEffectRunDrainFang (BATTLE_EFFECT_PARM *args) | Fangs bite the first target three times, added to what lies under them, and drain it with large motes, in Mars Djinn colours. |
void | btEffectRunTargetStrike (BATTLE_EFFECT_PARM *args, Sint32 mode) | Strikes the first target with slashes or a bite of closing fangs, with the extras its flags choose. |
void | btEffectRunDeathPlunge (BATTLE_EFFECT_PARM *args) | battle_effect_death_plunge.c |
void | btEffectRunBladeRain (BATTLE_EFFECT_PARM *args) | battle_effect_element_pillar.c |
void | btEffectDrawStreaks (void) | Draws a tick of the element streaks: lines of light closing in on the centre of the canvas. |
void | btEffectRunPoisonBeat (BATTLE_EFFECT_PARM *args) | battle_effect_spider_web.c |
void | btEffectRunSpinningBeat (BATTLE_EFFECT_PARM *args) | A magenta swirl sweeps across the first target and throws it into the air. |
void | btEffectRunSwirlSwipe (BATTLE_EFFECT_PARM *args, Sint32 mode) | A swirl sweeps across the first target from the user's side. |
void | btEffectRunSpiderWeb (BATTLE_EFFECT_PARM *args) | A spider web spreads over the targets in four mirrored quarters. |
void | btEffectWipeCanvas (Sint32 direction, Sint32 fill) | battle_effect_canvas.c |
void | btEffectTransferCanvas (void) | Copies the canvas to VRAM once the effect has finished a tick, then clears, fades, darkens or brightens it as transferMode says. |
void | btEffectTransferFullScreenImage (void) | Copies a full-screen image to VRAM once the effect has finished a tick, as transferMode says. |
void | btEffectApplyWindowBlendRegisters (void) | Writes the window, display and blend registers the effect keeps in its state, all at once. |
void | btEffectApplyBg2Reference (void) | Writes the effect's BG2 reference point to BG2X and BG2Y. |
void | btEffectDarkenBackgroundStep (void) | Darkens the battle background a step each tick while the canvas is open, so the effect stands out. |
void | btEffectClearTintTimers (void) | Clears every target's flash timer. |
void | btEffectCountDownBattlerTints (void) | Counts down each target's flash timer and gives it its own palette back when one runs out. |
void | btEffectStartCanvasLayer (Sint32 bgControl) | Opens the canvas layer over the battle, darkening the battle background behind it. |
void | btEffectOpenCanvasLayer (Sint32 bgControl) | Opens the canvas layer as btEffectStartCanvasLayer does, with the windows off and a half-faded background. |
void | btEffectStartTiledCanvas (Sint32 bgControl) | Opens the canvas layer on a 256-pixel map that wraps: the canvas fills the left half of the map's top rows, and the right half repeats the canvas's first tile. |
void | btEffectEndCanvasLayer (void) | Closes the canvas layer and brings the battle background's colours back. |
void | btEffectHideBg1AndRestoreBackdrop (void) | Hides BG1 and the windows and starts bringing the battle background's colours back. |
void | btEffectSetupCanvasTileMap (void) | Shows the canvas on BG1 instead of BG2, at its own size. |
void | btEffectDrawClippedCanvasLine ( Sint32 x0, Sint32 y0, Sint32 x1, Sint32 y1, Sint32 color) | Draws a line on the canvas, keeping the brighter colour where it crosses what is drawn; the line's ends are clipped to the canvas's rows only. |
void | btEffectRunPlanetDiver (BATTLE_EFFECT_PARM *args) | battle_effect_planet_diver.c |
void | btEffectRunHaunt (BATTLE_EFFECT_PARM *args) | battle_effect_haunt.c |
void | btEffectRunUnusedOrbitingSpirals (BATTLE_EFFECT_PARM *args) | Unused: no row of AbilityBattleEffects in either game names its kind, and the handler table is reached with no other kind (btEffectRunFromTable), so the player never sees it. |
void | btEffectRunDemonNight (BATTLE_EFFECT_PARM *args) | battle_effect_gathering_lights.c |
void | btEffectRunRumble (BATTLE_EFFECT_PARM *args) | Eight lights in Mars Djinn colours burst out of the user and are pulled into each target. |
void | btEffectRunHaunting (BATTLE_EFFECT_PARM *args) | Twelve lights in Mercury Djinn colours burst out of the user and are pulled into each target. |
void | btEffectRunGatheringLights (BATTLE_EFFECT_PARM *args, Sint32 mode) | For each target in turn, lights burst out of the user and are pulled into the middle of the target's body, which is struck as they arrive; the effect layer ripples throughout. |
void | btEffectBuildCanvasBlitters (Sint32 flip, BLITTER_PAIR out) | battle_effect_mirrored_wall.c |
void | btEffectRunBerserk (BATTLE_EFFECT_PARM *args) | The wall rises wide and shakes the screen hard. |
void | btEffectRunSpasm (BATTLE_EFFECT_PARM *args) | The wall rises with a long gentle shake and the recovery sound. |
void | btEffectRunRecovery (BATTLE_EFFECT_PARM *args) | A wide wall of fire rises without shaking the screen. |
void | btEffectRunMirroredWall (BATTLE_EFFECT_PARM *args, Sint32 mode) | Raises a mirrored wall at the first target's feet while the target glows. |
void | btEffectRunRevive (BATTLE_EFFECT_PARM *args) | battle_effect_djinn_beams.c |
void | btEffectRunDew (BATTLE_EFFECT_PARM *args) | Dew plays Revive's beams of light in the Mercury Djinni's colours, and with a prelude a Mercury Djinni appears first. |
void | btEffectRunDjinnBeams (BATTLE_EFFECT_PARM *args, Sint32 element) | When there is a prelude a Djinni appears and rises away; then over each target in turn motes drift down and a column of light falls on it. |
void | btEffectRunMadSpatter (BATTLE_EFFECT_PARM *args) | battle_effect_lobbed_shells.c |
void | btEffectRunDecompose (BATTLE_EFFECT_PARM *args) | Green shells arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunBoneChiller (BATTLE_EFFECT_PARM *args) | Blue shells arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunStickyGoo (BATTLE_EFFECT_PARM *args) | Shells in the spider web's colours arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunPoisonInk (BATTLE_EFFECT_PARM *args) | Shells in Mars Djinn colours arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunStickyPoison (BATTLE_EFFECT_PARM *args) | Lime shells arc from the user onto each target in turn and burst into smoke. |
void | btEffectRunRottenBlood (BATTLE_EFFECT_PARM *args) | Green shells arc from the user onto each target in turn and burst into shards. |
void | btEffectRunLobbedShells (BATTLE_EFFECT_PARM *args, Sint32 mode) | Lobs a shell from the user at each target in turn; when it lands the target flashes and the shell bursts into smoke that drifts up or shards that fly up and fall. |
void | btEffectRunCondemn (BATTLE_EFFECT_PARM *args) | battle_effect_condemn.c |
void | btEffectConvertBackgroundToBlueRamp (void) | battle_effect_bind.c |
void | btEffectRunBind (BATTLE_EFFECT_PARM *args) | A triangle of light spins and shrinks onto the first target, changing colour and leaving a fading trail, then a rune stands on the target. |
void | btEffectRunUnusedTriangleStrike (BATTLE_EFFECT_PARM *args) | Unused: no row of AbilityBattleEffects in either game names its kind, and the handler table is reached with no other kind (btEffectRunFromTable), so the player never sees it. |
void | btEffectRunAstralBlast (BATTLE_EFFECT_PARM *args) | battle_effect_stars.c |
void | btEffectRunShiningStar (BATTLE_EFFECT_PARM *args) | Eight spinning star outlines fall from above the user and bounce on the ground near the first target, each bounce flashing the targets. |
void | btEffectRunProcne (BATTLE_EFFECT_PARM *args) | battle_effect_procne.c |
void | btEffectRunDragonDriver (BATTLE_EFFECT_PARM *args) | battle_effect_tiamat.c |
void | btEffectRunTiamat (BATTLE_EFFECT_PARM *args) | Tiamat lands while fireballs rain on the targets, breathes fire across them, and bursts away. |
void | btEffectRunDragonFire (BATTLE_EFFECT_PARM *args, Sint32 mode) | Fireballs rain on the targets and burn where they land while embers rise from the ground; then a blast of fire sweeps across them and the screen flares white. |
void | btEffectRunNereid (BATTLE_EFFECT_PARM *args) | battle_effect_nereid.c |
void | btEffectRunFroth (BATTLE_EFFECT_PARM *args) | battle_effect_vortices.c |
void | btEffectRunWhirlwind (BATTLE_EFFECT_PARM *args) | Tornadoes sweep across the targets, sparkling with glints, and the targets reel again and again. |
void | btEffectRunPrism (BATTLE_EFFECT_PARM *args) | battle_effect_prism.c |
void | btEffectUpdatePhasePalette (Sint32 frame, Sint32 redPhase, Sint32 greenPhase, Sint32 bluePhase) | Rebuilds the background palette's first ramp as a grey whose channels sway with the tick, so the effect shimmers through colours. |
void | btEffectRunPlasma (BATTLE_EFFECT_PARM *args) | battle_effect_plasma.c |
void | btEffectRunNova (BATTLE_EFFECT_PARM *args) | Bursts of light go off among the targets, each ringed by fading flashes and throwing sparks. |
void | btEffectRunDynamite (BATTLE_EFFECT_PARM *args) | Orange bursts go off in front of the battle. |
void | btEffectRunSparkGroups (BATTLE_EFFECT_PARM *args, Sint32 mode) | One to three bursts go off: each flashes, rings itself with smaller flashes that fade, and throws out sparks that bounce on the ground, knocking the targets back. |
void | btEffectRunVolcano (BATTLE_EFFECT_PARM *args) | battle_effect_volcano.c |
void | btEffectRunTaint (BATTLE_EFFECT_PARM *args) | battle_effect_target_motes.c |
void | btEffectRunUnusedPinkSmoke (BATTLE_EFFECT_PARM *args) | Pink smoke swirls in on each target, as Taint shows it for a stronger variant. |
void | btEffectRunDelude (BATTLE_EFFECT_PARM *args) | Cyan smoke rises around each target. |
void | btEffectRunParalyze (BATTLE_EFFECT_PARM *args) | Smoke rises around each target, and glints sparkle near it. |
void | btEffectRunHeartrender (BATTLE_EFFECT_PARM *args) | Hearts close in on each target, turning as they come. |
void | btEffectRunMysticFlame (BATTLE_EFFECT_PARM *args) | Glowing orbs spiral in on each target. |
void | btEffectRunDemonFire (BATTLE_EFFECT_PARM *args) | Glowing orbs in Mars Djinn colours rise around each target, and then the user steps up to the first target and strikes it. |
void | btEffectRunDrown (BATTLE_EFFECT_PARM *args) | Thirty-two water drops spiral in on each target. |
void | btEffectRunTargetMotes (BATTLE_EFFECT_PARM *args, Uint32 mode) | Around each target in turn, motes (smoke, hearts, orbs) close in on it or rise, and the target flashes. |
void | btEffectRunSleep (BATTLE_EFFECT_PARM *args) | Twelve sheep drop onto the targets' side, tumbling, and each target falls asleep in turn. |
void | btEffectRunCurse (BATTLE_EFFECT_PARM *args) | A candle stands on each target's head in turn, a small flame burning on it. |
void | btEffectRunDjinnHeal (BATTLE_EFFECT_PARM *args) | battle_effect_djinn_heal.c |
void | btCameraApplyPhasedDelta (void) | Turns the battle camera by the effect's delta each VBlank: the whole delta on the VBlank after one of the effect's ticks ends, half of it on the others, so the camera keeps turning while a tick runs long. |
void | btEffectCallNoOperation (Sint32 count) | battle_effect_dispatch.c |
void | btEffectBuildWindowEdgeTable (void) | Builds window 0's right edge for every line, ragged by each line's inset, and restarts the DMA that writes it; the summons run it each VBlank while the window opens across the screen. |
void | btEffectShowLivingTargets (BATTLE_EFFECT_PARM *args) | Spawns the battle sprites of every unit with HP left on the targets' side. |
void | btEffectSetupBlendedDisplay (void) | Shows the battle background, darkened as a canvas leaves it, behind a cleared canvas. |
void | btEffectTintBattler (Sint32 actorId, Sint32 palette, Sint32 animation, Sint32 timerSlot, Sint32 timerTicks) | Tints one unit's sprite: every part but its shadow takes palette (SPRITE_COLOR_NORMAL gives the unit its own back), the sprite starts animation, and timer timerSlot of the effect counts timerTicks down to the tint's end (btEffectCountDownBattlerTints); TINT_KEEP leaves any of the three as it is. |
void | btEffectOpenAndCloseTiledCanvas (void) | Opens the tiled canvas at priority 1 and closes it again at once. |
void | btEffectRunCybele (BATTLE_EFFECT_PARM *args) | battle_effect_cybele.c |
void | btEffectRunBoreas (BATTLE_EFFECT_PARM *args) | battle_effect_boreas.c |
void | btEffectRunBreak (BATTLE_EFFECT_PARM *args) | battle_effect_drain.c |
void | btEffectRunDrain (BATTLE_EFFECT_PARM *args) | Motes of light burst from each target in turn, and are pulled into the centre of the user's body. |
void | btEffectRunPly (BATTLE_EFFECT_PARM *args) | battle_effect_healing.c |
void | btEffectRunWish (BATTLE_EFFECT_PARM *args) | Healing motes tumble in on each target from all around it. |
void | btEffectRunCure (BATTLE_EFFECT_PARM *args) | A ring of healing motes below each target closes in on it, in the blast sprite sheet's colours. |
void | btEffectRunCurePoison (BATTLE_EFFECT_PARM *args) | Sparkles twinkle around each target, four more a tick, and go out one by one instead of closing in. |
void | btEffectRunUnusedRestoreMotes (BATTLE_EFFECT_PARM *args) | Plays the healing motes as Restore shows them; no effect table entry reaches this one. |
void | btEffectRunTonic (BATTLE_EFFECT_PARM *args) | Sparkles twinkle around each target, turning on two axes, and go out one by one; the runner plays HEALING_MODE_TONIC exactly as HEALING_MODE_RESTORE. |
void | btEffectRunPsyCrystal (BATTLE_EFFECT_PARM *args) | Healing motes gather around each target in the Mars Djinni palette; with a prelude, a Mars Djinni appears first. |
void | btEffectRunHealingMotes (BATTLE_EFFECT_PARM *args, Uint32 mode) | Motes of light scattered around each target swirl in towards it, one target after another. |
void | btEffectRunImpact (BATTLE_EFFECT_PARM *args) | battle_effect_stat_change.c |
void | btEffectRunGuard (BATTLE_EFFECT_PARM *args) | Light swirls into each target and bursts, then a shield appears in Mars colours. |
void | btEffectRunWard (BATTLE_EFFECT_PARM *args) | Light swirls into each target and bursts, then a shield appears in Jupiter colours. |
void | btEffectRunGranite (BATTLE_EFFECT_PARM *args) | Light swirls into each target and bursts, then a pane of light appears in Venus colours. |
void | btEffectRunFlash (BATTLE_EFFECT_PARM *args) | Light swirls into each target and bursts, then a pane of light appears in Mars colours. |
void | btEffectRunZephyr (BATTLE_EFFECT_PARM *args) | Light swirls into each target and bursts, then a gust of wind sweeps across it in the colours already loaded, as this is the one boost that keeps the palette. |
void | btEffectRunStatBoost (BATTLE_EFFECT_PARM *args, Uint32 mode) | Flares of light swirl in to the centre of each target in turn and burst, and the mode's picture plays over it. |
void | btEffectRunDull (BATTLE_EFFECT_PARM *args) | A dagger appears over each target and breaks into shards that fade through darker copies, in the pink burst's colours. |
void | btEffectRunImpair (BATTLE_EFFECT_PARM *args) | A shield appears over each target and breaks into shards that fade through darker copies, in the glow orb's colours. |
void | btEffectRunWeaken (BATTLE_EFFECT_PARM *args) | A shield appears over each target and breaks into fading shards, in the pink burst's colours. |
void | btEffectRunUnusedStatReduction (BATTLE_EFFECT_PARM *args) | Breaks the shield sprite into fading shards as Weaken does; no effect table entry reaches it. |
void | btEffectRunStatReduction (BATTLE_EFFECT_PARM *args, Sint32 mode) | A dagger (Dull) or a shield (the others) appears over each target and breaks into shards that fly off and fade. |
void | btEffectRunFlare (BATTLE_EFFECT_PARM *args) | battle_effect_flare.c |
Sint32 | btEffectBuildCenteredIndexList (BATTLE_EFFECT_INDEX_WINDOW *window, Sint16 *output) | Lists the indices within indexRadius of where currentValue sits in values, up to entryLimit, and returns how many. |
void | btEffectRunQuake (BATTLE_EFFECT_PARM *args) | battle_effect_quake.c |
void | btEffectRunFire (BATTLE_EFFECT_PARM *args) | battle_effect_fire.c |
void | btEffectRunFrost (BATTLE_EFFECT_PARM *args) | battle_effect_frost.c |
void | btEffectRunRay (BATTLE_EFFECT_PARM *args) | battle_effect_ray.c |
void | btEffectRunSmokeBomb (BATTLE_EFFECT_PARM *args) | battle_effect_eruption.c |
void | btEffectRunBlast (BATTLE_EFFECT_PARM *args) | A fountain of fire-coloured motes and puffs of smoke bursts up beside the targets and falls back, flashing each target and making it recoil. |
void | btEffectRunEruption (BATTLE_EFFECT_PARM *args, Sint32 mode) | A fountain of motes and puffs of smoke bursts up beside the targets and falls back, hitting the targets one after another. |
void | btEffectCreateSprites (Sint32 count, Sint32 spriteId, Uint32 priority) | Creates the count sprites a summon's figure is drawn from, all of sprite spriteId, into state->sprites: sprite n plays animation n, its piece of the figure, at BG priority priority. |
void | btEffectNoOperation (void) | Does nothing; Annihilation calls it 10,000 times as a busy wait (btEffectCallNoOperation). |
void | btEffectArmBg2AffineHBlankDMA (void) | battle_effect_burst_shower.c |
void | btEffectRunFireBlessing (BATTLE_EFFECT_PARM *args) | The user fires a stream of flash bursts at the targets, one a tick, each towards a random point near a target. |
void | btEffectRunWaterBlessing (BATTLE_EFFECT_PARM *args) | The user fires a stream of bursts at the targets in the water-spray palette. |
void | btEffectRunDarkBlessing (BATTLE_EFFECT_PARM *args) | The user fires a stream of grey bursts at the targets, which turn solid black and stay so. |
void | btEffectRunAcidBlessing (BATTLE_EFFECT_PARM *args) | The user fires a stream of pink bursts at the targets, from 16 pixels higher than usual. |
void | btEffectRunStormBlessing (BATTLE_EFFECT_PARM *args) | Violet lightning reaches from the user across to the targets instead of bursts, on a canvas shown three times as wide, flickering through three pictures, and the targets flash in turn without being knocked back. |
void | btEffectRunEvilBlessing (BATTLE_EFFECT_PARM *args) | The user fires a stream of demon faces at the targets, from 16 pixels in front of it. |
void | btEffectRunDeadlyGas (BATTLE_EFFECT_PARM *args) | The user fires a stream of Mars-coloured bursts at the targets, from 28 pixels in front of it. |
void | btEffectRunBurstShower (BATTLE_EFFECT_PARM *args, Sint32 mode) | The user fires one burst a tick at a point near one of the targets, taking them in turn, and each target is hit in turn. |
void | btEffectRunSwirlingStars (BATTLE_EFFECT_PARM *args) | battle_effect_orbiting.c |
void | btEffectRunOrbitingSkulls (void) | Orbiting skulls: three skulls circle each target in turn. |
void | btEffectRunTargetBursts (BATTLE_EFFECT_PARM *args) | Target bursts: on each target in turn a burst flares while puffs of smoke scatter around it. |
void | btEffectRunAtalanta (BATTLE_EFFECT_PARM *args) | battle_effect_atalanta.c |
void | btEffectRunGrowth (BATTLE_EFFECT_PARM *args) | battle_effect_growth.c |
void | btEffectRunPunji (BATTLE_EFFECT_PARM *args) | Green pillars grow from the ground, scattering dust from each root. |
void | btEffectRunGrowingColumns (BATTLE_EFFECT_PARM *args, Sint32 mode) | Vines or green pillars grow one after another, alternately mirrored, each throwing up dust from its root. |
void | btEffectRunVine (BATTLE_EFFECT_PARM *args) | Sixteen green vines grow from the middle of the row of targets, 2 ticks apart, and shrink back. |
void | btEffectRunThorn (BATTLE_EFFECT_PARM *args) | Thorns burst from the ground one every 8 ticks, throwing up dust from their roots. |
void | btEffectRunBolt (BATTLE_EFFECT_PARM *args) | battle_effect_bolt.c |
void | btEffectRunDjinniEntrance (BATTLE_EFFECT_PARM *args, Sint32 element, Sint32 side, Sint32 anchor, Sint32 *outX, Sint32 *outY) | battle_effect_projectiles.c |
void | btEffectRunSlash (BATTLE_EFFECT_PARM *args) | Six comets fly at each target, three ticks apart, and burst into a flash and sparks; the effect's variant picks one of three comets. |
void | btEffectRunShuriken (BATTLE_EFFECT_PARM *args) | Four spinning shurikens fly at each target, five ticks apart, and vanish once past it. |
void | btEffectRunCrazyVoice (BATTLE_EFFECT_PARM *args) | Ten pellets fly slowly at each target and bounce off it, up or down at random. |
void | btEffectRunWingFlutter (BATTLE_EFFECT_PARM *args) | Five yellow sparks fly level at each target, five ticks apart. |
void | btEffectRunWingStroke (BATTLE_EFFECT_PARM *args) | Ten large yellow sparks stream level at each target, one a tick, spread up and down. |
void | btEffectRunWingBeat (BATTLE_EFFECT_PARM *args) | Ten small yellow sparks stream level at each target, one a tick. |
void | btEffectRunCuttingEdge (BATTLE_EFFECT_PARM *args) | From the user's action pose, one large comet in ice colours flies at each target and bursts into 80 sparks. |
void | btEffectRunHeatWave (BATTLE_EFFECT_PARM *args) | From the user's action pose, seven fireballs trailing embers fly at each target, two ticks apart, each bursting into 40 sparks. |
void | btEffectRunSleet (BATTLE_EFFECT_PARM *args) | Thirty ice chips fall from high above the user onto each target. |
void | btEffectRunIceBlessing (BATTLE_EFFECT_PARM *args) | Sixty ice chips stream at each target, one a tick, without knocking it back. |
void | btEffectRunBlizzard (BATTLE_EFFECT_PARM *args) | From the user's action pose, sixty ice chips stream at each target, one a tick, scattered up and down, without knocking it back. |
void | btEffectRunProjectileVolley (BATTLE_EFFECT_PARM *args, Sint32 mode) | Shots fly from the user to each target and burst into a flash and sparks when they pass it. |
void | btEffectHopBackToSpot (Sint32 id) | Sends a unit back to its place (its anchor) with a hop. |
void | btEffectSetApproachMotion (Sint32 id, Sint32 targetId, Sint32 ticks) | Moves a unit APPROACH_PERCENT of the way to another one over ticks, in its leap pose. |
void | btEffectPackYellowOrbs (Uint8 *src, Uint8 *dest, Sint32 stride, Sint32 rowCount) | battle_effect_rushing_strike.c |
void | btEffectRunBoneCharge (BATTLE_EFFECT_PARM *args) | Rushes the target and scatters sparks in the fire pillar palette. |
void | btEffectRunBruteForce (BATTLE_EFFECT_PARM *args) | Rushes the target and scatters sparks in the ice-block palette. |
void | btEffectRunOnslaught (BATTLE_EFFECT_PARM *args) | Rushes the target and scatters sparks in the pink-burst palette. |
void | btEffectRunHeadbutt (BATTLE_EFFECT_PARM *args) | Rushes the target and scatters sparks in the blast palette. |
void | btEffectRunRushingStrike (BATTLE_EFFECT_PARM *args, Sint32 mode) | The user rushes at the first target; a ring flares where it hits and sparks scatter. |
void | btEffectTransposeCopy (const Uint8 *src, Uint8 *dest, Sint32 width, Sint32 height) | battle_effect_djinn_attacks.c |
void | btEffectRunMercury (BATTLE_EFFECT_PARM *args) | The Mercury Djinni rises from below on the caster's side and whirls there, washed white, firing five blue flames to the left; trailing like comets, each bursts into a spray of motes over the targets and hits them all. |
void | btEffectRunJupiter (BATTLE_EFFECT_PARM *args) | The Jupiter Djinni whirls by the caster, trailing pink, while eight pink flameballs fall from the top right onto the targets, 4 ticks apart; each bursts into 32 motes and hits every target. |
void | btResourceLoadAndDecompress (Sint32 id, void *dest, Sint32 skipPalette, Sint32 copyPalette) | Decompresses resource id into dest. |
void | btEffectRunVenus (BATTLE_EFFECT_PARM *args) | The Venus Djinni drops in from above the targets, swaying and trailing yellow, while ten columns of yellow fire shoot up from the ground beneath them one after another, each bursting into motes and hitting every target. |
void | btEffectRunMars (BATTLE_EFFECT_PARM *args) | A fireball blooms high over the targets and burns out, the Mars Djinni appears where it was and dives onto them, nine flames erupt in a row along the ground beneath them and embers stream up. |
void | btEffectRunHail (BATTLE_EFFECT_PARM *args) | battle_effect_hail.c |
void | btEffectRunGround (BATTLE_EFFECT_PARM *args) | After a Venus Djinni enters, six glowing portals leave the user, swirl and close in on the first target, each striking it as it arrives. |
void | btCameraShake (Sint32 rangeX, Uint32 rangeY) | Shakes the battle view by up to rangeX and rangeY pixels while the effect's shakeFrame ticks last, then puts it back where it was. |
void | btEffectRunThor (BATTLE_EFFECT_PARM *args) | battle_effect_thor.c |
void | btEffectRunSpire (BATTLE_EFFECT_PARM *args) | battle_effect_spire.c |
void | btEffectRunGust (BATTLE_EFFECT_PARM *args) | battle_effect_flurry.c |
void | btEffectRunBearClaw (BATTLE_EFFECT_PARM *args) | The user strikes the first target five times. |
void | btEffectRunRansack (BATTLE_EFFECT_PARM *args) | Ransack plays the same five strikes as Bear Claw. |
void | btEffectRunBacteriaRush (BATTLE_EFFECT_PARM *args) | Seven strikes land on the first target in the lime palette. |
void | btEffectRunFreebiteRush (BATTLE_EFFECT_PARM *args) | Nine strikes land on the first target in the blue palette. |
void | btEffectRunFlyingAttack (BATTLE_EFFECT_PARM *args) | |
void | btEffectRunFlurry (BATTLE_EFFECT_PARM *args, Sint32 mode) | The user closes on the first target and strikes it again and again, each strike an arc or a wave with a flash and a spray of motes; the last knocks the target back. |
void | btEffectRunGaia (BATTLE_EFFECT_PARM *args) | battle_effect_gaia.c |
void | btParticleAdvanceWithGravity3D (PARTICLE *step, Sint32 damping, Sint32 gravity) | battle_effect_positions.c |
void | btParticleAdvanceWithGravity2D (PARTICLE *step, Sint32 damping, Sint32 gravity) | Moves a particle one tick on the screen. |
Sint32 | btProjectionPoint (const void *point, SCREEN_POINT *pos) | Projects a point in the current transform onto the screen, 16 pixels higher, and returns the projection's scale. |
void | btProjectionSprite (Sint32 id, SCREEN_POINT *pos) | The screen position of a unit's sprite, at its scaled height, 16 pixels higher. |
void | btProjectionScaledUnit (Sint32 id, SCREEN_POINT *pos) | The screen position of a unit, scaled for the battle view, 16 pixels higher. |
void | btProjectionUnit (Sint32 id, SCREEN_POINT *pos) | The screen position of a unit, 16 pixels higher. |
Sint32 | btUnitProjectToScreen (Sint32 unit, Sint32 *screen) | Projects a unit onto the screen, raised by half its height, from the battle camera. |
void | btEffectReadKeysForEnemyTarget (void) | Unused: reads the held keys when the first target is an enemy and does nothing with them. |
void | btEffectRunAttackSlash (BATTLE_EFFECT_PARM *args) | battle_effect_beams.c |
void | btEffectRunCriticalHit (BATTLE_EFFECT_PARM *args) | A critical hit: motes of light close in on the attacker as it hangs in its leap, then a crescent slash sweeps across the first target and sparks fly from it. |
void | btEffectStepPaletteToResource (Sint32 resourceId) | battle_effect_casting_impact.c |
void | btEffectRunCastingImpact (BATTLE_EFFECT_PARM *args, Sint32 mode) | Gathers sparks around the caster, launches the Djinni and draws the impact on the first target. |
void | btEffectRunTorch (BATTLE_EFFECT_PARM *args) | battle_effect_torch.c |
void | btEffectRunKite (BATTLE_EFFECT_PARM *args) | The long Jupiter Djinni entrance over the first target is the whole effect. |
void | btEffectRunHelmSplitter (BATTLE_EFFECT_PARM *args) | battle_effect_helm_splitter.c |
void | btEffectPlaceFormationSprites (Sint32 formation, FIXED x, FIXED z) | battle_effect_starfield_fall.c |
void | btEffectRunImpactBurst (Sint32 formation, Sint32 x, FIXED y) | Ends a summon: a flash opens where its figure stands and scatters sparks and three fragments, the figure holding its formation for the first 36 ticks. |
void | btPaletteBrightenBgEntries (Sint32 blueStep, Sint32 greenStep, Sint32 redStep) | Brightens background colours 1 to 63 by a step in each channel. |
void | btEffectArmPaletteHBlankDMA (void) | Streams the fall's backdrop colours into colour 0, one each line. |
void | btEffectRunMeteor (BATTLE_EFFECT_PARM *args) | The battle dissolves into a starfield and a meteor falls through it in flames among falling fireballs, then bursts in embers and flashes. |
void | btEffectRunOuterSpace (BATTLE_EFFECT_PARM *args) | The Fusion Dragon leaps out of sight and falls back through a starfield in flames, then bursts in embers and flashes, all in the lightning bolt's colours. |
void | btEffectRunStarfieldFall (BATTLE_EFFECT_PARM *args, Sint32 mode) | Meteor and Outer Space: the fall through the starfield, then the burst. |
void | btEffectRunRamses (BATTLE_EFFECT_PARM *args) | battle_effect_ramses.c |
void | btEffectRunDragonCloud (BATTLE_EFFECT_PARM *args) | battle_effect_dragon_cloud.c |
void | btEffectRunAnnihilation (BATTLE_EFFECT_PARM *args) | battle_effect_annihilation.c |
void | btEffectRunRagnarok (BATTLE_EFFECT_PARM *args) | battle_effect_ragnarok.c |
void | btEffectRunTitanBlade (BATTLE_EFFECT_PARM *args) | battle_effect_titan_blade.c |
void | btEffectRunJudgment (BATTLE_EFFECT_PARM *args) | battle_effect_judgment.c |
void | btEffectRunKirin (BATTLE_EFFECT_PARM *args) | battle_effect_kirin.c |
void | btEffectResetBg2Pa (void) | battle_effect_neptune.c |
void | btEffectSetBg2AffineScaleHalf (void) | Stretches BG2 to twice its width from the current line down. |
void | btEffectRunNeptune (BATTLE_EFFECT_PARM *args) | Under storm clouds Neptune leaps out of the sea in a burst of spray, light gathers at its head and a beam of light joins its head to the sky, with a splash there; then five columns of water crash down on the targets, throwing up drops. |
void | btEffectRunThrash (BATTLE_EFFECT_PARM *args) | battle_effect_thrash.c |
void | btEffectRunUnusedSevereBlowLeap (BATTLE_EFFECT_PARM *args) | Unused: no row of AbilityBattleEffects names its kind. |
void | btEffectRunQuickStrike (BATTLE_EFFECT_PARM *args) | The user leaps at the first target, four pictures flash across the effect layer, then it fills with one colour as the target is struck. |
void | btEffectRunVorpalSlash (BATTLE_EFFECT_PARM *args) | The user steps up to the first target, four pictures flash across the effect layer, then it fills with one colour as the target is struck. |
void | btEffectRunFlashingStrike (BATTLE_EFFECT_PARM *args, Sint32 mode) | Plays a flashing strike; nothing passes FLASHING_STRIKE_UNUSED. |
void | btEffectRunUndeadSword (BATTLE_EFFECT_PARM *args) | battle_effect_undead_sword.c |
Variables
| Name | Description | |
|---|---|---|
extern BATTLE_EFFECT_HANDLER | BattleEffectHandlers [] | The handlers by kind less one (battle_effect_table.c); btEffectRunFromTable calls the one an effect's kind selects. |
extern const Uint32 | BlitterTemplate [] | The template btEffectBuildBlitter walks word by word to write a blitter (blitter_template.s); none of it runs where it is. |
Description
The battle effects: the effect kinds an ability plays, and the runners in
src/battle_effect/ that draw them over the battle, part by part.
Macros in detail
PARTICLES
#define PARTICLES ((PARTICLE *)RamMapGridMetatileBuffer)
The map cell buffer (MapGridMetatileBuffer), which the effects borrow, has
two views here: RamMapGridMetatileBuffer as bytes, at its fixed address, and
PARTICLES as particles. The effects use these two, not MapGridMetatileBuffer
itself.
Referenced by btEffectArmWin0HBlankDMA(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlurry(), btEffectRunFrost(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunHelmSplitter(), btEffectRunImpactBurst(), btEffectRunJudgment(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMercury(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunRagnarok(), btEffectRunRamses(), btEffectRunRay(), btEffectRunShiningStar(), btEffectRunSleep(), btEffectRunSparkGroups(), btEffectRunSpire(), btEffectRunStarfieldFall(), btEffectRunStatBoost(), btEffectRunStatReduction(), btEffectRunSwirlingStars(), btEffectRunTargetMotes() and 5 more.
Definition at line 70 of file battle_effect.h.
PARTICLE_POOL_COUNT
#define PARTICLE_POOL_COUNT 1024
The particles PARTICLES holds.
Referenced by btEffectRunBolt(), btEffectRunEruption(), btEffectRunGatheringLights(), btEffectRunGrowingColumns(), btEffectRunLobbedShells(), btEffectRunNeptune(), btEffectRunRamses() and btEffectRunThorn().
Definition at line 72 of file battle_effect.h.
EFFECT_CLIP_BOUNDS
#define EFFECT_CLIP_BOUNDS (BLITTER_CLIP_X | BLITTER_CLIP_Y)
Clips overflow on all four sides.
Referenced by btEffectBuildCanvasBlitters(), btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCriticalHit(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinniEntrance(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlurry(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGround(), btEffectRunGrowingColumns(), btEffectRunHaunt(), btEffectRunImpactBurst(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunOrbitingSkulls(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunRamses(), btEffectRunRay(), btEffectRunRushingStrike(), btEffectRunShatteringOpening() and 23 more.
Definition at line 75 of file battle_effect.h.
FIXED_INTEGER_PART
#define FIXED_INTEGER_PART(v) ((Sint32)(v) >> 16)
#define FIXED_INTEGER_PART(v) (((Sint16 *)&(v))[1])
Referenced by btEffectRunImpactBurst() and btEffectRunSparkGroups().
Definition at lines 81 and 83 of file battle_effect.h.
EFFECT_BLITTERS
#define EFFECT_BLITTERS ((DRAW_RECTANGLE *)HeapSlots)
The heap slots read as blitters: EFFECT_BLITTERS[HEAP_SLOT_RAM_CODE] and
EFFECT_BLITTERS[HEAP_SLOT_RAM_CODE_PAIRED].
Referenced by btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunCriticalHit(), btEffectRunIce(), btEffectRunJudgment(), btEffectRunSpiderWeb(), btEffectRunTargetStrike() and btEffectRunThor().
Definition at line 101 of file battle_effect.h.
TINT_KEEP
#define TINT_KEEP (-1)
Passed to btEffectTintBattler as its palette, animation or timerSlot: leave
that one as it is.
Referenced by btEffectCountDownBattlerTints(), btEffectRunAnnihilation(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCybele(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunFrost(), btEffectRunHealingMotes(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNereid(), btEffectRunQuake(), btEffectRunRamses(), btEffectRunShatteringOpening(), btEffectRunSleep(), btEffectRunSpiderWeb(), btEffectRunStatBoost(), btEffectRunStreakVolley(), btEffectRunTargetStrike(), btEffectRunUnusedOrbitingSpirals() and btEffectTintBattler().
Definition at line 276 of file battle_effect.h.
Typedefs in detail
BATTLE_EFFECT_HANDLER
typedef void (*BATTLE_EFFECT_HANDLER)(BATTLE_EFFECT_PARM *args);
An effect handler: plays one effect over the battle, tick by tick, and returns when it is over.
Referenced by BattleEffectHandlers.
Definition at line 36 of file battle_effect.h.
BLITTER_PAIR
typedef DRAW_RECTANGLE BLITTER_PAIR[2];
A blitter pair: [0] built in HEAP_SLOT_RAM_CODE and [1] in
HEAP_SLOT_RAM_CODE_PAIRED (btEffectBuildCanvasBlitters fills one). Many
effects keep this pair in their stack frame.
Referenced by btEffectBuildCanvasBlitters(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCriticalHit(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunDragonFire(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlurry(), btEffectRunFrost(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunGround(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunIce(), btEffectRunJupiter(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMercury(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNereid(), btEffectRunOrbitingSkulls(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunRay(), btEffectRunRushingStrike(), btEffectRunShatteringOpening(), btEffectRunShiningStar() and 14 more.
Definition at line 97 of file battle_effect.h.
Enumerations in detail
EFFECT_VARIANT
enum EFFECT_VARIANT
An effect's variant: the strength of the ability that plays it, from bits 12
and 13 of its row of AbilityBattleEffects. Most abilities come in threes that
share an effect, such as Quake, Earthquake and Quake Sphere, and a double or
triple blow adds one or two. A runner that sets its own variants names them
beside it.
| Enumerator | Value | Description |
|---|---|---|
EFFECT_VARIANT_BASIC | Quake, Douse, Ply | |
EFFECT_VARIANT_STRONGER | Earthquake, Drench, Ply Well | |
EFFECT_VARIANT_STRONGEST | Quake Sphere, Deluge, Pure Ply |
Definition at line 43 of file battle_effect.h.
Functions in detail
btEffectRunGust
void btEffectRunGust(BATTLE_EFFECT_PARM *args)
Referenced by BattleEffectHandlers.
Definition at line 430 of file battle_effect.h.
btEffectRunFlyingAttack
void btEffectRunFlyingAttack(BATTLE_EFFECT_PARM *args)
Referenced by BattleEffectHandlers.
Definition at line 435 of file battle_effect.h.
Variables in detail
BlitterTemplate
extern const Uint32 BlitterTemplate[]
The template btEffectBuildBlitter walks word by word to write a blitter
(blitter_template.s); none of it runs where it is.
Referenced by btEffectBuildBlitter().
Definition at line 520 of file battle_effect.h.