Alchemy

condemn.c

Condemn.

games/tbs/src/effect/parts/condemn.c on GitHub

Condemn. Part of effect.c, the battle effect object, compiled only through it.

Functions

BattleFx_RunCondemn

void BattleFx_RunCondemn(struct BattleEffectArgument *effect)

A tall panel (57x98) swings across the screen three times, each pass fading out through a ripple, the last over the first target; on frame 88 it shatters in a white flash into a burst of larger pieces and the target is knocked back, bouncing on frame 120.

Abilities: Condemn (kind 40).

The effect layer ripples throughout. 132 frames.

Opens the tiled canvas (BattleFx_BeginTiledCanvas) and adds BattleFx_ArmBg2AffineHBlankDma to feed work->bg2xLines to BG2X; decodes the burst's pieces into Ram_MapCellBuffer; moves the target's object; and reloads the battle backdrop on BG1 before it closes the layer. It never calls EFFECT_SHOW_DAMAGE, and leaves the flash timers alone.

Used by gBattleFx_EffectHandlers.

Line 29

Macros

CONDEMN_PANEL_X

#define CONDEMN_PANEL_X(column, stage) gCondemn_PanelX[(column)][(stage)]

gCondemn_PanelX and _PanelY have seven stages for each column and row.

Used by BattleFx_RunCondemn.

Line 12

Also, macros without a comment: CONDEMN_FRAMES, CONDEMN_BREAK_FRAME, CONDEMN_BOUNCE_FRAME, CONDEMN_PANEL_Y.

On this page