Alchemy
Loading...
Searching...
No Matches

lift.c File Reference

Lift. More...

Go to the source code of this file.

Functions

void FieldFx_RunLiftOnTarget (s32 unused)
 An object appears 32 pixels to either side, each moves 14 pixels in, and they lift the target 32 pixels with them.
void FieldFx_RunLift (void)
 Lift cast with no target: objects appear above the caster and to either side, move apart and scatter into shards.
struct MotionObject * BattleFx_SpawnItemBreakMode3 (s32 x, s32 y, s32 z, s32 angle)
 Spawns object 215 and grows it, spinning, from a quarter to full size over 24 frames; angle is the way it faces once grown.
void BattleFx_UpdateRadialBurst (struct EffectSlot *slot)
 Effect slot callback of a particle that scatters 25 pixels from its origin in a random direction, then gathers beside the main object and is freed.
s32 SpawnHeavyImpactEffect (struct ScriptInterpreter *interpreter)
 A heavy impact: places object 0x11b 32 pixels below the source and scatters 12 shards from it.

Detailed Description

Lift.

Part of psynergy_effects.c, compiled only through it.

Definition in file lift.c.

Function Documentation

◆ FieldFx_RunLiftOnTarget()

void FieldFx_RunLiftOnTarget ( s32 unused)

An object appears 32 pixels to either side, each moves 14 pixels in, and they lift the target 32 pixels with them.

Called by BattleFx_DispatchRequestKind; leaves the target raised, with its update set to ObjectGroup_ApplyRandomChildValues.

Abilities: Lift (field kind 7), cast on a target.

Definition at line 13 of file lift.c.

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

◆ FieldFx_RunLift()

void FieldFx_RunLift ( void )

Lift cast with no target: objects appear above the caster and to either side, move apart and scatter into shards.

Abilities: Lift (field kind 7), cast with no target. Called by BattleFx_Run.

Definition at line 81 of file lift.c.

Referenced by BattleFx_Run(), and FieldFx_RunLift().

◆ BattleFx_SpawnItemBreakMode3()

struct MotionObject * BattleFx_SpawnItemBreakMode3 ( s32 x,
s32 y,
s32 z,
s32 angle )

Spawns object 215 and grows it, spinning, from a quarter to full size over 24 frames; angle is the way it faces once grown.

Makes Lift's two hands, for FieldFx_RunLiftOnTarget and FieldFx_RunLift; returns NULL when no object could be spawned.

Definition at line 87 of file lift.c.

Referenced by BattleFx_SpawnItemBreakMode3(), Djinn_ResolvePendingEvent(), FieldFx_RunLift(), and FieldFx_RunLiftOnTarget().

◆ BattleFx_UpdateRadialBurst()

void BattleFx_UpdateRadialBurst ( struct EffectSlot * slot)

Effect slot callback of a particle that scatters 25 pixels from its origin in a random direction, then gathers beside the main object and is freed.

Set on Force's 12 flashes by FieldFx_RunForceOnTarget in force.c.

Definition at line 118 of file lift.c.

Referenced by BattleFx_UpdateRadialBurst(), Djinn_ResolvePendingEvent(), and FieldFx_RunForce().

◆ SpawnHeavyImpactEffect()

s32 SpawnHeavyImpactEffect ( struct ScriptInterpreter * interpreter)

A heavy impact: places object 0x11b 32 pixels below the source and scatters 12 shards from it.

Reached through SC_CALL in gBattleFx_HeavyImpactScript (fxdata.c), where the interpreter is the object running the script. Returns 0.

Definition at line 177 of file lift.c.

Referenced by Djinn_ResolvePendingEvent(), and SpawnHeavyImpactEffect().