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 | Where the Djinni's picture is decoded in the state's sprite sheet, in bytes. |
#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 | |
#define | HEALING_BUBBLE_SHEET 2048 | Eddy's bubble: BlueBeamSheet's first picture, a 24x24 blue bubble, unpacked at HEALING_BUBBLE_SHEET and copied to HEALING_BUBBLE at every second pixel, so that the canvas shown at twice its width draws it round. |
#define | HEALING_BUBBLE 8192 | |
#define | HEALING_BUBBLE_WIDTH (BLUE_BUBBLE_WIDTH / 2) | |
#define | HEALING_BUBBLE_HEIGHT BLUE_BUBBLE_HEIGHT |
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 | btEffectRunSpring (BATTLE_EFFECT_PARM *args) | After a Mercury Djinni appears, Ply's sparkles, twice as many, swirl in on each target. |
void | btEffectRunBreath (BATTLE_EFFECT_PARM *args) | After a Jupiter Djinni appears, sparkles in the Jupiter Djinn's colours whirl fast around each target and close in on it. |
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 | btEffectRunSalt (BATTLE_EFFECT_PARM *args) | After a Venus Djinni appears, sparkles burst up and out from each target's feet, their colours turning from the blast sprite sheet's to cyan, and go out one by one. |
void | btEffectRunPsyCrystal (BATTLE_EFFECT_PARM *args) | Healing motes gather around each target in orange; with a prelude, a Mars Djinni appears first. |
void | btEffectRunEther (BATTLE_EFFECT_PARM *args) | After a Jupiter Djinni appears, motes in the Jupiter Djinn's colours swirl in on each target. |
void | btEffectRunAura (BATTLE_EFFECT_PARM *args) | Sparkles from a wide cloud around each target close in on it without turning, in orange. |
void | btEffectRunEddy (BATTLE_EFFECT_PARM *args) | After a Mercury Djinni appears, blue bubbles swirl in on each target. |
void | btEffectRunReverseStar (BATTLE_EFFECT_PARM *args) | Motes of light scattered around each target swirl in towards it. |
void | btEffectRunHealingMotes (BATTLE_EFFECT_PARM *args, Uint32 mode) | Motes of light scattered around each target swirl in towards it, one target after another, eight ticks apart; a healing chime sounds as they gather and the target glows. |
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
Where the Djinni's picture is decoded in the state's sprite sheet, in bytes.
Referenced by btEffectRunHealingMotes().
Definition at line 7 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 9 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 14 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 17 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 21 of file battle_effect_healing.c.
HEALING_MOTE_DEPTH_STEP
#define HEALING_MOTE_DEPTH_STEP 128
Referenced by btEffectRunHealingMotes().
Definition at line 22 of file battle_effect_healing.c.
HEALING_MOTE_DEPTH_FAR
#define HEALING_MOTE_DEPTH_FAR 634
Referenced by btEffectRunHealingMotes().
Definition at line 23 of file battle_effect_healing.c.
HEALING_BUBBLE_SHEET
#define HEALING_BUBBLE_SHEET 2048
Eddy's bubble: BlueBeamSheet's first picture, a 24x24 blue bubble, unpacked
at HEALING_BUBBLE_SHEET and copied to HEALING_BUBBLE at every second pixel,
so that the canvas shown at twice its width draws it round.
Referenced by btEffectRunHealingMotes().
Definition at line 27 of file battle_effect_healing.c.
HEALING_BUBBLE
#define HEALING_BUBBLE 8192
Referenced by btEffectRunHealingMotes().
Definition at line 28 of file battle_effect_healing.c.
HEALING_BUBBLE_WIDTH
#define HEALING_BUBBLE_WIDTH (BLUE_BUBBLE_WIDTH / 2)
Referenced by btEffectRunHealingMotes().
Definition at line 29 of file battle_effect_healing.c.
HEALING_BUBBLE_HEIGHT
#define HEALING_BUBBLE_HEIGHT BLUE_BUBBLE_HEIGHT
Referenced by btEffectRunHealingMotes().
Definition at line 30 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 orange | |
HEALING_MODE_SALT | sparkles thrown up from the feet, turning cyan | |
HEALING_MODE_SPRING | Ply's sparkles, twice as many | |
HEALING_MODE_BREATH | sparkles whirling fast in Jupiter's colours | |
HEALING_MODE_ETHER | motes in Jupiter's colours | |
HEALING_MODE_AURA | sparkles from a wide cloud, not turning | |
HEALING_MODE_EDDY | blue bubbles | |
HEALING_MODE_REVERSE_STAR | sparkles turning on the view's axis |
Definition at line 34 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, Pixie, Faery, Weird Nymph, Succubus, Earnest Ply, Fizz.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 58 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, Mist Potion, Elder Wood, Estre Wood, Regenerate, Reflect, Spritz.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 67 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, Flower, Worms.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 76 of file battle_effect_healing.c.
btEffectRunSpring
void btEffectRunSpring(BATTLE_EFFECT_PARM *args)
After a Mercury Djinni appears, Ply's sparkles, twice as many, swirl in on each target.
Abilities: Spring.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 85 of file battle_effect_healing.c.
btEffectRunBreath
void btEffectRunBreath(BATTLE_EFFECT_PARM *args)
After a Jupiter Djinni appears, sparkles in the Jupiter Djinn's colours whirl fast around each target and close in on it.
Abilities: Breath.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 94 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.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 103 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 115 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 124 of file battle_effect_healing.c.
btEffectRunSalt
void btEffectRunSalt(BATTLE_EFFECT_PARM *args)
After a Venus Djinni appears, sparkles burst up and out from each target's feet, their colours turning from the blast sprite sheet's to cyan, and go out one by one.
Abilities: Salt.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 134 of file battle_effect_healing.c.
btEffectRunPsyCrystal
void btEffectRunPsyCrystal(BATTLE_EFFECT_PARM *args)
Healing motes gather around each target in orange; with a prelude, a Mars Djinni appears first.
Abilities: Psy Crystal, Adept Ring, Ember.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 143 of file battle_effect_healing.c.
btEffectRunEther
void btEffectRunEther(BATTLE_EFFECT_PARM *args)
After a Jupiter Djinni appears, motes in the Jupiter Djinn's colours swirl in on each target.
Abilities: Ether.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 152 of file battle_effect_healing.c.
btEffectRunAura
void btEffectRunAura(BATTLE_EFFECT_PARM *args)
Sparkles from a wide cloud around each target close in on it without turning, in orange.
Abilities: Aura, Healing Aura, Cool Aura, Manticore.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 161 of file battle_effect_healing.c.
btEffectRunEddy
void btEffectRunEddy(BATTLE_EFFECT_PARM *args)
After a Mercury Djinni appears, blue bubbles swirl in on each target.
Abilities: Eddy.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 169 of file battle_effect_healing.c.
btEffectRunReverseStar
void btEffectRunReverseStar(BATTLE_EFFECT_PARM *args)
Motes of light scattered around each target swirl in towards it.
Abilities: Reverse Star.
References btEffectRunHealingMotes().
Referenced by BattleEffectHandlers.
Definition at line 177 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, eight ticks apart; a healing chime sounds as they gather and the target glows.
References BattleEffectSparklePictures, BattleEffectSparkleSizes, btEffectBuildCanvasBlitters(), btEffectPosProjectPoint(), btEffectPosProjectScaledBattler(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btObjectGetStub(), btResourceLoadAndDecompress(), Sint32, syCos(), syDecompressTaggedLZ(), syInitMatrix(), syLookAtLoad(), syMatrixTranslateVector(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotY(), syRotZ(), sySin(), sySoundPlayStub(), sySquartIWRAM() and syWordsCopy().
Referenced by btEffectRunAura(), btEffectRunBreath(), btEffectRunCure(), btEffectRunCurePoison(), btEffectRunEddy(), btEffectRunEther(), btEffectRunPly(), btEffectRunPsyCrystal(), btEffectRunReverseStar(), btEffectRunSalt(), btEffectRunSpring(), btEffectRunTonic(), btEffectRunUnusedRestoreMotes() and btEffectRunWish().
Definition at line 187 of file battle_effect_healing.c.