Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_spider_web.c

Poison Beat, Spinning Beat and Spider Web. More…

Included by battle_effect.c.

Macros

NameDescription
#defineSPIDER_WEB_TICKS 63
#defineSPIDER_WEB_QUARTER_WIDTH 32SpiderWebSheet's quarter of the web, drawn four times mirrored.
#defineSPIDER_WEB_QUARTER_HEIGHT 32
#defineSPIDER_WEB_CENTER_X (CANVAS_SIZE / 2)The web's middle on the canvas, which the canvas puts over the targets' middle; the quarters to its left and above take its column and row too.
#defineSPIDER_WEB_CENTER_Y 72
#defineSPIDER_WEB_LEFT (SPIDER_WEB_CENTER_X - SPIDER_WEB_QUARTER_WIDTH + 1)
#defineSPIDER_WEB_TOP (SPIDER_WEB_CENTER_Y - SPIDER_WEB_QUARTER_HEIGHT + 1)

Enumerations

NameDescription
enumSWIRL_SWIPE_MODE { SWIRL_SWIPE_POISON_BEAT, SWIRL_SWIPE_SPINNING_BEAT }The swirl swipe's modes (btEffectRunSwirlSwipe), each named for the effect that plays it.

Functions

NameDescription
voidbtEffectRunPoisonBeat (BATTLE_EFFECT_PARM *args)A lime swirl sweeps across the first target and knocks it back.
voidbtEffectRunSpinningBeat (BATTLE_EFFECT_PARM *args)A magenta swirl sweeps across the first target and throws it into the air.
voidbtEffectRunSwirlSwipe (BATTLE_EFFECT_PARM *args, Sint32 mode)A swirl sweeps across the first target from the user's side.
voidbtEffectRunSpiderWeb (BATTLE_EFFECT_PARM *args)A spider web spreads over the targets in four mirrored quarters.

Description

Poison Beat, Spinning Beat and Spider Web. Part of battle_effect.c.

Macros in detail

SPIDER_WEB_TICKS

#define SPIDER_WEB_TICKS 63

Referenced by btEffectRunSpiderWeb().

Definition at line 138 of file battle_effect_spider_web.c.

SPIDER_WEB_QUARTER_WIDTH

#define SPIDER_WEB_QUARTER_WIDTH 32

SpiderWebSheet's quarter of the web, drawn four times mirrored.

Referenced by btEffectRunSpiderWeb().

Definition at line 140 of file battle_effect_spider_web.c.

SPIDER_WEB_QUARTER_HEIGHT

#define SPIDER_WEB_QUARTER_HEIGHT 32

Referenced by btEffectRunSpiderWeb().

Definition at line 141 of file battle_effect_spider_web.c.

SPIDER_WEB_CENTER_X

#define SPIDER_WEB_CENTER_X (CANVAS_SIZE / 2)

The web's middle on the canvas, which the canvas puts over the targets' middle; the quarters to its left and above take its column and row too.

Referenced by btEffectRunSpiderWeb().

Definition at line 144 of file battle_effect_spider_web.c.

SPIDER_WEB_CENTER_Y

#define SPIDER_WEB_CENTER_Y 72

Referenced by btEffectRunSpiderWeb().

Definition at line 145 of file battle_effect_spider_web.c.

SPIDER_WEB_LEFT

#define SPIDER_WEB_LEFT (SPIDER_WEB_CENTER_X - SPIDER_WEB_QUARTER_WIDTH + 1)

Referenced by btEffectRunSpiderWeb().

Definition at line 146 of file battle_effect_spider_web.c.

SPIDER_WEB_TOP

#define SPIDER_WEB_TOP (SPIDER_WEB_CENTER_Y - SPIDER_WEB_QUARTER_HEIGHT + 1)

Referenced by btEffectRunSpiderWeb().

Definition at line 147 of file battle_effect_spider_web.c.

Enumerations in detail

SWIRL_SWIPE_MODE

enum SWIRL_SWIPE_MODE

The swirl swipe's modes (btEffectRunSwirlSwipe), each named for the effect that plays it.

EnumeratorValueDescription
SWIRL_SWIPE_POISON_BEATlime; the target recoils at once, 48 ticks
SWIRL_SWIPE_SPINNING_BEATmagenta; the target is thrown up, 74 ticks

Definition at line 5 of file battle_effect_spider_web.c.

Functions in detail

btEffectRunPoisonBeat

void btEffectRunPoisonBeat(BATTLE_EFFECT_PARM *args)

A lime swirl sweeps across the first target and knocks it back.

Abilities: Poison Beat.

References btEffectRunSwirlSwipe().

Referenced by BattleEffectHandlers.

Definition at line 14 of file battle_effect_spider_web.c.

btEffectRunSpinningBeat

void btEffectRunSpinningBeat(BATTLE_EFFECT_PARM *args)

A magenta swirl sweeps across the first target and throws it into the air.

Abilities: Spinning Beat.

References btEffectRunSwirlSwipe().

Referenced by BattleEffectHandlers.

Definition at line 22 of file battle_effect_spider_web.c.

btEffectRunSwirlSwipe

void btEffectRunSwirlSwipe(BATTLE_EFFECT_PARM *args, Sint32 mode)

A swirl sweeps across the first target from the user's side.

References btCameraShake(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btObjectGetStub(), btProjectionScaledUnit(), btResourceLoadAndDecompress(), Sint32, state, SwirlSwipePictureBiasY, SwirlSwipePictureHeights, SwirlSwipePictures, SwirlSwipePictureWidths, SwirlSwipePictureX, syResourceGetTableEntry(), sySoundPlayStub() and syWordsCopy().

Referenced by btEffectRunPoisonBeat() and btEffectRunSpinningBeat().

Definition at line 28 of file battle_effect_spider_web.c.

btEffectRunSpiderWeb

void btEffectRunSpiderWeb(BATTLE_EFFECT_PARM *args)

A spider web spreads over the targets in four mirrored quarters.

Abilities: Spider Web.

References btEffectEndCanvasLayer(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btProjectionScaledUnit(), btResourceLoadAndDecompress(), Sint32, state, syCloseEvent(), syHeapSlotRelease() and sySoundPlayStub().

Referenced by BattleEffectHandlers.

Definition at line 152 of file battle_effect_spider_web.c.