Alchemy
Loading...
Searching...
No Matches

avoid.c File Reference

Avoid. More...

Go to the source code of this file.

Functions

void FieldFx_BlinkAvoidCaster (void)
 End of the effect: switches the caster's display flags between 3 and 1 on a 5-frame cycle.
void BattleFx_UpdatePairedArcSpawner (union FieldObject *fieldObject)
 The caster during the effect: sheds a pair of falling arcs every 5 frames (7 on the world map), and spins in phase 1.
void FieldEvent_ShowStatusMessage (void)
 Avoid (or the Sacred Feather) has worn off, and the game says so.
void FieldFx_RunAvoid (void)
 The caster spins and flashes, then blinks, and encounters are kept away until Avoid wears off.

Detailed Description

Avoid.

Part of psynergy_effects.c, compiled only through it.

Definition in file avoid.c.

Function Documentation

◆ FieldFx_BlinkAvoidCaster()

void FieldFx_BlinkAvoidCaster ( void )

End of the effect: switches the caster's display flags between 3 and 1 on a 5-frame cycle.

FieldFx_RunAvoid schedules it (order 0xc80) for its last 70 frames and removes it again.

Definition at line 10 of file avoid.c.

Referenced by Djinn_ResolvePendingEvent(), FieldFx_BlinkAvoidCaster(), and FieldFx_RunAvoid().

◆ BattleFx_UpdatePairedArcSpawner()

void BattleFx_UpdatePairedArcSpawner ( union FieldObject * fieldObject)

The caster during the effect: sheds a pair of falling arcs every 5 frames (7 on the world map), and spins in phase 1.

FieldFx_RunAvoid makes it the caster's callback; it counts the caster's step and turns its angle.

Definition at line 33 of file avoid.c.

Referenced by BattleFx_UpdatePairedArcSpawner(), Djinn_ResolvePendingEvent(), and FieldFx_RunAvoid().

◆ FieldEvent_ShowStatusMessage()

void FieldEvent_ShowStatusMessage ( void )

Avoid (or the Sacred Feather) has worn off, and the game says so.

"Avoid's effects wore off." (or "Sacred Feather's ...").

Clears gGameState.avoidDistance. Reached through FieldEvent_RunTypeHandler when the Psynergy request the leader's steps raise as Avoid runs out (object/step.c) is handled.

Definition at line 58 of file avoid.c.

Referenced by Djinn_ResolvePendingEvent(), FieldEvent_RunTypeHandler(), and FieldEvent_ShowStatusMessage().

◆ FieldFx_RunAvoid()

void FieldFx_RunAvoid ( void )

The caster spins and flashes, then blinks, and encounters are kept away until Avoid wears off.

Abilities: Avoid (field kind 16), and the Sacred Feather.

The caster spins shedding falling arcs and flashes 20 times, then blinks for 55 frames; encounters are kept away (avoidDistance 0x9600000) until it wears off, and the game says "Monsters won't attack so often now.". FLAG_ITEM_USE marks it as cast from the Sacred Feather.

Called by BattleFx_Run and BattleFx_DispatchRequestKind. Sets gGameState.avoidDistance and avoidByItem; the leader's steps count the distance down by their speed (object/step.c), 2,400 pixels in all.

Definition at line 82 of file avoid.c.

Referenced by BattleFx_DispatchRequestKind(), BattleFx_Run(), Djinn_ResolvePendingEvent(), and FieldFx_RunAvoid().