Alchemy
Loading...
Searching...
No Matches

douse.c File Reference

Douse. More...

Go to the source code of this file.

Data Structures

struct  Effect05Object
 A FieldActor seen with the halfword at 0x5e (here its phase), which FieldActor does not name. More...
struct  Effect05State
 Douse's effect work: the orb's destination (or the angle toward it), the target, and the flags that choose how the light falls. More...

Functions

void FieldFx_SpawnRandomAngleTriplet (union FieldObject *fieldObject)
 Per-frame update of a falling particle: on reaching altitude, it scatters three small particles.
void BattleFx_UpdateDriftingFallObject (union FieldObject *fieldObject)
 Per-frame update: drifts from side to side as it slowly falls, and is released on reaching the ground.
void FieldFx_RunDouseOnTarget (s32 unused)
 Runs Douse cast on a target, through FieldFx_RunDouse.
void FieldFx_RunDouse (void)
 An orb of light rises from 16 pixels above the target to 32 pixels above the destination (80 with variant) over 10 frames, growing as it goes, rains particles, and returns.

Detailed Description

Douse.

Part of psynergy_effects.c, compiled only through it.

Definition in file douse.c.

Function Documentation

◆ FieldFx_SpawnRandomAngleTriplet()

void FieldFx_SpawnRandomAngleTriplet ( union FieldObject * fieldObject)

Per-frame update of a falling particle: on reaching altitude, it scatters three small particles.

Definition at line 45 of file douse.c.

Referenced by Djinn_ResolvePendingEvent(), FieldFx_RunDouse(), and FieldFx_SpawnRandomAngleTriplet().

◆ BattleFx_UpdateDriftingFallObject()

void BattleFx_UpdateDriftingFallObject ( union FieldObject * fieldObject)

Per-frame update: drifts from side to side as it slowly falls, and is released on reaching the ground.

Definition at line 86 of file douse.c.

Referenced by BattleFx_UpdateDriftingFallObject(), Djinn_ResolvePendingEvent(), and FieldFx_RunDouse().

◆ FieldFx_RunDouseOnTarget()

void FieldFx_RunDouseOnTarget ( s32 unused)

Runs Douse cast on a target, through FieldFx_RunDouse.

Abilities: Douse (field kind 5), cast on a target.

Definition at line 102 of file douse.c.

Referenced by BattleFx_DispatchRequestKind(), Djinn_ResolvePendingEvent(), and FieldFx_RunDouseOnTarget().

◆ FieldFx_RunDouse()

void FieldFx_RunDouse ( void )

An orb of light rises from 16 pixels above the target to 32 pixels above the destination (80 with variant) over 10 frames, growing as it goes, rains particles, and returns.

Abilities: Douse (field kind 5).

With no destination yet, the destination is 16 pixels from the target toward angle.

Definition at line 112 of file douse.c.

Referenced by BattleFx_Run(), Djinn_ResolvePendingEvent(), FieldFx_RunDouse(), and FieldFx_RunDouseOnTarget().