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
| Name | Description | |
|---|---|---|
#define | HEALING_SPARKS 512 | sparks in PARTICLES |
#define | HEALING_DJINNI_PICTURE 4096 | the Djinni picture in the sprite sheet |
#define | HEALING_DJINNI_SWAY 20 | How far the Djinni sways to either side, in screen pixels. |
#define | HEALING_MOTES 64 | Each target's motes: HEALING_MOTES for the stronger variant, half that for the basic and twice for the strongest. |
#define | HEALING_CURE_RING_LAG 40 | The ticks each target's ring of Cure motes lags the last target's in its turn. |
#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. |
#define | HEALING_MOTE_DEPTH_STEP 128 | |
#define | HEALING_MOTE_DEPTH_FAR 634 |
Enumerations
| Name | Description | |
|---|---|---|
enum | HEALING_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
| Name | Description | |
|---|---|---|
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. |
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. |
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.
| Enumerator | Value | Description |
|---|---|---|
HEALING_MODE_PLY | swirling sparkles, the canvas at its own width | |
HEALING_MODE_WISH | motes tumbling in from all around | |
HEALING_MODE_CURE | a ring of motes below each target | |
HEALING_MODE_CURE_POISON | sparkles that go out one by one | |
HEALING_MODE_RESTORE | the same, turning on a second axis | |
HEALING_MODE_TONIC | played exactly as HEALING_MODE_RESTORE | |
HEALING_MODE_PSY_CRYSTAL | motes 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.




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.






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.



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.


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.

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.