Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_rushing_strike.c

Rushing strikes (Bone Charge, Brute Force, Onslaught, Headbutt, Stun Muscle, Living Armor). More…

Included by battle_effect.c.

Macros

NameDescription
#defineRUSHING_STRIKE_TICKS 60
#defineRUSHING_STRIKE_TICK 8The user strikes; the ring and sparks start.
#defineRUSHING_STRIKE_BURST_TICKS 15The burst hides the user rushing in.
#defineRUSHING_STRIKE_RING_TICKS 12The ring where it hits swells.
#defineRUSHING_STRIKE_SPARK_COUNT 64In EXTRA_PARTICLES.
#defineRUSHING_STRIKE_SPARK_LIFE 16The first two sparks' ticks to live; each pair after lives one more.
#defineRUSHING_STRIKE_EXPLOSIONS 16Living Armor's.
#defineRUSHING_STRIKE_EXPLOSION_SLOTS 64The explosions set up at the hit, of which RUSHING_STRIKE_EXPLOSIONS are drawn.
#defineRUSHING_STRIKE_EXPLOSION_PICTURE_TICKS 4
#defineRUSHING_STRIKE_EXPLOSION_TICKS 24FlashBurstSheet's six pictures, four ticks apiece.
#defineRUSHING_STRIKE_BURST_WIDTH 32The burst: FlamePlumeSheet's 32x32 plume above the same plume upside down.
#defineRUSHING_STRIKE_BURST_HEIGHT 64
#defineRUSHING_STRIKE_PLUME_SIZE 32
#defineRUSHING_STRIKE_EXPLOSION_PICTURES PICTURE_BYTES(RUSHING_STRIKE_BURST)Where FlashBurstSheet is decoded in the effect's pictures, after the burst.

Functions

NameDescription
voidbtEffectRunBoneCharge (BATTLE_EFFECT_PARM *args)Abilities: Bone Charge.
voidbtEffectRunBruteForce (BATTLE_EFFECT_PARM *args)Abilities: Brute Force, Troll.
voidbtEffectRunOnslaught (BATTLE_EFFECT_PARM *args)Abilities: Onslaught.
voidbtEffectRunHeadbutt (BATTLE_EFFECT_PARM *args)Abilities: Headbutt.
voidbtEffectRunStunMuscle (BATTLE_EFFECT_PARM *args)Abilities: Stun Muscle.
voidbtEffectRunLivingArmor (BATTLE_EFFECT_PARM *args)Abilities: Living Armor, Minotaur, Power Crush.
voidbtEffectRunRushingStrike (BATTLE_EFFECT_PARM *args, Sint32 mode)The user rushes at the first target in a burst of light; a ring flares where it hits and sparks scatter, and Living Armor's hit raises explosions.

Description

Rushing strikes (Bone Charge, Brute Force, Onslaught, Headbutt, Stun Muscle, Living Armor). Part of battle_effect.c.

Macros in detail

RUSHING_STRIKE_TICKS

#define RUSHING_STRIKE_TICKS 60

Referenced by btEffectRunRushingStrike().

Definition at line 40 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_TICK

#define RUSHING_STRIKE_TICK 8

The user strikes; the ring and sparks start.

Referenced by btEffectRunRushingStrike().

Definition at line 42 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_BURST_TICKS

#define RUSHING_STRIKE_BURST_TICKS 15

The burst hides the user rushing in.

Referenced by btEffectRunRushingStrike().

Definition at line 44 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_RING_TICKS

#define RUSHING_STRIKE_RING_TICKS 12

The ring where it hits swells.

Referenced by btEffectRunRushingStrike().

Definition at line 46 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_SPARK_COUNT

#define RUSHING_STRIKE_SPARK_COUNT 64

In EXTRA_PARTICLES.

Referenced by btEffectRunRushingStrike().

Definition at line 48 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_SPARK_LIFE

#define RUSHING_STRIKE_SPARK_LIFE 16

The first two sparks' ticks to live; each pair after lives one more.

Referenced by btEffectRunRushingStrike().

Definition at line 50 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_EXPLOSIONS

#define RUSHING_STRIKE_EXPLOSIONS 16

Living Armor's.

Referenced by btEffectRunRushingStrike().

Definition at line 52 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_EXPLOSION_SLOTS

#define RUSHING_STRIKE_EXPLOSION_SLOTS 64

The explosions set up at the hit, of which RUSHING_STRIKE_EXPLOSIONS are drawn.

Referenced by btEffectRunRushingStrike().

Definition at line 55 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_EXPLOSION_PICTURE_TICKS

#define RUSHING_STRIKE_EXPLOSION_PICTURE_TICKS 4

Referenced by btEffectRunRushingStrike().

Definition at line 56 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_EXPLOSION_TICKS

#define RUSHING_STRIKE_EXPLOSION_TICKS 24

FlashBurstSheet's six pictures, four ticks apiece.

Referenced by btEffectRunRushingStrike().

Definition at line 58 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_BURST_WIDTH

#define RUSHING_STRIKE_BURST_WIDTH 32

The burst: FlamePlumeSheet's 32x32 plume above the same plume upside down.

Definition at line 61 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_BURST_HEIGHT

#define RUSHING_STRIKE_BURST_HEIGHT 64

Definition at line 62 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_PLUME_SIZE

#define RUSHING_STRIKE_PLUME_SIZE 32

Referenced by btEffectRunRushingStrike().

Definition at line 63 of file battle_effect_rushing_strike.c.

RUSHING_STRIKE_EXPLOSION_PICTURES

#define RUSHING_STRIKE_EXPLOSION_PICTURES PICTURE_BYTES(RUSHING_STRIKE_BURST)

Where FlashBurstSheet is decoded in the effect's pictures, after the burst.

Referenced by btEffectRunRushingStrike().

Definition at line 65 of file battle_effect_rushing_strike.c.

Functions in detail

btEffectRunBoneCharge

void btEffectRunBoneCharge(BATTLE_EFFECT_PARM *args)

Abilities: Bone Charge.

References btEffectRunRushingStrike().

Referenced by BattleEffectHandlers.

Definition at line 5 of file battle_effect_rushing_strike.c.

btEffectRunBruteForce

void btEffectRunBruteForce(BATTLE_EFFECT_PARM *args)

Abilities: Brute Force, Troll.

References btEffectRunRushingStrike().

Referenced by BattleEffectHandlers.

Definition at line 11 of file battle_effect_rushing_strike.c.

btEffectRunOnslaught

void btEffectRunOnslaught(BATTLE_EFFECT_PARM *args)

Abilities: Onslaught.

References btEffectRunRushingStrike().

Referenced by BattleEffectHandlers.

Definition at line 17 of file battle_effect_rushing_strike.c.

btEffectRunHeadbutt

void btEffectRunHeadbutt(BATTLE_EFFECT_PARM *args)

Abilities: Headbutt.

References btEffectRunRushingStrike().

Referenced by BattleEffectHandlers.

Definition at line 23 of file battle_effect_rushing_strike.c.

btEffectRunStunMuscle

void btEffectRunStunMuscle(BATTLE_EFFECT_PARM *args)

Abilities: Stun Muscle.

References btEffectRunRushingStrike().

Referenced by BattleEffectHandlers.

Definition at line 29 of file battle_effect_rushing_strike.c.

btEffectRunLivingArmor

void btEffectRunLivingArmor(BATTLE_EFFECT_PARM *args)

Abilities: Living Armor, Minotaur, Power Crush.

References btEffectRunRushingStrike().

Referenced by BattleEffectHandlers.

Definition at line 35 of file battle_effect_rushing_strike.c.

btEffectRunRushingStrike

void btEffectRunRushingStrike(BATTLE_EFFECT_PARM *args, Sint32 mode)

The user rushes at the first target in a burst of light; a ring flares where it hits and sparks scatter, and Living Armor's hit raises explosions.

References BattleEffectLargeSquareMesh, BattleEffectMotePictures, BattleEffectSquareCorners, BattleEffectTallMesh, btCameraShake(), btEffectBuildCanvasBlitters(), btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectPosProjectPoint(), btEffectSetApproachMotion(), btEffectStartCanvasLayer(), btEffectTransferCanvas(), btObjectGetStub(), btParticleAdvanceWithGravity3D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), fdActorSetAnimationSpeedStub(), RushingStrikeScales, Sint32, syCloseEvent(), syHeapAllocateEWRAM(), syHeapRelease(), syInitMatrix(), syLookAtLoad(), syRandom(), syResourceGetTableEntry(), syRotY(), syScale(), sySetEvent() and syTranslate().

Referenced by btEffectRunBoneCharge(), btEffectRunBruteForce(), btEffectRunHeadbutt(), btEffectRunLivingArmor(), btEffectRunOnslaught() and btEffectRunStunMuscle().

Definition at line 69 of file battle_effect_rushing_strike.c.