src/battle_effect/battle_effect_trident.c
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | TRIDENT_TICKS 104 | |
#define | TRIDENT_STRIKE_TICK 64 | The Trident drops into place over its first 10 ticks, and its strike lands at TRIDENT_STRIKE_TICK. |
#define | TRIDENT_SPRITES 4 | The Trident is four sprites of SPRITE_TRIDENT, stacked a sprite's height apart, shown in window 0. |
#define | TRIDENT_SPRITE_HEIGHT 32 | |
#define | TRIDENT_HEIGHT (TRIDENT_SPRITES * TRIDENT_SPRITE_HEIGHT) | |
#define | TRIDENT_WINDOW_TOP 16 | |
#define | TRIDENT_WINDOW_BOTTOM 124 | |
#define | TRIDENT_WINDOW_HEIGHT (TRIDENT_WINDOW_BOTTOM - TRIDENT_WINDOW_TOP) | |
#define | TRIDENT_SPARKS ((PARTICLE *)(RamMapMetatileBuffer + 10596)) | The sparks the strike throws, in the map cell buffer. |
#define | TRIDENT_SPARK_COUNT 128 | |
#define | TRIDENT_PARTICLES 32 | The state's particles: the discs thrown up, the first one growing on the ground, then the strike's flashes, which live six pictures of four ticks. |
#define | TRIDENT_DISCS 14 | |
#define | TRIDENT_DISC_TICKS 32 | |
#define | TRIDENT_FLASH_TICKS 24 | |
#define | TRIDENT_DISC_SIZES 12 | Twelve shaded discs, 2 to 24 wide, drawn into the map cell buffer from TRIDENT_DISC_PICTURES; where each starts is kept in the effect's pictures at TRIDENT_DISC_TABLE, and the growing disc is drawn at TRIDENT_GROUND_DISC. |
#define | TRIDENT_DISC_PICTURES 9216 | |
#define | TRIDENT_DISC_TABLE 19542 | |
#define | TRIDENT_GROUND_DISC 19590 | |
#define | TRIDENT_JAGGED_STREAKS GLINT_SET_BYTES | Where JaggedStreakSheet is decoded in the effect's pictures, after the tornado sprite sheet's glints: three pictures of a jagged bolt, JAGGED_STREAK_WIDTH by JAGGED_STREAK_HEIGHT. |
#define | TRIDENT_BOLTS 7 | Seven bolts spin in, one every 4 ticks from TRIDENT_FIRST_BOLT_TICK, each turning for 24 ticks, dimmed by TRIDENT_BOLT_SHADE. |
#define | TRIDENT_BOLT_SPINS 8 | rows of TridentSpins |
#define | TRIDENT_FIRST_BOLT_TICK 18 | |
#define | TRIDENT_BOLT_SHADE (-16) | |
#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 | TRIDENT_RING_TILT 3000 | The rings spreading from the targets lean back by this angle. |
#define | TRIDENT_RINGS 8 | |
#define | TRIDENT_FLAME_ZIGZAG 4096 | Where FlameZigzagTexture, BillowTexture and FlashBurstSheet are decoded in the map cell buffer. |
#define | TRIDENT_BILLOW 5120 | |
#define | TRIDENT_FLASH_BURST 20480 |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunTrident (BATTLE_EFFECT_PARM *args) | The Trident drops into place over the targets as rings spread out from them; seven jagged bolts spin in, shaded discs are thrown up from a disc growing on the ground, and then the strike lands on every target with flashes and a burst of sparks, and more rings spread. |
Variables
| Name | Description | |
|---|---|---|
extern const SCALE | TridentUnitScale | Trident. |
Macros in detail
TRIDENT_TICKS
#define TRIDENT_TICKS 104
Referenced by btEffectRunTrident().
Definition at line 4 of file battle_effect_trident.c.
TRIDENT_STRIKE_TICK
#define TRIDENT_STRIKE_TICK 64
The Trident drops into place over its first 10 ticks, and its strike lands at
TRIDENT_STRIKE_TICK.
Referenced by btEffectRunTrident().
Definition at line 7 of file battle_effect_trident.c.
TRIDENT_SPRITES
#define TRIDENT_SPRITES 4
The Trident is four sprites of SPRITE_TRIDENT, stacked a sprite's height
apart, shown in window 0.
Referenced by btEffectRunTrident().
Definition at line 10 of file battle_effect_trident.c.
TRIDENT_SPRITE_HEIGHT
#define TRIDENT_SPRITE_HEIGHT 32
Referenced by btEffectRunTrident().
Definition at line 11 of file battle_effect_trident.c.
TRIDENT_HEIGHT
#define TRIDENT_HEIGHT (TRIDENT_SPRITES * TRIDENT_SPRITE_HEIGHT)
Referenced by btEffectRunTrident().
Definition at line 12 of file battle_effect_trident.c.
TRIDENT_WINDOW_TOP
#define TRIDENT_WINDOW_TOP 16
Referenced by btEffectRunTrident().
Definition at line 13 of file battle_effect_trident.c.
TRIDENT_WINDOW_BOTTOM
#define TRIDENT_WINDOW_BOTTOM 124
Referenced by btEffectRunTrident().
Definition at line 14 of file battle_effect_trident.c.
TRIDENT_WINDOW_HEIGHT
#define TRIDENT_WINDOW_HEIGHT (TRIDENT_WINDOW_BOTTOM - TRIDENT_WINDOW_TOP)
Referenced by btEffectRunTrident().
Definition at line 15 of file battle_effect_trident.c.
TRIDENT_SPARKS
#define TRIDENT_SPARKS ((PARTICLE *)(RamMapMetatileBuffer + 10596))
The sparks the strike throws, in the map cell buffer.
Referenced by btEffectRunTrident().
Definition at line 18 of file battle_effect_trident.c.
TRIDENT_SPARK_COUNT
#define TRIDENT_SPARK_COUNT 128
Referenced by btEffectRunTrident().
Definition at line 19 of file battle_effect_trident.c.
TRIDENT_PARTICLES
#define TRIDENT_PARTICLES 32
The state's particles: the discs thrown up, the first one growing on the ground, then the strike's flashes, which live six pictures of four ticks.
Referenced by btEffectRunTrident().
Definition at line 22 of file battle_effect_trident.c.
TRIDENT_DISCS
#define TRIDENT_DISCS 14
Referenced by btEffectRunTrident().
Definition at line 23 of file battle_effect_trident.c.
TRIDENT_DISC_TICKS
#define TRIDENT_DISC_TICKS 32
Referenced by btEffectRunTrident().
Definition at line 24 of file battle_effect_trident.c.
TRIDENT_FLASH_TICKS
#define TRIDENT_FLASH_TICKS 24
Referenced by btEffectRunTrident().
Definition at line 25 of file battle_effect_trident.c.
TRIDENT_DISC_SIZES
#define TRIDENT_DISC_SIZES 12
Twelve shaded discs, 2 to 24 wide, drawn into the map cell buffer from
TRIDENT_DISC_PICTURES; where each starts is kept in the effect's pictures at
TRIDENT_DISC_TABLE, and the growing disc is drawn at TRIDENT_GROUND_DISC.
Referenced by btEffectRunTrident().
Definition at line 30 of file battle_effect_trident.c.
TRIDENT_DISC_PICTURES
#define TRIDENT_DISC_PICTURES 9216
Referenced by btEffectRunTrident().
Definition at line 31 of file battle_effect_trident.c.
TRIDENT_DISC_TABLE
#define TRIDENT_DISC_TABLE 19542
Referenced by btEffectRunTrident().
Definition at line 32 of file battle_effect_trident.c.
TRIDENT_GROUND_DISC
#define TRIDENT_GROUND_DISC 19590
Referenced by btEffectRunTrident().
Definition at line 33 of file battle_effect_trident.c.
TRIDENT_JAGGED_STREAKS
#define TRIDENT_JAGGED_STREAKS GLINT_SET_BYTES
Where JaggedStreakSheet is decoded in the effect's pictures, after the
tornado sprite sheet's glints: three pictures of a jagged bolt,
JAGGED_STREAK_WIDTH by JAGGED_STREAK_HEIGHT.
Referenced by btEffectRunTrident().
Definition at line 38 of file battle_effect_trident.c.
TRIDENT_BOLTS
#define TRIDENT_BOLTS 7
Seven bolts spin in, one every 4 ticks from TRIDENT_FIRST_BOLT_TICK, each
turning for 24 ticks, dimmed by TRIDENT_BOLT_SHADE.
Referenced by btEffectRunTrident().
Definition at line 41 of file battle_effect_trident.c.
TRIDENT_BOLT_SPINS
#define TRIDENT_BOLT_SPINS 8
rows of TridentSpins
Referenced by btEffectRunTrident().
Definition at line 42 of file battle_effect_trident.c.
TRIDENT_FIRST_BOLT_TICK
#define TRIDENT_FIRST_BOLT_TICK 18
Referenced by btEffectRunTrident().
Definition at line 43 of file battle_effect_trident.c.
TRIDENT_BOLT_SHADE
#define TRIDENT_BOLT_SHADE (-16)
Referenced by btEffectRunTrident().
Definition at line 44 of file battle_effect_trident.c.
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 48 of file battle_effect_trident.c.
CYLINDER_RING_GROWTH
#define CYLINDER_RING_GROWTH 1500
Referenced by btEffectRunLeapingStrike() and btEffectRunTrident().
Definition at line 49 of file battle_effect_trident.c.
TRIDENT_RING_TILT
#define TRIDENT_RING_TILT 3000
The rings spreading from the targets lean back by this angle.
Referenced by btEffectRunTrident().
Definition at line 51 of file battle_effect_trident.c.
TRIDENT_RINGS
#define TRIDENT_RINGS 8
Referenced by btEffectRunTrident().
Definition at line 52 of file battle_effect_trident.c.
TRIDENT_FLAME_ZIGZAG
#define TRIDENT_FLAME_ZIGZAG 4096
Where FlameZigzagTexture, BillowTexture and FlashBurstSheet are decoded in the map cell buffer.
Referenced by btEffectRunTrident().
Definition at line 56 of file battle_effect_trident.c.
TRIDENT_BILLOW
#define TRIDENT_BILLOW 5120
Referenced by btEffectRunTrident().
Definition at line 57 of file battle_effect_trident.c.
TRIDENT_FLASH_BURST
#define TRIDENT_FLASH_BURST 20480
Referenced by btEffectRunTrident().
Definition at line 58 of file battle_effect_trident.c.
Functions in detail
btEffectRunTrident
void btEffectRunTrident(BATTLE_EFFECT_PARM *args)
The Trident drops into place over the targets as rings spread out from them; seven jagged bolts spin in, shaded discs are thrown up from a disc growing on the ground, and then the strike lands on every target with flashes and a burst of sparks, and more rings spread.
Abilities: Trident.
References BattleEffectColumnMesh, BattleEffectCylinderCorners, BattleEffectCylinderMesh, BattleEffectGlintPictureHeights, BattleEffectGlintPictures, BattleEffectGlintPictureWidths, BattleEffectMotePictures, btCameraShake(), btCanvasBlitMirroredQuarters(), btEffectCreateSprites(), btEffectDrawShadedDiscQuarter(), btEffectEndCanvasLayer(), btEffectGetTargetsMidpoint(), btEffectShowLivingTargets(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btEffectTransferCanvas(), btParticleAdvanceWithGravity2D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), MapGridMetatileBuffer, Sint32, syCloseEvent(), syCos(), syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syRandom(), syResourceGetTableEntry(), syRotX(), syRotY(), syRotZ(), syScale(), sySetEvent(), sySin(), sySoundPlayStub(), syTranslate(), TridentGlintFlips, TridentProngCorners, TridentRingGrowth, TridentRingHeights, TridentRingStarts, TridentSpins and 1 more.
Referenced by btEffectRunSummon().
Definition at line 66 of file battle_effect_trident.c.