src/battle_effect/battle_effect_planet_diver.c
Planet Diver, Planetary and leaping strikes. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | CYLINDER_RING_START_SCALE (toFIXED(131) / 512) | A ring of BattleEffectCylinderMesh starts at about a quarter of its size and grows by its row's growth times CYLINDER_RING_GROWTH a tick. |
#define | CYLINDER_RING_GROWTH 1500 | |
#define | LEAPING_STRIKE_TICKS 88 | |
#define | LEAPING_STRIKE_LEAP_TICK 4 | The caster leaps at tick 4 and comes down at 16, sliding to the target over the next 16 ticks. |
#define | LEAPING_STRIKE_LAND_TICK 16 | |
#define | LEAPING_STRIKE_SLIDE_TICKS 16 | |
#define | LEAPING_STRIKE_FLAMES 16 | The flames that ring the caster as it leaps. |
#define | LEAPING_STRIKE_SPARKS ((PARTICLE *)(RamMapMetatileBuffer + 24576)) | The sparks that burst from the caster as it lands, in the map cell buffer. |
#define | LEAPING_STRIKE_SPARK_COUNT 256 | |
#define | LEAPING_STRIKE_SPARK_MIN_SPEED 32 | |
#define | LEAPING_STRIKE_CLAW_TILT 13192 | Planetary's claw: tilted, and drawn about two and a half times its size. |
#define | LEAPING_STRIKE_CLAW_SCALE (toFIXED(5173) / 2048) | |
#define | LEAPING_STRIKE_WAVE_TICK 40 | Planetary's rings of billows spread from tick 40, each from its own tick after, and its pillars of flame from tick 34; both lean back. |
#define | LEAPING_STRIKE_WAVE_GROWTH 2000 | |
#define | LEAPING_STRIKE_WAVE_TILT 1000 | |
#define | LEAPING_STRIKE_PILLAR_TICK 34 | |
#define | LEAPING_STRIKE_PILLAR_TILT 2000 | |
#define | LEAPING_STRIKE_PICTURES 12288 | Where FlameballSheet (Planet Diver) or ClawSlashSheet (Planetary) is decoded in the effect's pictures. |
#define | LEAPING_STRIKE_BILLOW 16384 | Where BillowTexture and FlameBandTexture are decoded in the effect's pictures. |
#define | LEAPING_STRIKE_FLAME_BAND 20480 |
Enumerations
| Name | Description | |
|---|---|---|
enum | LEAPING_STRIKE_MODE { LEAPING_STRIKE_PLANET_DIVER, LEAPING_STRIKE_PLANETARY } | The leaping strike's modes (btEffectRunLeapingStrike). |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunPlanetDiver (BATTLE_EFFECT_PARM *args) | Abilities: Planet Diver. |
void | btEffectRunPlanetary (BATTLE_EFFECT_PARM *args) | Abilities: Planetary. |
void | btEffectRunLeapingStrike (BATTLE_EFFECT_PARM *args, Sint32 mode) | The caster flashes and sixteen flames ring it (ticks 2-15), leaps up at tick 4 and comes down on the target at tick 16, sliding to it over the ticks after; on landing 256 sparks burst from it. |
Description
Planet Diver, Planetary and leaping strikes. Part of battle_effect.c.
Macros in detail
CYLINDER_RING_START_SCALE
#define CYLINDER_RING_START_SCALE (toFIXED(131) / 512)
A ring of BattleEffectCylinderMesh starts at about a quarter of its size and
grows by its row's growth times CYLINDER_RING_GROWTH a tick.
Referenced by btEffectRunLeapingStrike() and btEffectRunTrident().
Definition at line 12 of file battle_effect_planet_diver.c.
CYLINDER_RING_GROWTH
#define CYLINDER_RING_GROWTH 1500
Referenced by btEffectRunLeapingStrike() and btEffectRunTrident().
Definition at line 13 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_TICKS
#define LEAPING_STRIKE_TICKS 88
Referenced by btEffectRunLeapingStrike().
Definition at line 27 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_LEAP_TICK
#define LEAPING_STRIKE_LEAP_TICK 4
The caster leaps at tick 4 and comes down at 16, sliding to the target over the next 16 ticks.
Referenced by btEffectRunLeapingStrike().
Definition at line 31 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_LAND_TICK
#define LEAPING_STRIKE_LAND_TICK 16
Referenced by btEffectRunLeapingStrike().
Definition at line 32 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_SLIDE_TICKS
#define LEAPING_STRIKE_SLIDE_TICKS 16
Referenced by btEffectRunLeapingStrike().
Definition at line 33 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_FLAMES
#define LEAPING_STRIKE_FLAMES 16
The flames that ring the caster as it leaps.
Referenced by btEffectRunLeapingStrike().
Definition at line 36 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_SPARKS
#define LEAPING_STRIKE_SPARKS ((PARTICLE *)(RamMapMetatileBuffer + 24576))
The sparks that burst from the caster as it lands, in the map cell buffer.
Referenced by btEffectRunLeapingStrike().
Definition at line 39 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_SPARK_COUNT
#define LEAPING_STRIKE_SPARK_COUNT 256
Referenced by btEffectRunLeapingStrike().
Definition at line 40 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_SPARK_MIN_SPEED
#define LEAPING_STRIKE_SPARK_MIN_SPEED 32
Referenced by btEffectRunLeapingStrike().
Definition at line 41 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_CLAW_TILT
#define LEAPING_STRIKE_CLAW_TILT 13192
Planetary's claw: tilted, and drawn about two and a half times its size.
Referenced by btEffectRunLeapingStrike().
Definition at line 44 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_CLAW_SCALE
#define LEAPING_STRIKE_CLAW_SCALE (toFIXED(5173) / 2048)
Referenced by btEffectRunLeapingStrike().
Definition at line 45 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_WAVE_TICK
#define LEAPING_STRIKE_WAVE_TICK 40
Planetary's rings of billows spread from tick 40, each from its own tick after, and its pillars of flame from tick 34; both lean back.
Referenced by btEffectRunLeapingStrike().
Definition at line 49 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_WAVE_GROWTH
#define LEAPING_STRIKE_WAVE_GROWTH 2000
Referenced by btEffectRunLeapingStrike().
Definition at line 50 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_WAVE_TILT
#define LEAPING_STRIKE_WAVE_TILT 1000
Referenced by btEffectRunLeapingStrike().
Definition at line 51 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_PILLAR_TICK
#define LEAPING_STRIKE_PILLAR_TICK 34
Referenced by btEffectRunLeapingStrike().
Definition at line 52 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_PILLAR_TILT
#define LEAPING_STRIKE_PILLAR_TILT 2000
Referenced by btEffectRunLeapingStrike().
Definition at line 53 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_PICTURES
#define LEAPING_STRIKE_PICTURES 12288
Where FlameballSheet (Planet Diver) or ClawSlashSheet (Planetary) is decoded in the effect's pictures.
Referenced by btEffectRunLeapingStrike().
Definition at line 57 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_BILLOW
#define LEAPING_STRIKE_BILLOW 16384
Where BillowTexture and FlameBandTexture are decoded in the effect's pictures.
Referenced by btEffectRunLeapingStrike().
Definition at line 61 of file battle_effect_planet_diver.c.
LEAPING_STRIKE_FLAME_BAND
#define LEAPING_STRIKE_FLAME_BAND 20480
Referenced by btEffectRunLeapingStrike().
Definition at line 62 of file battle_effect_planet_diver.c.
Enumerations in detail
LEAPING_STRIKE_MODE
enum LEAPING_STRIKE_MODE
The leaping strike's modes (btEffectRunLeapingStrike).
| Enumerator | Value | Description |
|---|---|---|
LEAPING_STRIKE_PLANET_DIVER | ||
LEAPING_STRIKE_PLANETARY |
Definition at line 4 of file battle_effect_planet_diver.c.
Functions in detail
btEffectRunPlanetDiver
void btEffectRunPlanetDiver(BATTLE_EFFECT_PARM *args)
Abilities: Planet Diver.
References btEffectRunLeapingStrike().
Referenced by BattleEffectHandlers.
Definition at line 16 of file battle_effect_planet_diver.c.
btEffectRunPlanetary
void btEffectRunPlanetary(BATTLE_EFFECT_PARM *args)
Abilities: Planetary.
References btEffectRunLeapingStrike().
Referenced by BattleEffectHandlers.
Definition at line 22 of file battle_effect_planet_diver.c.
btEffectRunLeapingStrike
void btEffectRunLeapingStrike(BATTLE_EFFECT_PARM *args, Sint32 mode)
The caster flashes and sixteen flames ring it (ticks 2-15), leaps up at tick 4 and comes down on the target at tick 16, sliding to it over the ticks after; on landing 256 sparks burst from it. For Planet Diver the caster then shows a fireball and one target is struck; for Planetary a claw slashes in 3D, three rings and two pillars spread, every target is struck and at tick 50 all are thrown back.
References BattleEffectCylinderCorners, BattleEffectCylinderMesh, BattleEffectMotePictures, BattleEffectRingCorners, BattleEffectRingMesh, BattleEffectSquareCorners, BattleEffectSquareMesh, btCameraShake(), btEffectConfigureEffectDisplay(), btEffectPosProjectBattler(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btObjectGetStub(), btParticleAdvanceWithGravity2D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), fdActorSelectAnimationStub(), LeapingStrikeRingGrowth, LeapingStrikeRingHeights, LeapingStrikeRingStarts, LeapingStrikeWaveGrowth, LeapingStrikeWaveHeights, LeapingStrikeWaveStarts, Sint32, syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syInitMatrix(), syMatrixScaleUniform(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotY(), syRotZ(), syScale(), sySetEvent(), sySin(), sySoundPlayStub() and syTranslate().
Referenced by btEffectRunPlanetary() and btEffectRunPlanetDiver().
Definition at line 70 of file battle_effect_planet_diver.c.