Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_ocean_fist.c

Ocean Fist. More…

Included by battle_effect.c.

Macros

NameDescription
#defineOCEAN_FIST_TICKS 92
#defineOCEAN_FIST_STRIKE_TICK 32The drops stop rising and the target is struck; the column fades from here for OCEAN_FIST_FADE_TICKS.
#defineOCEAN_FIST_FADE_TICKS 12
#defineOCEAN_FIST_DAMAGE_TICK 38The damage is shown, and the camera's long shake gives way to a harder one.
#defineOCEAN_FIST_COLUMN_WIDTH 96The column: WhirlBeamSheet's three pictures of a swirling torrent, one a tick in turn, each drawn in up to three bands one above another from its foot up to its top, which rises OCEAN_FIST_COLUMN_RISE lines a tick from the bottom of the view.
#defineOCEAN_FIST_COLUMN_HEIGHT 64
#defineOCEAN_FIST_COLUMN_PICTURES 3
#defineOCEAN_FIST_COLUMN_BANDS 3
#defineOCEAN_FIST_COLUMN_TICKS 42
#defineOCEAN_FIST_COLUMN_RISE 8
#defineOCEAN_FIST_COLUMN_FOOT_Y 108The canvas line the column stands on, where the drops leave from; a falling drop is gone below OCEAN_FIST_DROP_FLOOR.
#defineOCEAN_FIST_DROP_FLOOR 104
#defineOCEAN_FIST_SPRAY_SHEET (RamMapMetatileBuffer + 16384)FlashBurstSheet, the spray, decoded after the drops in the map cell buffer.
#defineOCEAN_FIST_SPRAY_SLOTS 32The sprays given a countdown, of which the first OCEAN_FIST_SPRAYS burst at the column's foot, one a tick; each shows the sprite sheet's six pictures for three ticks apiece.
#defineOCEAN_FIST_SPRAYS 24
#defineOCEAN_FIST_SPRAY_TICKS (6 * 3)
#defineOCEAN_FIST_DROPS 512The drops, in the map cell buffer: up to OCEAN_FIST_DROPS_A_TICK leave the column's foot each tick until the strike, and at OCEAN_FIST_FOUNTAIN_TICK every free one of the first OCEAN_FIST_FOUNTAIN_DROPS bursts up at once.
#defineOCEAN_FIST_DROPS_A_TICK 16
#defineOCEAN_FIST_FOUNTAIN_DROPS 256
#defineOCEAN_FIST_FOUNTAIN_TICK 28

Functions

NameDescription
voidbtEffectRunOceanFist (BATTLE_EFFECT_PARM *args)A swirling blue torrent rises from the ground at the target, spray bursting at its foot, while drops shoot up through it and a fountain of them bursts at once.

Description

Ocean Fist. Part of battle_effect.c.

Macros in detail

OCEAN_FIST_TICKS

#define OCEAN_FIST_TICKS 92

Referenced by btEffectRunOceanFist().

Definition at line 3 of file battle_effect_ocean_fist.c.

OCEAN_FIST_STRIKE_TICK

#define OCEAN_FIST_STRIKE_TICK 32

The drops stop rising and the target is struck; the column fades from here for OCEAN_FIST_FADE_TICKS.

Referenced by btEffectRunOceanFist().

Definition at line 6 of file battle_effect_ocean_fist.c.

OCEAN_FIST_FADE_TICKS

#define OCEAN_FIST_FADE_TICKS 12

Referenced by btEffectRunOceanFist().

Definition at line 7 of file battle_effect_ocean_fist.c.

OCEAN_FIST_DAMAGE_TICK

#define OCEAN_FIST_DAMAGE_TICK 38

The damage is shown, and the camera's long shake gives way to a harder one.

Referenced by btEffectRunOceanFist().

Definition at line 9 of file battle_effect_ocean_fist.c.

OCEAN_FIST_COLUMN_WIDTH

#define OCEAN_FIST_COLUMN_WIDTH 96

The column: WhirlBeamSheet's three pictures of a swirling torrent, one a tick in turn, each drawn in up to three bands one above another from its foot up to its top, which rises OCEAN_FIST_COLUMN_RISE lines a tick from the bottom of the view.

Referenced by btEffectRunOceanFist().

Definition at line 15 of file battle_effect_ocean_fist.c.

OCEAN_FIST_COLUMN_HEIGHT

#define OCEAN_FIST_COLUMN_HEIGHT 64

Referenced by btEffectRunOceanFist().

Definition at line 16 of file battle_effect_ocean_fist.c.

OCEAN_FIST_COLUMN_PICTURES

#define OCEAN_FIST_COLUMN_PICTURES 3

Referenced by btEffectRunOceanFist().

Definition at line 17 of file battle_effect_ocean_fist.c.

OCEAN_FIST_COLUMN_BANDS

#define OCEAN_FIST_COLUMN_BANDS 3

Referenced by btEffectRunOceanFist().

Definition at line 18 of file battle_effect_ocean_fist.c.

OCEAN_FIST_COLUMN_TICKS

#define OCEAN_FIST_COLUMN_TICKS 42

Referenced by btEffectRunOceanFist().

Definition at line 19 of file battle_effect_ocean_fist.c.

OCEAN_FIST_COLUMN_RISE

#define OCEAN_FIST_COLUMN_RISE 8

Referenced by btEffectRunOceanFist().

Definition at line 20 of file battle_effect_ocean_fist.c.

OCEAN_FIST_COLUMN_FOOT_Y

#define OCEAN_FIST_COLUMN_FOOT_Y 108

The canvas line the column stands on, where the drops leave from; a falling drop is gone below OCEAN_FIST_DROP_FLOOR.

Referenced by btEffectRunOceanFist().

Definition at line 23 of file battle_effect_ocean_fist.c.

OCEAN_FIST_DROP_FLOOR

#define OCEAN_FIST_DROP_FLOOR 104

Referenced by btEffectRunOceanFist().

Definition at line 24 of file battle_effect_ocean_fist.c.

OCEAN_FIST_SPRAY_SHEET

#define OCEAN_FIST_SPRAY_SHEET (RamMapMetatileBuffer + 16384)

FlashBurstSheet, the spray, decoded after the drops in the map cell buffer.

Referenced by btEffectRunOceanFist().

Definition at line 27 of file battle_effect_ocean_fist.c.

OCEAN_FIST_SPRAY_SLOTS

#define OCEAN_FIST_SPRAY_SLOTS 32

The sprays given a countdown, of which the first OCEAN_FIST_SPRAYS burst at the column's foot, one a tick; each shows the sprite sheet's six pictures for three ticks apiece.

Referenced by btEffectRunOceanFist().

Definition at line 31 of file battle_effect_ocean_fist.c.

OCEAN_FIST_SPRAYS

#define OCEAN_FIST_SPRAYS 24

Referenced by btEffectRunOceanFist().

Definition at line 32 of file battle_effect_ocean_fist.c.

OCEAN_FIST_SPRAY_TICKS

#define OCEAN_FIST_SPRAY_TICKS (6 * 3)

Referenced by btEffectRunOceanFist().

Definition at line 33 of file battle_effect_ocean_fist.c.

OCEAN_FIST_DROPS

#define OCEAN_FIST_DROPS 512

The drops, in the map cell buffer: up to OCEAN_FIST_DROPS_A_TICK leave the column's foot each tick until the strike, and at OCEAN_FIST_FOUNTAIN_TICK every free one of the first OCEAN_FIST_FOUNTAIN_DROPS bursts up at once.

Referenced by btEffectRunOceanFist().

Definition at line 38 of file battle_effect_ocean_fist.c.

OCEAN_FIST_DROPS_A_TICK

#define OCEAN_FIST_DROPS_A_TICK 16

Referenced by btEffectRunOceanFist().

Definition at line 39 of file battle_effect_ocean_fist.c.

OCEAN_FIST_FOUNTAIN_DROPS

#define OCEAN_FIST_FOUNTAIN_DROPS 256

Referenced by btEffectRunOceanFist().

Definition at line 40 of file battle_effect_ocean_fist.c.

OCEAN_FIST_FOUNTAIN_TICK

#define OCEAN_FIST_FOUNTAIN_TICK 28

Referenced by btEffectRunOceanFist().

Definition at line 41 of file battle_effect_ocean_fist.c.

Functions in detail

btEffectRunOceanFist

void btEffectRunOceanFist(BATTLE_EFFECT_PARM *args)

A swirling blue torrent rises from the ground at the target, spray bursting at its foot, while drops shoot up through it and a fountain of them bursts at once. At OCEAN_FIST_STRIKE_TICK the target is struck and thrown up, the column fades and the drops fall back.

Abilities: Ocean Fist.

References btCameraShake(), btEffectBuildCanvasBlitters(), btEffectConfigureEffectDisplay(), btEffectPosProjectBattler(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), MapGridMetatileBuffer, OceanFistDropGravity, Sint32, syCos(), syRandom(), sySin() and sySoundPlayStub().

Referenced by BattleEffectHandlers.

Definition at line 49 of file battle_effect_ocean_fist.c.