Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_healing.c

The healing motes of Ply, Wish, Cure, Cure Poison, Tonic and Psy Crystal. More…

Included by battle_effect.c.

Macros

NameDescription
#defineHEALING_SPARKS 512sparks in PARTICLES
#defineHEALING_DJINNI_PICTURE 4096the Djinni picture in the sprite sheet
#defineHEALING_DJINNI_SWAY 20How far the Djinni sways to either side, in screen pixels.
#defineHEALING_MOTES 64Each target's motes: HEALING_MOTES for the stronger variant, half that for the basic and twice for the strongest.
#defineHEALING_CURE_RING_LAG 40The ticks each target's ring of Cure motes lags the last target's in its turn.
#defineHEALING_MOTE_DEPTH_NEAR 314A sparkle or mote is drawn at one of three sizes by its depth, from HEALING_MOTE_DEPTH_NEAR, one size smaller every HEALING_MOTE_DEPTH_STEP farther, its depth held below HEALING_MOTE_DEPTH_FAR.
#defineHEALING_MOTE_DEPTH_STEP 128
#defineHEALING_MOTE_DEPTH_FAR 634

Enumerations

NameDescription
enumHEALING_MOTES_MODE { HEALING_MODE_PLY, HEALING_MODE_WISH, HEALING_MODE_CURE, HEAL … }The healing motes' modes (btEffectRunHealingMotes), each named for the first ability that plays it.

Functions

NameDescription
voidbtEffectRunPly (BATTLE_EFFECT_PARM *args)Sparkles of light swirl around each target and close in on it, in the ice shard's or ice block's colours, with the canvas shown at its own width and centred on the first target.
voidbtEffectRunWish (BATTLE_EFFECT_PARM *args)Healing motes tumble in on each target from all around it.
voidbtEffectRunCure (BATTLE_EFFECT_PARM *args)A ring of healing motes below each target closes in on it, in the blast sprite sheet's colours.
voidbtEffectRunCurePoison (BATTLE_EFFECT_PARM *args)Sparkles twinkle around each target, four more a tick, and go out one by one instead of closing in.
voidbtEffectRunUnusedRestoreMotes (BATTLE_EFFECT_PARM *args)Plays the healing motes as Restore shows them; no effect table entry reaches this one.
voidbtEffectRunTonic (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.
voidbtEffectRunPsyCrystal (BATTLE_EFFECT_PARM *args)Healing motes gather around each target in the Mars Djinni palette; with a prelude, a Mars Djinni appears first.
voidbtEffectRunHealingMotes (BATTLE_EFFECT_PARM *args, Uint32 mode)Motes of light scattered around each target swirl in towards it, one target after another.

Description

The healing motes of Ply, Wish, Cure, Cure Poison, Tonic and Psy Crystal. Part of battle_effect.c.

Macros in detail

HEALING_SPARKS

#define HEALING_SPARKS 512

sparks in PARTICLES

Referenced by btEffectRunHealingMotes().

Definition at line 4 of file battle_effect_healing.c.

HEALING_DJINNI_PICTURE

#define HEALING_DJINNI_PICTURE 4096

the Djinni picture in the sprite sheet

Referenced by btEffectRunHealingMotes().

Definition at line 11 of file battle_effect_healing.c.

HEALING_DJINNI_SWAY

#define HEALING_DJINNI_SWAY 20

How far the Djinni sways to either side, in screen pixels.

Referenced by btEffectRunHealingMotes().

Definition at line 13 of file battle_effect_healing.c.

HEALING_MOTES

#define HEALING_MOTES 64

Each target's motes: HEALING_MOTES for the stronger variant, half that for the basic and twice for the strongest. A target's motes start HEALING_MOTES after the last target's in PARTICLES, so the strongest variant's run on into the next target's.

Referenced by btEffectRunHealingMotes().

Definition at line 18 of file battle_effect_healing.c.

HEALING_CURE_RING_LAG

#define HEALING_CURE_RING_LAG 40

The ticks each target's ring of Cure motes lags the last target's in its turn.

Referenced by btEffectRunHealingMotes().

Definition at line 21 of file battle_effect_healing.c.

HEALING_MOTE_DEPTH_NEAR

#define HEALING_MOTE_DEPTH_NEAR 314

A sparkle or mote is drawn at one of three sizes by its depth, from HEALING_MOTE_DEPTH_NEAR, one size smaller every HEALING_MOTE_DEPTH_STEP farther, its depth held below HEALING_MOTE_DEPTH_FAR.

Referenced by btEffectRunHealingMotes().

Definition at line 25 of file battle_effect_healing.c.

HEALING_MOTE_DEPTH_STEP

#define HEALING_MOTE_DEPTH_STEP 128

Referenced by btEffectRunHealingMotes().

Definition at line 26 of file battle_effect_healing.c.

HEALING_MOTE_DEPTH_FAR

#define HEALING_MOTE_DEPTH_FAR 634

Referenced by btEffectRunHealingMotes().

Definition at line 27 of file battle_effect_healing.c.

Enumerations in detail

HEALING_MOTES_MODE

enum HEALING_MOTES_MODE

The healing motes' modes (btEffectRunHealingMotes), each named for the first ability that plays it.

EnumeratorValueDescription
HEALING_MODE_PLYswirling sparkles, the canvas at its own width
HEALING_MODE_WISHmotes tumbling in from all around
HEALING_MODE_CUREa ring of motes below each target
HEALING_MODE_CURE_POISONsparkles that go out one by one
HEALING_MODE_RESTOREthe same, turning on a second axis
HEALING_MODE_TONICplayed exactly as HEALING_MODE_RESTORE
HEALING_MODE_PSY_CRYSTALmotes in the Mars Djinni palette

Definition at line 31 of file battle_effect_healing.c.

Functions in detail

btEffectRunPly

void btEffectRunPly(BATTLE_EFFECT_PARM *args)

Sparkles of light swirl around each target and close in on it, in the ice shard's or ice block's colours, with the canvas shown at its own width and centred on the first target.

Abilities: Ply, Ply Well, Pure Ply, Herb, Nut, Vial, Potion, Soothing Water; Fizz.

Ply
Ply
Ply Well
Ply Well
Pure Ply
Pure Ply
Fizz
Fizz

References btEffectRunHealingMotes().

Referenced by BattleEffectHandlers.

Definition at line 48 of file battle_effect_healing.c.

btEffectRunWish

void btEffectRunWish(BATTLE_EFFECT_PARM *args)

Healing motes tumble in on each target from all around it.

Abilities: Wish, Wish Well, Pure Wish; Regenerate; Reflect; Spritz.

Wish
Wish
Wish Well
Wish Well
Pure Wish
Pure Wish
Regenerate
Regenerate
Reflect
Reflect
Spritz
Spritz

References btEffectRunHealingMotes().

Referenced by BattleEffectHandlers.

Definition at line 56 of file battle_effect_healing.c.

btEffectRunCure

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.

Abilities: Cure, Cure Well, Potent Cure, Corn; Worms.

Cure
Cure
Cure Well
Cure Well
Potent Cure
Potent Cure

References btEffectRunHealingMotes().

Referenced by BattleEffectHandlers.

Definition at line 65 of file battle_effect_healing.c.

btEffectRunCurePoison

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.

Abilities: Cure Poison, Restore, Antidote, Elixir.

Cure Poison
Cure Poison
Restore
Restore

References btEffectRunHealingMotes().

Referenced by BattleEffectHandlers.

Definition at line 74 of file battle_effect_healing.c.

btEffectRunUnusedRestoreMotes

void btEffectRunUnusedRestoreMotes(BATTLE_EFFECT_PARM *args)

Plays the healing motes as Restore shows them; no effect table entry reaches this one.

References btEffectRunHealingMotes().

Definition at line 86 of file battle_effect_healing.c.

btEffectRunTonic

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.

Abilities: Tonic.

Tonic
Tonic

References btEffectRunHealingMotes().

Referenced by BattleEffectHandlers.

Definition at line 95 of file battle_effect_healing.c.

btEffectRunPsyCrystal

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.

Abilities: Psy Crystal, Adept Ring, Ember.

References btEffectRunHealingMotes().

Referenced by BattleEffectHandlers.

Definition at line 104 of file battle_effect_healing.c.

btEffectRunHealingMotes

void btEffectRunHealingMotes(BATTLE_EFFECT_PARM *args, Uint32 mode)

Motes of light scattered around each target swirl in towards it, one target after another.

References BattleEffectSparklePictures, BattleEffectSparkleSizes, btEffectBuildCanvasBlitters(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btProjectionPoint(), btProjectionScaledUnit(), btResourceLoadAndDecompress(), Sint32, state, syCos(), syDecompressTaggedLZ(), syMatrixTranslateVector(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotY(), syRotZ(), sySetEvent(), sySin(), sySoundPlayStub(), sySquartIWRAM() and syWordsCopy().

Referenced by btEffectRunCure(), btEffectRunCurePoison(), btEffectRunPly(), btEffectRunPsyCrystal(), btEffectRunTonic(), btEffectRunUnusedRestoreMotes() and btEffectRunWish().

Definition at line 111 of file battle_effect_healing.c.