src/battle_effect/battle_effect_thrash.c
Thrash, Mighty Press and Severe Blow, and the flashing strikes: Quick Strike, Vorpal Slash, Lunar Slash, Boost Hack and Twin Shear. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | FLASHING_STRIKE_TICKS 21 | The flashing strike's ticks, from the user's arrival: four pictures flash four ticks each, then the canvas floods at its brightest for four ticks, the damage shows and the target is hurled. |
#define | FLASHING_STRIKE_FLOOD_TICK 16 | |
#define | FLASHING_STRIKE_DAMAGE_TICK 18 | |
#define | FLASHING_STRIKE_HIT_TICK 20 | |
#define | FLASHING_STRIKE_PICTURE_BYTES (SLASH_PICTURE_SIZE * SLASH_PICTURE_SIZE) | One 120x120 picture of a flashing strike; Twin Shear's are half as tall. |
#define | FLASHING_STRIKE_HALF_BYTES (SLASH_PICTURE_SIZE * SLASH_PICTURE_SIZE / 2) |
Enumerations
| Name | Description | |
|---|---|---|
enum | FLASHING_STRIKE_MODE { FLASHING_STRIKE_UNUSED, FLASHING_STRIKE_QUICK_STRIKE, FLASHI … } | The flashing strike's modes (btEffectRunFlashingStrike), each named for the ability that plays it: which pictures it shows and how the user moves. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunThrash (BATTLE_EFFECT_PARM *args) | The user leaps high at the first target, then sparks burst beneath it. |
void | btEffectRunMightyPress (BATTLE_EFFECT_PARM *args) | The user leaps high at the first target, as in Thrash, then sparks burst beneath it, many more than Thrash's. |
void | btEffectRunSevereBlow (BATTLE_EFFECT_PARM *args) | The user leaps at the first target, then sparks burst beneath it and the canvas flashes. |
void | btEffectRunQuickStrike (BATTLE_EFFECT_PARM *args) | The user leaps at the first target, four pictures flash across the effect layer, then it fills with one colour as the target is struck. |
void | btEffectRunVorpalSlash (BATTLE_EFFECT_PARM *args) | The user steps up to the first target, four pictures flash across the effect layer, then it fills with one colour as the target is struck. |
void | btEffectRunLunarSlash (BATTLE_EFFECT_PARM *args) | The user leaps where it stands, four pictures flash over the battle, then the effect layer fills with one colour as the target is struck and Weaken follows. |
void | btEffectRunBoostHack (BATTLE_EFFECT_PARM *args) | The user takes its leap pose, Vorpal Slash's four pictures flash over the battle in other colours, then the effect layer fills with one colour as the target is struck. |
void | btEffectRunTwinShear (BATTLE_EFFECT_PARM *args) | The user leaps at the first target and a slash sweeps over the battle in four pictures, each the slash's top half with its reflection below it, then the effect layer fills with one colour as the target is struck. |
void | btEffectRunFlashingStrike (BATTLE_EFFECT_PARM *args, Sint32 mode) | Plays a flashing strike; nothing passes FLASHING_STRIKE_UNUSED. |
Description
Thrash, Mighty Press and Severe Blow, and the flashing strikes: Quick Strike,
Vorpal Slash, Lunar Slash, Boost Hack and Twin Shear. Part of
battle_effect.c.
Macros in detail
FLASHING_STRIKE_TICKS
#define FLASHING_STRIKE_TICKS 21
The flashing strike's ticks, from the user's arrival: four pictures flash four ticks each, then the canvas floods at its brightest for four ticks, the damage shows and the target is hurled.
Referenced by btEffectRunFlashingStrike().
Definition at line 8 of file battle_effect_thrash.c.
FLASHING_STRIKE_FLOOD_TICK
#define FLASHING_STRIKE_FLOOD_TICK 16
Referenced by btEffectRunFlashingStrike().
Definition at line 9 of file battle_effect_thrash.c.
FLASHING_STRIKE_DAMAGE_TICK
#define FLASHING_STRIKE_DAMAGE_TICK 18
Referenced by btEffectRunFlashingStrike().
Definition at line 10 of file battle_effect_thrash.c.
FLASHING_STRIKE_HIT_TICK
#define FLASHING_STRIKE_HIT_TICK 20
Referenced by btEffectRunFlashingStrike().
Definition at line 11 of file battle_effect_thrash.c.
FLASHING_STRIKE_PICTURE_BYTES
#define FLASHING_STRIKE_PICTURE_BYTES (SLASH_PICTURE_SIZE * SLASH_PICTURE_SIZE)
One 120x120 picture of a flashing strike; Twin Shear's are half as tall.
Referenced by btEffectRunFlashingStrike().
Definition at line 14 of file battle_effect_thrash.c.
FLASHING_STRIKE_HALF_BYTES
#define FLASHING_STRIKE_HALF_BYTES (SLASH_PICTURE_SIZE * SLASH_PICTURE_SIZE / 2)
Referenced by btEffectRunFlashingStrike().
Definition at line 15 of file battle_effect_thrash.c.
Enumerations in detail
FLASHING_STRIKE_MODE
enum FLASHING_STRIKE_MODE
The flashing strike's modes (btEffectRunFlashingStrike), each named for the
ability that plays it: which pictures it shows and how the user moves.
| Enumerator | Value | Description |
|---|---|---|
FLASHING_STRIKE_UNUSED | UnusedFlashingStrikeImageA and F; nothing passes it | |
FLASHING_STRIKE_QUICK_STRIKE | QuickStrikeImageA and D, with a hop | |
FLASHING_STRIKE_VORPAL_SLASH | VorpalSlashImageA and B | |
FLASHING_STRIKE_LUNAR_SLASH | QuickStrikeImageA and D, then Weaken | |
FLASHING_STRIKE_BOOST_HACK | VorpalSlashImageA and B in other colours, a pose | |
FLASHING_STRIKE_TWIN_SHEAR | the arc fragments, each with its reflection |
Definition at line 19 of file battle_effect_thrash.c.
Functions in detail
btEffectRunThrash
void btEffectRunThrash(BATTLE_EFFECT_PARM *args)
The user leaps high at the first target, then sparks burst beneath it.
Abilities: Thrash.
References btEffectRunSparkGroups(), btMotionApproachTargetStub() and sySynch().
Referenced by BattleEffectHandlers.
Definition at line 34 of file battle_effect_thrash.c.
btEffectRunMightyPress
void btEffectRunMightyPress(BATTLE_EFFECT_PARM *args)
The user leaps high at the first target, as in Thrash, then sparks burst beneath it, many more than Thrash's.
Abilities: Mighty Press.
References btEffectRunSparkGroups(), btMotionApproachTargetStub() and sySynch().
Referenced by BattleEffectHandlers.
Definition at line 47 of file battle_effect_thrash.c.
btEffectRunSevereBlow
void btEffectRunSevereBlow(BATTLE_EFFECT_PARM *args)
The user leaps at the first target, then sparks burst beneath it and the canvas flashes.
Abilities: Severe Blow.
References btEffectRunSparkGroups(), btMotionApproachTargetStub() and sySynch().
Referenced by BattleEffectHandlers.
Definition at line 60 of file battle_effect_thrash.c.
btEffectRunQuickStrike
void btEffectRunQuickStrike(BATTLE_EFFECT_PARM *args)
The user leaps at the first target, four pictures flash across the effect layer, then it fills with one colour as the target is struck.
Abilities: Quick Strike.
References btEffectRunFlashingStrike().
Referenced by BattleEffectHandlers.
Definition at line 73 of file battle_effect_thrash.c.
btEffectRunVorpalSlash
void btEffectRunVorpalSlash(BATTLE_EFFECT_PARM *args)
The user steps up to the first target, four pictures flash across the effect layer, then it fills with one colour as the target is struck.
Abilities: Vorpal Slash.
References btEffectRunFlashingStrike().
Referenced by BattleEffectHandlers.
Definition at line 82 of file battle_effect_thrash.c.
btEffectRunLunarSlash
void btEffectRunLunarSlash(BATTLE_EFFECT_PARM *args)
The user leaps where it stands, four pictures flash over the battle, then the effect layer fills with one colour as the target is struck and Weaken follows.
Abilities: Lunar Slash.
References btEffectRunFlashingStrike().
Referenced by BattleEffectHandlers.
Definition at line 92 of file battle_effect_thrash.c.
btEffectRunBoostHack
void btEffectRunBoostHack(BATTLE_EFFECT_PARM *args)
The user takes its leap pose, Vorpal Slash's four pictures flash over the battle in other colours, then the effect layer fills with one colour as the target is struck.
Abilities: Boost Hack.
References btEffectRunFlashingStrike().
Referenced by BattleEffectHandlers.
Definition at line 102 of file battle_effect_thrash.c.
btEffectRunTwinShear
void btEffectRunTwinShear(BATTLE_EFFECT_PARM *args)
The user leaps at the first target and a slash sweeps over the battle in four pictures, each the slash's top half with its reflection below it, then the effect layer fills with one colour as the target is struck.
Abilities: Twin Shear.
References btEffectRunFlashingStrike().
Referenced by BattleEffectHandlers.
Definition at line 112 of file battle_effect_thrash.c.
btEffectRunFlashingStrike
void btEffectRunFlashingStrike(BATTLE_EFFECT_PARM *args, Sint32 mode)
Plays a flashing strike; nothing passes FLASHING_STRIKE_UNUSED.
References btCameraShake(), btEffectDarkenBackgroundStep(), btEffectEndCanvasLayer(), btEffectRunWeaken(), btEffectStartCanvasLayer(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btMotionApproachTargetStub(), btObjectGetStub(), btResourceLoadAndDecompress(), fdActorSelectAnimationStub(), fdActorSetAnimationSpeedStub(), Sint32, syCloseEvent(), syHeapSlotRelease(), sySoundPlayStub(), sySynch() and syWordsClear().
Referenced by btEffectRunBoostHack(), btEffectRunLunarSlash(), btEffectRunQuickStrike(), btEffectRunTwinShear() and btEffectRunVorpalSlash().
Definition at line 118 of file battle_effect_thrash.c.