Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_triple_chomp.c

Triple Chomp, and the entry points of Beam, Rolling Flame, Ghost Soldier and Blast Breath. More…

Included by battle_effect.c.

Macros

NameDescription
#defineTRIPLE_CHOMP_TICKS 50
#defineTRIPLE_CHOMP_BITES 3The bites, closing at TripleChompBiteTicks' three ticks.
#defineTRIPLE_CHOMP_BITE_HEIGHT 24The canvas line each bite closes on, this far above the target's place.
#defineTRIPLE_CHOMP_SPARK_COUNT 512The sparks, TRIPLE_CHOMP_SPARK_COUNT of EXTRA_PARTICLES: each bite throws TRIPLE_CHOMP_BITE_SPARKS from the start of its own run of TRIPLE_CHOMP_BITE_SPARK_SLOTS.
#defineTRIPLE_CHOMP_BITE_SPARKS 32
#defineTRIPLE_CHOMP_BITE_SPARK_SLOTS 128
#defineBITE_RING (bite) (&state->particles[bite])Each bite's ring, FireRingTexture on a square: the first three particles hold where each is spark.
#defineTRIPLE_CHOMP_RING_TICKS 16
#defineTRIPLE_CHOMP_RING_GROWTH toFIXED(0.15552)
#defineTRIPLE_CHOMP_RING_FADE 8

Functions

NameDescription
voidbtEffectRunTripleChomp (BATTLE_EFFECT_PARM *args)The user lunges most of the way to the target, and three bites close on it, TripleChompBiteTicks apart.
voidbtEffectRunBeam (BATTLE_EFFECT_PARM *args)Motes of fire gather on the user and a beam of fire shoots from it across the targets, a ring of light flying along it.
voidbtEffectRunRollingFlame (BATTLE_EFFECT_PARM *args)A ball of flame rolls from the user onto the targets and fire billows over them, always at the strongest variant.
voidbtEffectRunGhostSoldier (BATTLE_EFFECT_PARM *args)A ghostly soldier with a pike appears in the user's stead, gathers violet light and fires a blast of blue light and a ring at the target, always at the strongest variant.
voidbtEffectRunBlastBreath (BATTLE_EFFECT_PARM *args)A jet of fire streams from the user onto the targets, crossed rings of fire flaring where it lands.

Description

Triple Chomp, and the entry points of Beam, Rolling Flame, Ghost Soldier and Blast Breath. Part of battle_effect.c.

Macros in detail

TRIPLE_CHOMP_TICKS

#define TRIPLE_CHOMP_TICKS 50

Referenced by btEffectRunTripleChomp().

Definition at line 4 of file battle_effect_triple_chomp.c.

TRIPLE_CHOMP_BITES

#define TRIPLE_CHOMP_BITES 3

The bites, closing at TripleChompBiteTicks' three ticks.

Referenced by btEffectRunTripleChomp().

Definition at line 6 of file battle_effect_triple_chomp.c.

TRIPLE_CHOMP_BITE_HEIGHT

#define TRIPLE_CHOMP_BITE_HEIGHT 24

The canvas line each bite closes on, this far above the target's place.

Referenced by btEffectRunTripleChomp().

Definition at line 8 of file battle_effect_triple_chomp.c.

TRIPLE_CHOMP_SPARK_COUNT

#define TRIPLE_CHOMP_SPARK_COUNT 512

The sparks, TRIPLE_CHOMP_SPARK_COUNT of EXTRA_PARTICLES: each bite throws TRIPLE_CHOMP_BITE_SPARKS from the start of its own run of TRIPLE_CHOMP_BITE_SPARK_SLOTS.

Referenced by btEffectRunTripleChomp().

Definition at line 13 of file battle_effect_triple_chomp.c.

TRIPLE_CHOMP_BITE_SPARKS

#define TRIPLE_CHOMP_BITE_SPARKS 32

Referenced by btEffectRunTripleChomp().

Definition at line 14 of file battle_effect_triple_chomp.c.

TRIPLE_CHOMP_BITE_SPARK_SLOTS

#define TRIPLE_CHOMP_BITE_SPARK_SLOTS 128

Referenced by btEffectRunTripleChomp().

Definition at line 15 of file battle_effect_triple_chomp.c.

BITE_RING

#define BITE_RING(bite) (&state->particles[bite])

Each bite's ring, FireRingTexture on a square: the first three particles hold where each is spark. A ring swells from a quarter of its size by TRIPLE_CHOMP_RING_GROWTH a tick for TRIPLE_CHOMP_RING_TICKS, spark whole for the first half and then losing TRIPLE_CHOMP_RING_FADE of its shade a tick.

Referenced by btEffectRunTripleChomp().

Definition at line 21 of file battle_effect_triple_chomp.c.

TRIPLE_CHOMP_RING_TICKS

#define TRIPLE_CHOMP_RING_TICKS 16

Referenced by btEffectRunTripleChomp().

Definition at line 22 of file battle_effect_triple_chomp.c.

TRIPLE_CHOMP_RING_GROWTH

#define TRIPLE_CHOMP_RING_GROWTH toFIXED(0.15552)

Referenced by btEffectRunTripleChomp().

Definition at line 23 of file battle_effect_triple_chomp.c.

TRIPLE_CHOMP_RING_FADE

#define TRIPLE_CHOMP_RING_FADE 8

Referenced by btEffectRunTripleChomp().

Definition at line 24 of file battle_effect_triple_chomp.c.

Functions in detail

btEffectRunTripleChomp

void btEffectRunTripleChomp(BATTLE_EFFECT_PARM *args)

The user lunges most of the way to the target, and three bites close on it, TripleChompBiteTicks apart. Each throws blue sparks that fly off away from the user, jolts the target back and flashes it, and swells a ring of light over it, tilted back and turned a quarter further each bite, that fades as it grows. The last bite shows the damage.

Abilities: Triple Chomp.

References BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, btCameraShake(), btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectSetApproachMotion(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btParticleAdvanceWithGravity2D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), Sint32, syCloseEvent(), syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syMatrixScaleUniform(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotZ(), syScale(), sySin(), sySoundPlayStub(), sySynch(), syTranslate() and TripleChompBiteTicks.

Referenced by BattleEffectHandlers.

Definition at line 33 of file battle_effect_triple_chomp.c.

btEffectRunBeam

void btEffectRunBeam(BATTLE_EFFECT_PARM *args)

Motes of fire gather on the user and a beam of fire shoots from it across the targets, a ring of light flying along it.

Abilities: Beam, Cycle Beam, Searing Beam.

References btEffectRunBreaths().

Referenced by BattleEffectHandlers.

Definition at line 209 of file battle_effect_triple_chomp.c.

btEffectRunRollingFlame

void btEffectRunRollingFlame(BATTLE_EFFECT_PARM *args)

A ball of flame rolls from the user onto the targets and fire billows over them, always at the strongest variant.

Abilities: Rolling Flame.

References btEffectRunBreaths().

Referenced by BattleEffectHandlers.

Definition at line 218 of file battle_effect_triple_chomp.c.

btEffectRunGhostSoldier

void btEffectRunGhostSoldier(BATTLE_EFFECT_PARM *args)

A ghostly soldier with a pike appears in the user's stead, gathers violet light and fires a blast of blue light and a ring at the target, always at the strongest variant.

Abilities: Ghost Soldier, Pike Assault.

References btEffectRunBreaths().

Referenced by BattleEffectHandlers.

Definition at line 229 of file battle_effect_triple_chomp.c.

btEffectRunBlastBreath

void btEffectRunBlastBreath(BATTLE_EFFECT_PARM *args)

A jet of fire streams from the user onto the targets, crossed rings of fire flaring where it lands.

Abilities: Blast Breath.

References btEffectRunBreaths().

Referenced by BattleEffectHandlers.

Definition at line 239 of file battle_effect_triple_chomp.c.